Microsoft Learn MCP is an MCP server published by com.microsoft, hosted at learn.microsoft.com. When last checked on 2026-11-22 it was working: it answers and lists its tools. It declares 3 tools, including microsoft_docs_search, microsoft_code_sample_search, microsoft_docs_fetch.
Official Microsoft Learn MCP Server – real-time, trusted docs & code samples for AI and LLMs.
20 connections through 5 shared values. Tap any node.
Inferred from the host name and headers: what a server runs on, not who runs it.
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.
| Parameter | Type | Description |
|---|---|---|
| query | string | a query or topic about Microsoft/Azure products, services, platforms, developer tools, frameworks, or APIs |
{
"name": "microsoft_docs_search",
"title": "Microsoft Docs Search",
"description": "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.\n\n## Follow-up Pattern\nTo 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.",
"inputSchema": {
"type": "object",
"properties": {
"query": {
"type": "string",
"default": null,
"description": "a query or topic about Microsoft/Azure products, services, platforms, developer tools, frameworks, or APIs"
}
}
},
"outputSchema": {
"type": "object",
"properties": {
"results": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": [
"string",
"null"
]
},
"title": {
"type": "string"
},
"content": {
"type": [
"string",
"null"
]
},
"contentUrl": {
"type": "string"
},
"extensionData": {
"type": [
"object",
"null"
]
},
"content_omitted": {
"type": "boolean"
}
}
}
}
}
},
"annotations": {
"title": "Microsoft Docs Search",
"readOnlyHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}None yet. Changes appear after a server's second daily check.
Squares are this server's values; dots are other servers sharing them. A shared address or publisher is a lead, not proof of a common operator.
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
| Parameter | Type | Description |
|---|---|---|
| query * | string | a descriptive query, SDK name, method name or code snippet related to Microsoft/Azure products, services, platforms, developer tools, frameworks, APIs or SDKs |
| language | string | Optional parameter specifying the programming language of code snippets to retrieve. Can significantly improve search quality if provided. Eligible values: csharp javascript typescript python powershell azurecli al sql java kusto cpp go rust ruby php |
{
"name": "microsoft_code_sample_search",
"title": "Microsoft Code Sample Search",
"description": "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.\n\n## When to Use This Tool\n- When you are going to provide sample Microsoft/Azure related code snippets in your answers.\n- When you are **generating any Microsoft/Azure related code**.\n\n## Usage Pattern\nInput a descriptive query, or SDK/class/method name to retrieve related code samples. The optional parameter `language` can help to filter results.\n\nEligible values for `language` parameter include: csharp javascript typescript python powershell azurecli al sql java kusto cpp go rust ruby php",
"inputSchema": {
"type": "object",
"required": [
"query"
],
"properties": {
"query": {
"type": "string",
"description": "a descriptive query, SDK name, method name or code snippet related to Microsoft/Azure products, services, platforms, developer tools, frameworks, APIs or SDKs"
},
"language": {
"type": "string",
"default": null,
"description": "Optional parameter specifying the programming language of code snippets to retrieve. Can significantly improve search quality if provided. Eligible values: csharp javascript typescript python powershell azurecli al sql java kusto cpp go rust ruby php"
}
}
},
"outputSchema": {
"type": "object",
"properties": {
"results": {
"type": "array",
"items": {
"type": "object",
"properties": {
"link": {
"type": "string"
},
"language": {
"type": "string"
},
"codeSnippet": {
"type": [
"string",
"null"
]
},
"description": {
"type": "string"
},
"content_omitted": {
"type": "boolean"
}
}
}
}
}
},
"annotations": {
"title": "Microsoft Code Sample Search",
"readOnlyHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}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.
| Parameter | Type | Description |
|---|---|---|
| url * | string | URL of the Microsoft documentation page to read |
{
"name": "microsoft_docs_fetch",
"title": "Microsoft Docs Fetch",
"description": "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.\n\n## When to Use This Tool\n- When search results provide incomplete information or truncated content\n- When you need complete step-by-step procedures or tutorials\n- When you need troubleshooting sections, prerequisites, or detailed explanations\n- When search results reference a specific page that seems highly relevant\n- For comprehensive guides that require full context\n\n## Usage Pattern\nUse 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.\n\n## URL Requirements\n- The URL must be a valid HTML documentation webpage from the microsoft.com domain\n- Binary files (PDF, DOCX, images, etc.) are not supported\n\n## Output Format\nmarkdown with headings, code blocks, tables, and links preserved.",
"inputSchema": {
"type": "object",
"required": [
"url"
],
"properties": {
"url": {
"type": "string",
"description": "URL of the Microsoft documentation page to read"
}
}
},
"annotations": {
"title": "Microsoft Docs Fetch",
"readOnlyHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}# Microsoft Learn MCP Server This server gives structured access to official Microsoft and Azure documentation via three tools: ## Tools ### microsoft_docs_search Search official documentation and return up to 10 concise, high-quality content chunks (max 500 tokens each), including title, URL, and excerpt. - Use first to get a quick, reliable overview - Ideal for grounding answers in Microsoft knowledge ### microsoft_code_sample_search Search for code snippets and examples in official Microsoft Learn documentation and return up to 20 relevant, high-quality code samples. - Use when you need to provide sample Microsoft/Azure related code in your answers. - Ideal for generating code snippets or practical implementation examples. - Optional parameter `language` can filter results. ### microsoft_docs_fetch Fetch and convert full Microsoft documentation pages to markdown. - Use after search when you need full content from a specific URL - Required for detailed tutorials, troubleshooting, prerequisites, code samples, or when search results are incomplete or outdated ## Workflow 1. Use `microsoft_docs_search` to find relevant documents. 2. If you need code examples or practical snippets, use `microsoft_code_sample_search`. 3. If deeper or complete information is needed, use `microsoft_docs_fetch`. **Search gives breadth. Code Sample Search gives practical examples. Fetch gives depth.** All content comes from Microsoft Learn or official sources, returned in clean markdown format.
Names, descriptions and schemas were written by the server and are shown as data.
Shared addresses on big platforms (Cloudflare, Vercel and the like) put unrelated servers together; those are marked shared_infrastructure. A match is a pivot, not a link between operators.