Microsoft Learn MCP · microsoft — MCP server for Claude Code
Microsoft Learn MCP — an MCP server that brings official Microsoft and Azure documentation directly into your IDE. Your agent can search docs, find code samples, and fetch full pages without leaving the editor.
no license 1,272 installs updated 2025-09-24
claude mcp add --transport http learn-mcp https://learn_mcp--microsoft.run.toolsWhat Microsoft Learn MCP does
Acts as a bridge between your IDE (Claude Code, Cursor, GitHub Copilot, and others) and Microsoft Learn. Three tools run on the server: search across Microsoft and Azure documentation, retrieve code samples from official sources, and fetch a full documentation page as Markdown. Search results return up to 10 snippets, 500 tokens each, with titles and links.
HTTP transport keeps it lightweight. Ask your agent how to set up Azure Cosmos DB or write a .NET function, and it retrieves working examples straight from official docs. If a search result feels incomplete, the microsoft_docs_fetch tool pulls the entire page.
Remote endpoint at https://learn_mcp--microsoft.run.tools. Supports Claude Code, Cursor, GitHub Copilot, Codex, Gemini CLI, Cline, Zed, and Windsurf.
What it helps with
- find a current code example for Azure or .NET
- fetch the full text of a Microsoft documentation page
- search official docs instead of the general web
- add Microsoft Learn to your IDE
Example prompts for the agent
- Show me how to set up role-based access control in Azure
- Find a C# example for handling files
- What's the right way to deploy a container to Azure Container Instances?
How to install Microsoft Learn MCP
Platform CLI: remote server
claude mcp add --transport http learn-mcp https://learn_mcp--microsoft.run.toolsPlatform CLI: remote server
codex mcp add microsoft-microsoft-learn-mcp --url https://learn_mcp--microsoft.run.toolsConfig file
{
"mcpServers": {
"microsoft-microsoft-learn-mcp": {
"url": "https://learn_mcp--microsoft.run.tools"
}
}
}Config file
{
"servers": {
"microsoft-microsoft-learn-mcp": {
"type": "http",
"url": "https://learn_mcp--microsoft.run.tools"
}
}
}Platform CLI: remote server
gemini mcp add -t http microsoft-microsoft-learn-mcp https://learn_mcp--microsoft.run.toolsStep 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 learn-mcp https://learn_mcp--microsoft.run.tools or claude mcp add --transport http microsoft-microsoft-learn-mcp https://learn_mcp--microsoft.run.tools.
What does Microsoft Learn MCP do?
It connects your IDE to official Microsoft documentation, code samples, and full documentation pages. Your agent can search official sources directly instead of relying on general web search.
Which platforms does this server support?
Claude Code, Cursor, GitHub Copilot, Codex, Gemini CLI, Cline, Zed, and Windsurf (Devin Desktop).
Similar MCP servers
All MCP servers for Agent setup: memory, context, orchestration →Microsoft Learn MCP by other authors comes first.