---
title: "How we built the Microsoft Learn MCP Server"
description: "Microsoft Learn's MCP Server is a remote Model Context Protocol endpoint, built with the official C# MCP SDK on Azure App Service, that exposes three agent tools (docs search, docs fetch, code sample search) over Streamable HTTP."
url: "https://swe.quest/articles/how-we-built-the-microsoft-learn-mcp-server-0014fb713a8036c2"
canonical: "https://devblogs.microsoft.com/engineering-at-microsoft/how-we-built-the-microsoft-learn-mcp-server/"
source: "Engineering@Microsoft"
published: "2026-02-11"
difficulty: "medium"
kind: "Case study"
reading_minutes: 5
tags: ["ai-agents","api-design","rag","dotnet"]
---

# How we built the Microsoft Learn MCP Server

A post on [Engineering@Microsoft](https://swe.quest/sources/ms-engineering.md), published 2026-02-11, 5 min read, Case study. Original: [https://devblogs.microsoft.com/engineering-at-microsoft/how-we-built-the-microsoft-learn-mcp-server/](https://devblogs.microsoft.com/engineering-at-microsoft/how-we-built-the-microsoft-learn-mcp-server/)

## Summary

Microsoft Learn's MCP Server is a remote Model Context Protocol endpoint, built with the official C# MCP SDK on Azure App Service, that exposes three agent tools (docs search, docs fetch, code sample search) over Streamable HTTP. It sits on the same vector-store knowledge service that powers Ask Learn. The team's lessons: design tools around the agent's search-and-read workflow rather than mirroring internal retrieval parameters, and treat the server as a stateless multi-region distributed service. They also found that tool descriptions measurably change activation rates, so they tune them with automated evals, and that some clients hardcode schemas anyway: renaming a parameter from question to query broke 2–5% of requests until both names were accepted during a deprecation window.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [AI agents](https://swe.quest/tags/ai-agents.md) (AI & ML)
- [API design](https://swe.quest/tags/api-design.md) (Backend & APIs)
- [RAG & retrieval](https://swe.quest/tags/rag.md) (AI & ML)
- [.NET](https://swe.quest/tags/dotnet.md) (Languages)

## Prerequisites

- Model Context Protocol basics
- LLM tool calling ([easy posts on LLMs](https://swe.quest/tags/llms.md?difficulty=easy))
- retrieval-augmented generation

## Keywords

Model Context Protocol, Microsoft Learn MCP Server, MCP C# SDK, Azure App Service, Azure AI Search, GitHub Copilot, MCP Interviewer, Ask Learn

## Related posts

- [How to build AI agents with MCP: 12 framework comparison (2025)](https://swe.quest/articles/how-to-build-ai-agents-with-mcp-12-framework-comparison-2025-21cb351a1cc659e0.md): ClickHouse · 2025-10-13 · Medium · 27 min read · AI agents, LLMs, Python
  Twelve agent SDKs now support the Model Context Protocol: Claude Agent SDK, OpenAI Agents SDK, Microsoft Agent Framework, Google ADK, CrewAI, Upsonic, mcp-agent, Agno, DSPy, LangChain, LlamaIndex and PydanticAI.
- [What’s MCP all about? Comparing MCP with LLM function calling](https://swe.quest/articles/what-s-mcp-all-about-comparing-mcp-with-llm-function-calling-fcce1ee01a7d0aed.md): Neon · 2025-03-12 · Medium · 5 min read · AI agents, LLMs, TypeScript
  The Model Context Protocol (MCP) builds on LLM function calling by moving tool definitions and execution out of individual LLM applications into standalone servers that any MCP-compatible client can discover and invoke.
- [You are Doing MCP Wrong: 3 Big Misconceptions](https://swe.quest/articles/you-are-doing-mcp-wrong-3-big-misconceptions-4ed8974e9536c439.md): Docker · 2025-09-03 · Medium · 4 min read · AI agents, LLMs, API design, Observability
  MCP is a model-facing protocol for LLM tool use and context exchange, not a replacement for REST or gRPC.
- [MCP in LangChain: Stateless Protocol, Elicitation, and More!](https://swe.quest/articles/mcp-in-langchain-stateless-protocol-elicitation-and-more-3388dd33c4368371.md): LangChain · 2026-10-13 · Medium · 5 min read · AI agents, Python, API design, Caching
  LangChain has moved MCP support into the main package as \`langchain.mcp\`, rebuilt on FastMCP to match the July 2026 stateless MCP spec, which drops sessions so remote servers no longer need sticky routing or a shared session store.
- [Designing MCP tools for agents: Lessons from building Datadog’s MCP server](https://swe.quest/articles/designing-mcp-tools-for-agents-lessons-from-building-datadog-s-mcp-server-d09621598f568627.md): Datadog Engineering · 2026-03-04 · Medium · 8 min read · AI agents, API design, LLMs, Observability
  Thin API wrappers make poor MCP tools: agents flood their context windows, blow token budgets on oversized records, and infer trends from raw samples.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
