*This page
applies to **Apigee** and **Apigee 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.


For information about MCP in Apigee, see [MCP in Apigee overview](https://docs.cloud.google.com/apigee/docs/api-platform/apigee-mcp/apigee-mcp-overview.md.txt).

## Import Apigee MCP proxies


API hub automatically imports all MCP proxies created in your associated Apigee organization. These proxies are registered with the **MCP** API style, and their specification files are parsed to extract MCP tools.


If you have additional runtime projects that are not currently attached to your API hub instance, you can attach them manually from the **API hub \> Settings** page. For more information, see [Attach a runtime project](https://docs.cloud.google.com/apigee/docs/apihub/auto-register-apigee-proxies#attach-a-runtime-project).
**Important:**

- When Apigee MCP proxies are imported, API hub identifies the associated OpenAPI Specification (OAS) files as MCP specs and parses them to extract MCP tools. While the specification type is updated to **MCP**, the underlying OAS file is not currently converted to the MCP specification schema. This is a known issue.
- For Apigee MCP proxies with multiple deployment revisions, API hub only parses MCP tools from the latest deployed revision. Tools from earlier revisions are not available or supported.

## 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 the **API hub \> APIs** page.


   [Go to APIs](https://console.cloud.google.com/apigee/api-hub/apis)
2. Provide the required API details.
3. Under **System attributes** , set the **API style** to **MCP**.
4. Click **Register**.
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 the [Create API](https://docs.cloud.google.com/apigee/docs/reference/apis/apihub/rest/v1/projects.locations.apis/create.md.txt) 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:

- <var translate="no">HUB_PROJECT</var>: The project ID of the API hub instance.
- <var translate="no">HUB_LOCATION</var>: The location of the API hub instance.
- <var translate="no">API_ID</var>: The ID of the API resource.
- <var translate="no">DISPLAY_NAME</var>: The display name of the API resource. You can use any name you wish.
- <var translate="no">DESCRIPTION</var>: A description of the API resource.
- <var translate="no">OWNER_DISPLAY_NAME</var>: The display name of the API owner.
- <var translate="no">OWNER_EMAIL</var>: The email address of the API owner.
- <var translate="no">ATTRIBUTE_VALUE</var>: The value of a custom user-defined attribute. This is optional.

  > [!CAUTION]
  > **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 the **MCP** filter tag at the top of the list.

[Go to API list view](https://console.cloud.google.com/apigee/api-hub/apis)

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](https://docs.cloud.google.com/static/apigee/docs/apihub/images/mcp-apis.png)

## What's next

- Learn how to [Manage MCP tools](https://docs.cloud.google.com/apigee/docs/apihub/manage-mcp-tools.md.txt).
- Learn how to [Manage API resources](https://docs.cloud.google.com/apigee/docs/apihub/manage-apis.md.txt).
- Learn how to [Manage MCP proxies](https://docs.cloud.google.com/apigee/docs/apihub/manage-mcp-proxies.md.txt).