Microsoft Learn MCP Server
Give your AI assistant real-time access to official Microsoft docs and code samples — free, no auth, hallucination-free.
- Source repo
- MicrosoftDocs/mcp
- Stars
- ★ 2k
- Last updated
- 1mo ago
- FARS reviewed
- Nov 08, 2026
- License
- CC-BY-4.0
- Primary language
- TypeScript
- FA score
- 68/100 · Some gaps
At a glance
- How it runs
- Works with
- Portable with changesChatGPT · Codex · Claude Code · Claude.ai
- Cost
- Free, no paid service needed
- Setup effort
- Low · running in minutes
- You'll need
- Typical use
- A developer using Claude Code or Cursor to write Azure code queries the latest API usage via MCP to avoid outdated training data.
- Not a fit if
- Teams needing fully offline or air-gapped use; it relies on Microsoft's hosted endpoint
- Users who want to open the endpoint in a browser; it returns 405
- Static clients that hard-code tool names; tools and schemas evolve
- Website
- learn.microsoft.com ↗ set on GitHub
- Maintenance
- Commits in the last 6 monthslast commit 2026-10-30+3.4 ★/day over 7 days
- Source review
- 68/100 · Some gaps
What does this agent do, and when should you use it?
The Microsoft Learn MCP Server is an official Microsoft service that provides AI assistants like Claude, Cursor, and Copilot with real-time, trusted Microsoft documentation and code sample retrieval via the Model Context Protocol (MCP). The repository includes a remote MCP endpoint (https://learn.microsoft.com/api/mcp), a CLI tool (@microsoft/learn-cli), and three Agent Skills that guide agents on when and how to use the tools. Designed for dynamic MCP clients, it offers tools for semantic search, page fetching, and code sample search. Completely free and requiring no API keys or authentication.
The service exposes three core tools: microsoft_docs_search performs semantic search against Microsoft official documentation; microsoft_docs_fetch converts a documentation page to Markdown; microsoft_code_sample_search searches official code snippets with optional language filtering. The CLI tool (mslearn) provides identical functionality with --json output for structuring. The MCP endpoint uses Streamable HTTP and supports dynamic tool discovery via tools/list. Agent Skills package instructions to help agents use these tools effectively in coding scenarios.
- A developer using Claude Code or Cursor to write Azure code queries the latest API usage via MCP to avoid outdated training data.
- An AI coding agent implementing a .NET 8 feature calls microsoft_docs_fetch to confirm the correct method from official docs.
- A technical writer crafting Microsoft tutorials uses the CLI to search and embed current code examples.
- An ops engineer uses OpenAI Codex with MCP to verify Azure CLI commands for infrastructure setup.
- An AI prompt engineer validates whether AI-generated code relies on non-existent SDK methods by using the service for fact-checking.
Key setup facts
Pulled from the install and usage notes below. The project README has the current values.
- Install / run
npm install -g @microsoft/learn-clinpx @microsoft/learn-cli search "azure functions timeout"
How do you install or deploy this agent?
In VS Code, click the one-click install badge or search '@mcp learn' in Extensions. For Claude Code, run /plugin install microsoft-docs@claude-plugins-official. For Codex, run codex mcp add "microsoft-learn" --url "https://learn.microsoft.com/api/mcp". Install the CLI globally via npm install -g @microsoft/learn-cli. No API keys or authentication required.
How do you use this agent?
After installation, simply ask questions in your MCP-compatible client. For example, in Claude: "Give me the Azure CLI commands to create an Azure Container App with a managed identity." Or use the CLI: npx @microsoft/learn-cli search "azure functions timeout", adding --json for structured output. You can also add a system prompt to encourage the model to use MCP tools when handling Microsoft tech questions.
Safety boundaries, hardening & integrations
Operational blast radius, source-verified safety controls, and first-run hardening steps before connecting this agent to real workspaces.
Declared capability surface (blast radius)
Can run terminal commands; pair with approval gates or container/OS sandboxing.
Makes outbound requests; verify telemetry settings and model data routing on private repos.
What are this agent's strengths and limitations?
- Completely free, no API keys, one-click install.
- Only accesses official Microsoft docs, avoiding insecure third-party content.
- Remote MCP endpoint supports many clients (VS Code, Cursor, Codex) with no local setup.
- Includes Agent Skills that improve AI tool usage efficiency.
- Endpoint not accessible via browser; requires a compliant MCP client; static clients may break as tools evolve.
- Experimental features (e.g., OpenAI-compatible endpoint, token budget) are subject to change.
- CLI is preview and may be unstable.
- Dependency on Microsoft's hosted service; if discontinued, service ceases.
How does this agent compare with similar options?
The source does not explicitly name competitors, but compared to generic web search, this service indexes only official docs, reducing hallucination risk.
Key facts side by side with the most closely related agents.
| Agent | Source review | Form / cost | Stars | Updated | Language | Full support on |
|---|---|---|---|---|---|---|
| Microsoft Learn MCP Server This agent | 68 · Some gaps | MCP serverFree | ★ 2k | 1mo ago | TypeScript | ChatGPT · Codex · Claude Code · Claude.ai |
| Grounded Docs MCP Server | 78 · Good | CLIFree + model costs | ★ 1.9k | 10d ago | TypeScript | ChatGPT · Claude Code |
| Pachca API Agent Toolkit | 69 · Some gaps | — | ★ 12 | 1d ago | TypeScript | ChatGPT · Codex · Claude Code · Claude.ai |
| GrayMatter | 66 · Some gaps | CLIFree | ★ 490 | 6d ago | Go | Codex · Claude Code · OpenAI API · Claude API |
How does FollowAgents rate this agent?
Why each dimension lost points
Configuration connects to the Learn MCP remote endpoint, and the skills limit CLI use for unrelated topics, providing some scope restriction (least_privilege=2). The README explains connection setup and says no authentication is needed, but does not detail resulting permissions, call confirmation behavior, or when user consent is required (user_confirmation=1). The endpoint and tool purposes are documented, and the CLI skill says not to put credentials, personal information, or proprietary code in queries (data_flow_transparency=2, sensitive_data_handling=2). GitHub Actions dependencies are pinned, but this sample includes neither a dependency inventory nor vulnerability handling evidence, so dependency security is only partly supported (dependency_security=2). Search and fetch send queries or URLs to a remote service, with no explanation of side-effect controls (external_effects=1). The CLI has a remove command limited to managed discovery files, but gives no recovery procedure (rollback=2). Skills require citing retrieved Learn URLs, and the repository identifies CC-BY-4.0 (source_attribution=2).
The README, configuration, and skills mostly agree on the endpoint and three MCP tools; the CLI skill offers a fallback when the server is unavailable (self_consistency=2, dependency_availability=2). CLI code distinguishes known CLI errors from general errors, emits messages, and returns nonzero codes; the test samples cover some output and cache fallback behavior, but no execution result is available for scoring (failure_messages=2).
Documentation covers distinct scenarios including learning concepts, API lookup, code samples, troubleshooting, and skill generation, and differentiates the skills' purposes (audience_and_scenarios=3). Skills describe scope and query workflows, but say little about handling insufficient or conflicting results or their confidence (capability_boundaries=2). Trigger descriptions are broad, especially the repeated “whenever” language, which may over-trigger (trigger_precision=2). Setup covers multiple clients, CLI user/project scopes, multiple agent targets, and Node.js 22+ (environment_fit=3).
The README organizes server, CLI, skills, setup, and troubleshooting, with a separate CLI reference (information_architecture=3). Installation, configuration, prompt examples, common issues, and CLI fallback instructions are concrete (install_notes=3, examples_and_faq=3). Endpoint and tool names are stable across this sample, but plugin version fields do not establish a full release policy (naming_stability=2). The docs flag experimental endpoints and token parameters as changeable and explain that MCP tool schemas evolve; documented service limits and failure boundaries remain sparse (known_limitations=2). LICENSE explicitly identifies CC-BY-4.0 (license=3). The sample contains no changelog or compatibility policy (versioning_changelog=1). Security reporting, repository metadata, and plugin metadata provide some maintenance and feedback paths, but responsibility and update commitments are not specific; publisher identity is treated as unknown per the prompt (maintenance_responsibility=2).
The service offers search, fetch, and code-sample retrieval; the CLI also supports JSON output, section extraction, and truncation, which help downstream use (output_usability=2). Live official documentation retrieval has clear incremental value for Microsoft technology work, but README claims such as “eliminate hallucinations” and “100% trusted” exceed what this static evidence establishes (marginal_value=2). Claims of free use and no key lower the apparent adoption cost, but no availability or measured time/cost evidence is shown, so cost-benefit is only partly established (cost_benefit=2).
Tools, endpoint, configuration, and CLI commands are described concretely, and skills instruct users to cite Learn URLs, supporting traceability (claim_traceability=2). The README is partly corroborated by configuration, skills, and CLI source on core functionality, but the packet is a sample and cannot independently verify remote service behavior (cross_source_corroboration=2). The docs distinguish experimental features and recommendations in places, but promotional guarantees are not bounded by evidence, so fact/inference separation is weak (fact_inference_separation=1).
- Promotional claims such as “eliminate hallucinations” and “100% trusted” are not verifiable from the supplied static files; retrieved results still need source and context checks.
- The remote endpoint receives search queries or fetch URLs; avoid including secrets, personal information, or proprietary code in queries.
FAQ
Is there a cost to use this service?
Can I access the MCP endpoint directly from a browser?
Will the tool list change? How do I avoid integration issues?
What programming languages does the code sample search support?
Thanks — we use this to improve the page.
Subscribe to the FollowAgents RSS feed, or save this agent to your browser shortlist to compare on your next visit.