PayToll
Supports DEX swaps, cross-chain bridges, and token balance checks on Ethereum as one of the supported networks via Li.Fi.
Supports DEX swaps, cross-chain bridges, and token balance checks on Fantom as one of the supported networks via Li.Fi.
Provides an LLM proxy tool for Google Gemini models, including Gemini 2.0 Flash, 1.5 Pro, and 1.5 Flash.
Provides an LLM proxy tool for OpenAI GPT models, including GPT-4o, GPT-4 Turbo, GPT-3.5 Turbo, and o3-mini.
Supports DEX swaps, cross-chain bridges, and token balance checks on Optimism as one of the supported networks via Li.Fi.
Supports DEX swaps, cross-chain bridges, and token balance checks on Polygon as one of the supported networks via Li.Fi.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
paytoll-mcp
MCP server for PayToll — 27 tools for DeFi, swaps, bridging, social, on-chain data, and AI, powered by x402 micro-payments on Base. No API keys, no subscriptions. Your AI agent pays per call in USDC.
Quick Start
# Works without PRIVATE_KEY while API free tier is available
npx -y paytoll-mcp
# Add PRIVATE_KEY (or keychain/secret-service source) for paid/unlimited access
PRIVATE_KEY=0xYourKey npx -y paytoll-mcpThe server connects to the PayToll API, discovers all available tools, and registers them over stdio. Your agent can immediately start querying DeFi data, swapping tokens, searching Twitter, prompting LLMs, and more.
Security: Use a dedicated wallet with minimal funds. Do not use your main wallet. The private key is used only to sign x402 micro-payments (fractions of a cent per call) — it never leaves your machine and is never sent to any server.
Related MCP server: ox402-utils
Requirements
Node.js 20+
Wallet key is optional for free-tier calls
A wallet private key with USDC on Base (+ a small amount of ETH for gas) is required for paid calls
A few dollars of USDC is enough for thousands of API calls.
Configuration
Variable | Description | Default |
| Wallet private key (hex, 0x-prefixed). Fallback option. | unset |
| macOS Keychain service name for wallet key | unset |
| macOS Keychain account (defaults to |
|
| Linux Secret Service key attribute | unset |
| Linux Secret Service key attribute |
|
| Command that prints the private key to stdout | unset |
| PayToll API endpoint |
|
| Startup message hint for free-tier daily cap |
|
For paid flow, the server needs one key source:
PRIVATE_KEYPRIVATE_KEY_KEYCHAIN_SERVICE(macOS)PRIVATE_KEY_SECRET_SERVICE(Linux / Ubuntu)PRIVATE_KEY_COMMAND
If no key source is set, the MCP server starts in free-tier mode and will return a clear error when:
the free tier is exhausted, or
the called endpoint is paid-only (for example social/X or AI paths on default API config).
Secure Key Storage (Recommended)
macOS Keychain
Store key once:
security add-generic-password -a "$USER" -s paytoll-mcp -w '0xYOUR_PRIVATE_KEY'Then run:
PRIVATE_KEY_KEYCHAIN_SERVICE=paytoll-mcp npx -y paytoll-mcpUbuntu (GNOME Secret Service)
Install CLI:
sudo apt-get update && sudo apt-get install -y libsecret-toolsStore key once:
printf '0xYOUR_PRIVATE_KEY' | secret-tool store --label='PayToll MCP Wallet' service paytoll-mcp account "$USER"Then run:
PRIVATE_KEY_SECRET_SERVICE=paytoll-mcp npx -y paytoll-mcpSetup
For macOS examples below, use PRIVATE_KEY_KEYCHAIN_SERVICE. On Ubuntu/Linux, use PRIVATE_KEY_SECRET_SERVICE with the same value.
Claude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"paytoll": {
"command": "npx",
"args": ["-y", "paytoll-mcp"],
"env": {
"PRIVATE_KEY_KEYCHAIN_SERVICE": "paytoll-mcp"
}
}
}
}Restart Claude Desktop. You'll see PayToll tools in the tools menu.
Claude Code
Add to .claude/settings.json:
{
"mcpServers": {
"paytoll": {
"command": "npx",
"args": ["-y", "paytoll-mcp"],
"env": {
"PRIVATE_KEY_KEYCHAIN_SERVICE": "paytoll-mcp"
}
}
}
}Cursor
Add to .cursor/mcp.json in your project:
{
"mcpServers": {
"paytoll": {
"command": "npx",
"args": ["-y", "paytoll-mcp"],
"env": {
"PRIVATE_KEY_KEYCHAIN_SERVICE": "paytoll-mcp"
}
}
}
}OpenClaw
/install paytollDo not set raw PRIVATE_KEY in OpenClaw env settings.
Set one non-secret selector instead:
macOS:
PRIVATE_KEY_KEYCHAIN_SERVICE=paytoll-mcpUbuntu:
PRIVATE_KEY_SECRET_SERVICE=paytoll-mcp
Optional if not using $USER:
macOS:
PRIVATE_KEY_KEYCHAIN_ACCOUNT=your-accountUbuntu:
PRIVATE_KEY_SECRET_ACCOUNT=your-account
Available Tools (27)
DeFi Intelligence — Aave V3
Tool | Description | Price |
| Find best supply APY for an asset across all chains | $0.01 |
| Find lowest borrow APR for an asset across all chains | $0.01 |
| Overview of all Aave V3 markets with TVL and rates | $0.005 |
| Get health factor and liquidation risk for a position | $0.005 |
| Get all supply/borrow positions for a wallet | $0.01 |
DeFi Transactions — Aave V3
Build unsigned transaction data for Aave operations. Returns transaction payloads for your wallet to sign — does not broadcast or execute transactions.
Tool | Description | Price |
| Build a supply (deposit) transaction | $0.01 |
| Build a borrow transaction | $0.01 |
| Build a repay transaction | $0.01 |
| Build a withdraw transaction | $0.01 |
DEX Swaps & Cross-Chain Bridges
Powered by Li.Fi aggregator. Supports same-chain swaps and cross-chain bridges across 12 networks (Ethereum, Base, Arbitrum, Optimism, Polygon, Avalanche, BSC, zkSync, Linea, Scroll, Fantom, Gnosis).
Tool | Description | Price |
| Get a DEX swap or cross-chain bridge quote | $0.005 |
| Build a swap/bridge transaction for signing | $0.01 |
| Check wallet token balance on any chain | $0.005 |
To bridge, set fromChain and toChain to different chain IDs. Li.Fi routes through optimal bridge protocols (Stargate, Across, Hop, etc.) automatically.
On-Chain Token Data
Tool | Description | Price |
| Token price, supply, FDV, market cap, top pools | $0.015 |
| On-chain token price by contract address | $0.015 |
| Search liquidity pools by name, symbol, or address | $0.015 |
| Trending pools on a network by trading activity | $0.015 |
Social — X / Twitter
Tool | Description | Price |
| Search recent tweets (last 7 days) | $0.08 |
| Get a user's recent tweets | $0.08 |
| Look up tweets by ID (max 10 per call) | $0.02 |
| Look up user by username or ID | $0.02 |
| Post a tweet (requires your OAuth token) | $0.015 |
Crypto Utilities
Tool | Description | Price |
| Real-time crypto prices (CoinGecko) | $0.015 |
| Resolve ENS names to addresses (and reverse) | $0.001 |
| Validate wallet addresses with checksum | $0.0005 |
AI — LLM Proxy
Tool | Description | Price |
| GPT-4o, GPT-4 Turbo, GPT-3.5 Turbo, o3-mini | $0.01 |
| Claude Sonnet 4, Haiku 4, Claude 3.5 | $0.01 |
| Gemini 2.0 Flash, 1.5 Pro, 1.5 Flash | $0.01 |
All tools are discovered automatically from the API at startup.
How It Works
AI Agent (Claude, Cursor, etc.)
| stdio JSON-RPC
v
paytoll-mcp
| 1. Startup: GET /v1/meta -> discover all endpoints -> register MCP tools
| 2. Tool call: POST endpoint -> 402 -> auto-sign USDC payment -> retry -> result
v
PayToll API (api.paytoll.io)Payment is invisible to the agent. The MCP server handles the full x402 payment protocol flow automatically:
Agent calls a tool (e.g.,
aave-best-yield)MCP server sends request to PayToll API
API responds with
402 Payment Requiredand payment detailsMCP server signs a USDC payment using your wallet's private key
MCP server retries with the signed payment
API verifies payment, executes the request, settles on Base
Result is returned to the agent
When no wallet key is configured, the MCP server sends plain requests first (free-tier mode). If the API returns 402, MCP reports that a wallet key is required for paid access.
Your private key never leaves your machine. It is only used locally to sign EIP-712 typed data for x402 payments. The PayToll API and MCP server communicate over HTTPS — the key itself is never transmitted.
Security
Use a dedicated wallet. Create a new wallet with only the USDC/ETH you need. Do not reuse your main wallet.
Private key stays local. The key is used only to sign payment authorizations on your machine. It is never sent to any server.
No transaction execution. Transaction-building tools (
aave-supply,swap-build, etc.) return unsigned transaction data. They do not broadcast anything on-chain.Payments are micro-amounts. Most calls cost $0.001–$0.08 in USDC. A few dollars funds thousands of calls.
Open source. This entire MCP server is open source — audit it yourself.
Development
git clone https://github.com/foodaka/paytoll-mcp.git
cd paytoll-mcp
npm install
npm run build
PRIVATE_KEY_KEYCHAIN_SERVICE=paytoll-mcp npm startLicense
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Pay-per-call tools for autonomous agents, settled in USDC on Base via x402.
Pay-per-call tools for AI agents. Live x402 APIs paid in USDC on Base.
Pay-per-call agent tools over x402 (USDC on Base) — no signup or API key.
x402 toolkit for AI agents: paid web, AI, and Base chain tools per call in USDC. Free tools too.
Related MCP Servers
- AlicenseAqualityDmaintenanceProvides AI agents with 10 pay-per-call utility tools (QR generation, DNS lookup, OCR, etc.) using USDC on Base via the x402 protocol, with agent's private key never leaving the agent.11MIT
- FlicenseNot gradedqualityDmaintenanceEnables AI agents to call 45 micro-priced utility tools via x402 micropayments on Base, covering search, screenshots, OCR, PDFs, WHOIS, geo-IP, and more without API keys.-

AgentBIT MCP Serverofficial
AlicenseNot gradedqualityCmaintenanceEnables AI agents to call 50+ pay-per-request tools covering onchain and crypto data, web research, security, compliance screening, business intelligence, and infrastructure checks. Payments settle per call in USDC on Base through the x402 protocol with no accounts, API keys, or subscriptions, and the first call is free for new wallets.MIT- AlicenseNot gradedqualityCmaintenanceEnables AI agents to call pay-per-request AI and web tools—including web-to-Markdown reading, PDF extraction, translation, compliance lookups, domain/email/Solana data, and prediction-market intelligence—without accounts or API keys, settling each call in USDC via x402 on Base, Solana, or Arc.MIT