You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In API Management, you can expose a REST API managed in API Management as a remote [Model Context Protocol (MCP)](https://www.anthropic.com/news/model-context-protocol) server through its built-in [AI gateway](genai-gateway-capabilities.md). Expose one or more of the API operations as tools that MCP clients can call using the MCP protocol.
18
+
In API Management, you can expose a REST API managed in API Management as a remote [Model Context Protocol (MCP)](https://www.anthropic.com/news/model-context-protocol) server using its built-in [AI gateway](genai-gateway-capabilities.md). Expose one or more of the API operations as tools that MCP clients can call using the MCP protocol.
+ If you don't already have an API Management instance, complete the following quickstart: [Create an Azure API Management instance](get-started-create-service-instance.md).
33
-
+ Your API Management instance must be in one of the supported service tiers for preview: classic Basic, Standard, Premium, Basic v2, Standard v2, or Premium v2.
34
-
+ If your instance is in the classic Basic, Standard, or Premium tier, you must join the **AI Gateway Early**[update group](configure-service-update-settings.md) to access MCP server features. It can take up to 2 hours for the update to be applied.
33
+
+ The following service tiers are supported for preview: classic Basic, Standard, Premium, Basic v2, Standard v2, or Premium v2.
34
+
+ In the classic Basic, Standard, or Premium tier, you must join the **AI Gateway Early**[update group](configure-service-update-settings.md) to access MCP server features. Allow up to 2 hours for the update to be applied.
35
+
35
36
+ Make sure that your instance manages an HTTP-compatible API (any API imported as a REST API, including APIs imported from Azure resources) that you'd like to expose as an MCP server. To import a sample API, see [Import and publish your first API](import-and-publish.md).
36
37
> [!NOTE]
37
38
> Only HTTP APIs managed in API Management can be exposed as MCP servers.
39
+
38
40
+ To test the MCP server, you can use Visual Studio Code with access to [GitHub Copilot](https://code.visualstudio.com/docs/copilot/setup).
This article shows how to use API Management to expose and govern an existing MCP-compatible server - a tool server hosted outside of API Management. Expose the server's tools through API Management so that MCP clients can call them using the MCP protocol.
17
+
This article shows how to use API Management to expose and govern an existing MCP-compatible server - a tool server hosted outside of API Management. Expose the server's tools through API Management using its built-in [AI gateway](genai-gateway-capabilities.md) capabilities so that MCP clients can call them using the MCP protocol.
+ If you don't already have an API Management instance, complete the following quickstart: [Create an Azure API Management instance](get-started-create-service-instance.md).
39
-
+ Your API Management instance must be in one of the supported service tiers for preview: classic Basic, Standard, Premium, Basic v2, Standard v2, or Premium v2.
40
-
+ If your instance is in the classic Basic, Standard, or Premium tier, you must join the **AI Gateway Early**[update group](configure-service-update-settings.md) to access MCP server features. It can take up to 2 hours for the update to be applied.
39
+
+ The following service tiers are supported for preview: classic Basic, Standard, Premium, Basic v2, Standard v2, or Premium v2.
40
+
+ In the classic Basic, Standard, or Premium tier, you must join the **AI Gateway Early**[update group](configure-service-update-settings.md) to access MCP server features. Allow up to 2 hours for the update to be applied.
41
+
41
42
+ Access to an external MCP-compatible server (for example, hosted in Azure Logic Apps, Azure Functions, LangServe, or other platforms).
43
+
42
44
+ Appropriate credentials to the MCP server (OAuth 2.0 client credentials or API keys) for secure access.
45
+
43
46
+ To test the MCP server, you can use Visual Studio Code with access to [GitHub Copilot](https://code.visualstudio.com/docs/copilot/setup).
44
47
45
-
## Expose an existing MCP Server
48
+
## Expose an existing MCP server
46
49
47
-
Follow these steps to expose an existing MCP server to API Management:
50
+
Follow these steps to expose an existing MCP server is API Management:
48
51
49
52
1. In the [Azure portal](https://portal.azure.com), navigate to your API Management instance.
Copy file name to clipboardExpand all lines: articles/api-management/includes/preview/preview-callout-mcp-servers.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,4 +7,5 @@ ms.date: 07/16/2025
7
7
---
8
8
9
9
> [!IMPORTANT]
10
-
> This feature is in preview. Review the [prerequisites](#prerequisites) to access MCP server features. In preview, API Management supports MCP server tools, but doesn't currently support MCP resources or prompts.
10
+
> * This feature is in preview. Review the [prerequisites](#prerequisites) to access MCP server features.
11
+
> * In preview, API Management supports MCP server tools, but doesn't currently support MCP resources or prompts.
> When you use an MCP server in API Management, incoming headers like **Authorization** aren't automatically passed to your backend API. If your backend needs a token, you can add it as an input parameter in your API definition. Alternatively, use policies like `get-authorization-context` and `set-header` to generate and attach the token, as noted in the following section.
105
113
106
114
@@ -151,9 +159,7 @@ MCP servers in API Management are available in the following service tiers:
151
159
152
160
## Related content
153
161
154
-
*[Python sample: Secure remote MCP servers using Azure API Management (experimental)](https://github.com/Azure-Samples/remote-mcp-apim-functions-python)
Copy file name to clipboardExpand all lines: includes/api-management-configure-test-mcp-server.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,7 +28,7 @@ To configure policies for the MCP server:
28
28
29
29
## Validate and use the MCP server
30
30
31
-
Use a compliant LLM agent (such as GitHub Copilot, Semantic Kernel, or Copilot Studio) or a test client (such as `curl`) to call the API Management-hosted MCP endpoint, ensure the request includes appropriate headers and tokens, and confirm successful routing and response from the MCP server.
31
+
Use a compliant LLM agent (such as GitHub Copilot, Semantic Kernel, or Copilot Studio) or a test client (such as `curl`) to call the API Management-hosted MCP endpoint. Ensure that the request includes appropriate headers or tokens, and confirm successful routing and response from the MCP server.
32
32
33
33
> [!TIP]
34
34
> If you use the [MCP Inspector](https://modelcontextprotocol.io/docs/tools/inspector) to test an MCP server managed by API Management, we recommend using version 0.9.0.
0 commit comments