xpay tools logo
  • Tools
  • Collections
  • Skills
  • Docs
  • xpay.sh
  1. Home
  2. ›
  3. Providers
  4. ›
  5. Microsoft Learn

Microsoft Learn logo

Microsoft Learn

3 tools

$0.01/call

Search Microsoft Learn documentation and training resources

​
​
How it works ↓
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.


flat

$0.01/call

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


flat

$0.01/call

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.


flat

$0.01/call

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

Add to ~/.cursor/mcp.json
{
  "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.

https://mcp.xpay.sh/mcp?key=***
{
  "mcpServers": {
    "xpay": {
      "url": "https://mcp.xpay.sh/mcp?key=YOUR_API_KEY"
    }
  }
}
Agent Discovery

Machine-readable catalogs for LLM agents and automation.

llms.txt — Human-readable tool catalog
curl https://xpay.tools/llms.txt
agents.txt — Structured JSON for agents
curl https://xpay.tools/agents.txt
skill.md — Claude Code skill
curl https://xpay.tools/skill.md
Pricing

Pay per tool call. No subscriptions.

3 Microsoft Learn tools available
About 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

ToolPrice 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

  1. Visit https://xpay.tools and sign up with email or Google.
  2. Copy your API key from the dashboard.
  3. Use it in the MCP endpoint URL above.
  4. 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.

xpay tools logo

Marketplace for AI Capabilities. Run agents, tools & prompts with pay-per-use micropayments.

or ask your AI app
Popular Tools
FirecrawlTavilyExaHunterPerplexityRecraftIdeogramFlux
Collections
AI Image & MediaContent & ResearchDev ToolsFinanceLead GenWeb ScrapingCompetitive Intel
Developers
DocumentationAPI ReferenceQuickstartSDKsSkillsskill.mdllms.txt
Resources
The Agentic EconomyAgentic CommerceAgent Frameworksx402 ProtocolBlog
Company
About xpayxpay.shGitHubDiscordTwitter / X

© 2026 Agentically Inc. All rights reserved.
Privacy PolicyTerms of Service
✦
xpay Assistant
Microsoft Learn Tools

Ask me about tools, pricing, or how to connect

What tools does Microsoft Learn offer?
How do I connect via MCP?
Show me pricing
DocsCollectionsExplore