
官方 Microsoft Learn MCP 服务器和 CLI 工具——为 LLM 和 AI 代理提供实时、可信赖的 Microsoft 文档和代码样本。
概览
让你的AI助手(Claude、Cursor、Copilot、Codex等)直接访问最新的官方Microsoft文档。 停止依赖过时的训练数据或冒险的网页搜索。Learn MCP 服务器提供安全、直接访问 Microsoft 官方文档。 * 🧠 阻止你的人工智能发明不存在的Azure SDK方法或幻觉库包。获得真正能编译的代码。 🔌 * 无需API密钥,无需登录,无需注册。只需一键安装,立即开始编码。 * 🛡️ 保护您的供应链。与可能抓取不安全博客或恶意网站的通用网络搜索不同,该工具访问的是官方的 Microsoft 第一方文档。 * 💸 高搜索能力,专为无缝、繁重的编码会话量身定制。 “给我Azure CLI命令,创建带有托管身份的Azure容器应用。” “gpt-5.4 在 Azure 欧盟地区可用吗?”
概述(AI 翻译)
停止AI幻觉。 让你的AI助手(Claude、光标、副驾驶、Codex等)直接访问最新的官方Microsoft文档。
** ✨ 免费。一键安装。无需密钥。**
🎯 为什么要安装这个?
停止依赖过时的训练数据或冒险的网页搜索。Learn MCP 服务器提供安全、直接访问 Microsoft 官方文档。
-
🧠 消除幻觉。 阻止你的AI发明不存在的Azure SDK方法或幻觉库包。获得真正能编译的代码。
-
🔌 即插即用(无授权)。 无需API密钥,无需登录,无需注册。只需一键安装,立即开始编程。
-
🛡️ 100%值得信赖且安全。 保护您的供应链。与可能抓取不安全博客或恶意网站的通用网络搜索不同,该工具仅访问官方第一方Microsoft文档。
-
💸 完全免费。 高搜索功能,专为无缝且繁重的编码会话量身定制。
✨ 示例提示
“给我 Azure CLI 命令,创建带有托管身份的 Azure 容器应用。”
“gpt-5.4 在 Azure EU 区域可用吗?”
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
🌟 Microsoft Learn MCP Server
Stop AI Hallucinations. Give your AI assistant (Claude, Cursor, Copilot, Codex, …) direct access to the latest official Microsoft documentation.
✨ Free. One-click install. No key needed.
🎯 Why install this?
Stop relying on outdated training data or risky web searches. Learn MCP server provides secure, direct access to Microsoft official docs.
-
🧠 Eliminate Hallucinations. Stop your AI from inventing non-existent Azure SDK methods or hallucinating library packages. Get code that actually compiles.
-
🔌 Plug & Play (No Auth). No API keys, no logins, no sign-ups required. Just one-click install and start coding immediately.
-
🛡️ 100% Trusted & Safe. Protect your supply chain. Unlike generic web searches that may scrape insecure blogs or malicious sites, this tool only accesses official 1st-party Microsoft documentation.
-
💸 Completely Free. High search capacity tailored for seamless, heavy coding sessions.
✨ Example Prompts
“Give me the Azure CLI commands to create an Azure Container App with a managed identity.”
“Is gpt-5.4 available in Azure EU regions?”
“Are you sure this is the right way to implement
IHttpClientFactoryin a .NET 8 minimal API?”
“Show me runnable Python code to do harms eval using the Azure AI Foundry evaluation SDK.”
🌐 The Microsoft Learn MCP Server Endpoint
The Microsoft Learn MCP Server is accessible to any IDE, agent, or tool that supports the Model Context Protocol (MCP). Any compatible client can connect to the following remote MCP endpoint:
https://learn.microsoft.com/api/mcp
Note: This URL is intended for use within a compliant MCP client via Streamable HTTP, such as the recommended clients listed in our Getting Started section. It does not support direct access from a web browser and may return a
405 Method Not Allowederror if accessed manually. For developers who need to build their own solution, please follow the mandatory guidelines in the Building a Custom Client section to ensure your implementation is resilient and supported.
Standard config works in most clients:
{
"servers": {
"microsoft-learn": {
安装
npx @microsoft/learn-cli search "azure functions timeout"