Microsoft Learn MCP
by @ricardodpalmeida
Connect to Microsoft Learn MCP Server to search Microsoft documentation, fetch specific doc pages, and find code samples. Use when you need to query Microsof...
clawhub install mslearn-mcpπ About This Skill
name: mslearn-mcp description: Connect to Microsoft Learn MCP Server to search Microsoft documentation, fetch specific doc pages, and find code samples. Use when you need to query Microsoft Learn documentation, Azure docs, .NET docs, or find official Microsoft code examples. Works with mcporter for tool-based MCP interaction.
Microsoft Learn MCP
Connect to the Microsoft Learn MCP (Model Context Protocol) Server to interact with Microsoft documentation through structured tools.
Endpoint
https://learn.microsoft.com/api/mcp
This is a remote MCP server using streamable HTTP. It provides three main tools:
microsoft_docs_search β Search Microsoft documentationmicrosoft_docs_fetch β Fetch specific documentation pagesmicrosoft_code_sample_search β Search for official code samplesSetup
Add to mcporter config
mcporter config add --name mslearn --url https://learn.microsoft.com/api/mcp --type http
Or manually add to ~/.config/mcporter/config.json:
{
"servers": {
"mslearn": {
"type": "http",
"url": "https://learn.microsoft.com/api/mcp"
}
}
}
Verify connection
mcporter list mslearn --schema
Usage
Search documentation
mcporter call mslearn.microsoft_docs_search query="Azure Functions triggers"
Fetch a specific doc page
mcporter call mslearn.microsoft_docs_fetch url="https://learn.microsoft.com/en-us/azure/azure-functions/functions-triggers-bindings"
Search code samples
mcporter call mslearn.microsoft_code_sample_search query="Python blob storage" language="python"
Tool Reference
Tool schemas are dynamic. Always check current schema with:
mcporter list mslearn --schema
Common patterns:
| Tool | Typical parameters |
|------|-------------------|
| microsoft_docs_search | query (required), locale (optional, e.g., "en-us") |
| microsoft_docs_fetch | url (required, full Learn URL) |
| microsoft_code_sample_search | query (required), language (optional), product (optional) |
Output formats
Default output is human-readable. Use --output json for structured data:
mcporter call mslearn.microsoft_docs_search query="Entra ID" --output json
Notes
list to get current toolsπ‘ Examples
Search documentation
mcporter call mslearn.microsoft_docs_search query="Azure Functions triggers"
Fetch a specific doc page
mcporter call mslearn.microsoft_docs_fetch url="https://learn.microsoft.com/en-us/azure/azure-functions/functions-triggers-bindings"
Search code samples
mcporter call mslearn.microsoft_code_sample_search query="Python blob storage" language="python"
βοΈ Configuration
Add to mcporter config
mcporter config add --name mslearn --url https://learn.microsoft.com/api/mcp --type http
Or manually add to ~/.config/mcporter/config.json:
{
"servers": {
"mslearn": {
"type": "http",
"url": "https://learn.microsoft.com/api/mcp"
}
}
}
Verify connection
mcporter list mslearn --schema
π Tips & Best Practices
list to get current tools