</>MCP Agents Market
MCP Server

mcp

by MicrosoftDocs1.9kTypeScriptUpdated 2026-09-04

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

VS CodeClaude DesktopClaude CodeCursorGitHub CopilotVisual StudioCodexCline

The Microsoft Learn MCP Server is a free, hosted Model Context Protocol server that gives AI assistants direct access to official Microsoft technical documentation. It exposes three tools—semantic search, page fetching, and code sample search—through a remote endpoint at learn.microsoft.com/api/mcp. The server eliminates AI hallucinations by providing trusted, up-to-date information about Azure, .NET, and other Microsoft technologies directly from first-party sources. No authentication or API keys are required, and it works with any MCP-compatible client including VS Code, Claude Desktop, Cursor, GitHub Copilot, and more.

Key Features

Three MCP tools: semantic documentation search, page fetch/conversion to markdown, and code sample search with language filtering
Free remote HTTP MCP endpoint requiring no authentication, API keys, or sign-ups
Direct access to official Microsoft Learn documentation, preventing outdated or hallucinated information
One-click installation in VS Code, Claude Code, Cursor, and GitHub Copilot CLI
Optional token budget control via query parameters to manage response size
OpenAI-compatible endpoint for Deep Research models following OpenAI MCP specification
Companion CLI tool (@microsoft/learn-cli) for terminal access and agent skill installation
Bundled Agent Skills for GitHub Copilot, Claude Code, and Codex to guide effective tool usage

Use Cases

  • 01Verifying correct Azure SDK methods and API signatures when writing cloud applications
  • 02Finding official code samples for implementing .NET features like IHttpClientFactory or minimal APIs
  • 03Checking Azure service availability, regional limits, and configuration requirements during architecture planning
  • 04Troubleshooting compilation errors by retrieving accurate library documentation instead of relying on outdated training data
  • 05Generating runnable Python code for Azure AI Foundry evaluation SDK based on current documentation
  • 06Learning proper Azure CLI syntax for infrastructure provisioning and managed identity setup

Related MCP Servers

View more

mcp — FAQ

What is the Microsoft Learn MCP Server?+

It's a free, remote Model Context Protocol server hosted by Microsoft that provides AI assistants with tools to search, fetch, and retrieve official Microsoft documentation and code samples. It eliminates hallucinations by giving agents direct access to trusted, first-party technical content.

How do I install the Microsoft Learn MCP Server in VS Code?+

Click the one-click install badge in the repository, or search for '@mcp learn' in the VS Code Extensions panel and install the 'Microsoft Learn' MCP server. Restart VS Code and the tools will be available to GitHub Copilot chat.

Which AI clients and editors support this MCP server?+

It works with VS Code, Claude Desktop, Claude Code, Cursor, GitHub Copilot CLI, Visual Studio 2022, Codex, Cline, Roo Code, Windsurf, Kiro, ChatGPT, Gemini CLI, Qwen Code, and any other MCP-compatible client. Visual Studio 2022 version 17.13+ includes it as a built-in server.

Do I need an API key or Microsoft account to use this?+

No. The Microsoft Learn MCP Server requires no authentication, API keys, logins, or sign-ups. It's completely free and works immediately after installation.

Is the Microsoft Learn MCP Server free to use?+

Yes, it is completely free with high search capacity designed for heavy coding sessions. There are no usage limits or costs.

Can I use this MCP server from the command line without an AI client?+

Yes, install the companion CLI tool with 'npm install -g @microsoft/learn-cli' or run 'npx @microsoft/learn-cli search <query>' for instant terminal access to the same documentation search and fetch tools.

How do I install mcp?+

Open the source repository on GitHub and follow its README. mcp is a mcp server — MCP Agents Market links you directly to the official repo.

Is mcp free?+

mcp is an open-source project hosted on GitHub. Check the repository for its license and any usage requirements.

Related searches