T
Tollpay
Live on Stellar Mainnet

The Stripe for
MCP Servers

Get paid every time AI uses your tools.One line of code. Instant USDC payments. No invoices, no subscriptions — just revenue.

I build AI tools — monetize them I use AI agents — access paid tools I'm exploring — show me the value

18

Tools in Registry

5

Live Servers

$0.00001

Per Transaction Fee

3 sec

Settlement

The problem

Without Toll, you're leaving money on the table

AI agents make thousands of tool calls every day. Each call uses your compute, your API keys, your data. You pay for all of it. They pay nothing.

Without Toll

  • You host tools — you pay the server bill
  • Agents call your tools 10,000 times/day — $0 revenue
  • No budget limits — one bad actor drains your API
  • No usage data — you don't know who uses what

Example: 10K calls/day × $0.01 cost each = -$100/day from your pocket

With Toll

  • Set a price per tool call — $0.01 to $1.00, you decide
  • Same 10,000 calls/day — $100/day in USDC to your wallet
  • Budget limits built in — automatic rate limiting per caller
  • Full dashboard — revenue per tool, per caller, per day

Same 10K calls/day × $0.01 each = +$100/day into your wallet

Revenue Calculator

Drag the sliders. See what your tools could earn.

1,000
1050,000
$0.01
$0.001$1.00

Daily

$10

Monthly

$300

Yearly

$3.6K

100% goes to you. No Toll fee. No middleman. Paid instantly in USDC.

5 min

to set up

3 sec

payment settlement

$0.00001

transaction fee

USDC

real dollars, not tokens

For developers

One line of code. That's the change.

Your existing server stays the same. Toll adds a payment layer on top.

Your server today

server.ts
import express from "express"

const app = express()
app.use(express.json())

// Your MCP server — handles tool calls
app.post("/mcp", async (req, res) => {
  await mcpServer.handle(req, res)
})

app.listen(3000)

Your server with Toll

server.ts
import express from "express"
import { tollMiddleware } from "@rajkaria123/toll-gateway"

const app = express()
app.use(express.json())

// One line. Every paid tool call now earns USDC.
app.use("/mcp", tollMiddleware({
  payTo: "G...YOUR_STELLAR_ADDRESS",
  tools: { search: { price: "0.01" }, analyze: { price: "0.05" } },
}))

app.post("/mcp", async (req, res) => {
  await mcpServer.handle(req, res)
})

app.listen(3000)

One import. One middleware line. Your tools now charge USDC on every paid call.

How it works

Simple as setting a price tag

Think of it like a vending machine for AI. You stock the tools, set the prices. AI agents insert coins (USDC) and get access.

1

You set a price

"Search costs $0.01. Analysis costs $0.05." That's it. You pick the price for each tool you offer. Free tools stay free.

2

AI agent pays instantly

When an AI tries to use your tool, Toll says "that'll be $0.01." The agent pays in USDC (a digital dollar) automatically — no invoices, no subscriptions.

3

Money lands in your wallet

Payment arrives in 3 seconds. Not 30 days. Not "net 60." Real USDC in your wallet, visible on your dashboard. Cash out anytime.

Live on Stellar Mainnet

Try it. Right now.

This hits our live MCP server. Real Stellar mainnet. No setup required.

POSThttps://api.tollpay.xyz/mcp
Calling health_check — no payment needed

This is what your users experience. Free tools return 200. Paid tools return 402 with the price. An x402-compatible agent SDK handles payment and retries automatically.

health_check

FREE

search_competitors

$0.01

analyze_sentiment

$0.02

compare_products

$0.05

What you get

Everything you need to turn free tools into a revenue stream.

5-minute setup, zero rewrites

Add one line to your existing server. Your tools, your logic — nothing changes. Toll just adds a price tag and collects payment.

AI agents pay automatically

No invoices. No subscriptions. No billing portal. When an AI uses your tool, it pays you instantly. The payment happens in the background — like a toll booth on a highway.

See every dollar earned

Real-time dashboard shows who paid, how much, and for what. Every payment is traceable on-chain. Full transparency, no black boxes.

