Skip to main content
Glama

Microsoft Learn Docs MCP Server

Official

🌟 Microsoft Learn MCP Server

The Microsoft Learn MCP Server is a cloud-hosted service that enables clients like GitHub Copilot and other AI agents to bring trusted and up-to-date information directly from Microsoft's official documentation. It is a remote MCP Server using streamable http, which is lightweight for clients to use.

Please note that this project is in Public Preview and implementation may significantly change prior to our General Availability.

📑 Table of contents

  1. 🎯 Overview
  2. 🌐 The Microsoft Learn MCP Server Endpoint
  3. 🛠️ Currently Supported Tools
  4. 🔌 Installation & Getting Started
  5. ❓ Troubleshooting
  6. 🔮 Future Enhancements
  7. 📚 Additional Resources

🎯 Overview

✨ Example Prompts: Your Source of Truth

Your AI assistant should automatically use this tool for Microsoft-related topics. To ensure that it always consults the official documentation, you can add a phrase like:

Generate Azure CLI Commands

"Give me the Azure CLI commands to create an Azure Container App with a managed identity. search Microsoft docs"

Get Correct .NET Code

"Are you sure this is the right way to implement IHttpClientFactory in a .NET 8 minimal API? search Microsoft docs"

Factual Q&A

"Is gpt-4.1-mini available in EU regions? search Microsoft docs"

📊 Key Capabilities

  • High-Quality Content Retrieval: Search and retrieve relevant content from Microsoft Learn, Azure documentation, Microsoft 365 documentation, and other official Microsoft sources.
  • Semantic Understanding: Uses advanced vector search to find the most contextually relevant documentation for any query.
  • Optimized Chunking: Returns up to 10 high-quality content chunks (each max 500 tokens), with article titles, URLs, and self-contained content excerpts.
  • Real-time Updates: Access the latest Microsoft documentation as it's published.

🌐 The Microsoft Learn MCP Server Endpoint

The Microsoft Learn MCP Server is accessible to any IDE, agent, or tool that supports the Model Context Protocol (MCP). Any compatible client can connect to the following remote MCP endpoint:

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

Note: This endpoint is designed for programmatic access by MCP clients via Streamable HTTP. It does not support direct access from a web browser and may return a 405 Method Not Allowed error if accessed manually.

Example JSON configuration:

{ "microsoft.docs.mcp": { "type": "http", "url": "https://learn.microsoft.com/api/mcp" } }

🛠️ Currently Supported Tools

Tool NameDescriptionInput Parameters
microsoft_docs_searchPerforms semantic search against Microsoft official technical documentationquery (string): The search query for retrieval

🔌 Installation & Getting Started

The Microsoft Learn MCP Server supports quick installation across multiple development environments. Choose your preferred client below for streamlined setup:

ClientOne-click InstallationMCP Guide
VS Code VS Code MCP Official Guide
Claude DesktopView Instructions1. Open Claude Desktop2. Go to Settings → Integrations3. Click Add Integration4. Enter URL: https://learn.microsoft.com/api/mcp5. Click ConnectClaude Desktop Remote MCP Guide
Visual StudioManual configuration requiredUse "type": "http"Visual Studio MCP Official Guide
Cursor IDECursor MCP Official Guide
Roo CodeManual configuration requiredUse "type": "streamable-http"Roo Code MCP Official Guide
ClineManual configuration requiredUse "type": "streamableHttp"Cline MCP Official Guide
GitHubManual configuration required View ConfigNote: Navigate to Settings → Coding agent{ "mslearn": { "command": "npx", "args": [ "-y", "mcp-remote", "https://learn.microsoft.com/api/mcp" ], "tools":["*"] }}

Alternative Installation (for legacy clients or local configuration)

For clients that don't support native remote MCP servers or if you prefer local configuration, you can use mcp-remote as a proxy:

ClientManual ConfigurationMCP Guide
Claude Desktop (legacy config)View ConfigNote: Only use this if Settings → Integrations doesn't work{ "microsoft.docs.mcp": { "command": "npx", "args": [ "-y", "mcp-remote", "https://learn.microsoft.com/api/mcp" ] }}Add to claude_desktop_config.jsonClaude Desktop MCP Guide
WindsurfView Config{ "microsoft.docs.mcp": { "command": "npx", "args": [ "-y", "mcp-remote", "https://learn.microsoft.com/api/mcp" ] }} Windsurf MCP Guide
KiroView Config{ "microsoft.docs.mcp": { "command": "npx", "args": [ "-y", "mcp-remote", "https://learn.microsoft.com/api/mcp" ] }} Kiro MCP Guide

