Microsoft Learn MCP
by microsoft.com · remote · no sign-in to list tools · v1.0.0 · published by com.microsoft
Official Microsoft Learn MCP Server – real-time, trusted docs & code samples for AI and LLMs.
3 tools: 3 only read.
Scanned Oct 21, 2026
- Deletes or cancels0Claude Code: deny
- Can't be undone0Claude Code: ask
- Changes things0Claude Code: ask
- Only reads3Claude Code: allow: see these tools
No check matched anything in the tool definitions. No finding is not a safety guarantee. How the checks work.
claude mcp add --transport http microsoft-learn https://learn.microsoft.com/api/mcpTools
Open a tool for its reasons and full description. Descriptions are the publisher's own words, shown as they are.
3 tools
Only reads 3Claude Code: allow
microsoft_code_sample_searchSearch for code snippets and examples in official Microsoft Learn documentation.No findings
Why it is in this group
- The name "microsoft_code_sample_search" says "search": a word for reading.
Description, as the server wrote it 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
Annotations the server declares
- title: Microsoft Code Sample Search
- destructiveHint: false
- idempotentHint: true
- readOnlyHint: true
microsoft_docs_fetchFetch and convert a Microsoft Learn documentation webpage to markdown format.No findings
Why it is in this group
- The name "microsoft_docs_fetch" says "fetch": a word for reading.
Description, as the server wrote it 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.
Annotations the server declares
- title: Microsoft Docs Fetch
- destructiveHint: false
- idempotentHint: true
- readOnlyHint: true
microsoft_docs_searchSearch official Microsoft/Azure documentation to find the most relevant and trustworthy content for a user's query.No findings
Why it is in this group
- The name "microsoft_docs_search" says "search": a word for reading.
Description, as the server wrote 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.
Annotations the server declares
- title: Microsoft Docs Search
- destructiveHint: false
- idempotentHint: true
- readOnlyHint: true
This is not a safety rating, and no finding is not a safety guarantee. The groups and findings come from fixed checks of the tool definitions the server returned on the date shown, not from its code or what it does when called. How the checks work.
Install
Pinned to version 1.0.0. Values in angle brackets are yours to fill in.
claude mcp add --transport http microsoft-learn https://learn.microsoft.com/api/mcpRun in a terminal.
Claude Code permissions
Allow the reads, ask before a change, deny the deletes. Paste into .claude/settings.json.
{
"permissions": {
"allow": [
"mcp__microsoft-learn__microsoft_docs_search",
"mcp__microsoft-learn__microsoft_code_sample_search",
"mcp__microsoft-learn__microsoft_docs_fetch"
],
"ask": [],
"deny": []
}
}Tools that only read are allowed, tools that change things ask first, tools that delete or cancel are denied. It assumes the server is installed as microsoft-learn. Review it before you use it.