ResourcesMCP setup

Claude Code + Microsoft Learn

Status: Tested on 2026-11-20 with Claude Code 2.1.314.

The Microsoft Learn MCP server searches and fetches Microsoft's official documentation and code samples. No account, no key, and the tools only read.

Field Value
Client and version Claude Code 2.1.314
Server Microsoft Learn MCP Server, published by Microsoft
URL https://learn.microsoft.com/api/mcp. Opening it in a browser can return 405 Method Not Allowed; that is expected, it is for MCP clients only
Transport Streamable HTTP (--transport http)
Authentication None ("There's no authentication required")
Read or write Read only. Tools seen on connect: microsoft_docs_search, microsoft_docs_fetch, microsoft_code_sample_search
Cost, limits, account "There's no charge to use the MCP server." Use means you agree to the Microsoft Learn Terms of Use. No rate-limit numbers are published. Content is public docs only
Sources https://learn.microsoft.com/en-us/training/support/mcp; https://code.claude.com/docs/en/mcp
Last checked 2026-11-20

Set it up

bash
claude mcp add --scope project --transport http mslearn https://learn.microsoft.com/api/mcp

The .mcp.json entry:

json
{
  "mcpServers": {
    "mslearn": {
      "type": "http",
      "url": "https://learn.microsoft.com/api/mcp"
    }
  }
}

Test record

bash
claude -p --model sonnet --setting-sources project \
  --strict-mcp-config --mcp-config ./mcp.json \
  --tools "" --allowedTools "mcp__mslearn__microsoft_docs_search" \
  --permission-mode dontAsk --no-session-persistence \
  --output-format stream-json --verbose \
  "Call the microsoft_docs_search tool once with the query 'what is the Model Context Protocol' and reply with the titles of the first three results only." \
  < /dev/null
  • Connection: the init event reported {"name": "mslearn", "status": "connected"}. In a scratch project folder, claude --settings ./approve.json mcp get mslearn showed Status: ✔ Connected.

  • Tool called: mcp__mslearn__microsoft_docs_search with {"query": "what is the Model Context Protocol"}, at 2026-11-20 22:30 UTC.

  • Result excerpt (first result):

    {"results":[{"title":"Get started with .NET AI and the Model Context Protocol","content":"# Get started with .NET AI
    and the Model Context Protocol\nModel Context Protocol (MCP) is an open protocol designed to standardize
    integrations between AI apps and external tools and data sources. ...
    
  • Claude's reply listed: "Get started with .NET AI and the Model Context Protocol", "Dynamics 365 Sales Model Context Protocol (MCP) server overview", "Model Context Protocol (MCP) on Windows".

  • Model use for the run: about 4 US cents.

  • Clean-up: claude mcp remove mslearn -s project, then the scratch files were deleted.