Microsoft Learn MCP Server
Microsoft's free official MCP server for Microsoft Learn docs: search, page fetch and code samples with no key
Install
{
"servers": {
"microsoft-learn": {
"type": "http",
"url": "https://learn.microsoft.com/api/mcp"
}
}
}Standard config; for Claude Code and Cursor use the mcpServers key.
This is third-party code. Review the repository files before installing.
What it does
The server gives the agent three tools: semantic search over official Microsoft documentation, fetching a docs page as Markdown, and code sample search with a language filter. It draws only on Microsoft's own sources, so the agent invents fewer Azure SDK and .NET methods. It connects to a remote endpoint with no sign-up or keys. The repository also ships the mslearn CLI for the same queries from a terminal and skills that tell the agent when to use these tools.
Who it is for. For developers and DevOps engineers working with Azure, .NET, Microsoft 365 and other Microsoft products.
Good fit when
- The agent mixes up Azure CLI flags or SDK methods
- You need to check Azure service limits or availability in the docs
- You need an official code sample for a Microsoft .NET or Python SDK
Not a fit when
- The project stack is unrelated to Microsoft products
- You need third-party library documentation
Example request
Give me Azure CLI commands to create a Container App with a managed identity, checking Microsoft docsLimitations
Covers only Microsoft documentation. The endpoint works only from an MCP client over Streamable HTTP and errors in a browser. The token budget parameter and the OpenAI-compatible endpoint are experimental. Access to learn.microsoft.com from Russia without a VPN may vary.
How to disable. Remove the microsoft-learn server from the MCP config. CLI skills are removed with mslearn remove --cli.
MCP
- Transport
- http
- Authentication
- not required
Security check
- Only reads public documentation
README in short
The README gives the remote endpoint and a standard config, describes experimental features and the three tools. A separate section covers the mslearn CLI and installing its skill for Copilot, Claude Code and Codex. It also lists agent skills and requirements for custom clients. CC-BY-4.0 licensed.
FAQ
Do I need a Microsoft account?
No, the server is free and works without sign-up or keys.
Can I use it without an MCP client?
Yes, the @microsoft/learn-cli package offers the same search, fetch and code samples in a terminal via mslearn.
Related
A skills library that gives coding agents a development process: brainstorming, planning, TDD, subagents and code review
Skills for real engineers by Matt Pocock
Skills For Real Engineers
Small composable skills for engineering with agents: plan grilling, TDD, bug diagnosis, code review and architecture
GitHub toolkit for spec-driven development: the specify CLI adds agent commands and skills to a project, from principles to implementation
Reference MCP servers
Model Context Protocol servers
Official reference MCP servers: Filesystem, Fetch, Git, Memory, Sequential Thinking, Time and Everything