Microsoft Learn MCP server for AI agents and assistants

Securely connect your AI agents and chatbots (Claude, ChatGPT, Cursor, etc) with Microsoft Learn MCP or direct API to search documentation, fetch code samples, explore Azure guidance, and answer implementation questions through natural language.

Microsoft Learn MCP logoMicrosoft Learn MCP
No Auth

Microsoft Learn MCP is a public server for official Microsoft and Azure documentation. It provides current technical guidance and code samples without requiring credentials.

3 Tools

Try Microsoft Learn MCP now

Type what you want done — sign in and watch it run live in the Tool Router playground.

TOOL ROUTER PLAYGROUND
Microsoft Learn MCP
Try asking
TOOLS

Supported Tools

Every Microsoft Learn MCP action and event your agent gets out of the box.

Microsoft code sample search

Search for code snippets and examples in official Microsoft Learn documentation.

Microsoft docs fetch

Fetch and convert a Microsoft Learn documentation webpage to markdown format.

Microsoft docs search

Search official Microsoft/Azure documentation to find the most relevant and trustworthy content for a user's query.

SETUP GUIDE

Connect Microsoft Learn MCP Tool with your Agent

1

Install Composio

typescript
npm install @composio/core ai @ai-sdk/mcp @ai-sdk/openai
Install the Composio SDK and your agent framework
2

Create a session with MCP enabled

typescript
import { Composio } from "@composio/core";

const composio = new Composio();
const { mcp } = await composio.create("your-user-id", {
  toolkits: ["microsoft_learn_mcp"],
  mcp: true,
});
Create a session scoped to Microsoft Learn MCP and read its MCP URL and headers
3

Connect your agent to the MCP server

typescript
import { createMCPClient } from "@ai-sdk/mcp";
import { openai } from "@ai-sdk/openai";
import { generateText, stepCountIs } from "ai";

const client = await createMCPClient({
  transport: { type: "http", url: mcp.url, headers: mcp.headers },
});

const { text } = await generateText({
  model: openai("gpt-5.6-sol"),
  tools: await client.tools(),
  prompt: "Search Microsoft Learn for the official Azure Functions Python quickstart and summarize the deployment steps.",
  stopWhen: stepCountIs(10),
});

console.log(text);
await client.close();
Pass the session's MCP URL and headers to your agent and run a Microsoft Learn MCP request
SETUP GUIDE

Connect Microsoft Learn MCP API Tool with your Agent

1

Install Composio

typescript
npm install @composio/core @composio/openai openai
Install the Composio SDK, the OpenAI provider, and the OpenAI SDK
2

Create a Composio session

typescript
import OpenAI from "openai";
import { Composio } from "@composio/core";
import { OpenAIResponsesProvider } from "@composio/openai";

const composio = new Composio({ provider: new OpenAIResponsesProvider() });
const client = new OpenAI();

const session = await composio.create("your-user-id", { toolkits: ["microsoft_learn_mcp"] });
const tools = await session.tools();
Initialize Composio with the OpenAI Responses provider and create a session scoped to Microsoft Learn MCP
3

Run Microsoft Learn MCP tools with your agent

typescript
let response = await client.responses.create({
  model: "gpt-5.6-sol",
  tools,
  input: [{ role: "user", content: "Search Microsoft Learn for the official Azure Functions Python quickstart and summarize the deployment steps." }],
});

while (response.output.some((o) => o.type === "function_call")) {
  const outputs = await composio.provider.handleToolCalls(session, response.output);
  response = await client.responses.create({
    model: "gpt-5.6-sol",
    tools,
    previous_response_id: response.id,
    input: outputs,
  });
}

console.log(response.output_text);
Send a request, execute the Microsoft Learn MCP tool calls through the session, and print the final answer

Why Use Composio?

AI Native Microsoft Learn MCP Integration

  • Connects your agents to Microsoft Learn MCP and its public documentation tools
  • Structured, LLM-friendly schemas for reliable documentation searches and retrieval
  • Gives agents direct access to official Microsoft and Azure guidance and code samples

Simple Public Access

  • No OAuth flow, API key, or developer credentials are required
  • Composio creates a scoped session and manages the MCP connection details
  • Agents can access public Microsoft Learn content without hard-coded credentials

Agent Optimized Design

  • Tools are tuned using real error and success rates to improve reliability over time
  • Comprehensive execution logs help you see what ran, when, and on whose behalf
  • Agents can search first, then fetch the most relevant Microsoft Learn content

Enterprise Grade Security

  • Fine-grained RBAC lets you control which agents and users can access Microsoft Learn MCP
  • Scoped sessions limit each agent connection to the tools it needs
  • Full audit trails support review and compliance for agent activity
FRAMEWORKS

Use Microsoft Learn MCP with any AI Agent Framework

Choose a Framework you want to connect Microsoft Learn MCP with

Rolling this out across your team?

Give your team centralized access control across every framework with Composio’s MCP Gateway.

EXPLORE MCP GATEWAY
FAQ

Frequently asked questions

Start with Microsoft Learn MCP.It takes 30 seconds.

Managed auth, hosted MCP servers, and every Microsoft Learn MCP tool your agent needs.Free to start.

Start building