Back to Plugins

Microsoft Docs

Access official Microsoft documentation, API references, and code samples for Azure, .NET, Windows, and more.

developmentazureapi
By anthropics
1.8k210Updated 2 weeks agoTypeScriptCC-BY-4.0

Installation

/plugin install microsoft-docs@claude-plugins-official

How to install

  1. Open Claude Code in your terminal
  2. Run the installation command above
  3. The plugin will be enabled automatically
  4. Use the plugin's features in your Claude Code sessions

๐ŸŒŸ Microsoft Learn MCP Server

Install in VS Code Install in VS Code Insiders

Stop AI Hallucinations. Give your AI assistant (Claude, Cursor, Copilot, Codex, ...) direct access to the latest official Microsoft documentation.

โœจ Free. One-click install. No key needed.

๐ŸŽฏ Why install this?

Stop relying on outdated training data or risky web searches. Learn MCP server provides secure, direct access to Microsoft official docs.

  • ๐Ÿง  Eliminate Hallucinations. Stop your AI from inventing non-existent Azure SDK methods or hallucinating library packages. Get code that actually compiles.

  • ๐Ÿ”Œ Plug & Play (No Auth). No API keys, no logins, no sign-ups required. Just one-click install and start coding immediately.

  • ๐Ÿ›ก๏ธ 100% Trusted & Safe. Protect your supply chain. Unlike generic web searches that may scrape insecure blogs or malicious sites, this tool only accesses official 1st-party Microsoft documentation.

  • ๐Ÿ’ธ Completely Free. High search capacity tailored for seamless, heavy coding sessions.

โœจ Example Prompts

"Give me the Azure CLI commands to create an Azure Container App with a managed identity."

"Is gpt-5.4 available in Azure EU regions?"

"Are you sure this is the right way to implement IHttpClientFactory in a .NET 8 minimal API?"

"Show me runnable Python code to do harms eval using the Azure AI Foundry evaluation SDK."

๐ŸŒ The Microsoft Learn MCP Server Endpoint

The Microsoft Learn MCP Server is accessible to any IDE, agent, or tool that supports the Model Context Protocol (MCP). Any compatible client can connect to the following remote MCP endpoint:

https://learn.microsoft.com/api/mcp

Note: This URL is intended for use within a compliant MCP client via Streamable HTTP, such as the recommended clients listed in our Getting Started section. It does not support direct access from a web browser and may return a 405 Method Not Allowed error if accessed manually. For developers who need to build their own solution, please follow the mandatory guidelines in the Building a Custom Client section to ensure your implementation is resilient and supported.

Standard config works in most clients:

{
  "servers": {
    "microsoft-learn": {
      "type": "http",
      "url": "https://learn.microsoft.com/api/mcp"
    }
  }
}

For experimental features, see the Experimental Features section below.

๐Ÿงช Experimental Features

The Microsoft Learn MCP Server offers experimental features that are under active development. These features may change or be refined based on user feedback and usage patterns.

OpenAI-Compatible Endpoint

For applications that require OpenAI Deep Research model compatibility, you can use the OpenAI-compatible endpoint:

https://learn.microsoft.com/api/mcp/openai-compatible

This endpoint supports OpenAI Deep Research models and follows the OpenAI MCP specification.

Token Budget Control

To manage token usage and control costs, you can append the maxTokenBudget query parameter to the MCP endpoint URL. This parameter limits the token count in search tool responses by truncating the content to meet your specified budget.

https://learn.microsoft.com/api/mcp?maxTokenBudget=2000

Note: These experimental features are subject to change. We welcome feedback through our GitHub Discussions.

๐Ÿ› ๏ธ Currently Supported Tools

Tool NameDescriptionInput Parameters
microsoft_docs_searchPerforms semantic search against Microsoft official technical documentationquery (string): The search query for retrieval
microsoft_docs_fetchFetch and convert a Microsoft documentation page into markdown formaturl (string): URL of the documentation page to read
microsoft_code_sample_searchSearch for official Microsoft/Azure code snippets and examplesquery (string): Search query for Microsoft/Azure code snippets<br/>language (string, optional): Programming language filter.

๐Ÿ’ป Microsoft Learn CLI preview

npm version

The @microsoft/learn-cli package gives you terminal access to the same tools โ€” search docs, fetch pages, and find code samples โ€” without an MCP client.

# Run instantly (no install)
npx @microsoft/learn-cli search "azure functions timeout"

