# Microsoft Learn MCP

Search Microsoft’s official technical docs and code samples, or fetch a documentation page as Markdown. Useful when an agent needs current guidance for Azure or .NET.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed · ★ 1953
- Author: MicrosoftDocs
- License: CC-BY-4.0 · policy=link-only · description only; the file stays with the author
- Source: https://github.com/MicrosoftDocs/mcp
- Updated: 2026-10-21
- HTML: https://affpapa.org/en/nevibecode/mcp/microsoft-learn-mcp

## What it does

The server offers three tools: semantic search across Microsoft technical documentation, fetching a documentation page as Markdown, and searching official Microsoft and Azure code samples. Code sample searches can include a programming language filter.

Connect over HTTP at `https://learn.microsoft.com/api/mcp`; no API key is needed. Use an MCP client to connect. Opening the endpoint directly in a browser may return `405 Method Not Allowed`.

## Requirements
- Remote server: `https://learn.microsoft.com/api/mcp`

## Install

### Claude Code (native platform)

**Platform CLI: remote server**
```bash
claude mcp add --transport http microsoft-learn-mcp https://learn.microsoft.com/api/mcp
```

### Codex

**Platform CLI: remote server**
```bash
codex mcp add microsoft-learn-mcp --url https://learn.microsoft.com/api/mcp
```

### Cursor

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

### GitHub Copilot

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

### Gemini CLI

**Platform CLI: remote server**
```bash
gemini mcp add -t http microsoft-learn-mcp https://learn.microsoft.com/api/mcp
```

## When to use it
- find Microsoft documentation for an Azure service or API
- fetch a documentation page as Markdown
- search for an official code sample in a chosen language

## Example prompts
- Find Microsoft documentation on setting up managed identity for Azure Container Apps.
- Search for an official `IHttpClientFactory` example in a .NET minimal API.
- Fetch the Microsoft documentation page for Azure Functions as Markdown.

## Similar
- [Microsoft Study and Learn](https://affpapa.org/en/nevibecode/agents/microsoft-study-and-learn.md) — subagent · ★ 40418
- [microsoft-docs](https://affpapa.org/en/nevibecode/skills/github-microsoft-docs.md) — skill · 14881 installs
- [microsoft-foundry](https://affpapa.org/en/nevibecode/plugins/microsoft-foundry.md) — plugin · ★ 2056
- [caveman-learn](https://affpapa.org/en/nevibecode/skills/caveman-learn.md) — skill · 106700 installs
- [learn](https://affpapa.org/en/nevibecode/skills/learn.md) — skill · 13200 installs
- [learn-mcp](https://affpapa.org/en/nevibecode/skills/learn-mcp.md) — skill · 2800 installs

From the same set: [microsoftdocs/mcp](https://affpapa.org/en/nevibecode/by/microsoftdocs/mcp.md) — 2 cards

---
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
