Install
openclaw skills install @ricardodpalmeida/mslearn-mcpGround answers about Azure, .NET, Microsoft 365, Power Platform, Entra ID, Windows and SQL Server in official Microsoft Learn docs and code samples, through Microsoft's free Learn MCP server (native OpenClaw MCP, no API key). Use when the user asks about a Microsoft product, service, API or CLI, or wants an answer checked against Microsoft Learn.
openclaw skills install @ricardodpalmeida/mslearn-mcpThe Microsoft Learn MCP server (https://learn.microsoft.com/api/mcp) is a free, public, read-only endpoint over Streamable HTTP. It needs no API key and exposes three tools.
| Tool | Parameters | Returns |
|---|---|---|
microsoft_docs_search | query (string, required) | Relevant excerpts from Microsoft Learn, each with title and URL |
microsoft_docs_fetch | url (string, required, a Microsoft Learn URL) | The whole page as markdown |
microsoft_code_sample_search | query (string, required), language (string, optional, for example python, csharp, typescript, powershell) | Official code snippets with their source URLs |
There is no locale or product parameter. Put the product name in the query instead.
Use it when the answer depends on what Microsoft documents today: service limits, SKUs, region availability, API and SDK signatures, CLI flags, configuration steps, deprecations and error messages. Also use it when the user asks for a source. Do not use it for general programming questions, for non-Microsoft products, or when the user has not asked about a Microsoft technology.
Check these in order and use the first one that works.
1. Native OpenClaw MCP (preferred). Run openclaw mcp list. If it lists mslearn (or another server pointing at learn.microsoft.com/api/mcp), the three tools are already in your tool list: call them directly. If it is missing, setting it up changes the OpenClaw config, so ask the user first, then run:
openclaw mcp add mslearn --url https://learn.microsoft.com/api/mcp --transport streamable-http
openclaw mcp doctor mslearn --probe
The probe must report the three tools. With Gateway hot reload on, the tools appear from the next turn; otherwise the Gateway needs a restart, which is also the user's call.
2. Microsoft Learn CLI (no config change). Needs Node.js 22 or newer. The version is pinned so behaviour does not change underneath you.
npx -y @microsoft/learn-cli@1.0.0 search "Azure Functions Flex Consumption timeout"
npx -y @microsoft/learn-cli@1.0.0 fetch "https://learn.microsoft.com/en-us/azure/azure-functions/functions-scale" --section "<heading>" --max-chars 6000
npx -y @microsoft/learn-cli@1.0.0 code-search "upload blob with managed identity" --language python
npx -y @microsoft/learn-cli@1.0.0 doctor
search and code-search accept --json. Run doctor when a call fails; it checks Node, the endpoint, the MCP handshake and tool discovery.
3. mcporter (only if the host already uses it). An ad-hoc call needs no config:
mcporter call https://learn.microsoft.com/api/mcp.microsoft_docs_search query="Entra ID app roles"
To keep a named server, ask the user first, then mcporter config add mslearn https://learn.microsoft.com/api/mcp --scope home and call mcporter call mslearn.microsoft_docs_search query="...". mcporter list mslearn --schema shows the live tool schemas.
learn.microsoft.com/answers/...). Prefer the documentation page when they disagree, and say when an answer rests only on a Q&A post. Answer from the search excerpts when they are enough. Fetch a page only when you need full steps, a complete table, or an excerpt that was cut off, and fetch at most two pages per question. With the CLI, narrow a fetch with --section and --max-chars.microsoft_code_sample_search with language set. Prefer the snippet's own SDK version and package names over what you remember.openclaw mcp probe mslearn, mcporter list mslearn --schema or the CLI doctor) and adapt.More detail, including experimental endpoint options and troubleshooting: references/mcp-details.md.
Made by Ricardo Pacheco Almeida, who writes about applied AI at ricbits. Other OpenClaw skills: whetstone, LadybugDB openCypher, Book Capture for Obsidian, Excalidraw Diagrams for Obsidian.