Skip to Content
🚀 {xpay✦} is building the future of x402 payments - Join the developer beta →
xpay✦ ToolsGet StartedYour First Tool Call

Your First Tool Call

This walkthrough uses Cursor as an example, but the experience is similar across all MCP clients.

Using a Provider Server

The simplest way to start — connect directly to one provider.

Add the MCP server

Add this to your ~/.cursor/mcp.json:

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

Replace YOUR_API_KEY with your actual key.

Ask your agent to use a tool

In Cursor’s chat, type:

Scrape the homepage of https://example.com  and summarize it

Cursor will call the firecrawl_scrape tool, which costs about $0.01 per call.

Check the result

The tool result will include a billing receipt at the end:

Cost: $0.01 | Balance: $4.99 | xpay✦

Using the Master Server

For access to all 1000+ tools through dynamic discovery:

Add the master MCP server

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

Ask your agent anything

The agent will use xpay_discover to find the right tool, xpay_details to check pricing, and xpay_run to execute it — all automatically.

Find the LinkedIn profile for the CEO of Stripe

The agent discovers Hunter’s find_email tool, checks the price ($0.01), runs it, and returns the result.

Tip: Start with a provider server for a focused experience, then switch to the master server when you need broader access.

Next Steps

Last updated on: