Microsoft Learn MCP
Server Details
Official Microsoft Learn MCP Server – real-time, trusted docs & code samples for AI and LLMs.
- Status
- Healthy
- Uptime
- 100.0% over the last 24 hours
- Last Tested
- Transport
- Streamable HTTP · MCP 2025-06-18
- URL
- Repository
- MicrosoftDocs/mcp
- GitHub Stars
- 2,002
- Server Listing
- Microsoft Learn Docs MCP Server
- ChatGPT
- –
- Claude
- Microsoft Learn
TDQS
Scored across 3 tools
The three tools have largely distinct roles: docs_search retrieves documentation chunks, docs_fetch retrieves full pages, and code_sample_search targets code snippets. The two search tools share a search paradigm and could be momentarily confused, but the code-vs-prose framing and explicit 'use after search' guidance in fetch keep boundaries clear.
All tools follow a consistent snake_case pattern with a uniform 'microsoft_' resource prefix (microsoft_docs_search, microsoft_docs_fetch, microsoft_code_sample_search), making the family relationship immediately readable.
Three tools is well-scoped for a documentation-grounding server: a search/fetch pair plus a specialized code-sample search. Each tool earns its place with no redundancy, and the count is appropriate for the narrow purpose.
The search-plus-fetch pattern combined with code-sample retrieval provides complete coverage of the documentation-grounding domain, with no critical dead ends. Minor gaps (e.g., no direct structured/API reference lookup or list/browse operation) are easily worked around via search.
Available Tools
3 toolsmicrosoft_code_sample_searchMicrosoft Code Sample SearchARead-onlyIdempotentInspect
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
Input a descriptive query, or SDK/class/method name to retrieve related code samples. The optional parameter language can help to filter results.
Eligible values for language parameter include: csharp javascript typescript python powershell azurecli al sql java kusto cpp go rust ruby php
Inputs: query (required), language. Returns: results
microsoft_docs_fetchMicrosoft Docs FetchARead-onlyIdempotentInspect
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 context
Usage Pattern
Use this tool AFTER microsoft_docs_search when you identify specific high-value pages that need complete content. The search tool gives you an overview; this tool gives you the complete picture.
URL Requirements
The URL must be a valid HTML documentation webpage from the microsoft.com domain
Binary files (PDF, DOCX, images, etc.) are not supported
Output Format
markdown with headings, code blocks, tables, and links preserved.
Inputs: url (required).
microsoft_docs_searchMicrosoft Docs SearchARead-onlyIdempotentInspect
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. The fetch tool complements search by providing the full detail. This is a required step for comprehensive results.
Inputs: query. Returns: results
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
Related MCP Connectors
Official Microsoft MCP Server to query Microsoft Entra data using natural language
Official Miro MCP server - Supports context to code and creating diagrams, docs, and data tables.
Official MCP server for Certifier to issue, manage, and track certificates and badges.
Official MCP server for Lovable, the AI-powered full-stack app builder.
Related MCP Servers
- AlicenseAqualityDmaintenanceOfficial ElevenLabs MCP server for text-to-speech, voice cloning, audio transcription, and sound generation.24MIT
- AlicenseAqualityCmaintenanceOfficial MCP server for the Perplexity API Platform, enabling AI assistants to perform real-time web search, reasoning, and deep research using Sonar models.475,070 npmMIT
- AlicenseAqualityCmaintenanceOfficial MCP server for interacting with Saudi market data (Sahmk) via natural language queries, enabling stock quotes, company info, and market summaries inside AI agents like Cursor and Claude Desktop.1556 PyPI15MIT
- AlicenseAqualityDmaintenanceOfficial MCP server for Perplexity API Platform, enabling AI assistants with real-time web search, reasoning, and research capabilities through Sonar models and the Search API.4MIT
Glama MCP Gateway
Add one secure layer between your agents and this server.