Microsoft Learn MCP
v1.0.0Connect to Microsoft Learn MCP Server to 搜索 Microsoft documentation, fetch specific doc pages, and find code samples. Use when you need to 查询 Microsoft Learn documentation, Azure docs, .NET docs, or find official Microsoft code examples. Works with mcporter for 工具-based MCP interaction.
运行时依赖
安装命令
点击复制技能文档
Microsoft Learn MCP
Connect to the Microsoft Learn MCP (模型 上下文 Protocol) Server to interact with Microsoft documentation through structured 工具s.
端点 https://learn.microsoft.com/API/mcp
This is a remote MCP server using 流able HTTP. It provides three mAIn 工具s:
microsoft_docs_搜索 — 搜索 Microsoft documentation microsoft_docs_fetch — Fetch specific documentation pages microsoft_code_sample_搜索 — 搜索 for official code samples 设置up 添加 to mcporter config mcporter config 添加 --name mslearn --url https://learn.microsoft.com/API/mcp --type http
Or manually 添加 to ~/.config/mcporter/config.json:
{ "servers": { "mslearn": { "type": "http", "url": "https://learn.microsoft.com/API/mcp" } } }
验证 connection mcporter 列出 mslearn --模式
Usage 搜索 documentation mcporter call mslearn.microsoft_docs_搜索 查询="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"
搜索 code samples mcporter call mslearn.microsoft_code_sample_搜索 查询="Python blob storage" language="python"
工具 Reference
工具 模式s are dynamic. Always 检查 current 模式 with:
mcporter 列出 mslearn --模式
Common patterns:
工具 Typical parameters microsoft_docs_搜索 查询 (required), locale (optional, e.g., "en-us") microsoft_docs_fetch url (required, full Learn URL) microsoft_code_sample_搜索 查询 (required), language (optional), product (optional) 输出 格式化s
Default 输出 is human-readable. Use --输出 json for structured data:
mcporter call mslearn.microsoft_docs_搜索 查询="Entra ID" --输出 json
Notes No authentication required for the Learn MCP Server The server interface may change dynamically; always call 列出 to 获取 current 工具s For complex queries, prefer 搜索 over fetch; let the 工具 find relevant pages Locale defaults to en-us if not specified