微算力 · API 导航与自营网关
API 接入 EN
未登录登录
📚

微软官方文档智能检索

Microsoft Learn MCP · v1.0.0
办公 安全 S 级 作者 ricardodpalmeida 公开目录收录
1.1k 下载 2 安装 2.9k 收藏 4 浏览

简介

微软官方Learn文档与代码示例MCP服务,支持Azure、.NET等技术栈检索与获取

原始描述

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...

通过你的 Agent 添加

安装目录:mslearn-mcp/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。

点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。

或者手动安装

Claude Code~/.claude/skills/microsoft-learn-mcp/
Codex CLI~/.codex/skills/microsoft-learn-mcp/
DeepSeek Harness~/.agents/skills/microsoft-learn-mcp/

包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可; 目录名不用换,也不要把包直接解压到 skills 根目录。 技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。

技能正文


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 documentation
  • microsoft_docs_fetch — Fetch specific documentation pages
  • microsoft_code_sample_search — Search for official code samples

Setup

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

  • No authentication required for the Learn MCP Server
  • The server interface may change dynamically; always call list to get current tools
  • For complex queries, prefer search over fetch; let the tool find relevant pages
  • Locale defaults to en-us if not specified

正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。

标签

microsoftazuredocumentationcode-samplesmcpofficial-apicloud

同类 Skill