Skip to content
mcp/skillhub

Microsoft Learn MCP Server

by microsoftdocscom.microsoft/microsoft-learn-mcpv1.0.0

Official Microsoft Learn MCP Server – real-time, trusted docs & code samples for AI and LLMs.

2.0kNode.jsstdioremoteofficial registry

context tax

~1,016 tok/turn3 tools

security

100/100

cold start

pending

freshness

Maintained2mo ago

Our reading of Microsoft Learn, from the data

Microsoft Learn is a documentation MCP server from microsoftdocs, listed in the official MCP Registry.

Its 3 tools add about 1,016 tokens to every model turn, in line with the documentation median of 820 tokens across 191 measured servers (measured 2026-10-19).

Maintenance is maintained: the last public signal was 2 months ago (2026-09-10). For comparison, 69% of documentation servers are active or maintained.

With 1,951 GitHub stars it ranks #14 of 829 documentation servers we index.

It runs either locally over stdio or as a hosted endpoint.

Install Microsoft Learn MCP server

Install in Claude Code

claude mcp add microsoftdocs -- npx -y @microsoft/learn-cli

Try it in a sandbox first: this installs it with scripts off and starts it with no network, then lists its tools and token cost. How it works

npx mcpskillhub test @microsoft/learn-cli

Remote endpoints

  • streamable-httphttps://learn.microsoft.com/api/mcp

Context tax

Connecting this server adds ~1,016 tokens of tool definitions to every model turn (moderate, 3 tools). Measured 2026-10-19 via its hosted endpoint; o200k tokenizer, worst case for clients that load all tools up front. How we measure

ModelPer 1,000 turnsWith prompt caching
Claude Opus 5.5$4.06$0.203
Claude Sonnet 5.5$2.03$0.203
Claude Haiku 5.5$0.102—

Input prices as of 2026-10-06. Excludes your own prompt and output.

Tools (3)

  • microsoft_code_sample_search295 tok

    Search for code snippets and examples in official Microsoft Learn documentation. This tool retrieves relevant code samples from Microsoft documentation pages providing developers with practical implementation examples and best practices for Microsoft/Azure products and services related coding tasks. This tool will help you use the **LATEST OFFICIAL** code snippets to empower coding capabilities. ## When to Use This Tool - When you are going to provide sample Microsoft/Azure related code snippets in your answers. - When you are **generating any Microsoft/Azure related code**. ## Usage Pattern

  • microsoft_docs_fetchhttp244 tok

    Fetch and convert a Microsoft Learn documentation webpage to markdown format. This tool retrieves the latest complete content of Microsoft documentation webpages including Azure, .NET, Microsoft 365, and other Microsoft technologies. ## When to Use This Tool - When search results provide incomplete information or truncated content - When you need complete step-by-step procedures or tutorials - When you need troubleshooting sections, prerequisites, or detailed explanations - When search results reference a specific page that seems highly relevant - For comprehensive guides that require full co

  • microsoft_docs_search185 tok

    Search official Microsoft/Azure documentation to find the most relevant and trustworthy content for a user's query. This tool returns up to 10 high-quality content chunks (each max 500 tokens), extracted from Microsoft Learn and other official sources. Each result includes the article title, URL, and a self-contained content excerpt optimized for fast retrieval and reasoning. Always use this tool to quickly ground your answers in accurate, first-party Microsoft/Azure knowledge. ## Follow-up Pattern To ensure completeness, use microsoft_docs_fetch when high-value pages are identified by search

Security signals

100/100 — no known issues found as of 2026-10-23, from the checks below. This is not a guarantee of safety; review what a server can do before connecting it.

Deductions

No findings from the checks that ran.

Checks

  • ✓Repository hygiene (archived, activity, license, security policy)
  • ✓Tool descriptions (prompt-injection and hidden-text heuristics)
  • ○Package metadata (install scripts, provenance) — pending
  • ○Source scan (secrets, CVEs, risky code) by vectra-guard — pending

Scan it yourself before installing with vectra-guard, the open-source agent security CLI (made by NavyaAI, which also runs MCPSkillHub). Scoring rules

Freshness

Maintained — last maintenance signal 2mo ago. The newest of the signals below sets the band.

  1. Last commit (default branch)

    2026-09-10 · 2mo ago · GitHub

  2. Latest release

    no data · GitHub

  3. Package published

    no data · npm/PyPI

  4. Registry entry updated

    2025-11-21 · 12mo ago · official registry · v1.0.0

How it compares in Documentation

Against the most-starred documentation servers we index. Token cost is per model turn, measured from each server's live tool list.

ServerStarsToolsTokens / turnFreshnessRuns
Microsoft Learn (this)1,95131,016Maintainedlocal + hosted
Context7compare63,26421,188Activelocal + hosted
Context763,264—not measuredActive—
Mantine31,8355673Activelocal
Docs28,892133,429Activelocal
React Aria15,9633211Activelocal
All documentation MCP servers

FAQ

›How do I install the Microsoft Learn MCP server in Claude Code?

Run: claude mcp add microsoftdocs -- npx -y @microsoft/learn-cli. For Cursor, VS Code, Claude Desktop and Windsurf, use the install tabs above.

›Does Microsoft Learn require an API key?

No required environment variables are declared in its published metadata.

›Can I use Microsoft Learn as a remote (hosted) MCP server?

Yes — it offers both a hosted endpoint and a local stdio package.

›Is Microsoft Learn in the official MCP registry?

Yes, as com.microsoft/microsoft-learn-mcp.

›How many tokens does Microsoft Learn add to my context?

Its tool definitions total about 1,016 tokens, resent on every turn.

Sources and method

Official MCP Registry entry
updated 2025-11-21
GitHub repository
fetched 2026-10-19
Package registry (npm / PyPI)
listed
Last checked against all sources
2026-10-19

The description, packages and links come from the maintainer's own published metadata. Token cost, security signals, freshness and the reading above are MCPSkillHub's own measurements; see the methodology. Editorial standards are owned by Ramachandra Vikas Chamarthi, Founder & AI HPC Architect. Spot an error? Request a correction or claim the listing.

Alternatives to Microsoft Learn

Other documentation MCP servers.

View all

Comparing Azure & Microsoft servers? All Azure & Microsoft MCP servers, official and community.