Microsoft Learn MCP — Claude Code MCP server: what it does, install
Search Microsoft’s official technical docs and code samples, or fetch a documentation page as Markdown. Useful when an agent needs current guidance for Azure or .NET.
claude mcp add --transport http microsoft-learn-mcp https://learn.microsoft.com/api/mcpWhat Microsoft Learn MCP does
The server offers three tools: semantic search across Microsoft technical documentation, fetching a documentation page as Markdown, and searching official Microsoft and Azure code samples. Code sample searches can include a programming language filter.
Connect over HTTP at https://learn.microsoft.com/api/mcp; no API key is needed. Use an MCP client to connect. Opening the endpoint directly in a browser may return 405 Method Not Allowed.
What it helps with
- find Microsoft documentation for an Azure service or API
- fetch a documentation page as Markdown
- search for an official code sample in a chosen language
Example prompts for the agent
- Find Microsoft documentation on setting up managed identity for Azure Container Apps.
- Search for an official
IHttpClientFactoryexample in a .NET minimal API. - Fetch the Microsoft documentation page for Azure Functions as Markdown.
How to install Microsoft Learn MCP
Platform CLI: remote server
claude mcp add --transport http microsoft-learn-mcp https://learn.microsoft.com/api/mcpPlatform CLI: remote server
codex mcp add microsoft-learn-mcp --url https://learn.microsoft.com/api/mcpConfig file
{
"mcpServers": {
"microsoft-learn-mcp": {
"url": "https://learn.microsoft.com/api/mcp"
}
}
}Config file
{
"servers": {
"microsoft-learn-mcp": {
"type": "http",
"url": "https://learn.microsoft.com/api/mcp"
}
}
}Platform CLI: remote server
gemini mcp add -t http microsoft-learn-mcp https://learn.microsoft.com/api/mcpStep by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about Microsoft Learn MCP
How do I install Microsoft Learn MCP in Claude Code?
Run claude mcp add --transport http microsoft-learn-mcp https://learn.microsoft.com/api/mcp.
What does Microsoft Learn MCP do?
It searches Microsoft’s official technical documentation and code samples, and can fetch documentation pages as Markdown.
Do I need an API key to connect?
No. Connect over HTTP to https://learn.microsoft.com/api/mcp without an API key.