# MCP servers

> Put the gateway in front of an MCP server, and allow or refuse each tool, resource and prompt by name, for each agent or user.

An MCP server offers many tools behind one address, and they're rarely equally safe: `get_weather` is not
`delete_records`. With the gateway in front of it, each MCP call is decided as what it does, the tool, resource or
prompt it names, so you allow one tool and refuse another on the same server, for each agent or user, with policies
in the realm. The server itself knows nothing about your policies.

An MCP client that has never met your server finds where to sign in from the gateway's resource metadata, and a
refusal comes back as a JSON-RPC error the client reads natively.

<Aside type="caution" title="The gateway's image isn't published yet">
  Ask your Cvyūh contact for the gateway's container image. Everything in this area works once you run it.
</Aside>

<CardGrid>
  <LinkCard title="MCP tool calls" description="How each MCP method is decided, and what you set up." href="/gateway/mcp-servers/mcp-tool-calls/" />
  <LinkCard title="Protect an MCP server" description="One tool allowed and another refused, step by step." href="/gateway/guides/protect-an-mcp-server/" />
</CardGrid>

## Capabilities

### Decide each call by name

| Capability | What it gives you |
|---|---|
| [MCP tool calls](/gateway/mcp-servers/mcp-tool-calls/) | Each MCP call decided as the tool, resource, prompt or task it names |
| [Names taken whole](/gateway/mcp-servers/mcp-tool-calls/#how-it-works) | A tool called `get_*` is never read as a pattern, and a resource URI can't place itself beneath another |
| [Header and body agree](/gateway/mcp-servers/mcp-tool-calls/#good-to-know) | A call whose MCP headers disagree with its body, or whose protocol is too old, is refused |
| [Refusals MCP clients read](/gateway/mcp-servers/mcp-tool-calls/#errors) | Every refusal as a JSON-RPC error, with its HTTP status and challenge |
| [Sign-in discovered](/gateway/protect-apis/requests-and-refusals/#resource-metadata) | MCP clients find the realm from the server's resource metadata |
| [A token for the server alone](/gateway/protect-apis/token-swap/) | Each allowed call goes on under a token meant for the MCP server |

## Coming next

- [MCP tool federation](/gateway/mcp-servers/whats-next/#mcp-tool-federation): one endpoint for many servers' tools.

## Guides

- [Protect an MCP server](/gateway/guides/protect-an-mcp-server/)
- [Accept apps identified by a URL](/workforce-identity/guides/partners/apps-identified-by-url/)