▶️ Getting Started

  1. For VS Code: Open GitHub Copilot in VS Code and switch to Agent mode
  2. For Claude Desktop: After adding the integration, you'll see the MCP tools icon in the chat interface
  3. You should see the Learn MCP Server in the list of available tools
  4. Try a prompt that tells the agent to use the MCP Server, such as "what are the az cli commands to create an Azure container app according to official Microsoft Learn documentation?"
  5. The agent should be able to use the MCP Server tools to complete your query

❓ Troubleshooting

💻 System Prompt

Even tool-friendly models like Claude Sonnet 4 sometimes fail to call MCP tools by default; use system prompts to encourage usage.

Here's an example of a Cursor rule (a system prompt) that will cause the LLM to utilize microsoft.docs.mcp more frequently:

## Querying Microsoft Documentation You have access to an MCP server called `microsoft.docs.mcp` - this tool allows you to search through Microsoft's latest official documentation, and that information might be more detailed or newer than what's in your training data set. When handling questions around how to work with native Microsoft technologies, such as C#, F#, ASP.NET Core, Microsoft.Extensions, NuGet, Entity Framework, the `dotnet` runtime - please use this tool for research purposes when dealing with specific / narrowly defined questions that may occur.

⚠️ Common Issues

IssuePossible Solution
Connection errorsVerify your network connection and that the server URL is correctly entered
No results returnedTry rephrasing your query with more specific technical terms
Tool not appearing in VS CodeRestart VS Code or check that the MCP extension is properly installed
HTTP status 405Method not allowed happens when a browser tries to connect to the endpoint. Try using the MCP Server through VS Code GitHub Copilot or MCP Inspector instead.

🆘 Getting Support

🔮 Future Enhancements

The Microsoft Learn MCP Server team is working on several enhancements:

  • Expanding coverage to additional Microsoft documentation sources
  • Improved query understanding for more precise results

📚 Additional Resources

-
security - not tested
A
license - permissive license
-
quality - not tested

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

The Microsoft Learn Docs MCP Server is a cloud-hosted service that enables clients like GitHub Copilot and other AI agents to bring trusted and up-to-date information directly from Microsoft's official documentation. It is a remote MCP Server using streamable http, which is lightweight for clients t

  1. 📑 Table of contents
    1. 🎯 Overview
      1. ✨ Example Prompts: Your Source of Truth
      2. 📊 Key Capabilities
    2. 🌐 The Microsoft Learn MCP Server Endpoint
      1. 🛠️ Currently Supported Tools
        1. 🔌 Installation & Getting Started
          1. Alternative Installation (for legacy clients or local configuration)
          2. ▶️ Getting Started
        2. ❓ Troubleshooting
          1. 💻 System Prompt
          2. ⚠️ Common Issues
          3. 🆘 Getting Support
        3. 🔮 Future Enhancements
          1. 📚 Additional Resources

            Related MCP Servers

            • -
              security
              A
              license
              -
              quality
              The MCP server provides access to Clever Cloud's documentation, allowing users to query and interact with it through Model Context Protocol clients like Claude Desktop.
              Last updated -
              TypeScript
              MIT License
            • -
              security
              F
              license
              -
              quality
              A customized MCP server that enables integration between LLM applications and documentation sources, providing AI-assisted access to LangGraph and Model Context Protocol documentation.
              Last updated -
              1
              Python
              • Linux
              • Apple
            • A
              security
              A
              license
              A
              quality
              A documentation server based on MCP protocol designed for various development frameworks that provides multi-threaded document crawling, local document loading, keyword searching, and document detail retrieval.
              Last updated -
              2
              51
              JavaScript
              MIT License
              • Apple
              • Linux
            • -
              security
              F
              license
              -
              quality
              An MCP server that enables searching and retrieving content from Confluence documentation systems, providing capabilities for both document searches and full page content retrieval.
              Last updated -
              1
              Python

            View all related MCP servers

            MCP directory API

            We provide all the information about MCP servers via our MCP API.

            curl -X GET 'https://glama.ai/api/mcp/v1/servers/MicrosoftDocs/mcp'

            If you have feedback or need assistance with the MCP directory API, please join our Discord server