Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Official Microsoft Learn MCP Server – powering LLMs and AI agents with real-time, trusted Microsoft docs & code samples.

License

CC-BY-4.0, MIT licenses found

Licenses found

CC-BY-4.0
LICENSE
MIT
LICENSE-CODE
Notifications You must be signed in to change notification settings

MicrosoftDocs/mcp

Open more actions menu

🌟 Microsoft Docs MCP Server

Install in VS Code Install in VS Code Insiders

The Microsoft 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.

📑 Table of contents

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

🎯 Overview

✨ What is the Microsoft Docs MCP Server?

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.

📊 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 Docs MCP Server Endpoint

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

Endpoint URL:

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

Example JSON configuration:

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

🛠️ Currently Supported Tools

Tool Name Description Input Parameters
microsoft_docs_search Performs semantic search against Microsoft official technical documentation query (string): The search query for retrieval

🔌 Installation & Getting Started

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

Client One-click Installation Get Started
VS Code Install in VS Code Install in VS Code Insiders VS Code MCP Official Guide
Visual Studio Manual configuration required Visual Studio MCP Official Guide
Cursor IDE Install in Cursor Cursor MCP Official Guide

❓ Troubleshooting

⚠️ Common Issues

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

🆘 Getting Support

For issues with the Microsoft Docs MCP Server:

🔮 Future Enhancements

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

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

📚 Additional Resources

About

Official Microsoft Learn MCP Server – powering LLMs and AI agents with real-time, trusted Microsoft docs & code samples.

Topics

Resources

License

CC-BY-4.0, MIT licenses found

Licenses found

CC-BY-4.0
LICENSE
MIT
LICENSE-CODE

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
Morty Proxy This is a proxified and sanitized view of the page, visit original site.