Microsoft Learn
$0.01/call
Search Microsoft Learn documentation and training resources
Connect Microsoft Learn tools
Cursor
Claude Code
Claude Desktop
Windsurf
VS Code
Cline
Roo Code
ChatGPT
Gemini CLI
Amazon Q
Goose
Augment
n8n
API / cURL
AI SDK
TypeScript SDK
{
"mcpServers": {
"microsoft-learn": {
"url": "https://microsoft-learn.mcp.xpay.sh/mcp?key=YOUR_API_KEY"
}
}
}Or connect all tools
Access all tools (including Microsoft Learn) through a single MCP connection.
{
"mcpServers": {
"xpay": {
"url": "https://mcp.xpay.sh/mcp?key=YOUR_API_KEY"
}
}
}Agent Discovery
Machine-readable catalogs for LLM agents and automation.
curl https://xpay.tools/llms.txt
curl https://xpay.tools/agents.txt
curl https://xpay.tools/skill.md
Pricing
Pay per tool call. No subscriptions.
3 Microsoft Learn tools availableAbout Microsoft Learn
Microsoft Learn on xpay — Official Microsoft documentation and training at per-call pricing
Microsoft Learn is Microsoft's official platform for documentation, tutorials, and code samples covering Azure, .NET, Microsoft 365, Windows, and enterprise technologies. Developers use it to find authoritative answers on API usage, SDK integration, best practices, and working code examples. Rather than building your own scraper or maintaining a search index, xpay lets you call Microsoft Learn's content directly through MCP—paying only for what you query.
What's available
microsoft_docs_search— Query Microsoft's official documentation across Azure, .NET, Microsoft 365, and Windows. Returns up to 10 high-quality content chunks (max 500 tokens each) ranked by relevance, so your agent gets the most trustworthy answers without hallucination.microsoft_code_sample_search— Find working code snippets and examples from official Microsoft Learn pages. Useful when you need practical implementation patterns, not just conceptual docs.microsoft_docs_fetch— Retrieve and convert a specific Microsoft Learn webpage to clean markdown. Use this when you've identified a page URL and need its full, up-to-date content.
When Microsoft Learn is the right tool
- You're building an agent that answers questions about Azure services, .NET frameworks, or Microsoft 365 APIs and want authoritative, current documentation.
- Your users ask "how do I use [Azure feature]?" or "show me a code example for [.NET class]" and you want to ground answers in official sources.
- You're integrating with Microsoft technologies and need to fetch the latest best practices or API reference pages on demand.
- You want to avoid hallucinated or outdated information by anchoring to Microsoft's own docs.
- You're building a support or onboarding tool for Microsoft stack developers.
When to choose something else
- If you need real-time data beyond documentation (e.g., live Azure resource status, pricing updates, or account-specific information), use Azure's native APIs or management SDKs instead.
- If your queries are highly specialized or proprietary (not covered in public Microsoft Learn), a general web search tool like Tavily may be more useful.
- If you're looking for community forums, Stack Overflow answers, or third-party tutorials, a broader search API is better suited.
- If you need to search non-Microsoft documentation (AWS, Google Cloud, etc.), use provider-specific tools or a unified web search.
Pricing snapshot
| Tool | Price per call |
|---|---|
microsoft_docs_search | $0.01 |
microsoft_code_sample_search | $0.01 |
microsoft_docs_fetch | $0.01 |
All calls are billed individually; no subscription or minimum spend. Your xpay account includes $5 free credit to start.
Quickstart
Option 1: Microsoft Learn only (recommended for single-provider use)
claude mcp add --transport http microsoft-learn "https://microsoft-learn.mcp.xpay.sh/mcp?key=YOUR_XPAY_KEY"
Replace YOUR_XPAY_KEY with your xpay API key (get one free at https://xpay.tools). Once connected, your Claude Code agent can call microsoft_docs_search, microsoft_code_sample_search, and microsoft_docs_fetch by name.
Option 2: All xpay providers in one connection
claude mcp add --transport http xpay "https://mcp.xpay.sh/mcp?key=YOUR_XPAY_KEY"
This unified endpoint exposes Microsoft Learn alongside other providers. Use xpay_discover("microsoft learn") to find tools, then xpay_run("microsoft-learn/microsoft_docs_search", {"query": "..."}) to invoke them.
For Cursor, Windsurf, Cline, or VS Code (Copilot): Add a server entry to your mcp.json file:
{
"mcpServers": {
"microsoft-learn": {
"url": "https://microsoft-learn.mcp.xpay.sh/mcp?key=YOUR_XPAY_KEY"
}
}
}
Why route Microsoft Learn through xpay?
- No Microsoft Learn signup. xpay holds the credentials; you authenticate once with your xpay API key and immediately access Microsoft Learn's search and fetch tools.
- Pay only for calls. $0.01 per query—no subscription, no monthly fees, no unused capacity. Scale from one call to thousands without changing your plan.
- MCP-native integration. Call Microsoft Learn directly from Claude Code, Cursor, VS Code, or any MCP-compatible agent. No custom HTTP client or wrapper code needed.
- Unified billing across providers. If you use multiple xpay providers (Tavily, Apollo, etc.), one dashboard, one API key, one invoice.
- Instant access. Start querying within seconds of signing up. No approval process, no API key generation delays.
Getting your xpay API key
- Visit https://xpay.tools and sign up with email or Google.
- Copy your API key from the dashboard.
- Use it in the MCP endpoint URL above.
- You'll receive $5 free credit to test the tools.
Troubleshooting
"Connection refused" or "invalid key": Double-check that you've replaced YOUR_XPAY_KEY with your actual xpay API key (not a Microsoft Learn key). Verify the endpoint URL matches exactly.
No results from microsoft_docs_search: Try a more specific query (e.g., "Azure App Service authentication" instead of "Azure"). Microsoft Learn's search ranks by relevance; broad queries may return fewer results.
Tool not found: If using the unified endpoint, ensure you're calling xpay_run("microsoft-learn/microsoft_docs_search", ...) with the full tool path. For the per-provider endpoint, call the tool by its short name (e.g., microsoft_docs_search).
Frequently Asked Questions
Microsoft Learn is Microsoft's official documentation and training platform covering Azure, .NET, Microsoft 365, Windows, and related technologies. It includes API references, tutorials, code samples, and best practices. Developers use it to find authoritative answers on how to build with Microsoft technologies.
Each call to `microsoft_docs_search`, `microsoft_code_sample_search`, or `microsoft_docs_fetch` costs $0.01. There is no subscription or minimum spend. Your xpay account includes $5 free credit to start testing.
No. xpay holds the credentials on your behalf. You only need an xpay account (free signup at https://xpay.tools with email or Google). Once authenticated with your xpay API key, you can search and fetch Microsoft Learn content immediately.
Use it when you need authoritative answers about Azure services, .NET frameworks, Microsoft 365 APIs, or Windows development. It's ideal for agents that answer developer questions, provide code examples, or ground responses in official Microsoft documentation. Avoid it for real-time data (e.g., live resource status) or non-Microsoft content.
For general web search, use Tavily or similar providers. For community answers, search Stack Overflow or GitHub. For real-time Azure data, use Azure's native management APIs. For AWS or Google Cloud docs, use provider-specific tools. Microsoft Learn is best when you specifically need official Microsoft documentation.
Run: `claude mcp add --transport http microsoft-learn "https://microsoft-learn.mcp.xpay.sh/mcp?key=YOUR_XPAY_KEY"` (replace `YOUR_XPAY_KEY` with your xpay API key). Once connected, your agent can call `microsoft_docs_search`, `microsoft_code_sample_search`, and `microsoft_docs_fetch` by name.
Add a server entry to your `mcp.json` file: `{ "mcpServers": { "microsoft-learn": { "url": "https://microsoft-learn.mcp.xpay.sh/mcp?key=YOUR_XPAY_KEY" } } }`. Replace `YOUR_XPAY_KEY` with your xpay API key. Restart your editor and the tools will be available.
Yes. Use the unified endpoint `https://mcp.xpay.sh/mcp?key=YOUR_XPAY_KEY` to access all xpay providers (Microsoft Learn, Tavily, Apollo, etc.) through one connection. Call `xpay_discover()` to find tools and `xpay_run()` to invoke them. All calls are billed to the same xpay account.

