Model Context Protocol (MCP) in Apigee overview

This page applies to Apigee, but not to Apigee hybrid.

View Apigee Edge documentation.

This page describes how to use Apigee to expose your APIs as MCP tools to agentic applications. MCP in Apigee is available for Subscription, Pay-as-you-go, and Evaluation organizations, including Data Residency-enabled organizations.

What is MCP?

Model Context Protocol (MCP) is an open source protocol developed by Anthropic that standardizes the way that AI applications connect to data sources, workflows, and tools.

AI applications can use MCP to access Google Cloud and Apigee services as tools. In this context, the following MCP terms are useful to understand:

  • MCP host: The AI application or environment that interacts with the user. The MCP host uses large language models (LLMs) to process requests that may require external data or tools.
  • MCP client: A component within the MCP host that helps the LLM and MCP server communicate with each other. It translates the LLM's requests for the MCP server and converts MCP server's replies for the LLM. It also finds and uses available MCP servers.
  • MCP server: The external service that provides context, data, or capabilities to the LLM, acting as a proxy between the LLM and the MCP client.

How MCP in Apigee works

MCP endpoints for Google, Google Cloud, and Apigee implement the MCP server specification. This lets compliant MCP clients access them to:

  • Discover available endpoints.
  • List the available tools at an endpoint.
  • Authenticate to an endpoint.
  • Call tools according to defined access policies.

Any MCP client that supports remote MCP endpoints over HTTP/S can access these tools. Because the endpoints are managed, you don't need to install or manage local MCP servers, remote MCP servers, or additional infrastructure to enable agentic applications to access your services.

MCP in Apigee offers JSON-RPC support for tools/list and tools/call methods. You can customize your MCP endpoint with parameters for discoverability, security, network availability, and observability.

Key features of MCP in Apigee

MCP in Apigee offers features for tool discovery, security, and governance. These features help you manage how agentic applications interact with your services.

Simplified tool discovery with API hub

You can discover available MCP endpoints for Apigee services using a directory service accessible over a REST interface. Each MCP endpoint also supports the MCP tools/list method, which lets MCP clients discover the tools available in that endpoint.

Additionally, MCP integrates with Apigee API hub. When an MCP Discovery Proxy is deployed, API hub automatically ingests its OpenAPI specification, assigns it the MCP API style, and maps API operations to individual MCP tools. This allows developers to easily filter for MCP-enabled APIs in API hub and use Semantic Search with natural language queries to find relevant tools for their agentic applications.

Security

MCP in Apigee includes multiple layers of security to protect your services. You can control access using authentication, authorization, network boundaries, and content scanning.

Authentication

Apigee hosted MCP endpoints support OAuth 2.1 and OpenID Connect (OIDC) for authentication. This ensures that only agents, MCP clients, and end-users with established identities can access your MCP endpoints and call MCP tools. Protected Resource Metadata lets clients discover the OAuth authorization servers.

Fine-grained authorization policies

You can restrict access to your MCP tools based on OAuth client identities. For example, you can configure a policy in your MCP Discovery proxy to specify that only designated agents with known client identities can access an MCP tool for a payments service.

Observability and analytics

For Apigee hosted endpoints, you can use Apigee Analytics to view detailed usage information for your MCP tools. Analytics allows you to segment MCP-specific traffic from standard API traffic and view metrics at the individual tool level, such as the volume of tools/list (discovery) versus tools/call (execution) requests. Performance metrics also help you distinguish between proxy overhead and target response time, allowing you to pinpoint bottlenecks more effectively.

Reliability and troubleshooting

To improve troubleshooting and provide more visibility into the deployment process, Apigee surfaces specific infrastructure and configuration errors in the UI. If a deployment fails due to an invalid OpenAPI specification or an infrastructure issue like a load balancer capacity stockout in a specific region, the UI will provide actionable feedback to help you resolve the issue without requiring support intervention.

Using MCP with Apigee

You can expose your existing Apigee APIs as MCP tools and make them accessible through MCP endpoints. These endpoints can be configured at either a per-host or environment group level. For example, if your cymbal organization has eight hostnames (e.g., api.cymbal.com, partners.cymbal.com), each associated with a different environment group, you can host a dedicated MCP server for each hostname.

A managed target endpoint (ORG_NAME.mcp.apigee.internal) is deployed using a specialized MCP Discovery proxy in your Apigee organization, where your MCP servers are made available.

The following table shows an example of how customers, including the fictional cymbal organization, can configure multiple MCP endpoints using Apigee.

Customer Hostname and MCP basepath MCP server target endpoint API proxy Environment / Environment group
cymbal api.cymbal.com/mcp cymbal.mcp.apigee.internal
(cymbal org's tenant project)
mcp-api-proxy1 prod / prod-env-group
api-internal.cymbal.com/mcp cymbal.mcp.apigee.internal
(cymbal org's tenant project)
mcp-api-proxy2 internal / internal-env-group
api-service.cymbal.com/mcp cymbal.mcp.apigee.internal
(cymbal org's tenant project)
mcp-api-proxy3 dev / dev-env-group

Limitations

The following limitations apply to MCP in Apigee:

  • The number of MCP tools in an Apigee organization is limited to 1000.
  • MCP infrastructure deployment may be subject to capacity limitations in the following regions:
    • asia-east2
    • asia-northeast3
    • asia-southeast2
    • australia-southeast1
    • europe-central2
    • europe-west12
    • europe-west9
    • me-central2
    • us-central2

    If you see an error related to load balancer provisioning failure, or the provisioning status never changes to Deployed, it might be due to temporary infrastructure capacity limits in the selected region. Try deploying the proxy to an environment in a different region.

  • MCP in Apigee supports the following OpenAPI versions: 3.0.0, 3.0.1, 3.0.2., 3.0.3.
  • MCP in Apigee is not available for use with Apigee hybrid organizations.
  • API insights in Apigee API hub is not available for MCP APIs and tools deployed in Apigee organizations with VPC-SC enabled.
  • GET calls on MCP error responses will return a 405 error, as the MCP server currently does not support Server-Sent Events (SSE) streams.
  • Apigee API hub API insights will not display MCP style APIs or traffic for MCP resources until Apigee version 1-17-0-apigee-6 is fully rolled out to all available regions.

What's next