Skip to main content
MCP server CX Codex

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

Install into Claude Code · Platform CLI: remote server All methods and platforms ↓
claude mcp add --transport http learn-mcp https://learn_mcp--microsoft.run.tools
Open on GitHub

What 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.tools

Step 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.

Microsoft Learn MCP MicrosoftDocs Microsoft Learn MCP is an MCP server for Claude Code and Codex that searches official Microsoft docs and code samples and returns pages as Markdown for Azure and .NET guidance. CX Codex +1 ★ 2,002repo stars microsoft-docs MicrosoftDocs microsoft-docs is a plugin for Claude Code and GitHub Copilot that gives agents direct access to current Microsoft Learn documentation and code samples. ★ 2,002repo stars Microsoft Study and Learn official github Microsoft Study and Learn is a GitHub Copilot subagent that teaches Microsoft and Azure topics through guided questions and practice. It works through problems step by step instead of doing homework or tests for the learner. CX Codex +1 ★ 41,430repo stars Microsoft Learn docker Connects official Microsoft Learn documentation directly to your AI agent. Useful when you need verified reference material during coding sessions. CX Codex +1 microsoft-code-reference official github microsoft-code-reference is a GitHub Copilot skill that checks Microsoft APIs and SDK code against official docs, finds samples, and helps debug Azure and .NET issues. CX Codex +1 14,251installs microsoft-azure-webjobs-extensions-authentication-events-dotnet Microsoft microsoft-azure-webjobs-extensions-authentication-events-dotnet is a Claude Code skill for building .NET Azure Functions that handle Microsoft Entra authentication events. CX Codex +1 1installs microsoft-foundry-tools MicrosoftDocs microsoft-foundry-tools is a Claude Code skill with expert guidance on Azure AI services, covering architecture, security, quotas, and REST/.NET API integration. CX Codex +1 200installs

Project sponsors

Companies that keep this analytics open