Microsoft Learn Docs

v1.0.0Developer Toolsstable

The Microsoft Learn Docs MCP Server is a cloud-hosted service that enables clients like GitHub Copilot and other AI agents to bring trusted and up-to-date information directly from Microsoft's official documentation. It is a remote MCP Server using s

aiai-agentsclicopilotdocumentation
Share:
1,650
Stars
0
Downloads
0
Weekly
0/5

What is Microsoft Learn Docs?

Microsoft Learn Docs is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to microsoft learn docs mcp server is a cloud-hosted service that enables clients like github copilot and other ai agents to bring trusted and up-to-date information directly from microsoft's official do...

The Microsoft Learn Docs MCP Server is a cloud-hosted service that enables clients like GitHub Copilot and other AI agents to bring trusted and up-to-date information directly from Microsoft's official documentation. It is a remote MCP Server using s

This server falls under the Developer Tools category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • The Microsoft Learn Docs MCP Server is a cloud-hosted servic

Use Cases

Official Microsoft documentation access
Integration with GitHub Copilot and AI agents
MicrosoftDocs

Maintainer

LicenseCC BY-4.0
Languagetypescript
Versionv1.0.0
UpdatedMay 21, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

NPM

npx -y @microsoft/learn-cli

Manual Installation

npx -y @microsoft/learn-cli

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use Microsoft Learn Docs

Microsoft Learn Docs MCP Server is a cloud-hosted, remote Model Context Protocol service operated by Microsoft that gives AI assistants real-time access to the full corpus of official Microsoft and Azure technical documentation. It requires no API keys, no authentication, and no local installation beyond a one-line config entry pointing to Microsoft's public MCP endpoint. Engineers and developers use it to let AI coding assistants like GitHub Copilot and Claude retrieve authoritative, up-to-date Microsoft docs, Azure CLI examples, and official SDK code samples directly within their workflow without manually searching learn.microsoft.com.

Prerequisites

  • An MCP-compatible AI client: Claude Desktop, Cursor, GitHub Copilot, VS Code with the Microsoft Learn extension, or Windsurf
  • Internet access to reach https://learn.microsoft.com/api/mcp
  • No API keys or accounts required — the service is publicly accessible
  • Node.js (optional) if using the @microsoft/learn-cli npm package for CLI access
1

Add the remote MCP server to your client configuration

For clients that support remote (HTTP) MCP servers, add the Microsoft Learn endpoint directly to your config. No local binary or installation is needed.

{
  "servers": {
    "microsoft-learn": {
      "type": "http",
      "url": "https://learn.microsoft.com/api/mcp"
    }
  }
}
2

For Claude Desktop: use the npx-based transport

Claude Desktop uses stdio-based MCP servers. Use the @microsoft/learn-cli npm package as the transport layer to connect to the remote Microsoft Learn endpoint.

{
  "mcpServers": {
    "microsoft-learn": {
      "command": "npx",
      "args": ["-y", "@microsoft/learn-cli", "mcp"]
    }
  }
}
3

Restart your MCP client

Restart Claude Desktop or reload the editor extension. The Microsoft Learn MCP server exposes three tools: microsoft_docs_search, microsoft_docs_fetch, and microsoft_code_sample_search.

4

Verify the connection with a documentation query

Ask your AI assistant a Microsoft or Azure-specific technical question. The assistant will automatically invoke microsoft_docs_search to retrieve current documentation and include it in its response.

Microsoft Learn Docs Examples

Client configuration

Two config options: remote HTTP (for clients that support it) and stdio via npx for Claude Desktop.

// Option 1: Remote HTTP (Cursor, VS Code, GitHub Copilot)
{
  "servers": {
    "microsoft-learn": {
      "type": "http",
      "url": "https://learn.microsoft.com/api/mcp"
    }
  }
}

// Option 2: Stdio via npx (Claude Desktop)
{
  "mcpServers": {
    "microsoft-learn": {
      "command": "npx",
      "args": ["-y", "@microsoft/learn-cli", "mcp"]
    }
  }
}

Prompts to try

These prompts show how the Microsoft Learn MCP server provides accurate, real-time documentation for Azure, .NET, and Microsoft services.

- "What Azure CLI commands do I need to create an Azure Container App with a managed identity?"
- "Show me the latest Azure OpenAI Service quotas and limits for GPT-4 in East US 2"
- "Give me a runnable Python example for evaluating AI responses using the Azure AI Foundry SDK"
- "What's the difference between Azure Blob Storage hot, cool, and archive access tiers?"
- "Search for official Microsoft docs on configuring Azure AD B2C custom policies"

Troubleshooting Microsoft Learn Docs

Tools are not appearing in Claude Desktop after adding the npx config

Make sure Node.js is installed (node --version). Run 'npx -y @microsoft/learn-cli mcp' manually in your terminal to confirm it installs and starts without errors, then restart Claude Desktop.

Remote HTTP endpoint not supported by my MCP client

Not all MCP clients support remote (HTTP/SSE) servers. For Claude Desktop, use the stdio configuration with npx @microsoft/learn-cli instead. For VS Code, install the 'Microsoft Learn' extension from the marketplace which handles the connection automatically.

Search returns outdated or irrelevant documentation

The microsoft_docs_search tool uses semantic search over the live learn.microsoft.com corpus. Refine your query to include specific product names and version numbers (e.g. 'Azure Functions v4 Node.js cold start' instead of 'functions performance'). Use microsoft_docs_fetch with a specific URL if you know the exact page you need.

Frequently Asked Questions about Microsoft Learn Docs

What is Microsoft Learn Docs?

Microsoft Learn Docs is a Model Context Protocol (MCP) server that microsoft learn docs mcp server is a cloud-hosted service that enables clients like github copilot and other ai agents to bring trusted and up-to-date information directly from microsoft's official documentation. it is a remote mcp server using s It connects AI assistants to external tools and data sources through a standardized interface.

How do I install Microsoft Learn Docs?

Install via npm with the command: npx -y @microsoft/learn-cli. Then add the server configuration to your AI client's JSON config file (e.g., claude_desktop_config.json or .cursor/mcp.json).

Which AI clients work with Microsoft Learn Docs?

Microsoft Learn Docs works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is Microsoft Learn Docs free to use?

Yes, Microsoft Learn Docs is open source and available under the CC BY-4.0 license. You can use it freely in both personal and commercial projects.

Browse More Developer Tools MCP Servers

Explore all developer tools servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "microsoft-learn-docs-mcp-server": { "command": "npx", "args": ["-y", "@microsoft/learn-cli"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use Microsoft Learn Docs?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides