---
url: /mcp-servers.md
---
# MCP servers

An agent's MCP servers give it tools through the [Model Context Protocol](https://modelcontextprotocol.io). They run programs on your machine or connect to remote services, often with your tokens. The agent's author chooses the servers; you choose which values they receive. You keep those values in an MCP configuration, and assigning it to an agent's server also allows that server to receive them:

```sh
pandra config secret set slack-token --1password op://Work/Slack/token
pandra config mcp set slack-work --agent github.com/acme/notifier \
    --server slack --secret token=slack-token --value tenant-id=T0123
```

```text
Allowed MCP server "slack" of github.com/acme/notifier to receive its inputs
  Server:  com.slack/slack-mcp 2.0.0 (MCP Registry, registry.modelcontextprotocol.io)
  URL:     https://mcp.slack.com/mcp
  Inputs:  tenant-id  <- "T0123"
           token      <- secret slack-token (1Password op://Work/Slack/token)
```

A run on a terminal asks for a missing value instead, and offers to save it. Every message that names a server also shows what it is (`Server:`) and where your values go (`URL:`, or `Command:` and `Args:` for a program on your machine), because a server's name, such as `slack`, proves nothing.

* [Allowing servers](/mcp-servers/allowing.md): see what a server needs, supply its values during a run or with commands, and what happens when the server changes.
* [Methods and replacements](/mcp-servers/methods.md): run a server another way, replace it with your own build, and the runners that start package servers.

To add servers to your own agent, see [MCP servers in agent components](/build/components.md#mcp-servers). An editor that runs an agent over ACP can add servers of its own ([MCP servers from the editor](/integrations/editor.md#mcp-servers-from-the-editor)).
