
The Microsoft Learn MCP Server provides AI assistants with secure, direct access to official Microsoft documentation to prevent hallucinations and ensure accuracy when generating code and technical guidance. It offers a no-authentication, one-click installable interface that connects compatible IDEs and AI tools to Microsoft's official docs via an HTTP endpoint at https://learn.microsoft.com/api/mcp. By eliminating reliance on outdated training data and generic web searches, the server ensures developers receive verified, current information for Azure, .NET, and other Microsoft technologies.
$ npx add-mcp https://learn.microsoft.com/api/mcp --name microsoftdocsRun in your terminal. add-mcp asks which agents to add it to (Claude Code, Codex, Cursor and more). Add -g to install it for every project.
Review the command, arguments and environment values before installing. MCP servers run with your local permissions.
Claude Code
$ claude mcp add --transport http microsoftdocs https://learn.microsoft.com/api/mcpRun in your terminal. Add --scope user to make it available in every project.
Verified live against the running server on Nov 6, 2026.
microsoft_docs_searchSearch official Microsoft/Azure documentation to find the most relevant and trustworthy content for a user's query. This tool returns up to 10 high-quality content chunks (each max 500 tokens), extracted from Microsoft Learn and other official sources. Each result includes the...1 paramsSearch official Microsoft/Azure documentation to find the most relevant and trustworthy content for a user's query. This tool returns up to 10 high-quality content chunks (each max 500 tokens), extracted from Microsoft Learn and other official sources. Each result includes the...
querystringmicrosoft_code_sample_searchSearch for code snippets and examples in official Microsoft Learn documentation. This tool retrieves relevant code samples from Microsoft documentation pages providing developers with practical implementation examples and best practices for Microsoft/Azure products and service...2 paramsSearch for code snippets and examples in official Microsoft Learn documentation. This tool retrieves relevant code samples from Microsoft documentation pages providing developers with practical implementation examples and best practices for Microsoft/Azure products and service...
languagestringquery*stringmicrosoft_docs_fetchFetch and convert a Microsoft Learn documentation webpage to markdown format. This tool retrieves the latest complete content of Microsoft documentation webpages including Azure, .NET, Microsoft 365, and other Microsoft technologies. ## When to Use This Tool - When search resu...1 paramsFetch and convert a Microsoft Learn documentation webpage to markdown format. This tool retrieves the latest complete content of Microsoft documentation webpages including Azure, .NET, Microsoft 365, and other Microsoft technologies. ## When to Use This Tool - When search resu...
url*stringSponsors
Stop AI Hallucinations. Give your AI assistant (Claude, Cursor, Copilot, Codex, ...) direct access to the latest official Microsoft documentation.
✨ Free. One-click install. No key needed.
Stop relying on outdated training data or risky web searches. Learn MCP server provides secure, direct access to Microsoft official docs.