Microsoft Learn MCP Server
Official remote MCP server that searches and fetches Microsoft Learn documentation and code samples.
Sources and review
Checked against public documentation on . Suitability guidance is our editorial judgment; this is not a performance benchmark or an endorsement.
Coding agents working with Azure, .NET and other Microsoft technologies that need current official docs rather than training-data recall.
About Microsoft Learn MCP Server
Microsoft's official Learn MCP Server gives AI assistants search and retrieval over Microsoft Learn documentation and code samples. It is a free remote endpoint that needs no API key or sign-in. The repository also ships the mslearn command-line tool and documents an experimental OpenAI-compatible endpoint.
Microsoft Learn MCP Server is listed in this index written primarily in TypeScript, with 2.0k stars on GitHub. Its latest recorded repository push was in October 2026; that is not an ASE editorial review date.
Before connecting: access and data
This record's specific permissions have not been reviewed by ASE. Read the publisher's documentation before copying setup or connecting.
- List the accounts, files and services the enabled tools can read, change or execute. Check your actual credentials and discovered tools.
- Use narrowly scoped credentials and read-only mode where supported. Review proposed writes before approving them; a generated configuration does not apply these limits for you.
- Local launch is not local-only data processing. External services receive requests, and your client may pass tool results to its model provider. Check both destinations before sharing private data.
- Keep keys and browser session files out of shared config, repositories and screenshots. Know how to disconnect the server and separately revoke its credentials or account sessions.
Add Microsoft Learn MCP Server to your MCP client
A hosted server: point your client at its URL and complete its sign-in there. In Claude Desktop or claude.ai, add it under Settings → Connectors → Add custom connector instead.
Claude Code
claude mcp add --transport http microsoft-learn-mcp https://learn.microsoft.com/api/mcpCursor
{
"mcpServers": {
"microsoft-learn-mcp": {
"url": "https://learn.microsoft.com/api/mcp"
}
}
}VS Code
{
"servers": {
"microsoft-learn-mcp": {
"type": "http",
"url": "https://learn.microsoft.com/api/mcp"
}
}
}Codex
codex mcp add microsoft-learn-mcp --url https://learn.microsoft.com/api/mcp