fry-x402-mcp

fry-x402-mcp

MCP server exposing fry.farm's x402 API as tools, enabling non-custodial blockchain interactions with pay-per-call endpoints on Algorand.

Category
访问服务器

README

fry-x402-mcp

MCP server that exposes the fry.farm x402 agentic actions API as tools any MCP client (Claude Desktop, Claude Code, custom agents) can call.

  • 15 pay-per-call endpoints on Algorand mainnet, priced $0.001–$0.01 in USDC (ASA 31566704): 3 DeFi/DePIN data feeds + 12 transaction actions (staking, LP farming, Genesis NFT mint, P2P offers, submit, status).
  • Non-custodial: build tools return unsigned atomic groups. Your agent signs with its own wallet and submits via x402_submit. fry.farm never holds keys.
  • No API keys, no accounts — x402 (v2, scheme exact) payment is the only auth. Payments verify and settle through the GoPlausible facilitator.
  • Catalog-driven: tools are auto-generated at startup from the live, free /x402/catalog; x402_catalog_refresh picks up changes without a restart.

Quickstart

git clone https://github.com/Fry-Foundation/fry-x402-mcp.git
cd fry-x402-mcp
npm install && npm run build

Claude Desktop (claude_desktop_config.json)

{
  "mcpServers": {
    "fry-x402": {
      "command": "node",
      "args": ["/absolute/path/to/fry-x402-mcp/dist/index.js"],
      "env": {
        "AGENT_MNEMONIC": "your 25-word agent wallet mnemonic",
        "MAX_PAYMENT_USDC": "0.05"
      }
    }
  }
}

Generic MCP client (stdio)

Run node dist/index.js with the env vars below; speak MCP over stdio.

Env var Required Default Purpose
AGENT_MNEMONIC for paid tools — The agent's OWN Algorand wallet (25 words). Signs x402 payments and is the sender for built groups. Without it only free tools work.
MAX_PAYMENT_USDC no 0.05 Hard per-call spend ceiling; payment requirements above it are refused.
ALGOD_URL no public node Override the Algorand node used by the payment client.
ALGOD_TOKEN no — Sent as X-Algo-API-Token when set — required by token-gated nodes.
FRY_X402_BASE no https://fry.farm Single API base (unprefixed tool names).
FRY_X402_BASES no — Comma-list of API bases for multi-property use. Each base's tools are prefixed with a short property tag (x402_farm_fleet, x402_market_market_collections, …) so multiple catalogs coexist without collisions. Takes precedence over FRY_X402_BASE.

Multi-property example (Claude Desktop env)

"FRY_X402_BASES": "https://fry.farm,https://fry.market",
"ALGOD_TOKEN": "<node token if required>"

Tools

Tool Price What it does
x402_catalog free Live catalog: endpoints, prices, params, payment requirements
x402_catalog_refresh free Re-fetch catalog, regenerate tools
x402_fleet $0.01 DePIN device-staking pool telemetry
x402_farm $0.008 Farming/pool analytics (pools, TVL, positions)
x402_rewards $0.005 FRY reward emission, daily budget, leaderboard
x402_staking_stake / x402_staking_unstake / x402_staking_claim $0.01 Build FryStaking V3 groups
x402_lp_farm_stake / x402_lp_farm_unstake / x402_lp_farm_claim $0.01 Build FryFarming groups
x402_genesis_mint $0.01 Build Genesis NFT mint group (currently paused on-chain)
x402_p2p_create / x402_p2p_accept / x402_p2p_cancel $0.01 Build P2P offer groups
x402_submit $0.005 Submit a signed group; waits ≤8 rounds
x402_status $0.001 Tx status by txid

Typical agent journey: x402_catalog → x402_staking_stake (returns unsigned group) → sign locally → x402_submit → x402_status.

Security notes — read before configuring

  • AGENT_MNEMONIC is the agent's wallet, not your main wallet. Fund it with only what the agent should be able to spend (USDC for x402 fees + the amounts it will transact + ALGO for txn fees).
  • The mnemonic is read once from the environment and held in process memory only — never logged, never written to disk, never sent anywhere. Payments are signed locally; only signed payment payloads leave the process.
  • MAX_PAYMENT_USDC caps each x402 payment client-side. On-chain action amounts (stake sizes etc.) are separate — they are whatever your agent asks to build and sign.
  • Every paid response includes the paymentReceipt header content when the facilitator settles the payment.

License

MIT © Fry Foundation

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选