In a Model Context Protocol (MCP) integration, a client can ask a server to read data or act through tools. An authorisation decision must account for the user, resource and requested operation. The server may also have a separate trust relationship with a downstream API.

Limit permissions for each operation

Define tools and scopes around the actual task. Separate read and write actions, validate parameters and enforce resource-level checks on the server. Require explicit approval for high-impact actions and log their outcome and correlation identifier.

Validate token audience and validity

For an OAuth-protected MCP server, validate the issuer, audience, expiry and required permissions. Accept tokens intended for that server. Use credentials authorised for the downstream resource and flow when calling an API. MCP guidance prohibits accepting and forwarding a token that was not issued for the MCP server. Log only useful metadata, without reusable tokens.

Isolate processes and test negative cases

Run the server with a dedicated identity, minimal privileges and network egress limited to necessary destinations. In a hypothetical example, a connector can read tickets but cannot close them or reach another group’s documents. Test a token with the wrong audience and a request outside the resource scope. Verify both are rejected and recorded without secrets.

Sources