MicrosoftDocs/mcp

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

What it solves

This project provides a way for AI assistants to access the most current official Microsoft technical documentation, reducing "hallucinations" where AI models invent non-existent SDK methods or library packages based on outdated training data.

How it works

It implements the Model Context Protocol (MCP), allowing any compatible AI client (such as VS Code, Claude Desktop, Cursor, or GitHub Copilot) to connect to a remote endpoint. The server provides three primary tools:

  • microsoft_docs_search: Performs semantic search across official documentation.
  • microsoft_docs_fetch: Retrieves a specific documentation page and converts it to Markdown.
  • microsoft_code_sample_search: Searches for official Microsoft and Azure code snippets.

Additionally, it offers a CLI tool (@microsoft/learn-cli) for terminal access and "Agent Skills"—portable instruction packages that guide AI agents on how to use these tools effectively.

Who it’s for

Developers using AI coding assistants who work with Microsoft technologies (such as .NET, Azure, C#, and F#) and need accurate, up-to-date technical references.

Highlights

  • Zero Configuration: No API keys, logins, or sign-ups are required for installation.
  • Broad Compatibility: Supports a wide range of AI agents and IDEs including VS Code, Cursor, Claude Code, and ChatGPT.
  • Trusted Source: Accesses only first-party official Microsoft documentation to ensure security and accuracy.
  • OpenAI Compatibility: Includes an experimental endpoint for OpenAI Deep Research models.

Related

  • Project
  • Project
  • Project
  • Project
  • Project