Skip to content
Skillpedia
βœ“ Official Β· Microsoft● Free and open source☁️ RemoteπŸ”“ No API keyProgramming

Microsoft Learn MCP

Lets your AI agent search and read official Microsoft docs and code samples so it stops guessing at Azure and .NET APIs.

2.0k stars on GitHubby MicrosoftLicense CC-BY-4.0Updated 24 days ago

How to install

This MCP is remote: it runs in the cloud.

Nothing to install. Copy the address and paste it into your AI app:

Server address

https://learn.microsoft.com/api/mcp
  • β€ΊClaude (site or app): Settings β†’ Connectors β†’ Add custom connector.
  • β€ΊChatGPT: Settings β†’ Apps β†’ Create app (developer mode), and paste the address.
  • β€ΊClaude Code, Cursor, VS Code and Windsurf: pick your app below.

Paste in the terminal:

claude mcp add --transport http microsoft-learn https://learn.microsoft.com/api/mcp

Ready! Now test it

Restart the app and paste one of these requests in the chat:

Give me the Azure CLI commands to create a Container App with a managed identity.
Is this model available in Azure EU regions?

What it is

This server gives your agent direct access to Microsoft Learn, the official Microsoft documentation. It can search docs, fetch a page as markdown and find code samples. It needs no key and no sign-in.

What it can do

  • microsoft_docs_search: semantic search of Microsoft documentation
  • microsoft_docs_fetch: read a documentation page as markdown
  • microsoft_code_sample_search: find official code samples, with an optional language filter
  • mslearn command line tool with the same features

When to use

  • β€ΊWhen you want correct Azure CLI commands or SDK methods rather than guesses.
  • β€ΊWhen you need to check if a service or model is available in a region.
  • β€ΊWhen you want runnable sample code from official Microsoft sources.

What you need

Nothing besides an MCP client. Add the endpoint https://learn.microsoft.com/api/mcp. No API key or login is needed.

Skills that pair well

⭐ Skillpedia MCP Β· freeYour agent finds the right skill on its ownInstall our MCP and your agent searches 15,000+ skills whenever it needs one.Install for free β†’

Frequently asked questions

Is it free?

Yes. The readme says it is completely free with no key needed.

Who makes it?

Microsoft. It is the official Microsoft Learn MCP server.

Why can't I open the URL in a browser?

It is meant for MCP clients using Streamable HTTP, and a browser may get a 405 error.

Can I limit the response size?

Yes, with the experimental maxTokenBudget query parameter, for example ?maxTokenBudget=2000.

Which clients are covered?

VS Code, GitHub Copilot CLI, Claude Desktop, Claude Code, Visual Studio, Cursor, Codex, Roo Code and Cline.

Is there a command-line version?

Yes. npx @microsoft/learn-cli search "azure functions timeout", or install it and use mslearn.

If it does not work

  • β€ΊUse the full URL https://learn.microsoft.com/api/mcp inside an MCP client, not a browser.
  • β€ΊFor Cline, use the type streamableHttp in the configuration.
  • β€ΊRestart your client fully after adding the server.

5 new skills a week. 1 minute to read.