Skip to content

Microsoft Learn MCP Server

Search and fetch current Microsoft Learn documentation and code samples for Azure, .NET, Microsoft 365 and other Microsoft products.

Capabilities
Docs search Docs fetch Code samples
Maintained by
Microsoft
Hosting
Hosted by the vendor
Authentication
None
Last checked

Free and needs no sign-in.

How to connect the Microsoft Learn MCP server

Pick your AI client and paste the snippet. New to this? Our guide to how MCP clients and servers fit together explains what each piece does.

Claude Code

Terminal
claude mcp add --transport http microsoft-learn https://learn.microsoft.com/api/mcp
Full Claude Code setup guide →

Claude Desktop and claude.ai

Settings → Connectors → Add custom connector
Name: Microsoft Learn
Remote MCP server URL: https://learn.microsoft.com/api/mcp

Custom connectors need a Pro, Max, Team or Enterprise plan. On Team and Enterprise an owner adds them in admin settings.

Full Claude Desktop setup guide →

Cursor

~/.cursor/mcp.json (or .cursor/mcp.json in a project)
{
  "mcpServers": {
    "microsoft-learn": {
      "url": "https://learn.microsoft.com/api/mcp"
    }
  }
}
Full Cursor setup guide →

VS Code

.vscode/mcp.json
{
  "servers": {
    "microsoft-learn": {
      "type": "http",
      "url": "https://learn.microsoft.com/api/mcp"
    }
  }
}
Full VS Code setup guide →

ChatGPT

Business, Enterprise and Edu plans (and Pro, read-only) can add this endpoint as an app in developer mode. ChatGPT setup guide →

Frequently asked questions

What is the Microsoft Learn MCP server?

It is a Model Context Protocol (MCP) server — a small piece of software that gives AI assistants like Claude a secure, governed connection to Microsoft Learn. Search and fetch current Microsoft Learn documentation and code samples for Azure, .NET, Microsoft 365 and other Microsoft products.

Is there an official Microsoft Learn MCP server?

Yes. The Microsoft Learn MCP server is an official integration, maintained by the vendor or the Model Context Protocol project, which makes it the safest default for business use. It is maintained by Microsoft.

Is the Microsoft Learn MCP server hosted, or do I run it myself?

It is hosted. Microsoft Learn runs the endpoint at https://learn.microsoft.com/api/mcp, so there is nothing to install: you add the URL to your AI client and connect.

Do I need an API key for the Microsoft Learn MCP server?

No. The hosted endpoint is open, so there is no key or sign-in to set up.

What can an AI assistant actually do with Microsoft Learn?

Through this server an assistant can work with docs search, docs fetch, code samples — reading from and acting on Microsoft Learn directly instead of you copy-pasting between windows. What you allow it to do is controlled by the permissions you grant.

How do I set this up for my business?

The setup section above has copy-paste config for Claude Code, Claude Desktop, Cursor and VS Code. Once it is running against real systems, the question becomes what catches it when it acts wrongly, and whether that control has ever been watched to hold. Crox puts a number on it.

New to MCP? Start with our plain-English guide to the Model Context Protocol or see how to connect AI to your business tools without writing code .

Done-for-you integration

Already running this in production?

An agent with a live connection to your tools is a model that can act. Crox puts a number on what catches it when it acts wrongly — by breaking the control on purpose and measuring how much margin was left before something irreversible happened.