# Or install globally
npm install -g @microsoft/learn-cli
# then use `mslearn`
mslearn search "azure functions timeout"

Pass --json to get structured JSON output, useful for programmatic processing:

mslearn search "azure openai" --json | jq '.results[].title'

See cli/README.md for the full command reference.

๐Ÿค– Agent Skills

Agent Skills are portable instruction packages that help AI agents use tools more effectively. We provide three skills that guide agents on when and how to use the Microsoft Learn MCP tools:

SkillPurposeBest For
microsoft-docsUnderstanding concepts, tutorials, architecture, limits"How does X work?", learning, configuration guides
microsoft-code-referenceAPI lookups, code samples, verification, error fixingImplementing code, finding correct methods, troubleshooting
microsoft-skill-creatorMeta-skill that generates custom agent skills for any Microsoft technologyCreating a skill to teach agents about a new Azure library, .NET feature, or other Microsoft tech

Quick Setup

These agent skills are packed in a microsoft-docs plugin together with the Learn MCP server itself. If you use Claude Code, run the following command and restart Claude Code:

/plugin install microsoft-docs@claude-plugins-official

Or if you use GitHub Copilot CLI, run this command:

/plugin install microsoftdocs/mcp

Otherwise:

  1. Install the MCP Server first โ€” See Installation below
  2. Copy the skill folders to your project's .github/skills/ or .claude/skills/ directory:

Supported Agents

Agent Skills work across multiple AI agents:

  • VS Code (Insiders) โ€” enable chat.useAgentSkills setting
  • GitHub Copilot CLI & Copilot coding agent
  • Claude Code, Cursor, OpenAI Codex, and more

Which Skill Do I Need?

If you want to...Install
Cover all Microsoft docs scenariosAll three skills
Focus on coding (APIs, samples, errors)microsoft-code-reference only
Focus on facts & concepts (limits, config, tutorials)microsoft-docs only
Generate a custom skill for a specific Microsoft technologymicrosoft-skill-creator only

๐Ÿ”Œ Installation & Getting Started

The Microsoft Learn MCP Server supports quick installation across multiple development environments. Choose your preferred client below for streamlined setup:

ClientOne-click InstallationMCP Guide
VS CodeInstall in VS Code <br/> or search "@mcp learn" in Extensions to show "Microsoft Learn" MCPVS Code MCP Official Guide
GitHub Copilot CLI/plugin install microsoftdocs/mcp
Claude DesktopFollow "Add custom connector" instructions in official guide.Claude Desktop Remote MCP Guide
Claude Code/plugin install microsoft-docs@claude-plugins-official (includes MCP server + skills)Claude Code Remote MCP Guide
Visual StudioUpgrade to latest VS 2022 or 2026, "Microsoft Learn" MCP is already built-inVisual Studio MCP Official Guide
Cursor IDEInstall in CursorCursor MCP Official Guide
Codexcodex mcp add "microsoft-learn" --url "https://learn.microsoft.com/api/mcp"Codex MCP documentation
Roo CodeOpen Roo Code Marketplace, search for Microsoft Learn, and click InstallRoo Code MCP Official Guide
ClineManual configuration required<br/>Use "type": "streamableHttp"Cline MCP Official Guide
Gemini CLIManual configuration required<br/> <details><summary>View Config</summary>Note: Add an mcpServer object to .gemini/settings.json file<br/><pre>{<br/> "Microsoft Learn MCP Server": {<br/> "httpUrl": "https://learn.microsoft.com/api/mcp" <br/> }<br/>}</pre></details>How to set up your MCP server
Qwen CodeManual configuration required<br/> <details><summary>View Config</summary>Note: Add an mcpServer object to .qwen/settings.json file<br/><pre>{<br/> "Microsoft Learn MCP Server": {<br/> "httpUrl": "https://learn.microsoft.com/api/mcp" <br/> }<br/>}</pre></details>Configure the MCP server in settings.json
GitHubManual configuration required<br/> <details><summary>View Config</summary>Note: Navigate to Settings โ†’ Coding agent<br/><pre>{<br/> "mslearn": {<br/> "type": "http",<br/> "url": "https://learn.microsoft.com/api/mcp",<br/> "tools": [<br/> "*"<br/> ]<br/> }<br/>}</pre></details>
ChatGPTManual configuration required<br/> <details><summary>View Instructions</summary>1. Open ChatGPT in the brow

โ€ฆ

View source on GitHub