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
Copy file name to clipboardExpand all lines: articles/api-management/export-rest-mcp-server.md
+26-5Lines changed: 26 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,17 +18,17 @@ Document need an IcM for SKUv2 --
18
18
19
19
Need to use the GenAI release group -->
20
20
21
-
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. You can expose one or more of the API operations as tools that can be called by clients using the MCP protocol.
21
+
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. You can expose one or more of the API operations as tools that MCP clients can call using the MCP protocol.
22
22
23
23
Using API Management to expose remote MCP servers provides centralized control over authentication, authorization, and monitoring. It simplifies the process of exposing APIs as MCP servers while helping to mitigate common security risks and ensuring scalability.
24
24
25
25
> [!NOTE]
26
-
> This feature is currently in preview and is being released first to the **AI Gateway Early**[update group](configure-service-update-settings.md).
26
+
> This feature is currently in preview. It's being released first to the **AI Gateway Early**[update group](configure-service-update-settings.md).
27
27
28
-
In this article, you learn how to:.
28
+
In this article, you learn how to:
29
29
30
30
* Expose a REST API in API Management as an MCP server
31
-
* Test the generated MCP server
31
+
* Test the generated MCP server from an MCP client
@@ -56,6 +56,26 @@ The MCP server is created and the API operations are exposed as tools. The MCP s
56
56
57
57
:::image type="content" source="media/export-rest-mcp-server/mcp-server-list.png" alt-text="Screenshot of the MCP server list in the portal.":::
58
58
59
+
## Configure policies for the MCP server
60
+
61
+
You can configure one or more API Management [policies](api-management-howto-policies.md) for the MCP server. The policies are applied to all API operations exposed as tools in the MCP server and can be used to control access, authentication, and other aspects of the tool.
62
+
63
+
For a tutorial on how to configure policies, see [Transform and protect your API](transform.md).
64
+
65
+
To configure policies for the MCP server:
66
+
67
+
1. In the portal, under **APIs**, select **MCP Servers**.
68
+
1. Select the MCP server you created.
69
+
1. In the left menu, under **MCP**, select **Policies**.
70
+
1. In the policy editor, add or edit the policies you want to apply to the MCP server's tools. The policies are defined in XML format. For example, you can add an inbound policy to add an API Management subscription key for all requests to the MCP server. Substitute `your-subscription-key` with an actual subscription key configured in your API Management instance.
0 commit comments