Microsoft Learn Docs
The Microsoft Learn Docs MCP Server is a cloud-hosted service that enables clients like GitHub Copilot and other AI agents to bring trusted and up-to-date information directly from Microsoft's official documentation. It is a remote MCP Server using s
What is Microsoft Learn Docs?
Microsoft Learn Docs is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to microsoft learn docs mcp server is a cloud-hosted service that enables clients like github copilot and other ai agents to bring trusted and up-to-date information directly from microsoft's official do...
The Microsoft Learn Docs MCP Server is a cloud-hosted service that enables clients like GitHub Copilot and other AI agents to bring trusted and up-to-date information directly from Microsoft's official documentation. It is a remote MCP Server using s
This server falls under the Developer Tools category on MCPgee, the world's largest MCP server directory with 33,000+ servers.
Features
- The Microsoft Learn Docs MCP Server is a cloud-hosted servic
Use Cases
Maintainer
Works with
Installation
NPM
npx -y @microsoft/learn-cliManual Installation
npx -y @microsoft/learn-cliConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
How to Set Up and Use Microsoft Learn Docs
Microsoft Learn Docs MCP Server is a cloud-hosted, remote Model Context Protocol service operated by Microsoft that gives AI assistants real-time access to the full corpus of official Microsoft and Azure technical documentation. It requires no API keys, no authentication, and no local installation beyond a one-line config entry pointing to Microsoft's public MCP endpoint. Engineers and developers use it to let AI coding assistants like GitHub Copilot and Claude retrieve authoritative, up-to-date Microsoft docs, Azure CLI examples, and official SDK code samples directly within their workflow without manually searching learn.microsoft.com.
Prerequisites
- An MCP-compatible AI client: Claude Desktop, Cursor, GitHub Copilot, VS Code with the Microsoft Learn extension, or Windsurf
- Internet access to reach https://learn.microsoft.com/api/mcp
- No API keys or accounts required — the service is publicly accessible
- Node.js (optional) if using the @microsoft/learn-cli npm package for CLI access
Add the remote MCP server to your client configuration
For clients that support remote (HTTP) MCP servers, add the Microsoft Learn endpoint directly to your config. No local binary or installation is needed.
{
"servers": {
"microsoft-learn": {
"type": "http",
"url": "https://learn.microsoft.com/api/mcp"
}
}
}For Claude Desktop: use the npx-based transport
Claude Desktop uses stdio-based MCP servers. Use the @microsoft/learn-cli npm package as the transport layer to connect to the remote Microsoft Learn endpoint.
{
"mcpServers": {
"microsoft-learn": {
"command": "npx",
"args": ["-y", "@microsoft/learn-cli", "mcp"]
}
}
}Restart your MCP client
Restart Claude Desktop or reload the editor extension. The Microsoft Learn MCP server exposes three tools: microsoft_docs_search, microsoft_docs_fetch, and microsoft_code_sample_search.
Verify the connection with a documentation query
Ask your AI assistant a Microsoft or Azure-specific technical question. The assistant will automatically invoke microsoft_docs_search to retrieve current documentation and include it in its response.
Microsoft Learn Docs Examples
Client configuration
Two config options: remote HTTP (for clients that support it) and stdio via npx for Claude Desktop.
// Option 1: Remote HTTP (Cursor, VS Code, GitHub Copilot)
{
"servers": {
"microsoft-learn": {
"type": "http",
"url": "https://learn.microsoft.com/api/mcp"
}
}
}
// Option 2: Stdio via npx (Claude Desktop)
{
"mcpServers": {
"microsoft-learn": {
"command": "npx",
"args": ["-y", "@microsoft/learn-cli", "mcp"]
}
}
}Prompts to try
These prompts show how the Microsoft Learn MCP server provides accurate, real-time documentation for Azure, .NET, and Microsoft services.
- "What Azure CLI commands do I need to create an Azure Container App with a managed identity?"
- "Show me the latest Azure OpenAI Service quotas and limits for GPT-4 in East US 2"
- "Give me a runnable Python example for evaluating AI responses using the Azure AI Foundry SDK"
- "What's the difference between Azure Blob Storage hot, cool, and archive access tiers?"
- "Search for official Microsoft docs on configuring Azure AD B2C custom policies"Troubleshooting Microsoft Learn Docs
Tools are not appearing in Claude Desktop after adding the npx config
Make sure Node.js is installed (node --version). Run 'npx -y @microsoft/learn-cli mcp' manually in your terminal to confirm it installs and starts without errors, then restart Claude Desktop.
Remote HTTP endpoint not supported by my MCP client
Not all MCP clients support remote (HTTP/SSE) servers. For Claude Desktop, use the stdio configuration with npx @microsoft/learn-cli instead. For VS Code, install the 'Microsoft Learn' extension from the marketplace which handles the connection automatically.
Search returns outdated or irrelevant documentation
The microsoft_docs_search tool uses semantic search over the live learn.microsoft.com corpus. Refine your query to include specific product names and version numbers (e.g. 'Azure Functions v4 Node.js cold start' instead of 'functions performance'). Use microsoft_docs_fetch with a specific URL if you know the exact page you need.
Frequently Asked Questions about Microsoft Learn Docs
What is Microsoft Learn Docs?
Microsoft Learn Docs is a Model Context Protocol (MCP) server that microsoft learn docs mcp server is a cloud-hosted service that enables clients like github copilot and other ai agents to bring trusted and up-to-date information directly from microsoft's official documentation. it is a remote mcp server using s It connects AI assistants to external tools and data sources through a standardized interface.
How do I install Microsoft Learn Docs?
Install via npm with the command: npx -y @microsoft/learn-cli. Then add the server configuration to your AI client's JSON config file (e.g., claude_desktop_config.json or .cursor/mcp.json).
Which AI clients work with Microsoft Learn Docs?
Microsoft Learn Docs works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.
Is Microsoft Learn Docs free to use?
Yes, Microsoft Learn Docs is open source and available under the CC BY-4.0 license. You can use it freely in both personal and commercial projects.
Microsoft Learn Docs Alternatives — Similar Developer Tools Servers
Looking for alternatives to Microsoft Learn Docs? Here are other popular developer tools servers you can use with Claude, Cursor, and VS Code.
Ecc
★ 188.2kThe agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.
Javaguide
★ 155.8kJava 面试 & 后端通用面试指南,覆盖计算机基础、数据库、分布式、高并发、系统设计与 AI 应用开发
Gemini CLI
★ 104.5kA secure MCP server that wraps the Google Gemini CLI, allowing clients to query Gemini models using local OAuth sessions without requiring an API key. It provides tools for model interaction and diagnostics with built-in protection against command in
Awesome MCP Servers
★ 87.3k⭐ Curated list of Model Context Protocol (MCP) servers - tools that extend Claude Desktop, Cursor, Windsurf, and other MCP clients with custom capabilities.
MCP Servers
★ 86.0kModel Context Protocol Servers
CC Switch
★ 77.5kA cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Gemini CLI & Hermes Agent. Only official website: ccswitch.io
Browse More Developer Tools MCP Servers
Explore all developer tools servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.
Set Up Microsoft Learn Docs in Your Editor
Choose your AI client for step-by-step setup instructions.
Quick Config Preview
Add this to your claude_desktop_config.json or .cursor/mcp.json
Ready to use Microsoft Learn Docs?
Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.