Microsoft Learn MCP Server

Give your AI assistant real-time access to official Microsoft docs and code samples — free, no auth, hallucination-free.

Stars
★ 2k
Last updated
1mo ago
FARS reviewed
Nov 08, 2026
License
CC-BY-4.0
Primary language
TypeScript

At a glance

How it runs
MCP serverCLIAgent plugin / skill
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
Node.js (for npm)An MCP-compatible client (VS Code, Copilot, etc.)Shell / CLINetwork access
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.

  1. A developer using Claude Code or Cursor to write Azure code queries the latest API usage via MCP to avoid outdated training data.
  2. An AI coding agent implementing a .NET 8 feature calls microsoft_docs_fetch to confirm the correct method from official docs.
  3. A technical writer crafting Microsoft tutorials uses the CLI to search and embed current code examples.
  4. An ops engineer uses OpenAI Codex with MCP to verify Azure CLI commands for infrastructure setup.
  5. 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-cli
  • npx @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)

Local shell command execution

Can run terminal commands; pair with approval gates or container/OS sandboxing.

Outbound network access

Makes outbound requests; verify telemetry settings and model data routing on private repos.

What are this agent's strengths and limitations?

Pros
  • 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.
Limitations
  • 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?

FollowAgents source review · FARS-2.1
Some gaps
68/ 100 5-point scale 3.4 / 5
Trust 17/29
Reliability 9/14
Adaptability 15/18
Convention 14/18
Effectiveness 9/13
Verifiability 4/8
Why each dimension lost points
Trust17 / 29 · 2.9/5

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).

Reliability9 / 14 · 3.2/5

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).

Adaptability15 / 18 · 4.2/5

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).

Convention14 / 18 · 3.9/5

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).

Effectiveness9 / 13 · 3.5/5

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).

Verifiability4 / 8 · 2.5/5

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).

Risks and how to mitigate them
  • 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.
Evidence confidence: Low Reviewed Nov 08, 2026 Reviewed revision f0a9478a954c
See the full review method →
Maintain this project? Add the FARS badge to your README

The badge shows the current review score and verdict and links back to this page. It refreshes about once an hour after a re-review.

FARS

[![FARS review](https://followagents.com/badge/mcp.svg)](https://followagents.com/en/agents/mcp)
<a href="https://followagents.com/en/agents/mcp"><img src="https://followagents.com/badge/mcp.svg" alt="FARS review"></a>

FAQ

Is there a cost to use this service?
No, it's completely free and requires no API key or subscription.
Can I access the MCP endpoint directly from a browser?
No, it's designed for MCP clients only; browser access returns a 405 error.
Will the tool list change? How do I avoid integration issues?
MCP is dynamic; tools may change. Clients should discover tools at runtime and refresh on errors.
What programming languages does the code sample search support?
A language filter is available, but the specific list is not documented in the README.
Was this page helpful?
View on GitHub ↗ Install ↓

Compare agents like this one

The same FARS review applied across the shortlist this agent qualifies for.

Related concepts