# Microsoft Learn Docs (MCP Server)

> Search and fetch official Microsoft Learn documentation and code samples

- Type: MCP server
- Publisher: Microsoft (official)
- Categories: Development, Research, Education
- Website: https://learn.microsoft.com/en-us/training/support/mcp
- Transport: streamable-http
- Server URL: https://learn.microsoft.com/api/mcp
- Sign-in: none
- Listed: 2025-06-10

## About

The Microsoft Learn MCP Server is a free remote Streamable HTTP server that brings trusted, up-to-date Microsoft documentation into AI agents. Agents can search docs, fetch complete articles and search code samples. No authentication is required.

## Install

1. **Connect it in ChatGPT** Turn on Developer mode in ChatGPT (Settings → Security and login), open Plugins, select + and paste https://learn.microsoft.com/api/mcp as the MCP server URL. Add it to a chat from the composer's tools menu.

2. **Or add it to Codex or the API**

   Codex CLI:

   ```bash
   codex mcp add microsoft-learn --url https://learn.microsoft.com/api/mcp
   ```

   config.toml:

   ```toml
   [mcp_servers.microsoft-learn]
   url = "https://learn.microsoft.com/api/mcp"
   ```

   Responses API:

   ```python
   from openai import OpenAI
   
   client = OpenAI()
   
   response = client.responses.create(
       model="gpt-6-astra",
       tools=[{
           "type": "mcp",
           "server_label": "microsoft_learn",
           "server_url": "https://learn.microsoft.com/api/mcp",
           "require_approval": "never",
       }],
       input="How do I configure managed identity for an Azure Function?",
   )
   print(response.output_text)
   ```

## Tools

- `microsoft_docs_search`
- `microsoft_docs_fetch`
- `microsoft_code_sample_search`

## Example prompts

- "How do I configure managed identity for an Azure Function?"
- "Find a C# code sample for uploading a blob to Azure Storage"
- "Fetch the full Microsoft Learn article on .NET 9 breaking changes"
- "What are the limits for Azure Cosmos DB serverless?"

## Also available as

- plugin: [Teams](https://chatgptplugins.directory/plugins/teams.md)
- app: [SharePoint](https://chatgptplugins.directory/apps/sharepoint.md)

## Related

- [Chrome DevTools MCP](https://chatgptplugins.directory/mcp/chrome-devtools.md): Let coding agents control and debug a live Chrome browser
- [Playwright MCP](https://chatgptplugins.directory/mcp/playwright.md): Browser automation for agents via Playwright accessibility snapshots
- [GitHub](https://chatgptplugins.directory/mcp/github.md): Manage repos, issues, pull requests and Actions from your AI agent
- [Context7](https://chatgptplugins.directory/mcp/context7.md): Pull up-to-date, version-specific library docs into your coding agent
- [Supabase](https://chatgptplugins.directory/mcp/supabase.md): Manage Supabase databases, migrations, edge functions and logs
- [Stripe](https://chatgptplugins.directory/mcp/stripe.md): Query and act on your Stripe account and search Stripe docs from any agent

---
Source: https://chatgptplugins.directory/mcp/microsoft-learn · Index: https://chatgptplugins.directory/llms.txt · Independent and community-run. Not affiliated with or endorsed by OpenAI. ChatGPT is a trademark of OpenAI.
