# Microsoft Learn MCP

> Microsoft Learn MCP is an MCP server. Official Microsoft Learn MCP Server – real-time, trusted docs & code samples for AI and LLMs. It runs as a hosted remote server, so there is nothing to install locally.

- **Kind:** MCP server
- **Repository:** https://github.com/microsoftdocs/mcp
- **MCP Registry name:** com.microsoft/microsoft-learn-mcp
- **Listing updated:** 2026-11-13

## About

Official Microsoft Learn MCP Server – real-time, trusted docs & code samples for AI and LLMs.

## Install

### Claude Code (Terminal)

```sh
claude mcp add --transport http microsoft-learn-mcp https://learn.microsoft.com/api/mcp
```

### Claude Desktop (Settings → Connectors → Add custom connector)

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

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "microsoft-learn-mcp": {
      "url": "https://learn.microsoft.com/api/mcp"
    }
  }
}
```

### VS Code (.vscode/mcp.json)

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

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "microsoft-learn-mcp": {
      "serverUrl": "https://learn.microsoft.com/api/mcp"
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

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

## FAQ

### How do I add Microsoft Learn MCP to Claude Code?

Run this command in your terminal: claude mcp add --transport http microsoft-learn-mcp https://learn.microsoft.com/api/mcp

---
Source: https://ai-powered.com/mcp/microsoft-learn-mcp
