An MCP server that provides structured access to Microsoftโs official documentation. Retrieves accurate, authoritative, and context-aware technical content for code generation, question answering, and workflow grounding.
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.
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:
"Give me the Azure CLI commands to create an Azure Container App with a managed identity. search Microsoft docs"
"Are you sure this is the right way to implement
IHttpClientFactory
in a .NET 8 minimal API? search Microsoft docs"
"Is gpt-4.1-mini available in EU regions? search Microsoft docs"
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"
}
}
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 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/mcp 5. 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 |
GitHub | Manual configuration requiredView ConfigNote: Navigate to Settings โ Coding agent{ |
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 |
Kiro | View Config{ |
Kiro MCP Guide |
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.
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 MCP Server through VS Code GitHub Copilot or MCP Inspector instead. |
The Microsoft Learn MCP Server team is working on several enhancements: