OfficialDocs & searchremote HTTP

Microsoft Learn MCP Server

Searches and fetches official Microsoft and Azure documentation and code samples.

Install

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?
Yes. The endpoint is free and needs no key or sign-in.
What tools does the Microsoft Learn MCP server have?
Tools search docs, fetch full pages and search code samples.
How do I add the Microsoft Learn MCP server to Codex?
Run codex mcp add "microsoft-learn" --url "https://learn.microsoft.com/api/mcp".
Is the Microsoft Learn MCP server built into Visual Studio?
Yes, it is also built into Visual Studio.

Sources

Checked October 2, 2026.

Docs & search

View all
Aftergradient

What are you looking for?

Search commands, errors, tools