Feedback

Microsoft Docs MCP Server Verified

@microsoftdocs Claim

Basic information

Transport
streamable-http
Runtime
PowerShell
Version
1.0.0
Category
Author
microsoftdocs
Quality
25
Views
2.3K

About Microsoft Docs MCP Server

Access official Microsoft Docs instantly for up-to-date info. Integrates with ms word and ms word online for seamless word doc searches.

Microsoft Docs is a MCP server in the Search Web category listed in the AddMCP.net directory, published by microsoftdocs. It exposes 3 tools, including microsoft_docs_search, microsoft_code_sample_search, microsoft_docs_fetch. Supported transport: streamable-http. Runtime: PowerShell. License: CC-BY-4.0. The repository has 1,427 GitHub stars. Source code is hosted on github.com. Related topics: ai, ai-agents, cli, coding, copilot.

Connection details

https://learn.microsoft.com/api/mcp

Setup

claude mcp add mcp-microsoftdocs --transport http https://learn.microsoft.com/api/mcp

Microsoft Docs MCP Server config

Add this server to your MCP-compatible client using the configuration below.

{
    "mcpServers": {
        "microsoft-docs": {
            "url": "https://learn.microsoft.com/api/mcp"
        }
    }
}

Microsoft Docs MCP Server tools

  • microsoft_docs_search — 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. The `question` parameter is no longer used, use `query` instead. ## 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.
  • microsoft_code_sample_search — 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
  • microsoft_docs_fetch — Fetch and convert a Microsoft Learn documentation page to markdown format. This tool retrieves the latest complete content of Microsoft documentation pages 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 link from the microsoft.com domain. ## Output Format markdown with headings, code blocks, tables, and links preserved.

Overview

What is Microsoft Docs?

A cloud-hosted service implementing the Model Context Protocol (MCP) that provides AI assistants with real-time, semantic access to official Microsoft documentation from Microsoft Learn, Azure, Microsoft 365, and other Microsoft sources. It enables MCP hosts like GitHub Copilot and Cursor to retrieve accurate, authoritative content grounded in the latest Microsoft documentation.

How to use Microsoft Docs?

Install via one-click buttons for VS Code, VS Code Insiders, or Cursor, or manually configure the remote endpoint https://learn.microsoft.com/api/mcp. For clients without Streamable HTTP support (e.g., Claude Desktop, Windsurf), use npx -y mcp-remote as a workaround. After setup, invoke the microsoft_docs_search tool with a query to retrieve relevant documentation chunks.

Key features of Microsoft Docs

  • High‑quality content retrieval from official Microsoft documentation sources.
  • Semantic understanding via advanced vector search for contextual relevance.
  • Returns up to 10 chunks (max 500 tokens each) with titles, URLs, and excerpts.
  • Real‑time access to the latest Microsoft documentation.
  • Single tool: microsoft_docs_search for semantic search.

Use cases of Microsoft Docs

  • Developers asking AI assistants for Azure CLI commands from official Microsoft Learn documentation.
  • Grounding AI responses in authoritative Microsoft content within GitHub Copilot or Cursor.
  • Searching for specific technical details across Azure, Microsoft 365, and other Microsoft sources.
  • Reducing reliance on potentially outdated or unofficial documentation by using real‑time, official sources.

Frequently asked questions

1 What does Microsoft Learn MCP Server do?

It allows MCP‑compatible AI assistants to search and retrieve accurate, real‑time information from official Microsoft documentation via the microsoft_docs_search tool.

2 How do I install Microsoft Learn MCP Server?

Use the one‑click installation buttons for VS Code or Cursor, or manually configure your client with the endpoint https://learn.microsoft.com/api/mcp. For clients that do not support Streamable HTTP, use npx mcp-remote as an adapter.

3 Why do I get a 405 error when accessing the endpoint?

The endpoint is designed for

Videos

Tutorials, guides, and showcases related to Microsoft Docs MCP Server. The player loads when you press play.

Videos belong to their creators. Relevance is approximate; check the channel and description before following setup steps.

Comments

No comments yet

Be the first to share feedback about this listing. Sign in to leave a comment.

Sign In

Feedback 💬