# Microsoft Learn MCP

Microsoft Learn MCP — an MCP server that brings official Microsoft and Azure documentation directly into your IDE. Your agent can search docs, find code samples, and fetch full pages without leaving the editor.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · 1272 installs
- Author: microsoft
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://smithery.ai/server/microsoft/learn_mcp
- Updated: 2025-09-24
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/mcp/microsoft-microsoft-learn-mcp

## What it does

Acts as a bridge between your IDE (Claude Code, Cursor, GitHub Copilot, and others) and Microsoft Learn. Three tools run on the server: search across Microsoft and Azure documentation, retrieve code samples from official sources, and fetch a full documentation page as Markdown. Search results return up to 10 snippets, 500 tokens each, with titles and links.

HTTP transport keeps it lightweight. Ask your agent how to set up Azure Cosmos DB or write a .NET function, and it retrieves working examples straight from official docs. If a search result feels incomplete, the `microsoft_docs_fetch` tool pulls the entire page.

Remote endpoint at `https://learn_mcp--microsoft.run.tools`. Supports Claude Code, Cursor, GitHub Copilot, Codex, Gemini CLI, Cline, Zed, and Windsurf.

## Requirements
- Remote server: `https://learn_mcp--microsoft.run.tools`

## Install

### Claude Code (native platform)

**Platform CLI: remote server**
```bash
claude mcp add --transport http learn-mcp https://learn_mcp--microsoft.run.tools
```

### Codex

**Platform CLI: remote server**
```bash
codex mcp add microsoft-microsoft-learn-mcp --url https://learn_mcp--microsoft.run.tools
```

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "microsoft-microsoft-learn-mcp": {
            "url": "https://learn_mcp--microsoft.run.tools"
        }
    }
}
```

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "microsoft-microsoft-learn-mcp": {
            "type": "http",
            "url": "https://learn_mcp--microsoft.run.tools"
        }
    }
}
```

### Gemini CLI

**Platform CLI: remote server**
```bash
gemini mcp add -t http microsoft-microsoft-learn-mcp https://learn_mcp--microsoft.run.tools
```

## When to use it
- find a current code example for Azure or .NET
- fetch the full text of a Microsoft documentation page
- search official docs instead of the general web
- add Microsoft Learn to your IDE

## Example prompts
- Show me how to set up role-based access control in Azure
- Find a C# example for handling files
- What's the right way to deploy a container to Azure Container Instances?

## Similar
- [microsoft-docs](https://affpapa.org/en/nevibecode/plugins/microsoft-docs.md) — plugin · ★ 2002 repo stars
- [Microsoft Study and Learn](https://affpapa.org/en/nevibecode/agents/microsoft-study-and-learn.md) — subagent · ★ 41430 repo stars
- [Microsoft Learn](https://affpapa.org/en/nevibecode/mcp/microsoft-learn.md) — MCP server
- [microsoft-code-reference](https://affpapa.org/en/nevibecode/skills/microsoft-code-reference.md) — skill · 14251 installs
- [microsoft-azure-webjobs-extensions-authentication-events-dotnet](https://affpapa.org/en/nevibecode/skills/microsoft-azure-webjobs-extensions-authentication-events-dotnet.md) — skill · 1 install
- [microsoft-foundry-tools](https://affpapa.org/en/nevibecode/skills/microsoft-foundry-tools.md) — skill · 200 installs

## Other versions with the same name
- [Microsoft Learn MCP · microsoftdocs](https://affpapa.org/en/nevibecode/mcp/microsoft-learn-mcp.md) — ★ 2002 repo stars

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
