Flow — Base quotes & contract safety for agents
Best-execution quotes and contract safety checks on Base for AI agents, paid per call via x402.
我该使用它吗
质量与安全性
基于对工具定义和协议合规性的自动分析。
上下文开销
这是每次将服务器的工具加载到模型上下文窗口时所消耗的大致 token 数。数值越高,可用于其他任务的注意力就越少。
安装
一键安装
将以下内容添加到你的 `claude_desktop_config.json` 文件中:
{
"mcpServers": {
"flow": {
"url": "https://flow-kg4x.vercel.app/api/mcp"
}
}
}远程端点
https://flow-kg4x.vercel.app/api/mcpstreamable-http它能做什么
工具清单
工具(4)
🟢flow_quote(tokenIn, tokenOut, amountIn, chainId)
Get a best-execution swap quote on Base. Compares Uniswap V3, PancakeSwap V3 and Aerodrome (plus two-hop routes via WETH), returns the winning venue, expected output, edge in bps vs the baseline, a liquidity flag (deep/watch/thin), the exact block number and timestamp, and build latency. Read-only: no funds move.
输入模式
{
"type": "object",
"properties": {
"tokenIn": {
"type": "string",
"description": "Input token contract address on Base (e.g. USDC 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA4E46E)"
},
"tokenOut": {
"type": "string",
"description": "Output token contract address on Base (e.g. WETH 0x4200000000000000000000000000000000000006)"
},
"amountIn": {
"type": "string",
"description": "Human-readable input amount, e.g. \"10\" for 10 USDC"
},
"chainId": {
"type": "number",
"description": "Chain id, defaults to 8453 (Base)"
}
},
"required": [
"tokenIn",
"tokenOut",
"amountIn"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
}⚪flow_paycheck(payee)
Before you pay this agent, check. PayCheck ($0.50 USDC via x402 on Base) runs Flow's whole checker stack on a payee in ONE call — the payee verdict (kind, on-chain activity, the full contract-safety engine when the payee is a contract), the wallet approval-exposure audit, contract safety, and the payee's recent USDC settlement history — and returns one finished grade (ALLOW / REVIEW / BLOCK with a 0-100 score), a verify_status (verified / failed / unverified_verifier_down), every check, the evidence under it, and a receipt. The guarantee: the report is produced before settlement; if it cannot be produced, the payment is never settled — no report, no charge. This hosted endpoint does not hold a wallet: an unpaid call returns the endpoint's x402 payment challenge itself, never an invented result. Pay it with any x402 client, or use the @flowexecutor/flow-mcp stdio package with an Early Builder Key.
输入模式
{
"type": "object",
"properties": {
"payee": {
"type": "string",
"description": "The payee address to grade before paying (0x…), Base"
}
},
"required": [
"payee"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢flow_search(query, maxResults)
Verified Search ($0.01 USDC via x402 on Base): web search where every result is independently checked by Flow before it reaches you — the result URL is fetched live (liveness, final HTTP status recorded) and the fetched page text is matched against the result's own title/snippet terms (content-match score). Each result carries a verify_status (verified / failed / unverified_verifier_down), its httpStatus and contentMatch, and the response carries a receipt counting checked / verified / failed. Bad results are flagged, never silently dropped. The guarantee: the search is produced before settlement; if it cannot be produced, the payment is never settled. This hosted endpoint does not hold a wallet: an unpaid call returns the endpoint's x402 payment challenge itself, never an invented result. Pay it with any x402 client, or use the @flowexecutor/flow-mcp stdio package with an Early Builder Key.
输入模式
{
"type": "object",
"properties": {
"query": {
"type": "string",
"description": "The search query"
},
"maxResults": {
"type": "number",
"description": "Max results to return and verify (default 5, cap 10)"
}
},
"required": [
"query"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢flow_health
Check the Flow quote API health: status, chain, and latest synced block number.
输入模式
{
"type": "object",
"properties": {},
"$schema": "http://json-schema.org/draft-07/schema#"
}社区
证据