
This profile is part of our MCP server directory, within The MCP Guide. Profiles are checked against each vendor's own documentation. Need a server built? See MCP development.

The Microsoft Learn MCP server gives AI tools direct access to Microsoft's official documentation and code samples. It has three read-only tools for searching docs, fetching a full page and finding code samples. It is free, needs no sign-in and runs at https://learn.microsoft.com/api/mcp.
Checked against: Microsoft Learn's MCP overview, the MicrosoftDocs/mcp README and Claude's Microsoft Learn listing on 2 November 2026. eSEOspace did not install or test this server.
Key Takeaways
- Microsoft says "There's no charge to use the MCP server" and no authentication is required.
- Its three tools are
microsoft_docs_search,microsoft_docs_fetchandmicrosoft_code_sample_search. - It covers publicly available documentation only, not training or user profile data.
- The knowledge service refreshes after content updates and fully once a day.
- Microsoft tells custom client builders not to hard-code tool names, because the tools will change.
At a glance
| Item | Detail |
|---|---|
| Publisher | Microsoft |
| Official? | Yes |
| Hosting | Remote URL (hosted by Microsoft) |
| Transport | Streamable HTTP |
| Sign-in | None |
| Read or write | Read only |
| Price | Free |
| Source code | Server not published; MicrosoftDocs/mcp holds docs, skills and the CLI |
| Status | Publicly available |
What it can do
The README lists three tools:
microsoft_docs_searchruns a semantic search over Microsoft's official technical documentation. It takes aquery.microsoft_docs_fetchfetches a Microsoft docs page and converts it to markdown. It takes aurl.microsoft_code_sample_searchsearches official Microsoft and Azure code samples. It takes aqueryand an optionallanguage.
The overview page says the server is an interface to the Learn knowledge service "that powers Ask Learn and Copilot for Azure." Microsoft suggests it for coding environments, Copilot Studio and Foundry agents, and support teams.
Two experimental options exist. An OpenAI-compatible endpoint at /api/mcp/openai-compatible supports OpenAI Deep Research models. A maxTokenBudget query parameter trims search results, for example https://learn.microsoft.com/api/mcp?maxTokenBudget=2000.
Microsoft also publishes @microsoft/learn-cli, which runs the same searches from a terminal without MCP, and three agent skills.
How to connect it
Most clients accept this standard config:
{
"servers": {
"microsoft-learn": {
"type": "http",
"url": "https://learn.microsoft.com/api/mcp"
}
}
}
For Codex:
codex mcp add "microsoft-learn" --url "https://learn.microsoft.com/api/mcp"
For Claude Code, the README recommends the plugin, which adds the server and skills:
/plugin install microsoft-docs@claude-plugins-official
In Claude Desktop, add a custom connector with the URL, or use the listing in Claude's directory. Visual Studio 2022 and 2026 include the server already. The README also gives configs for VS Code, Cursor, Gemini CLI, Windsurf, Cline, Kiro, GitHub's coding agent and ChatGPT.
The endpoint is for MCP clients only. Opening it in a browser may return 405 Method Not Allowed. Our MCP config generator can format the JSON for other clients.
Security notes
This is one of the lower-risk servers you can add. It is read-only, needs no credentials, and Microsoft says it only reaches "official 1st-party Microsoft documentation."
A few points still apply:
- Terms. Using the server means agreeing to the Microsoft Learn Terms of Use.
- Freshness. Results follow the daily refresh, so very new changes may lag.
- Your queries. Search queries go to Microsoft. Avoid pasting customer data or secrets into prompts that trigger a search.
- Tool changes. For custom clients, Microsoft says to discover tools at runtime with
tools/listand refresh on errors.
Docs content is still text your agent reads. See tool poisoning for the general risk. The MCP project's security best practices and our MCP Security Center cover the rest.
Alternatives
- Azure MCP server to manage Azure resources, not just read docs.
- Context7 MCP server for docs across many open-source libraries.
- Microsoft MCP Server for Enterprise for Microsoft 365 tenant data.
Next step
Add the server and ask a question you already know the answer to, such as an Azure CLI command, to see how your client uses it. Our docs lookup playbook shows a full workflow, and the MCP server directory has more.
More in the MCP Guide
Free tools: MCP Server Risk Checklist · Tool Permission Planner
Latest research: State of MCP: October 2026
Frequently asked questions
Is the Microsoft Learn MCP server free?
Yes. Microsoft's overview says there is no charge, and the README calls it "Free. One-click install. No key needed."
Do I need a Microsoft account?
No. Microsoft says no authentication is required to access the server.
Can it see my Azure resources?
No. It only covers public Microsoft documentation and code samples. For resources, use the Azure MCP server.
Why does the URL show an error in my browser?
The endpoint is built for MCP clients over Streamable HTTP. Microsoft says direct browser access may return a 405 error.











