Register MCP APIs

This pageapplies toApigee andApigee hybrid.

API hub supports the Model Context Protocol (MCP) as a first-class API style, alongside REST, gRPC, and others. You can import, register, and manage MCP APIs and their associated tools directly within API hub, creating a centralized registry for your agentic APIs and services.

Register an MCP API

You can register MCP APIs using the Google Cloud console or the API hub API.

Console

To register a MCP API, do the following:

  1. In the Google Cloud console, go to theAPI hub> APIs page.

    Go to APIs

  2. Provide the required API details.
  3. UnderSystem attributes, set theAPI style toMCP.
  4. ClickRegister.
  5. The MCP API is registered. You can edit the API details and attach a specification file at a later time.

REST

To register a MCP API, use theCreate API REST API.

curl -X POST -H "Content-Type: application/json" -H "Authorization: Bearer $(gcloud auth print-access-token)" "https://apihub.googleapis.com/v1/projects/HUB_PROJECT/locations/HUB_LOCATION/apis?api_id=API_ID -d '{  "display_name": "DISPLAY_NAME",  "description": "DESCRIPTION",  "owner": {    "display_name": "OWNER_DISPLAY_NAME",    "email": "OWNER_EMAIL"  },  "api_style": {    "enum_values": {      "values": [        {          "id": "mcp-api"        }      ]    }  },  "attributes": {    "projects/HUB_PROJECT/locations/HUB_LOCATION/custom-attribute-1": {      "attribute": "projects/HUB_PROJECT/locations/HUB_LOCATION/custom-attribute-1",      "enum_values": {        "values": [          {            "id": "ATTRIBUTE_VALUE"          }        ]      }    }  }}'

Replace the following:

  • HUB_PROJECT: The project ID of the API hub instance.
  • HUB_LOCATION: The location of the API hub instance.
  • API_ID: The ID of the API resource.
  • DISPLAY_NAME: The display name of the API resource. You can use any name you wish.
  • DESCRIPTION: A description of the API resource.
  • OWNER_DISPLAY_NAME: The display name of the API owner.
  • OWNER_EMAIL: The email address of the API owner.
  • ATTRIBUTE_VALUE: The value of a custom user-defined attribute. This is optional.Caution: Avoid adding sensitive data to user-defined attributes.

View MCP APIs

The API list view in API hub allows you to filter APIs by style to find specific resources. To view only registered MCP APIs, select theMCP filter tag at the top of the list.

Go to API list view

The following image shows the API list view in API hub, with the top filter tags highlighted:

API list view with MCP filter tags highlighted

What's next

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-12-17 UTC.