microsoft_docs_searchLABSCO SUMMARY
Answers come from the published docs, not from a model's recollection of them.
The scope is the point: it reads first-party Learn content and nothing else, so questions about Azure, .NET and the rest resolve against what Microsoft currently publishes. The knowledge service behind it refreshes incrementally after content changes, with a full refresh once a day.
What it is
Microsoft's own remote MCP server for Microsoft Learn. It serves the Learn knowledge service — the same content behind Ask Learn — over Streamable HTTP. It carries publicly available documentation only, not training records or user profile information.
What you get
- Semantic search across Microsoft's official technical documentation — microsoft_docs_search
- Fetch a documentation page and get it back as markdown — microsoft_docs_fetch
- Search official Microsoft and Azure code samples, optionally filtered by programming language — microsoft_code_sample_search
- Cap how much a search response can return by appending maxTokenBudget to the endpoint URL
- The same three capabilities from a terminal, without an MCP client, via the @microsoft/learn-cli package
Requirements
Nothing to sign up for: no authentication, no key, no charge. Point a client that speaks Streamable HTTP at https://learn.microsoft.com/api/mcp — opening that address in a browser will not render anything, which is expected. Using it means accepting the Microsoft Learn Terms of Use.
Setup effort
Paste a URL — add the endpoint to your client
USE CASES
Checking an API before you build on it
Search the official docs for the current signature instead of trusting a half-remembered one.
Reading the whole page
Pull a documentation article into context as markdown when a snippet is not enough.
Starting from code that already works
Find Microsoft's own samples for the task, narrowed to your language.
Settling an availability question
Ask whether a service or model is offered in a given region and get the documented answer.
Reviewing an implementation against current guidance
Compare what you wrote with the documented pattern and the sample Microsoft publishes for it.
3 tools
Listed in project docs. Your client may show a different list.
microsoft_docs_fetchmicrosoft_code_sample_searchBEFORE YOU INSTALL
What to know first
Tools you get
3 tools named in the project's documentation.
Requires
A client that can reach a remote MCP server over HTTP
INSTALLATION
Connect your client
Add the endpoint to your client.
Server setup
https://learn.microsoft.com/api/mcpMCP Clients
VS Code
{
"servers": {
"microsoft-learn": {
"type": "http",
"url": "https://learn.microsoft.com/api/mcp"
}
}
}Cursor
{
"mcpServers": {
"microsoft-learn": {
"type": "http",
"url": "https://learn.microsoft.com/api/mcp"
}
}
}GitHub Copilot
/plugin install microsoftdocs/mcpClaude Code
/plugin install microsoft-docs@claude-plugins-officialCodex
codex mcp add "microsoft-learn" --url "https://learn.microsoft.com/api/mcp"Cline
{
"mcpServers": {
"microsoft-learn": {
"type": "streamableHttp",
"url": "https://learn.microsoft.com/api/mcp"
}
}
}Gemini CLI, Qwen Code
{
"mcpServers": {
"Microsoft Learn MCP Server": {
"httpUrl": "https://learn.microsoft.com/api/mcp"
}
}
}GitHub Copilot coding agent
{
"mcpServers": {
"mslearn": {
"type": "http",
"url": "https://learn.microsoft.com/api/mcp",
"tools": [
"*"
]
}
}
}Windsurf
{
"mcpServers": {
"microsoft-learn": {
"serverUrl": "https://learn.microsoft.com/api/mcp"
}
}
}Kiro
{
"mcpServers": {
"microsoft-learn": {
"url": "https://learn.microsoft.com/api/mcp"
}
}
}