The Microsoft Learn Docs MCP Server implements the Model Context Protocol (MCP) server that provides AI assistants with real-time access to official Microsoft documentation.
Please note that this project is in Public Preview and implementation may significantly change prior to our General Availability.
The Microsoft Docs MCP Server is a cloud-hosted service that enables MCP hosts like GitHub Copilot and Cursor to search and retrieve accurate information directly from Microsoft's official documentation. By implementing the standardized Model Context Protocol (MCP), this service allows any compatible AI system to ground its responses in authoritative Microsoft content.
The Microsoft Learn Docs 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 Allowederror if accessed manually.
Example JSON configuration:
{
"microsoft.docs.mcp": {
"type": "http",
"url": "https://learn.microsoft.com/api/mcp"
}
}
| Tool Name | Description | Input Parameters |
|---|---|---|
microsoft_docs_search |
Performs semantic search against Microsoft official technical documentation | query (string): The search query for retrieval |
The Microsoft Learn Docs MCP Server supports quick installation across multiple development environments. Choose your preferred client below for streamlined setup:
| Client | One-click Installation | MCP Guide |
|---|---|---|
| VS Code | VS Code MCP Official Guide | |
| Claude Desktop | View Instructions1. Open Claude Desktop2. Go to Settings → Integrations 3. Click Add Integration 4. Enter URL: https://learn.microsoft.com/api/mcp5. Click Connect |
Claude Desktop Remote MCP Guide |
| Visual Studio | Manual configuration required Use "type": "http" |
Visual Studio MCP Official Guide |
| Cursor IDE | Cursor MCP Official Guide | |
| Roo Code | Manual configuration required Use "type": "streamable-http" |
Roo Code MCP Official Guide |
| Cline | Manual configuration required Use "type": "streamableHttp" |
Cline MCP Official Guide |
For clients that don't support native remote MCP servers or if you prefer local configuration, you can use mcp-remote as a proxy:
| Client | Manual Configuration | MCP Guide |
|---|---|---|
| Claude Desktop (legacy config) | View ConfigNote: Only use this if Settings → Integrations doesn't work{Add to claude_desktop_config.json |
Claude Desktop MCP Guide |
| Windsurf | View Config{ |
Windsurf MCP Guide |
Even tool-friendly models like Claude Sonnet 4.0 will not default to calling MCP tools typically - they need to be given some encouragement in the form of "system prompts."
Here's an example of a Cursor rule (a system prompt) that will cause the LLM to utilize microsoft.docs.mcp more frequently:
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.
| Issue | Possible Solution |
|---|---|
| Connection errors | Verify your network connection and that the server URL is correctly entered |
| No results returned | Try rephrasing your query with more specific technical terms |
| Tool not appearing in VS Code | Restart VS Code or check that the MCP extension is properly installed |
| HTTP status 405 | Method not allowed happens when a browser tries to connect to the endpoint. Try using the Docs MCP Server through VS Code GitHub Copilot or MCP Inspector instead. |
The Microsoft Learn Docs MCP Server team is working on several enhancements: