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.
Connect
How to add the Microsoft Learn MCP server
The server speaks Streamable HTTP at the address below. Listing its tools needs no key.
https://learn.microsoft.com/api/mcp
claude mcp add --transport http microsoft-learn https://learn.microsoft.com/api/mcp
{
"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.
| Tool | What the server says it does |
|---|---|
microsoft_docs_search | Search 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… |
microsoft_code_sample_search | Search for code snippets and examples in official Microsoft Learn documentation. This tool retrieves relevant code samples from Microsoft documentation pages providing developers with… |
microsoft_docs_fetch | Fetch and convert a Microsoft Learn documentation webpage to markdown format. This tool retrieves the latest complete content of Microsoft documentation webpages including Azure, .NET,… |
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 alimitwith 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(noquery),microsoft_code_sample_search(wrong type forquery),microsoft_docs_fetch(nourl) and 2 more.microsoft_code_sample_search(noquery) 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(noquery) 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.
| Tool | We sent | Result | What the agent reads |
|---|---|---|---|
microsoft_code_sample_search | A plain call | Answered | About 2,272 tokens |
microsoft_code_sample_search | Left out query | Refused, parameter not named | An error occurred invoking 'microsoft_code_sample_search'. |
microsoft_code_sample_search | Wrong type for query | Refused, parameter not named | An error occurred invoking 'microsoft_code_sample_search'. |
microsoft_docs_fetch | A plain call | Answered | The provided URL is not a valid Microsoft documentation webpage link. |
microsoft_docs_fetch | Left out url | Refused, parameter not named | An error occurred invoking 'microsoft_docs_fetch'. |
microsoft_docs_fetch | Wrong type for url | Refused, parameter not named | An error occurred invoking 'microsoft_docs_fetch'. |
microsoft_docs_search | A plain call | Answered | {"results":[]} |
microsoft_docs_search | Wrong type for query | Refused, parameter not named | An error occurred invoking 'microsoft_docs_search'. |
Fix first
3 fixes, by points lost
- Name the parameter in the error and say what it expects, so the agent's next call can be right. Error quality
- Write the error for the model that reads it: what was wrong, and what a valid call looks like. Error quality
- Add a
limitwith a small default, and a cursor when there can be more: the agent pays for every row it didn't need. Parameters
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.
| # | Server | Biggest gap | Score |
|---|---|---|---|
| 1 | No instructions on connect | 92 | |
| 2 | Its only parameter is undescribed | 83 | |
| 3 | Errors don't name the parameter | 82 | |
| 3 | Errors don't name the parameter | 82 |
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.