| name | microsoft-learn-mcp |
| description | Microsoft Learn MCP Server integration for accessing official Microsoft documentation |
| license | MIT |
| targets | ["*"] |
| tags | ["microsoft","learn","mcp","documentation","skill"] |
| version | 0.0.1 |
| author | dotnet-agent-harness |
| invocable | true |
| claudecode | {"allowed-tools":["Read","Grep","Glob","Bash","Write","Edit"]} |
| opencode | {"allowed-tools":["Read","Grep","Glob","Bash","Write","Edit"]} |
| codexcli | {"short-description":"Toolkit guidance for microsoft-learn-mcp"} |
| copilot | {} |
| geminicli | {} |
| antigravity | {} |
| category | fundamentals |
| subcategory | coding-standards |
Microsoft Learn MCP
Access trusted and up-to-date Microsoft Learn documentation via the Model Context Protocol (MCP).
Overview
The Microsoft Learn MCP Server enables AI agents and development environments to bring official Microsoft documentation
directly into their workflows. It provides a remote MCP server endpoint that supports searching documentation, fetching
complete articles, and searching through code samples.
Endpoint
https://learn.microsoft.com/api/mcp
Note: This endpoint is designed for programmatic access by MCP clients via Streamable HTTP. It does not support
direct access from a web browser.
Use Cases
- Enhance agentic IDEs like VS Code and Visual Studio with Learn content
- Leverage Learn content in Copilot Studio agents, Foundry agents, and custom solutions
- Enable engineers to use official Microsoft documentation in their flow of work
- Access up-to-date API references, conceptual documentation, and code samples
Capabilities
Search Documentation
Search through Microsoft's official documentation using natural language queries:
- API references
- Conceptual documentation
- Quickstarts and tutorials
- Code samples and examples
Fetch Complete Articles
Retrieve full documentation articles with:
- Complete content and structure
- Code samples and examples
- Related links and references
- Version-specific information
Code Sample Search
Find relevant code samples across Microsoft documentation:
- C# examples
- Configuration samples
- Best practice implementations
- Platform-specific code
Supported Clients
The Microsoft Learn MCP Server works with:
- GitHub Copilot (VS Code, Visual Studio)
- Microsoft Copilot Studio
- Azure AI Foundry
- Custom MCP clients
- Any MCP-compatible agentic development environment
Getting Started
VS Code
- Install the MCP extension or use GitHub Copilot
- Configure the Microsoft Learn MCP Server endpoint
- Start querying Microsoft Learn content
See: Get Started in VS Code
Azure AI Foundry
- Access your Foundry project
- Add the Microsoft Learn MCP Server as a data source
- Use in your agent workflows
See: Get Started in Foundry
Requirements
Limitations
- Contains publicly available documentation only
- Does not include training modules, learning paths, instructor-led courses, or exams (use
Learn Catalog API for those)
- Knowledge service refreshes incrementally after content updates and completely once daily
- Updates communicated via Release Notes
Best Practices
- Use for Documentation References: Query for API documentation, conceptual guides, and samples
- Combine with Other Tools: Use alongside code search tools for comprehensive context
- Validate Critical Information: For production-critical decisions, verify against latest official docs
- Cache Strategically: Consider caching responses for frequently accessed documentation
Related Resources