Skip to content
AI Dev Toolkit.
Esc
  • Loading…

MCP server · Docs and web search

Microsoft Learn MCP server

The Microsoft Learn MCP server is Microsoft’s official, hosted MCP server for its documentation. It lets an assistant search and read Microsoft Learn docs and code samples. It runs remotely at https://learn.microsoft.com/api/mcp, is free and needs no sign-in. Your search queries are sent to Microsoft’s service.

Maintainer
Microsoft (official)
Licence
Not published (hosted service)
Runs
Remote (URL)
Sign-in
None
Registry version
1.0.0 (updated 2025-11-21)
Last activity
2026-09-10

Overview

What can the Microsoft Learn MCP server do?

The Microsoft Learn MCP Server is a remote endpoint run by Microsoft. It searches Microsoft’s official technical documentation, fetches a docs page as Markdown and finds official code samples, with an optional language filter. There is nothing to install and no key: you point your client at the endpoint over Streamable HTTP. The GitHub repository holds the setup guides, agent skills and a learn-cli tool rather than the server code.

Pick it when you work with Azure, .NET, Microsoft 365, Power Platform or other Microsoft products and want answers checked against current first-party docs. An experimental maxTokenBudget query parameter trims search results to save tokens, and a separate OpenAI-compatible endpoint exists for deep research models. Visual Studio 2022 and 2026 include it already, and the README lists one-step setup for many other clients.

Tools

Tools it gives the assistant

  • Semantic search across Microsoft’s official technical documentation
  • Fetch a Microsoft documentation page as Markdown
  • Search official Microsoft and Azure code samples with a language filter
  • Optional token budget for search results (experimental)

Install

How do I install Microsoft Learn MCP in Claude Code, Cursor or VS Code?

You need:

  • An MCP client that supports Streamable HTTP

Run in your project. --scope local keeps the servers private to you in this project; use user for every project.

Terminal
claude mcp add --scope local --transport http microsoft-learn https://learn.microsoft.com/api/mcp
  • microsoft-learn: if the server needs a sign-in, the app will ask (run /mcp in Claude Code).

Need another app? Open Microsoft Learn MCP Server in the MCP config generator for a shared project .mcp.json, Devin, or several servers at once; it writes one file per app. The snippets follow the setup in the server’s README, checked on 2026-10-14.

Is the Microsoft Learn MCP server safe? Check before you install

  • Your search queries are sent to Microsoft’s hosted service.
  • It only reads public Microsoft documentation; it cannot touch your files, tenant or Azure resources.
  • A remote server sees whatever the assistant sends it. Sign in with the narrowest access the service offers. See how to choose a safe server.

FAQ

Microsoft Learn MCP questions

Is the Microsoft Learn MCP server official?

Yes. Microsoft publishes and maintains it. Install it only from the source linked on this page, not from a copy in another directory.

Is Microsoft Learn MCP server remote or local?

Remote. Your MCP app connects to https://learn.microsoft.com/api/mcp over HTTP, so nothing runs on your machine and the service sees the requests the assistant sends.

Does Microsoft Learn MCP server need an API key or account?

No. It needs no account, API key or sign-in to run. You also need: An MCP client that supports Streamable HTTP.

Why it’s listed

Why we list it

Free, key-less, first-party documentation search for the whole Microsoft stack, run by Microsoft.

Related

All MCP serversMCP config generatorGuide: MCP servers in Claude CodeGuide: what is MCP?