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 and code samples, preventing "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, 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: Converts specific documentation pages into markdown format for the AI to read.
  • microsoft_code_sample_search: Searches for official Microsoft and Azure code snippets.

It also provides "Agent Skills"—instruction packages that guide AI agents on when and how to use these tools effectively for concepts, API lookups, or creating custom skills.

Who it’s for

Developers using AI-powered IDEs or agents who work with Microsoft technologies (such as .NET, Azure, C#, and F#) and need verified, up-to-date technical information.

Highlights

  • Zero Configuration: No API keys, logins, or sign-ups are required for installation.
  • Broad Compatibility: Works with a wide range of clients including VS Code, Cursor, Claude Desktop, and ChatGPT.
  • Semantic Search: Uses semantic search rather than simple keyword matching for better retrieval.
  • CLI Access: Includes a @microsoft/learn-cli package for terminal-based access to the same tools.

Related

  • Project
  • Project
  • Project
  • Project
  • Project