MCP servers as clients

The role of a Model Context Protocol (MCP) server as a client that requests access to other resources through separate tokens that Okta issues.

By default, an MCP server is a resource that AI agents call. You can also configure an MCP server to act as a client, so it can request access to other resources on behalf of the AI agent that called it. This is available only for MCP servers that are secured with an Okta custom authorization server.

To act as a client, an MCP server needs an identity of its own. You give it one by adding a public/private key pair. The MCP server uses the private key to prove its identity to Okta when it requests a token.

Resource connections define what the MCP server can reach. You can add a connection to any of the following resource types:

  • Authorization server: The MCP server requests access to resources protected by that authorization server.
  • Another MCP server: The MCP server requests access to another MCP server.
  • Application: The MCP server requests access to an app.

When the MCP server needs to call one of these resources, Okta issues a separate access token for that resource. Okta never passes along the token that the MCP server received from the calling AI agent. Okta only issues the token. The MCP server calls to the downstream resource itself.

The chain of delegation continues through the MCP server, so the access token records the sequence of AI agents and servers that are involved in the request. You can chain connections together. For example, an MCP server that calls another MCP server, which calls a third. A chain can include up to five connections. You can connect an MCP server to a resource that's protected by an external authorization server, but that resource ends the chain. For more information about delegation chains, see Agent-to-agent connections.

To set up an MCP server to access downstream resources, see Allow an MCP server to access downstream resources.