Official Microsoft Learn MCP Server β real-time, trusted docs & code samples for AI and LLMs.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag β we're steadily working through the catalog.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Stop AI Hallucinations. Give your AI assistant (Claude, Cursor, Copilot, Codex, ...) direct access to the latest official Microsoft documentation.
β¨ Free. One-click install. No key needed.
Stop relying on outdated training data or risky web searches. Learn MCP server provides secure, direct access to Microsoft official docs.
π§ Eliminate Hallucinations. Stop your AI from inventing non-existent Azure SDK methods or hallucinating library packages. Get code that actually compiles.
π Plug & Play (No Auth). No API keys, no logins, no sign-ups required. Just one-click install and start coding immediately.
π‘οΈ 100% Trusted & Safe. Protect your supply chain. Unlike generic web searches that may scrape insecure blogs or malicious sites, this tool only accesses official 1st-party Microsoft documentation.
πΈ Completely Free. High search capacity tailored for seamless, heavy coding sessions.
"Give me the Azure CLI commands to create an Azure Container App with a managed identity."
"Is gpt-5.4 available in Azure EU regions?"
"Are you sure this is the right way to implement
IHttpClientFactoryin a .NET 8 minimal API?"
"Show me runnable Python code to do harms eval using the Azure AI Foundry evaluation SDK."
The Microsoft Learn MCP Server is accessible to any IDE, agent, or tool that supports the Model Context Protocol (MCP). Any compatible client can connect to the following remote MCP endpoint:
Note: This URL is intended for use within a compliant MCP client via Streamable HTTP, such as the recommended clients listed in our Getting Started section. It does not support direct access from a web browser and may return a
405 Method Not Allowederror if accessed manually. For developers who need to build their own solution, please follow the mandatory guidelines in the Building a Custom Client section to ensure your implementation is resilient and supported.
Standard config works in most clients:
For experimental features, see the Experimental Features section below.
The Microsoft Learn MCP Server offers experimental features that are under active development. These features may change or be refined based on user feedback and usage patterns.
For applications that require OpenAI Deep Research model compatibility, you can use the OpenAI-compatible endpoint:
This endpoint supports OpenAI Deep Research models and follows the OpenAI MCP specification.
To manage token usage and control costs, you can append the maxTokenBudget query parameter to the MCP endpoint URL. This parameter limits the token count in search tool responses by truncating the content to meet your specified budget.
Note: These experimental features are subject to change. We welcome feedback through our GitHub Discussions.
| Tool Name | Description | Input Parameters |
|---|---|---|
microsoft_docs_search | Performs semantic search against Microsoft official technical documentation | query (string): The search query for retrieval |
microsoft_docs_fetch | Fetch and convert a Microsoft documentation page into markdown format | url (string): URL of the documentation page to read |
microsoft_code_sample_search | Search for official Microsoft/Azure code snippets and examples | query (string): Search query for Microsoft/Azure code snippetslanguage (string, optional): Programming language filter. |
The @microsoft/learn-cli package gives you terminal access to the same tools β search docs, fetch pages, and find code samples β without an MCP client.
Installing the npm package alone does not install agent discovery. The CLI can install a CLI-first skill for the same ecosystems supported by this repository's plugins: GitHub Copilot, Claude Code, and Codex.
Remove only managed discovery content with:
| Agent | User scope | Project scope |
|---|---|---|
| GitHub Copilot | ~/.copilot/skills/ | .github/skills/ |
| Claude Code | ~/.claude/skills/ | .claude/skills/ |
| Codex | ~/.agents/skills/ | .agents/skills/ |
When no target is specified, setup detects installed agents from their well-known user or project
directories. Removal detects only agents with Microsoft Learn CLI-managed discovery artifacts.
Explicit targets (--copilot, --claude, or --codex) override detection and can be combined. This
workflow does not configure MCP or install agents outside the plugin ecosystems such as Cursor.
When both integrations are installed, agents should prefer the Microsoft Learn MCP tools and use
the standalone CLI skill only as a fallback.
Pass --json to get structured JSON output, useful for programmatic processing:
See cli/README.md for the full command reference.
Agent Skills are portable instruction packages that help AI agents use tools more effectively. We provide three skills that guide agents on when and how to use the Microsoft Learn MCP tools:
| Skill | Purpose | Best For |
|---|---|---|
microsoft-docs | Understanding concepts, tutorials, architecture, limits | "How does X work?", learning, configuration guides |
microsoft-code-reference | API lookups, code samples, verification, error fixing | Implementing code, finding correct methods, troubleshooting |
microsoft-skill-creator | Meta-skill that generates custom agent skills for any Microsoft technology | Creating a skill to teach agents about a new Azure library, .NET feature, or other Microsoft tech |
Choose the integration that matches how you want the agent to retrieve Microsoft Learn content:
| Mode | Installation | Agent behavior |
|---|---|---|
| Standalone CLI-first | Install/run @microsoft/learn-cli, then run mslearn setup --cli [agent-target] | Detected or selected agents invoke npx @microsoft/learn-cli@latest; MCP is not configured |
| Repository plugin, MCP-first | Install the repository plugin for GitHub Copilot, Claude Code, or Codex | The plugin supplies the Learn MCP endpoint and MCP-oriented skills |
The repository plugin also supports Claude Code. Run the following command and restart Claude Code:
For the MCP-first GitHub Copilot CLI plugin, run:
Otherwise:
.github/skills/ or .claude/skills/ directory:
microsoft-docs β for concepts, tutorials, and factual lookupsmicrosoft-code-reference β for API lookups, code samples, and troubleshootingmicrosoft-skill-creator β meta-skill for generating custom skills about Microsoft technologiesAgent Skills work across multiple AI agents:
chat.useAgentSkills settingFactual signals from GitHub, npm, and our automated checks β not a rating.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/microsoft-learn-mcp)<a href="https://allmcps.com/mcp/microsoft-learn-mcp"><img src="https://allmcps.com/api/badge/microsoft-learn-mcp?style=directory" alt="Microsoft Learn MCP on AllMCPs" /></a>