# How to connect Microsoft Learn MCP to Claude

```json
{
  "title": "How to connect Microsoft Learn MCP to Claude",
  "toolkit": "Microsoft Learn MCP",
  "toolkit_slug": "microsoft_learn_mcp",
  "framework": "Claude Cowork",
  "framework_slug": "claude-cowork",
  "url": "https://composio.dev/toolkits/microsoft_learn_mcp/framework/claude-cowork",
  "markdown_url": "https://composio.dev/toolkits/microsoft_learn_mcp/framework/claude-cowork.md",
  "updated_at": "2026-12-01T05:32:48.750Z"
}
```

## Introduction

Claude is Anthropic's AI assistant, available on the web, in the desktop app, and on mobile. Cowork is its agent for knowledge work, and it runs on all of those surfaces too. Connected to your apps, Claude can work with your files and services to accomplish complex tasks on your behalf.
This guide walks you through the easiest and most secure way to connect your Microsoft Learn account to Claude via Composio Connect, enabling it to search Azure Functions authentication documentation, find Microsoft Graph pagination code samples, explain Azure Blob Storage lifecycle policies, and more such actions on your behalf without compromising your account security.
Setup is the same on Claude Web, Desktop, and Cowork, and you only need to do it once. The connector is tied to your account, so it's available in all three.
For exact tool slugs and parameter tables, see the [tool catalog in the Composio docs](https://docs.composio.dev/toolkits/microsoft_learn_mcp).

## Also integrate Microsoft Learn MCP with

- [ChatGPT](https://composio.dev/toolkits/microsoft_learn_mcp/framework/chatgpt)

## Connect Microsoft Learn MCP to Claude Cowork

### Connecting Microsoft Learn to Claude Web, Desktop, and Cowork
Two ways to add the Composio connector. Pick whichever you prefer.
### 1. Add with one click
Click the button. Claude opens with the Composio connector filled in. Click Add, then go to step 2.
[Add to Claude](https://claude.ai/customize/connectors?modal=add-custom-connector&connectorName=Composio&connectorUrl=https%3A%2F%2Fconnect.composio.dev%2Fmcp)
### Add manually
In Claude Desktop, click Customize in the left sidebar, then select Connectors and click the + icon at the top.
Click Add custom connector and paste in the Composio MCP server URL:

```bash
https://connect.composio.dev/mcp
```

## What is the Microsoft Learn MCP server, and what's possible with it?

The Microsoft Learn MCP server is an implementation of the Model Context Protocol that connects your AI agent and assistants like Claude, Cursor, etc directly to Microsoft Learn. It provides structured and secure access to official Microsoft and Azure documentation and code samples, so your agent can search documentation, find code examples, fetch documentation pages, and convert them to markdown on your behalf.
- Microsoft and Azure documentation search: Have your agent search official Microsoft Learn content to find relevant guidance for Microsoft and Azure products.
- Code sample discovery: Let the agent search official Microsoft Learn documentation for code snippets and examples related to your development task.
- Documentation retrieval: Direct your agent to fetch a specific Microsoft Learn webpage and retrieve its contents in markdown for easier reading and use.
- Research-ready technical context: Instruct your agent to combine documentation searches, code sample searches, and fetched pages when answering Microsoft or Azure development questions.

## Supported Tools

| Tool slug | Name | Description |
|---|---|---|
| `MICROSOFT_LEARN_MCP_MICROSOFT_CODE_SAMPLE_SEARCH` | Microsoft code sample search | Search for code snippets and examples in official Microsoft Learn documentation. This tool retrieves relevant code samples from Microsoft documentation pages providing developers with practical implementation examples and best practices for Microsoft/Azure products and services related coding tasks. This tool will help you use the **LATEST OFFICIAL** code snippets to empower coding capabilities. ## When to Use This Tool - When you are going to provide sample Microsoft/Azure related code snippets in your answers. - When you are **generating any Microsoft/Azure related code**. ## Usage Pattern Input a descriptive query, or SDK/class/method name to retrieve related code samples. The optional parameter `language` can help to filter results. Eligible values for `language` parameter include: csharp javascript typescript python powershell azurecli al sql java kusto cpp go rust ruby php |
| `MICROSOFT_LEARN_MCP_MICROSOFT_DOCS_FETCH` | Microsoft docs fetch | Fetch and convert a Microsoft Learn documentation webpage to markdown format. This tool retrieves the latest complete content of Microsoft documentation webpages including Azure, .NET, Microsoft 365, and other Microsoft technologies. ## When to Use This Tool - When search results provide incomplete information or truncated content - When you need complete step-by-step procedures or tutorials - When you need troubleshooting sections, prerequisites, or detailed explanations - When search results reference a specific page that seems highly relevant - For comprehensive guides that require full context ## Usage Pattern Use this tool AFTER microsoft_docs_search when you identify specific high-value pages that need complete content. The search tool gives you an overview; this tool gives you the complete picture. ## URL Requirements - The URL must be a valid HTML documentation webpage from the microsoft.com domain - Binary files (PDF, DOCX, images, etc.) are not supported ## Output Format markdown with headings, code blocks, tables, and links preserved. |
| `MICROSOFT_LEARN_MCP_MICROSOFT_DOCS_SEARCH` | Microsoft docs search | Search official Microsoft/Azure documentation to find the most relevant and trustworthy content for a user's query. This tool returns up to 10 high-quality content chunks (each max 500 tokens), extracted from Microsoft Learn and other official sources. Each result includes the article title, URL, and a self-contained content excerpt optimized for fast retrieval and reasoning. Always use this tool to quickly ground your answers in accurate, first-party Microsoft/Azure knowledge. ## Follow-up Pattern To ensure completeness, use microsoft_docs_fetch when high-value pages are identified by search. The fetch tool complements search by providing the full detail. This is a required step for comprehensive results. |

## Supported Triggers

None listed.

## Troubleshooting

### 1. Why does Claude not use the Composio connector for Microsoft Learn?

The connector can show as connected, but Claude must use it in each Microsoft Learn conversation.
- Click + at the lower left of the chat, or type /.
- Hover Connectors.
- Turn on Composio.
- Ask Claude to connect to Microsoft Learn again.

### 2. Why does Claude show an MCP server error before Microsoft Learn connects?

Claude can show Couldn't reach the MCP server or Authorization with the MCP server failed when you add the connector for Microsoft Learn.
- Check that the connector URL is https://connect.composio.dev/mcp.
- Connectors run from Anthropic's cloud, so your device network is usually not the problem.
- Add the connector again from Customize > Connectors, then ask Claude to connect Microsoft Learn.
- If it fails again, send the error and the ofid_ reference id to support@composio.dev.

### 3. Why does the Microsoft Learn authorization link not work?

The Composio connector is one server. Your Microsoft Learn account connects separately when Claude asks for it.
- If the browser does not open, or the link expires, ask Claude to retry the Microsoft Learn connection.
- Composio creates a fresh Microsoft Learn authorization link.
- Open that link in your browser and finish the Microsoft Learn sign-in.

### 4. Why do Microsoft Learn actions fail after they worked before?

The Microsoft Learn connection can expire or lose permission.
- Ask Claude to inspect the Microsoft Learn connection.
- If the connection is unhealthy, disconnect it when Claude prompts you.
- Reconnect the Microsoft Learn account and retry the action.
- If Claude shows a permission prompt, approve it before Claude changes data in Microsoft Learn.
- If the action still fails with a permission error, check that the connected account has that permission in Microsoft Learn itself.

### 5. How do I switch to a different Microsoft Learn account?

Claude can manage the Microsoft Learn connection for you.
- Ask Claude to disconnect or delete the current Microsoft Learn account.
- Ask Claude to connect Microsoft Learn again.
- Open the new Composio authorization link for Microsoft Learn.
- Sign in with the other Microsoft Learn account in the browser.
- After the account connects, ask Claude to retry the Microsoft Learn task.

### 6. Why is my Microsoft Learn connection missing in Claude Desktop or on a Team plan?

The connector belongs to your Claude account, so your Microsoft Learn connection works in Claude Web, Desktop, and Cowork.
- In Claude Desktop, open Customize > Connectors.
- Next to Composio, click ⋮ and click Clear cache.
- If Microsoft Learn tools still do not appear, click ⋮, disconnect, remove the connector, and add it again.
- On Team or Enterprise, an Owner or Primary Owner must enable the connector before you can connect Microsoft Learn.

## Creating MCP Server - Stand-alone vs Composio SDK

The Microsoft Learn MCP server connects Claude Web, Desktop, and Cowork to your Microsoft Learn account through Composio. Once connected, Claude can use the available Microsoft Learn tools and triggers to complete tasks on your behalf.

## Complete Code

None listed.

## How to build Microsoft Learn MCP Agent with another framework

- [ChatGPT](https://composio.dev/toolkits/microsoft_learn_mcp/framework/chatgpt)

## Related Toolkits

- [Supabase](https://composio.dev/toolkits/supabase) - Supabase is an open-source backend platform offering scalable Postgres databases, authentication, storage, and real-time APIs. It lets developers build modern apps without managing infrastructure.
- [Codeinterpreter](https://composio.dev/toolkits/codeinterpreter) - Codeinterpreter is a Python-based coding environment with built-in data analysis and visualization. It lets you instantly run scripts, plot results, and prototype solutions inside supported platforms.
- [GitHub](https://composio.dev/toolkits/github) - GitHub is a code hosting platform for version control and collaborative software development. It streamlines project management, code review, and team workflows in one place.
- [1password](https://composio.dev/toolkits/_1password) - 1Password is a password manager and digital vault for storing logins, secrets, notes, and secure documents. It helps individuals and teams protect credentials, share access safely, and reduce password risk.
- [21st MCP](https://composio.dev/toolkits/21st_mcp) - 21st MCP is a hosted design resource service for React/shadcn components, themes, templates, and SVG logos. It gives teams a fast way to discover, organize, and reuse polished interface assets.
- [Ably](https://composio.dev/toolkits/ably) - Ably is a real-time messaging platform for live chat and data sync in modern apps. It offers global scale and rock-solid reliability for seamless, instant experiences.
- [Abuselpdb](https://composio.dev/toolkits/abuselpdb) - Abuselpdb is a central database for reporting and checking IPs linked to malicious online activity. Use it to quickly identify and report suspicious or abusive IP addresses.
- [Agent37](https://composio.dev/toolkits/agent37) - Agent37 is a control API for managed agent sandboxes, templates, networking, and execution. It gives teams built-in scheduling, observability, budgets, and workspace administration.
- [Aikido Security](https://composio.dev/toolkits/aikido) - Aikido Security is a security platform for workspace, code, cloud, and application protection. It helps teams find vulnerabilities, manage compliance, and reduce security risk.
- [Alchemy](https://composio.dev/toolkits/alchemy) - Alchemy is a blockchain development platform offering APIs and tools for Ethereum apps. It simplifies building and scaling Web3 projects with robust infrastructure.
- [Algolia](https://composio.dev/toolkits/algolia) - Algolia is a hosted search API that powers lightning-fast, relevant search experiences for web and mobile apps. It helps developers deliver instant, typo-tolerant, and scalable search without complex infrastructure.
- [Anakin](https://composio.dev/toolkits/anakin_io) - Anakin is a web automation platform offering scraping, crawling, search, and browser automation. Use it to extract structured data, automate site tasks, and monitor web changes reliably.
- [Anchor browser](https://composio.dev/toolkits/anchor_browser) - Anchor browser is a developer platform for AI-powered web automation. It transforms complex browser actions into easy API endpoints for streamlined web interaction.
- [Anchor Browser MCP](https://composio.dev/toolkits/anchor_browser_mcp) - Anchor Browser MCP is a hosted browser automation service for running cloud browser sessions and web tasks. It provides secure, reusable browser identities and managed authentication for reliable agent workflows.
- [AnyAPI](https://composio.dev/toolkits/anyapi) - AnyAPI is a marketplace of utility APIs for validation, currency conversion, holidays, documents, and web data. It brings common application workflows together through one practical API platform.
- [Apiflash](https://composio.dev/toolkits/apiflash) - Apiflash is a website screenshot API for programmatically capturing web pages. It delivers high-quality screenshots on demand for automation, monitoring, or reporting.
- [Apiverve](https://composio.dev/toolkits/apiverve) - Apiverve delivers a suite of powerful APIs that simplify integration for developers. It's designed for reliability and scalability so you can build faster, smarter applications without the integration headache.
- [APIVerve MCP](https://composio.dev/toolkits/apiverve_mcp) - APIVerve MCP is a hosted utility API server for lookups, validation, conversion, and data enrichment. It gives developers one MCP connection to access APIVerve's utility APIs.
- [Appcircle](https://composio.dev/toolkits/appcircle) - Appcircle is an enterprise-grade mobile CI/CD platform for building, testing, and publishing mobile apps. It streamlines mobile DevOps so teams ship faster and with more confidence.
- [Appdrag](https://composio.dev/toolkits/appdrag) - Appdrag is a cloud platform for building websites, APIs, and databases with drag-and-drop tools and code editing. It accelerates development and iteration by combining hosting, database management, and low-code features in one place.

## Frequently Asked Questions

### What are the differences in Tool Router MCP and Microsoft Learn MCP?

With a standalone Microsoft Learn MCP server, the agents and LLMs can only access a fixed set of Microsoft Learn tools tied to that server. However, with the Composio Tool Router, agents can dynamically load tools from Microsoft Learn and many other apps based on the task at hand, all through a single MCP endpoint.

### Can I use Tool Router MCP with Claude Cowork?

Yes, you can. Claude Cowork fully supports MCP integration. You get structured tool calling, message history handling, and model orchestration while Tool Router takes care of discovering and serving the right Microsoft Learn tools.

### Can I manage the permissions and scopes for Microsoft Learn while using Tool Router?

Yes, absolutely. You can configure which Microsoft Learn scopes and actions are allowed when connecting your account to Composio. You can also bring your own OAuth credentials or API configuration so you keep full control over what the agent can do.

### How safe is my data with Composio Tool Router?

All sensitive data such as tokens, keys, and configuration is fully encrypted at rest and in transit. Composio is SOC 2 Type 2 compliant and follows strict security practices so your Microsoft Learn data and credentials are handled as safely as possible.

---
[See all toolkits](https://composio.dev/toolkits) · [Composio docs](https://docs.composio.dev/llms.txt)
