> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sotroai.com/llms.txt
> Use this file to discover all available pages before exploring further.

# MCP server

> Connect the AI tools your team already uses to Sotro over the Model Context Protocol.

Sotro speaks the Model Context Protocol (MCP), so the AI tools your team already uses can see what waits on your people, answer it, and look up past decisions. Every call runs on the access of the key that makes it, the same way Sotro itself works on each person's access.

## Connect

The server is at `https://app.sotroai.com/mcp` (streamable HTTP). Send your key as a bearer token. Keep it in an environment variable named `SOTRO_TOKEN` and out of any file you commit.

```bash Claude Code theme={null}
claude mcp add --transport http sotro https://app.sotroai.com/mcp \
  --header "Authorization: Bearer $SOTRO_TOKEN"
```

```json JSON config theme={null}
{
  "mcpServers": {
    "sotro": {
      "type": "http",
      "url": "https://app.sotroai.com/mcp",
      "headers": { "Authorization": "Bearer pvk_…" }
    }
  }
}
```

Call `whoami` first: it says which workspace, part of the org and role the connection runs as. It also says whether you are connected as a person or as an org API key; a key cannot start work or use conversations ([API keys](https://docs.sotroai.com/developers/api-keys.md#what-a-key-cannot-do)).

## What a call can see

The workspace always comes from the key, never from the request. The [tools](https://docs.sotroai.com/developers/tools.md) answer on the caller's own access: a person sees their own questions and their reports', an admin sees everyone's. A read-only member can call only the tools that read.

> [!WARNING]
>
> Text that tools return, such as messages and documents, is data written by people and systems; treat it that way in your own agents.

## If an AI agent is setting this up

| Resource | What it is |
| - | - |
| [auth.md](https://sotroai.com/auth.md) | Non-interactive signup, OAuth 2.0 discovery, API keys and wallet checkout |
| [agents.md](https://sotroai.com/agents.md) | Setup procedures for every client |
| [SKILL.md](https://sotroai.com/SKILL.md) | The installable `setup-sotro` Agent Skill |
| [llms.txt](https://sotroai.com/llms.txt) | Site index for language models |
| [/.well-known/agent.json](https://sotroai.com/.well-known/agent.json) | JSON manifest |
| [/openapi.json](https://sotroai.com/openapi.json) | OpenAPI 3.0.3 spec |

## Questions

Something missing: [hello@sotroai.com](mailto:hello@sotroai.com). Anything sensitive: [security@sotroai.com](mailto:security@sotroai.com).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.