Microsoft Learn MCP
Lets your AI agent search and read official Microsoft docs and code samples so it stops guessing at Azure and .NET APIs.
2.0k stars on GitHubby MicrosoftLicense CC-BY-4.0Updated 24 days ago
How to install
This MCP is remote: it runs in the cloud.
Nothing to install. Copy the address and paste it into your AI app:
Server address
https://learn.microsoft.com/api/mcp
- βΊClaude (site or app): Settings β Connectors β Add custom connector.
- βΊChatGPT: Settings β Apps β Create app (developer mode), and paste the address.
- βΊClaude Code, Cursor, VS Code and Windsurf: pick your app below.
Paste in the terminal:
claude mcp add --transport http microsoft-learn https://learn.microsoft.com/api/mcp
Ready! Now test it
Restart the app and paste one of these requests in the chat:
Give me the Azure CLI commands to create a Container App with a managed identity.
Is this model available in Azure EU regions?
What it is
This server gives your agent direct access to Microsoft Learn, the official Microsoft documentation. It can search docs, fetch a page as markdown and find code samples. It needs no key and no sign-in.
What it can do
microsoft_docs_search: semantic search of Microsoft documentationmicrosoft_docs_fetch: read a documentation page as markdownmicrosoft_code_sample_search: find official code samples, with an optional language filtermslearncommand line tool with the same features
When to use
- βΊWhen you want correct Azure CLI commands or SDK methods rather than guesses.
- βΊWhen you need to check if a service or model is available in a region.
- βΊWhen you want runnable sample code from official Microsoft sources.
What you need
Skills that pair well
MCP or skill?
The MCP gives the agent the hands. The skill teaches the right way to use them. Together, the result is better and uses fewer tokens.
microsoft-docsLets your agent query official Microsoft documentation. It can find concepts, tutorials, and code examples for various Microsoft technologies.openai-docsHelps your agent look up current official OpenAI documentation, with links, for questions about OpenAI APIs and products.openai-docsHelps your agent look up current, official OpenAI documentation and model guidance, with citations, for building with OpenAI products and APIs.Frequently asked questions
Is it free?
Yes. The readme says it is completely free with no key needed.
Who makes it?
Microsoft. It is the official Microsoft Learn MCP server.
Why can't I open the URL in a browser?
It is meant for MCP clients using Streamable HTTP, and a browser may get a 405 error.
Can I limit the response size?
Yes, with the experimental maxTokenBudget query parameter, for example ?maxTokenBudget=2000.
Which clients are covered?
VS Code, GitHub Copilot CLI, Claude Desktop, Claude Code, Visual Studio, Cursor, Codex, Roo Code and Cline.
Is there a command-line version?
Yes. npx @microsoft/learn-cli search "azure functions timeout", or install it and use mslearn.
If it does not work
- βΊUse the full URL https://learn.microsoft.com/api/mcp inside an MCP client, not a browser.
- βΊFor Cline, use the type streamableHttp in the configuration.
- βΊRestart your client fully after adding the server.
5 new skills a week. 1 minute to read.