Skip to content

Commit 42c1529

Browse files
committed
local MCP servers
1 parent e1f7ff5 commit 42c1529

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

articles/ai-foundry/agents/how-to/tools/model-context-protocol.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ manager: nitinme
77
ms.service: azure-ai-foundry
88
ms.subservice: azure-ai-foundry-agent-service
99
ms.topic: how-to
10-
ms.date: 09/30/2025
10+
ms.date: 10/10/2025
1111
author: aahill
1212
ms.author: aahi
1313
---
@@ -74,6 +74,21 @@ For more information on using MCP, see:
7474

7575
1. Submit your approval to the agent with `call_id` by setting `approve` to `true`.
7676

77+
## Host a local MCP server
78+
79+
The Azure AI Foundry Agent Service runtime only accepts a remote MCP server endpoint. If you want to add tools from a local MCP server, you'll have to self-host it on [Azure Container Apps](/samples/azure-samples/mcp-container-ts/mcp-container-ts/) or [Azure Functions](https://github.com/Azure-Samples/mcp-sdk-functions-hosting-python/blob/main/ExistingServer.md) to get a remote MCP server endpoint. Pay attention to the following considerations when attempting to host local MCP servers in the cloud:
80+
81+
|Local MCP server setup | Hosting in Azure Container Apps | Hosting in Azure Functions |
82+
|:---------:|:---------:|:---------:|
83+
| Transport | HTTP POST/GET endpoints required. | HTTP streamable required. |
84+
| Code changes | Container rebuild required. | Azure Functions-specific configuration files required in the root directory. |
85+
| Authentication | Custom authentication implementation required. | Key-based only. OAuth needs API Management. |
86+
| Language | Any language that runs in Linux containers (Python, Node.js, .NET, TypeScript, Go). | Python, Node.js, Java, .NET only. |
87+
| Container Requirements | Linux (linux/amd64) only. No privileged containers.| Containerized servers are not supported. |
88+
| Dependencies | All dependencies must be in container image. | OS-level dependencies (such as Playwright) are not supported. |
89+
| State | Stateless only. | Stateless only. |
90+
| UVX/NPX | Supported. | Not supported. `npx` start commands not supported. |
91+
7792
## Related content
7893

7994
* [Code samples for the Model Context Protocol tool](./model-context-protocol-samples.md)

0 commit comments

Comments
 (0)