Built-in protection

Budget limits per caller, per day. If an AI goes haywire and spams your tool — it gets cut off automatically. You stay protected.

Get started

Three steps. Five minutes.

1

Install

terminal
npm install @rajkaria123/toll-gateway @rajkaria123/toll-stellar
2

Configure your tools and prices

toll.config.json
{
  "network": "mainnet",
  "payTo": "G...YOUR_STELLAR_ADDRESS",
  "facilitatorUrl": "https://channels.openzeppelin.com/x402",
  "tools": {
    "my_free_tool":   { "price": "0",    "currency": "USDC" },
    "my_paid_tool":   { "price": "0.05", "currency": "USDC" }
  }
}
3

Add one line of middleware

server.ts
import { tollMiddleware, loadConfig } from "@rajkaria123/toll-gateway"

const config = loadConfig("./toll.config.json")
app.use("/mcp", tollMiddleware(config))

Deploy. Every paid tool call now earns USDC on Stellar.

Full documentation →

Why Stellar

$0.01 tool calls need $0.00001 fees

Agent micropayments only work if the transaction cost is negligible. Stellar is the only production network where that's true.

StellarEthereumSolana
Finality3-5 seconds12+ seconds~0.4 seconds
Transaction fee~$0.00001$0.50 - $5.00~$0.00025
Native USDCFirst-class assetERC-20 (bridge risk)SPL token
x402 protocolProduction readyLimitedNot available
MPP protocolNative supportNot availableNot available

Sources: Stellar finality and fees per developers.stellar.org. Ethereum finality per ethereum.org. Solana finality per solana.com. USDC issuer data per circle.com.

You never touch Stellar directly. Toll abstracts all blockchain internals. You don't configure wallets, sign transactions, or learn Soroban. You set prices in your config file. Toll and Stellar handle the rest.

For AI Agents

Use paid tools without writing payment code

The Toll Proxy sits between your MCP client and any Toll-powered server. It intercepts 402 responses, signs USDC payments, and retries — all transparently. Use our hosted proxy at proxy.tollpay.xyz or self-host with npx.

Start the proxy:

bash
# Start the Toll Proxy locally — auto-creates a Stellar wallet
npx @rajkaria123/toll-proxy --target https://api.tollpay.xyz/mcp

# Or with custom budget limits
npx @rajkaria123/toll-proxy \
  --target https://api.tollpay.xyz/mcp \
  --budget-daily 5.00 \
  --budget-per-call 0.50

# Or use the hosted proxy (no install needed):
# https://proxy.tollpay.xyz/mcp?target=https://api.tollpay.xyz/mcp

Connect your MCP client:

json
// Add to Claude Desktop / Cursor MCP config:
{
  "mcpServers": {
    "my-paid-tools": {
      "url": "https://proxy.tollpay.xyz/mcp?target=https://api.tollpay.xyz/mcp",
      "transport": "streamable-http"
    }
  }
}
// Or use localhost if running the proxy locally:
// "url": "http://localhost:3010/mcp?target=https://api.tollpay.xyz/mcp"

0

lines of payment code

Auto

wallet creation & funding

$5/day

default budget limit

Discovery

The directory for paid AI tools

Agents discover tools by capability and price. Developers register their servers with one command. Quality scores help agents choose the best tools.

Discover tools programmatically:

typescript
// Discover tools programmatically
const resp = await fetch(
  "https://tollpay.xyz/api/registry/discover?q=search&maxPrice=0.05"
)
const { tools } = await resp.json()
// 18 tools across 5 servers — free and paid
// [{ name: "search_competitors", price: "0.01", server: { url: "..." }, ... }]

For Server Developers

Register your tools and let agents find you:

npx @rajkaria123/toll-cli register --url https://your-server.com/mcp

For Agent Developers

Browse available tools with quality scores and connect instantly.

Browse the Registry →

Every tool call that doesn't pay you
is money you're giving away.

Set up takes 5 minutes. Your first payment arrives in seconds.

Start Earning Now