Is the Microsoft Learn MCP server safe? What it can reach
What the Microsoft Learn MCP server can read, write and delete, how it signs in, and how to limit it in Claude Code and Codex.
Microsoft hosts this remote server at learn.microsoft.com. It needs no sign-in and has three tools that search and fetch official Microsoft documentation and code samples. It has no write or delete tools and no account access. The main risk is untrusted text coming back into the agent.
Who maintains it
| Implementation | Kind | Status |
|---|---|---|
| Microsoft Learn MCP Server (MicrosoftDocs/mcp) | Official | active |
It runs as a hosted remote server. The documented endpoint is https://learn.microsoft.com/api/mcp.
How it signs in
No API key or sign-in. The server reads public Microsoft documentation, so it acts with no account rights.
What its tools can do
| Kind | Tools |
|---|---|
| Read | microsoft_docs_search, microsoft_docs_fetch, microsoft_code_sample_search |
| Write | none documented |
| Can’t be undone | none documented |
All three tools are searches or page fetches. The README also describes a separate npm command line tool, @microsoft/learn-cli, which is not the MCP server.
Built-in limits
| Option | What it does |
|---|---|
maxTokenBudget query parameter | An experimental option that truncates search responses to a token budget, for example ?maxTokenBudget=2000. |
The risks
- Page text returned by microsoft_docs_fetch goes straight into the agent’s context. A page can contain text that reads like instructions, so treat it as data.
- The server is remote, so each query and URL you ask it to fetch is sent to Microsoft’s service.
- The README says the server reads only first-party Microsoft documentation. That narrows the sources, but it does not make fetched text safe to follow.
Limit it in Claude Code
Add it from the documented launch settings, at local or user scope so a token never lands in a shared .mcp.json:
claude mcp add --transport http microsoft-learn https://learn.microsoft.com/api/mcpClaude Code names MCP tools mcp__microsoft-learn__<tool>. Once you know the tool names, deny the ones you won’t use and set the rest to ask in .claude/settings.json.
Limit it in Codex
Codex reads MCP servers from ~/.codex/config.toml. disabled_tools removes tools, and enabled_tools keeps only the ones you list:
[mcp_servers.microsoft-learn]
url = "https://learn.microsoft.com/api/mcp"Checklist
- Use it for documentation lookups and keep it away from servers that can write.
- Treat fetched page text as data, not instructions.
- Remember that your queries and fetched URLs go to Microsoft’s service.
- Add maxTokenBudget if search results use too much context.
Checked against the vendor documentation on November 25, 2026. Microsoft Learn MCP Server README · Microsoft Learn MCP Server repository
What Excellent covers
Excellent doesn’t inspect MCP servers themselves. Its free scan reads supported logs on the Mac (Claude Code, Codex, Grok Build, GitHub Copilot CLI, Gemini CLI and Qwen Code) and reports findings for review, so you can see what an agent did after a session. Run the free scan · See a sample report · How to vet any MCP server
Excellent Pro adds checks before supported actions. Claude Code can display an ask prompt. With Codex, an Excellent “ask” refuses the action and tells the agent to ask you. Pro is US-only for now. Agent coverage · Pricing