PayToll
You have access to 27 tools for DeFi intelligence, DEX swaps, cross-chain bridges, social media, on-chain token data, crypto utilities, and LLM access via the PayToll MCP server. Each tool call costs a small amount of USDC on the Base network, paid automatically from the user's configured wallet. No API keys or subscriptions needed — payment is the auth.
Setup Requirements
The user must have:
- - A dedicated wallet private key set as
PRIVATE_KEY in their environment (do not reuse your main wallet — use a wallet with minimal funds) - USDC on the Base network in that wallet (a few dollars funds thousands of calls)
- A small amount of ETH on Base (for gas fees)
The private key never leaves your machine. It is only used locally to sign EIP-712 payment authorizations. It is never transmitted to any server.
Security
- - No transaction execution. Transaction-building tools (
aave-supply, swap-build, etc.) return unsigned transaction data for review. They do not broadcast or execute anything on-chain. - Micro-payments only. Most calls cost $0.001–$0.08. The wallet cannot be drained — each payment is a discrete, small authorization.
- Open source. The MCP server source is auditable at https://github.com/foodaka/paytoll-mcp
Available Tools
Aave DeFi Intelligence
Use these tools when the user asks about DeFi yields, borrowing, lending, or Aave positions.
aave-best-yield ($0.01/call)
Find the best supply APY for a given asset across all Aave v3 deployments and chains.
- - Use when: "What's the best yield for USDC?", "Where should I supply ETH for the highest APY?"
- Input:
asset (e.g., "USDC", "ETH", "WBTC")
aave-best-borrow ($0.01/call)
Find the lowest borrow APR for an asset across all Aave v3 markets.
- - Use when: "Cheapest place to borrow DAI?", "What's the lowest ETH borrow rate?"
- Input:
asset (e.g., "USDC", "ETH", "DAI")
aave-markets ($0.005/call)
Get comprehensive data for all Aave v3 markets including supply/borrow rates, TVL, and utilization.
- - Use when: "Show me all Aave markets", "Overview of DeFi lending rates", "What assets can I supply on Aave?"
aave-health-factor ($0.005/call)
Calculate a user's health factor on Aave — indicates how close a position is to liquidation.
- - Use when: "What's my health factor?", "Am I at risk of liquidation?", "Check health for 0x..."
- Input: INLINECODE9
aave-user-positions ($0.01/call)
Get a user's complete supply and borrow positions on Aave across chains.
- - Use when: "What are my Aave positions?", "Show my DeFi portfolio", "What am I supplying/borrowing?"
Aave Transactions
Use these tools when the user wants to generate transaction data for Aave operations. Returns unsigned transaction data — does not broadcast.
aave-supply ($0.01/call)
Build a supply (deposit) transaction for Aave.
- - Use when: "Supply 100 USDC to Aave", "Deposit ETH into Aave"
- Input:
tokenAddress, amount, INLINECODE14
aave-borrow ($0.01/call)
Build a borrow transaction for Aave.
- - Use when: "Borrow 50 DAI from Aave", "Take a USDC loan on Aave"
- Input:
tokenAddress, amount, INLINECODE18
aave-repay ($0.01/call)
Build a repay transaction for paying back Aave loans.
- - Use when: "Repay my DAI loan", "Pay back 100 USDC on Aave"
- Input:
tokenAddress, chainId, amount or INLINECODE23
aave-withdraw ($0.01/call)
Build a withdraw transaction for removing assets from Aave.
- - Use when: "Withdraw my USDC from Aave", "Pull out my ETH supply"
- Input:
tokenAddress, chainId, amount or INLINECODE28
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). To bridge, set fromChain and toChain to different chain IDs — Li.Fi routes through optimal bridge protocols (Stargate, Across, Hop, etc.) automatically. Returns unsigned transaction data — does not broadcast.
swap-quote ($0.005/call)
Get a DEX swap or cross-chain bridge price quote.
- - Use when: "How much USDC for 1 ETH?", "Quote bridging ETH from Ethereum to Arbitrum", "What's the swap rate?"
- Input:
fromChain, fromToken, toToken, amount, optionally toChain (for cross-chain), INLINECODE37
swap-build ($0.01/call)
Build a swap or bridge transaction ready for signing.
- - Use when: "Swap 1 ETH to USDC on Base", "Bridge 100 USDC from Ethereum to Arbitrum"
- Input:
fromChain, fromToken, toToken, amount, optionally toChain, INLINECODE44
token-balance ($0.005/call)
Check wallet token balance on any supported chain.
- - Use when: "What's my ETH balance?", "How much USDC do I have on Base?"
- Input:
chainId, optionally tokenAddress (omit for native token)
On-Chain Token Data
Use these tools for on-chain token analytics, pool discovery, and trending tokens.
onchain-token-data ($0.015/call)
Get comprehensive on-chain token data including price, supply, FDV, market cap, and top pools.
- - Use when: "Tell me about this token", "What's the market cap of PEPE on Base?"
- Input:
network, INLINECODE50
onchain-token-price ($0.015/call)
Get on-chain token price by contract address.
- - Use when: "What's the price of this token on-chain?"
- Input:
network, INLINECODE53
search-pools ($0.015/call)
Search liquidity pools by token name, symbol, or contract address across networks.
- - Use when: "Find pools for PEPE", "Search for WETH liquidity pools"
- Input: INLINECODE55
trending-pools ($0.015/call)
Get trending liquidity pools on a network sorted by trading activity.
- - Use when: "What's trending on Base?", "Show me hot pools on Ethereum"
- Input:
network (e.g., "eth", "base", "solana", "arbitrum")
Social (X / Twitter)
Use these tools when the user asks about tweets, Twitter users, or wants to post on X.
twitter-search ($0.08/call)
Search recent tweets from the last 7 days. Max 20 results per call.
- - Use when: "Search Twitter for bitcoin", "What are people saying about ETH?", "Find tweets about Aave"
- Input:
query (X API search syntax), maxResults (10-20), sortOrder ("recency" or "relevancy")
twitter-user-tweets ($0.08/call)
Get a user's recent tweets. Max 20 per call. Can exclude replies and retweets.
- - Use when: "What has Vitalik tweeted recently?", "Show me Elon's latest tweets"
- Input:
userId, maxResults (5-20), excludeReplies, INLINECODE66
twitter-tweet-lookup ($0.02/call)
Look up tweets by ID with metrics and author info. Max 10 tweets per call.
- - Use when: "Show me this tweet", "Get details on tweet ID 123..."
- Input:
ids (array of tweet ID strings)
twitter-user-lookup ($0.02/call)
Look up an X/Twitter user by username or user ID.
- - Use when: "Who is @elonmusk?", "Look up this Twitter user", "Get profile for user ID 44196397"
- Input:
username OR userId (exactly one)
twitter-post ($0.015/call)
Post a tweet using the user's own OAuth 2.0 access token. Supports replies and quote tweets.
- - Use when: "Post this tweet for me", "Reply to this tweet"
- Input:
text, accessToken (user's OAuth token), replyToId (optional), quoteTweetId (optional) - Note: Requires the user's own X API OAuth token with
tweet.write scope.
Crypto Utilities
Use these tools for token prices, ENS resolution, and address validation.
crypto-price ($0.015/call)
Get real-time crypto prices from CoinGecko with optional market data.
- - Use when: "Price of ETH?", "How much is BTC worth?", "What's SOL trading at?"
- Input:
symbol (e.g., "BTC", "ETH", "SOL"), optionally currency, INLINECODE81
ens-lookup ($0.001/call)
Resolve ENS names to Ethereum addresses and perform reverse lookups.
- - Use when: "What address is vitalik.eth?", "Reverse lookup 0x..."
- Input:
name (e.g., "vitalik.eth") OR INLINECODE84
wallet-validator ($0.0005/call)
Validate whether a string is a valid wallet address with checksum verification.
- - Use when: "Is this a valid address?", "Check if 0x... is valid"
- Input:
address, optionally network ("ethereum", "bitcoin", "solana")
LLM Proxy
Use these tools when the user wants to query AI models through PayToll.
llm-openai ($0.01/call)
Query OpenAI models: GPT-4o, GPT-4o-mini, GPT-4 Turbo, GPT-3.5 Turbo, o3-mini.
- - Input:
messages, optionally model, temperature, INLINECODE92
llm-anthropic ($0.01/call)
Query Anthropic models: Claude Sonnet 4, Haiku 4, Claude 3.5 Sonnet, Claude 3.5 Haiku, Claude 3 Haiku.
- - Input:
messages, optionally model, temperature, INLINECODE97
llm-google ($0.01/call)
Query Google models: Gemini 2.0 Flash, Gemini 2.0 Flash Lite, Gemini 1.5 Pro, Gemini 1.5 Flash.
- - Input:
messages, optionally model, temperature, INLINECODE102
Usage Guidelines
- - Always inform the user that tool calls cost USDC before making calls, especially for the first call in a session.
- For multi-step research (e.g., "best yield across all stablecoins"), batch your questions to minimize calls.
- If a tool returns an error about payment, the user may need to top up their wallet with USDC on Base.
- Transaction-building tools return unsigned data — remind the user they need to sign and broadcast separately.
- The MCP server discovers tools dynamically from the API — additional tools may appear beyond those listed here.
Pricing Summary
| Tool | Cost |
|---|
| INLINECODE103 | $0.01 |
| INLINECODE104 |
$0.01 |
|
aave-markets | $0.005 |
|
aave-health-factor | $0.005 |
|
aave-user-positions | $0.01 |
|
aave-supply | $0.01 |
|
aave-borrow | $0.01 |
|
aave-repay | $0.01 |
|
aave-withdraw | $0.01 |
|
swap-quote | $0.005 |
|
swap-build | $0.01 |
|
token-balance | $0.005 |
|
onchain-token-data | $0.015 |
|
onchain-token-price | $0.015 |
|
search-pools | $0.015 |
|
trending-pools | $0.015 |
|
twitter-search | $0.08 |
|
twitter-user-tweets | $0.08 |
|
twitter-tweet-lookup | $0.02 |
|
twitter-user-lookup | $0.02 |
|
twitter-post | $0.015 |
|
crypto-price | $0.015 |
|
ens-lookup | $0.001 |
|
wallet-validator | $0.0005 |
|
llm-openai | $0.01 |
|
llm-anthropic | $0.01 |
|
llm-google | $0.01 |
PayToll
您可以通过PayToll MCP服务器访问27个工具,涵盖DeFi智能分析、DEX兑换、跨链桥、社交媒体、链上代币数据、加密工具以及LLM访问。每次工具调用会在Base网络上消耗少量USDC,从用户配置的钱包中自动支付。无需API密钥或订阅——支付即认证。
设置要求
用户必须满足以下条件:
- - 在环境中设置专用钱包私钥为PRIVATE_KEY(请勿使用主钱包——请使用资金量极少的钱包)
- 该钱包在Base网络上持有USDC(几美元即可支持数千次调用)
- 在Base网络上持有少量ETH(用于支付Gas费)
私钥永远不会离开您的机器。它仅在本地用于签署EIP-712支付授权,绝不会传输到任何服务器。
安全性
- - 不执行交易。 交易构建工具(aave-supply、swap-build等)返回未签名的交易数据供审查。它们不会在链上广播或执行任何操作。
- 仅限微支付。 大多数调用费用为$0.001–$0.08。钱包不会被耗尽——每笔支付都是独立的小额授权。
- 开源。 MCP服务器源代码可在https://github.com/foodaka/paytoll-mcp 进行审计
可用工具
Aave DeFi智能分析
当用户询问DeFi收益、借贷或Aave仓位时使用这些工具。
aave-best-yield($0.01/次调用)
查找给定资产在所有Aave v3部署和链上的最佳供应APY。
- - 适用场景:USDC的最佳收益率是多少?、在哪里供应ETH能获得最高APY?
- 输入:asset(例如USDC、ETH、WBTC)
aave-best-borrow($0.01/次调用)
查找资产在所有Aave v3市场中的最低借贷APR。
- - 适用场景:借DAI最便宜的地方?、ETH的最低借贷利率是多少?
- 输入:asset(例如USDC、ETH、DAI)
aave-markets($0.005/次调用)
获取所有Aave v3市场的全面数据,包括供应/借贷利率、TVL和利用率。
- - 适用场景:显示所有Aave市场、DeFi借贷利率概览、我可以在Aave上供应哪些资产?
aave-health-factor($0.005/次调用)
计算用户在Aave上的健康因子——指示仓位距离清算有多近。
- - 适用场景:我的健康因子是多少?、我有清算风险吗?、检查0x...的健康因子
- 输入:chainId
aave-user-positions($0.01/次调用)
获取用户在Aave上跨链的完整供应和借贷仓位。
- - 适用场景:我的Aave仓位是什么?、显示我的DeFi投资组合、我供应/借贷了什么?
Aave交易
当用户想要生成Aave操作的交易数据时使用这些工具。返回未签名的交易数据——不进行广播。
aave-supply($0.01/次调用)
构建Aave的供应(存款)交易。
- - 适用场景:向Aave供应100 USDC、将ETH存入Aave
- 输入:tokenAddress、amount、chainId
aave-borrow($0.01/次调用)
构建Aave的借贷交易。
- - 适用场景:从Aave借入50 DAI、在Aave上借入USDC贷款
- 输入:tokenAddress、amount、chainId
aave-repay($0.01/次调用)
构建偿还Aave贷款的还款交易。
- - 适用场景:偿还我的DAI贷款、在Aave上偿还100 USDC
- 输入:tokenAddress、chainId、amount或max: true
aave-withdraw($0.01/次调用)
构建从Aave提取资产的提款交易。
- - 适用场景:从Aave提取我的USDC、取出我的ETH供应
- 输入:tokenAddress、chainId、amount或max: true
DEX兑换与跨链桥
由Li.Fi聚合器提供支持。支持12条网络(以太坊、Base、Arbitrum、Optimism、Polygon、Avalanche、BSC、zkSync、Linea、Scroll、Fantom、Gnosis)的同链兑换和跨链桥。要进行跨链桥操作,将fromChain和toChain设置为不同的链ID——Li.Fi会自动通过最优桥协议(Stargate、Across、Hop等)进行路由。返回未签名的交易数据——不进行广播。
swap-quote($0.005/次调用)
获取DEX兑换或跨链桥的价格报价。
- - 适用场景:1 ETH能换多少USDC?、报价从以太坊桥接ETH到Arbitrum、兑换率是多少?
- 输入:fromChain、fromToken、toToken、amount,可选toChain(用于跨链)、slippage
swap-build($0.01/次调用)
构建准备签名的兑换或桥接交易。
- - 适用场景:在Base上将1 ETH兑换为USDC、将100 USDC从以太坊桥接到Arbitrum
- 输入:fromChain、fromToken、toToken、amount,可选toChain、slippage
token-balance($0.005/次调用)
检查钱包在任何支持链上的代币余额。
- - 适用场景:我的ETH余额是多少?、我在Base上有多少USDC?
- 输入:chainId,可选tokenAddress(省略则查询原生代币)
链上代币数据
使用这些工具进行链上代币分析、池发现和热门代币查询。
onchain-token-data($0.015/次调用)
获取全面的链上代币数据,包括价格、供应量、完全稀释估值、市值和顶级流动性池。
- - 适用场景:告诉我关于这个代币的信息、Base上PEPE的市值是多少?
- 输入:network、contractAddress
onchain-token-price($0.015/次调用)
通过合约地址获取链上代币价格。
- - 适用场景:这个代币在链上的价格是多少?
- 输入:network、contractAddress
search-pools($0.015/次调用)
按代币名称、符号或合约地址跨网络搜索流动性池。
- - 适用场景:查找PEPE的流动性池、搜索WETH流动性池
- 输入:query
trending-pools($0.015/次调用)
获取网络上按交易活动排序的热门流动性池。
- - 适用场景:Base上什么最热门?、显示以太坊上的热门池
- 输入:network(例如eth、base、solana、arbitrum)
社交(X / Twitter)
当用户询问推文、Twitter用户或想在X上发帖时使用这些工具。
twitter-search($0.08/次调用)
搜索最近7天内的推文。每次调用最多20条结果。
- - 适用场景:在Twitter上搜索bitcoin、人们怎么说ETH?、查找关于Aave的推文
- 输入:query(X API搜索语法)、maxResults(10-20)、sortOrder(recency或relevancy)
twitter-user-tweets($0.08/次调用)
获取用户的近期推文。每次最多20条。可排除回复和转发。
- - 适用场景:Vitalik最近发了什么?、显示Elon的最新推文
- 输入:userId、maxResults(5-20)、excludeReplies、excludeRetweets
twitter-tweet-lookup($0.02/次调用)
按ID查找推文,包含指标和作者信息。每次最多10条推文。
- - 适用场景:显示这条推文、获取推文ID 123...的详细信息
- 输入:ids(推文ID字符串数组)
twitter-user-lookup($0.02/次调用)
按用户名或用户ID查找X/Twitter用户。
- - 适用场景:@elonmusk是谁?、查找这个Twitter用户、获取用户ID 44196397的个人资料
- 输入:username或userId(仅需一个)
twitter-post($0.015/次调用)
使用