The Microsoft Learn MCP Server provides AI-powered access to official Microsoft and Azure documentation, enabling assistants to ground their answers in accurate, first-party knowledge. It connects directly to Microsoft Learn and other trusted Microsoft sources, ensuring responses are always based on the latest official content.
The server offers three complementary tools focused on documentation retrieval and code assistance. These include searching documentation for relevant content chunks, fetching complete webpages in markdown format, and retrieving official code samples for Microsoft/Azure development tasks.
Together, these tools help developers, IT professionals, and learners get trustworthy answers, step-by-step guidance, and practical code examples across the entire Microsoft ecosystem—including Azure, .NET, Microsoft 365, and Copilot technologies.
Quickly search across Microsoft Learn to find relevant, accurate content for any Microsoft/Azure question, ensuring responses reflect first-party knowledge.
How do I configure managed identities for an Azure App Service to access Azure Key Vault?When a search result is truncated or highly relevant, fetch the full documentation page to get comprehensive procedures, prerequisites, and troubleshooting details.
Give me the complete step-by-step tutorial for deploying a containerized app to Azure Kubernetes Service, including all prerequisites.Retrieve up-to-date, official code snippets when writing Microsoft/Azure related code, filtered by your preferred programming language.
Show me a C# code sample for uploading a file to Azure Blob Storage using the latest Azure.Storage.Blobs SDK.Search documentation to understand differences between Microsoft services and get authoritative guidance for architectural choices.
What's the difference between Azure Functions and Azure Logic Apps, and when should I use each based on official Microsoft guidance?Search and fetch detailed troubleshooting sections from Microsoft docs to resolve specific errors or configuration issues.
I'm getting a "403 Forbidden" error when calling the Microsoft Graph API. Find the official troubleshooting steps to fix this.Combine documentation search with code sample retrieval to fully understand how to use a specific SDK, class, or method.
Explain how to use the Azure OpenAI Python SDK to create chat completions, and include a working code example.Retrieve official command-line samples for automating Azure resource management and administrative tasks.
Give me a PowerShell script to create a new Azure resource group and deploy a virtual machine into it using official examples.Search the latest documentation to stay current with new capabilities and recommended best practices across Microsoft products.
What are the current best practices for securing a .NET 8 web API with Microsoft Entra ID authentication?