MCP serversCloud docsMicrosoft Learn

Microsoft Learn MCP server

https://learn.microsoft.com/api/mcp

Microsoft Learn runs a remote MCP server an agent can read without logging in. It exposes 3 tools: microsoft_docs_search, microsoft_code_sample_search and microsoft_docs_fetch. We read its tool list, then made 8 calls to the 3 tools it marks read-only.

Cloud docs3 toolsv1.0.0Streamable HTTP

Connect

How to add the Microsoft Learn MCP server

The server speaks Streamable HTTP at the address below. Listing its tools needs no key.

Server URL
https://learn.microsoft.com/api/mcp
Claude Code
claude mcp add --transport http microsoft-learn https://learn.microsoft.com/api/mcp
Cursor and other clients (mcp.json)
{
  "mcpServers": {
    "microsoft-learn": {
      "url": "https://learn.microsoft.com/api/mcp"
    }
  }
}

Tools

3 tools, about 1,600 tokens

An agent pays about 1,600 tokens for this list and the server’s instructions on every request, before it has done anything. Every tool is marked read-only. Descriptions are quoted from the server.

ToolWhat the server says it doesParamsHint
microsoft_docs_searchSearch official Microsoft/Azure documentation to find the most relevant and trustworthy content for a user's query. This tool returns up to 10 high-quality content chunks (each max 500…1Read-only
microsoft_code_sample_searchSearch for code snippets and examples in official Microsoft Learn documentation. This tool retrieves relevant code samples from Microsoft documentation pages providing developers with…2Read-only
microsoft_docs_fetchFetch and convert a Microsoft Learn documentation webpage to markdown format. This tool retrieves the latest complete content of Microsoft documentation webpages including Azure, .NET,…1Read-only

Score

82 out of 100, check by check

We read its tool list, then made 8 calls to the 3 tools it marks read-only. What each check means and how it is weighted →

Server

100/100
  • The server sends instructions (1545 characters).
  • 3 tools.
  • The tool list and instructions cost about 1,600 tokens, on every request an agent makes.

Tool descriptions

100/100
  • Every tool has a description of 40 characters or more.
  • No vague tool descriptions.

Parameters

83/100
  • All 4 parameters are described.
  • Constrained values use enums.
  • 2 of 2 list or search tools have no way to ask for less (no limit, page or cursor parameter): microsoft_docs_search, microsoft_code_sample_search.Fix: Add a limit with a small default, and a cursor when there can be more: the agent pays for every row it didn't need.

Safety hints

100/100
  • Every tool is annotated.

Error quality

40/100
  • All 5 wrong calls were refused.
  • 5 of 5 errors don't name the parameter that was wrong: microsoft_code_sample_search (no query), microsoft_code_sample_search (wrong type for query), microsoft_docs_fetch (no url) and 2 more. microsoft_code_sample_search (no query) answered "An error occurred invoking 'microsoft_code_sample_search'.".Fix: Name the parameter in the error and say what it expects, so the agent's next call can be right.
  • 5 of 5 errors are empty, generic or a stack trace: microsoft_code_sample_search (no query) answered "An error occurred invoking 'microsoft_code_sample_search'.".Fix: Write the error for the model that reads it: what was wrong, and what a valid call looks like.
  • Errors come back as tool results (isError: true), which every client shows to the model.

Responses

100/100
  • The largest of 3 responses is about 2,300 tokens (microsoft_code_sample_search).
  • Results match the output schemas the tools declare.
  • 3 calls: median 0.2 s, slowest 0.5 s.

Evidence

What the server answered

Every call we made, what we sent and what came back. A wrong call should be refused with an error that names the parameter, so the agent’s next call can be right.

ToolWe sentResultWhat the agent readsTime
microsoft_code_sample_searchA plain callAnsweredAbout 2,272 tokens0.5 s
microsoft_code_sample_searchLeft out queryRefused, parameter not namedAn error occurred invoking 'microsoft_code_sample_search'.0.4 s
microsoft_code_sample_searchWrong type for queryRefused, parameter not namedAn error occurred invoking 'microsoft_code_sample_search'.0.4 s
microsoft_docs_fetchA plain callAnsweredThe provided URL is not a valid Microsoft documentation webpage link.0.2 s
microsoft_docs_fetchLeft out urlRefused, parameter not namedAn error occurred invoking 'microsoft_docs_fetch'.0.3 s
microsoft_docs_fetchWrong type for urlRefused, parameter not namedAn error occurred invoking 'microsoft_docs_fetch'.0.2 s
microsoft_docs_searchA plain callAnswered{"results":[]}0.2 s
microsoft_docs_searchWrong type for queryRefused, parameter not namedAn error occurred invoking 'microsoft_docs_search'.0.3 s

Fix first

3 fixes, by points lost

  1. Name the parameter in the error and say what it expects, so the agent's next call can be right. Error quality
  2. Write the error for the model that reads it: what was wrong, and what a valid call looks like. Error quality
  3. Add a limit with a small default, and a cursor when there can be more: the agent pays for every row it didn't need. Parameters
Paste into your coding agent, in the server's repository
Improve the MCP server at https://learn.microsoft.com/api/mcp so AI agents can use it. A test on 1 December 2026 (https://trybackloop.com/mcp/microsoft-learn) found:

1. 5 of 5 errors don't name the parameter that was wrong: `microsoft_code_sample_search` (no `query`), `microsoft_code_sample_search` (wrong type for `query`), `microsoft_docs_fetch` (no `url`) and 2 more. `microsoft_code_sample_search` (no `query`) answered "An error occurred invoking 'microsoft_code_sample_search'.".
   Fix: Name the parameter in the error and say what it expects, so the agent's next call can be right.
2. 5 of 5 errors are empty, generic or a stack trace: `microsoft_code_sample_search` (no `query`) answered "An error occurred invoking 'microsoft_code_sample_search'.".
   Fix: Write the error for the model that reads it: what was wrong, and what a valid call looks like.
3. 2 of 2 list or search tools have no way to ask for less (no limit, page or cursor parameter): `microsoft_docs_search`, `microsoft_code_sample_search`.
   Fix: Add a `limit` with a small default, and a cursor when there can be more: the agent pays for every row it didn't need.

Keep tool names stable. After the change, check each fix against the tool list and one call per tool.

Alternatives

Microsoft Learn alternatives, same test

The other cloud docs servers on the board, tested the same day. A higher score means an agent has less to guess, not that the product behind it is better.

#ServerToolsBiggest gapScore
1AWS Knowledgeknowledge-mcp.global.api.aws5No instructions on connect92
2Cloudflare Docsdocs.mcp.cloudflare.com/mcp2Its only parameter is undescribed83
3Google Developer Knowledgedeveloperknowledge.googleapis.com/mcp3Errors don't name the parameter82
3Microsoft Learnlearn.microsoft.com/api/mcp3Errors don't name the parameter82

Your server?

Fixed something? Run it again.

This page is the run of 1 December 2026. The live test takes a few seconds and shows the current result.

About 20 public requests, plus a few calls to the tools the server marks read-only. No other tool is called. No signup, nothing stored.

After the test

A test finds what is wrong with the interface.
It can’t see what agents wanted.

An agent that gives up, or takes the slow way round, still gets a 200 on every call, so your logs never show it. Backloop collects what agents were trying to do and couldn’t, groups it, and opens the pull request that fixes it.