Microsoft Learn MCP Server
Searches and fetches official Microsoft and Azure documentation and code samples.
Claude Code
/plugin install microsoft-docs@claude-plugins-official
Codex
codex mcp add "microsoft-learn" --url "https://learn.microsoft.com/api/mcp"
Gemini CLI
{"Microsoft Learn MCP Server":{"httpUrl":"https://learn.microsoft.com/api/mcp"}}
Copilot (VS Code)
{"servers":{"microsoft-learn":{"type":"http","url":"https://learn.microsoft.com/api/mcp"}}}
Commands and configuration as given in the server’s documentation (Documentation). Replace placeholders such as API keys with your own values.
Microsoft Learn MCP Server is a free remote endpoint at learn.microsoft.com/api/mcp for Microsoft docs.
The Microsoft Learn MCP server searches and fetches official Microsoft and Azure documentation and code samples, so answers about Azure, .NET and other Microsoft products rest on current official content. Microsoft serves it free over remote HTTP at learn.microsoft.com/api/mcp with no key or sign-in, and it is also built into Visual Studio. The steps below cover Claude Code, Codex, Gemini CLI and Copilot in VS Code.
It gives agents direct access to first-party Microsoft documentation, with tools to search docs, fetch full pages, and search code samples. Its license is listed as CC-BY-4.0.
Questions
Is the Microsoft Learn MCP server free?
What tools does the Microsoft Learn MCP server have?
How do I add the Microsoft Learn MCP server to Codex?
codex mcp add "microsoft-learn" --url "https://learn.microsoft.com/api/mcp".Is the Microsoft Learn MCP server built into Visual Studio?
Sources
Checked October 2, 2026.
Docs & search
View all- Brave Search MCP ServerGives agents Brave Search results for web, local, image, video and news queries, plus AI summaries.Official
- Context7Pulls current, version-specific library documentation and code examples into the agent's context.Official
- Exa MCP ServerGives agents Exa web search and clean page fetching, plus optional Exa Agent research runs.Official
- Firecrawl MCP ServerSearches, scrapes, crawls and maps the web into clean markdown or structured data for agents.Official
