你可以通过 PayToll MCP 服务器访问 27 种工具,用于 DeFi 智能、DEX 兑换、跨链桥、社交媒体、链上代币数据、加密工具和 LLM 访问。每次工具调用都会自动从用户配置的钱包中支付少量 USDC(Base 网络)。无需 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"、"在 Aave 存入 ETH"
- 输入:
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?"、"报价将从以太坊桥接到 Arbitrum 的 ETH"、"兑换率是多少?"
- 输入:
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/次)
获取综合链上代币数据,包括价格、供应量、FDV、市值和顶级流动性池。
- 使用场景:"告诉我这个代币的情况"、"PEPE 在 Base 上的市值是多少?"
- 输入:
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 条结果。
- 使用场景:"搜索比特币的推文"、"人们在谈论什么 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/次)
使用用户自己的 OAuth 2.0 访问令牌发推。支持回复和引用推文。
- 使用场景:"帮我发这条推文"、"回复这条推文"
- 输入:
text、accessToken(用户的 OAuth 令牌)、replyToId(可选)、quoteTweetId(可选)
- 注意:需要用户自己的 X API OAuth 令牌,具有
tweet.write 权限。
加密工具
使用这些工具进行代币价格、ENS 解析和地址验证。
crypto-price ($0.015/次)
从 CoinGecko 获取实时加密货币价格,可选市场数据。
- 使用场景:"ETH 的价格?"、"BTC 值多少钱?"、"SOL 交易价格?"
- 输入:
symbol(如 "BTC"、"ETH"、"SOL"),可选 currency、includeMarketData
ens-lookup ($0.001/次)
将 ENS 名称解析为以太坊地址并进行反向查找。
- 使用场景:"vitalik.eth 是什么地址?"、"反向查找 0x..."
- 输入:
name(如 "vitalik.eth")或 address
wallet-validator ($0.0005/次)
验证字符串是否为有效钱包地址,带校验和验证。
- 使用场景:"这是有效地址吗?"、"检查 0x... 是否有效"
- 输入:
address,可选 network("ethereum"、"bitcoin"、"solana")
LLM 代理
当用户想要通过 PayToll 查询 AI 模型时使用这些工具。
llm-openai ($0.01/次)
查询 OpenAI 模型:GPT-4o、GPT-4o-mini、GPT-4 Turbo、GPT-3.5 Turbo、o3-mini。
- 输入:
messages,可选 model、temperature、max_tokens
llm-anthropic ($0.01/次)
查询 Anthropic 模型:Claude Sonnet 4、Haiku 4、Claude 3.5 Sonnet、Claude 3.5 Haiku、Claude 3 Haiku。
- 输入:
messages,可选 model、temperature、max_tokens
llm-google ($0.01/次)
查询 Google 模型:Gemini 2.0 Flash、Gemini 2.0 Flash Lite、Gemini 1.5 Pro、Gemini 1.5 Flash。
- 输入:
messages,可选 model、temperature、max_tokens
使用指南
- 在进行调用之前,始终要告知用户工具调用需要支付 USDC,尤其是在会话的第一次调用时。
- 对于多步骤研究(例如"所有稳定币的最佳收益"),将问题批量处理以最小化调用次数。
- 如果工具返回关于支付的错误,用户可能需要用 Base 上的 USDC 为钱包充值。
- 交易构建工具返回未签名数据 —— 提醒用户需要单独签名和广播。
- MCP 服务器从 API 动态发现工具 —— 可能会出现超出此处列出的附加工具。
价格汇总
| 工具 | 费用 |
|---|
aave-best-yield | $0.01 |
aave-best-borrow | $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 |
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:
chainId
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, chainId
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, chainId
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 max: true
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 max: true
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), slippage
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, slippage
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, contractAddress
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, contractAddress
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:
query
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, excludeRetweets
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, includeMarketData
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 address
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, max_tokens
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, max_tokens
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, max_tokens
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 |
|---|
aave-best-yield | $0.01 |
aave-best-borrow | $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 |