fry-x402-mcp
OfficialProvides tools for interacting with the Algorand blockchain, including DeFi/DePIN data feeds, staking, LP farming, Genesis NFT mint, P2P offers, and transaction submission.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@fry-x402-mcp show me the farm pool analytics"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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_refreshpicks 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 buildClaude 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 |
| for paid tools | — | The agent's OWN Algorand wallet (25 words). Signs x402 payments and is the |
| no |
| Hard per-call spend ceiling; payment requirements above it are refused. |
| no | public node | Override the Algorand node used by the payment client. |
| no | — | Sent as |
| no |
| Single API base (unprefixed tool names). |
| no | — | Comma-list of API bases for multi-property use. Each base's tools are prefixed with a short property tag ( |
Multi-property example (Claude Desktop env)
"FRY_X402_BASES": "https://fry.farm,https://fry.market",
"ALGOD_TOKEN": "<node token if required>"Related MCP server: algorand-mcp
Tools
Tool | Price | What it does |
| free | Live catalog: endpoints, prices, params, payment requirements |
| free | Re-fetch catalog, regenerate tools |
| $0.01 | DePIN device-staking pool telemetry |
| $0.008 | Farming/pool analytics (pools, TVL, positions) |
| $0.005 | FRY reward emission, daily budget, leaderboard |
| $0.01 | Build FryStaking V3 groups |
| $0.01 | Build FryFarming groups |
| $0.01 | Build Genesis NFT mint group (currently paused on-chain) |
| $0.01 | Build P2P offer groups |
| $0.005 | Submit a signed group; waits ≤8 rounds |
| $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_MNEMONICis 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_USDCcaps 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
paymentReceiptheader content when the facilitator settles the payment.
License
MIT © Fry Foundation
Available Tools
17 toolsx402_catalogA
FREE — fetch the live https://fry.farm x402 catalog: every endpoint, price, param spec, and full x402 payment requirements.
Inputs: no named parameters.
x402_catalog_refreshA
FREE — re-fetch the live https://fry.farm x402 catalog and regenerate its catalog-derived tools (picks up new/removed/re-priced endpoints).
Inputs: no named parameters.
x402_farmA
PAID $0.008 USDC — farming/pool analytics (pools, TVL, positions). Returns live JSON from https://fry.farm.
Inputs: no named parameters.
x402_fleetA
PAID $0.01 USDC — DePIN device-staking pool telemetry. Returns live JSON from https://fry.farm.
Inputs: no named parameters.
x402_genesis_mintA
PAID $0.01 USDC — genesis-mint/mint: 2-txn group: [axfer USDC mint_price -> app addr, appl mint(axfer) with owner/balance boxes, foreignAsset USDC, account treasury]. Sign with your own wallet, then call the submit tool. [PAUSED on-chain: On-chain paused; group builds correctly but the contract rejects until unpaused.]
Inputs: sender (required).
x402_lp_farm_claimA
PAID $0.01 USDC — lp-farm/claim: 1-txn group: [appl claimRewards()] flat fee 0.002 ALGO. Sign with your own wallet, then call the submit tool.
Inputs: sender (required), farmingId (required).
x402_lp_farm_stakeB
PAID $0.01 USDC — lp-farm/stake: 4-txn group: [pay boxMBR->app, stakePay->app, stakeAxfer->app, appl stakeTokens(uint64,uint64,pay,axfer,pay)]. Sign with your own wallet, then call the submit tool.
Inputs: sender (required), farmingId (required), stakeAmount (required), updatedApr, +1 more.
x402_lp_farm_unstakeB
PAID $0.01 USDC — lp-farm/unstake: 1-txn group: [appl unstakeTokens(unstakeAmount)] flat fee 0.003 ALGO. Sign with your own wallet, then call the submit tool.
Inputs: sender (required), farmingId (required), unstakeAmount (required).
x402_p2p_acceptA
PAID $0.01 USDC — p2p/accept: 2-txn group: [pay ALGO->app, appl accept_offer_algo(uint64 offerId, pay)] with offer box ref, fee 0.005 ALGO. Sign with your own wallet, then call the submit tool.
Inputs: sender (required), offerId (required), payAmount (required).
x402_p2p_cancelA
PAID $0.01 USDC — p2p/cancel: 1-txn group: [appl cancel_offer(offerId)] with offer box ref, fee 0.002 ALGO. Sign with your own wallet, then call the submit tool.
Inputs: sender (required), offerId (required).
x402_p2p_createA
PAID $0.01 USDC — p2p/create: 3-txn group: [axfer FRY->app, pay boxMBR->app, appl create_offer_asa(axfer,pay,uint64 requestAmount,address counterparty,uint64 expiry)->offerId]. Sign with your own wallet, then call the submit tool.
Inputs: sender (required), offerAmount (required), requestAmount (required), expiry, +2 more.
x402_rewardsB
PAID $0.005 USDC — FRY reward emission, daily budget, leaderboard. Returns live JSON from https://fry.farm.
Inputs: no named parameters.
x402_staking_claimA
PAID $0.01 USDC — staking/claim: 1-txn group: [appl claimTokens(updatedApr)] flat fee 0.002 ALGO. Sign with your own wallet, then call the submit tool.
Inputs: sender (required), stakingId (required), updatedApr.
x402_staking_stakeA
PAID $0.01 USDC — staking/stake: 4-txn group: [pay boxMBR->app, stakePay->app, stakeAxfer->app, appl stakeTokens(uint64,uint64,pay,axfer,pay)]. Sign with your own wallet, then call the submit tool.
Inputs: sender (required), stakingId (required), stakeAmount (required), updatedApr, +1 more.
x402_staking_unstakeA
PAID $0.01 USDC — staking/unstake: 1-txn group: [appl unstakeTokens(unstakeAmount, updatedApr)] flat fee 0.003 ALGO. Sign with your own wallet, then call the submit tool.
Inputs: sender (required), stakingId (required), unstakeAmount (required), updatedApr.
x402_statusA
PAID $0.001 USDC — look up an Algorand transaction's pending/confirmed status by txid.
Inputs: txid (required).
x402_submitA
PAID $0.005 USDC — submit a SIGNED atomic group to Algorand mainnet; waits up to 8 rounds for confirmation. Use after signing the unsigned group returned by a build tool.
Inputs: txnsB64 (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 17 tools
Each tool has a distinct purpose: LP farm actions, staking actions, P2P actions, and meta/analytics tools are clearly separated by prefix and description. Minor overlap exists between analytics (x402_farm) and LP farm actions (x402_lp_farm_*), but descriptions are explicit enough to avoid confusion.
All tools share the x402_ prefix and use underscores, but the pattern is mixed: some are domain_action (lp_farm_stake, p2p_accept), some are bare nouns (catalog, farm, status), and one is noun_verb (catalog_refresh). This reduces predictability, though the prefix helps maintain some coherence.
At 17 tools, the server is on the heavier side, but the breadth of functionality (staking, LP farming, P2P, genesis mint, analytics, and meta operations) justifies the count. Each tool covers a distinct operation, and the number feels appropriate for a multi-protocol DeFi server.
The tool set covers the full lifecycle for staking and LP farming (stake, unstake, claim), P2P offers (create, accept, cancel), and includes necessary companions like submit and status. Notable gaps include missing view/list tools for P2P offers and positions, but analytics tools partially fill this need, making the set reasonably complete.
Maintenance
Related MCP Connectors
Remote MCP server exposing 330 production AI-agent services for web/data processing, validation, AI utilities, blockchain/crypto utilities, and x402 pay-per-use access.
x402 pay-per-call APIs over MCP, settled in USDC on Base for autonomous agents and developers.
Programmatic web-scraping MCP server powered by x402 micro-transactions on Base.
Monetize any MCP server: x402 paywall, pay-per-call billing in USDC on Base, agent marketplace.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceMCP server with 12 tools enabling AI agents (Claude, ChatGPT) to manage Algorand-based subscriptions, including locking funds in vaults and automated payments.4Apache 2.0
- AlicenseNot gradedqualityDmaintenanceA comprehensive Model Context Protocol (MCP) server providing 50+ tools for Algorand blockchain development, including account management, asset operations, smart contracts, API integration, swap functionality, and advanced transaction capabilities.ISC

oom-x402-mcpofficial
FlicenseNot gradedqualityBmaintenanceMCP server exposing 1,000+ pay-per-call API endpoints across agent infrastructure (memory, coordination, secrets, verification), data, compute, finance, weather, geography, and reference categories — payments via x402 protocol in USDC on Base.-- AlicenseNot gradedqualityDmaintenanceMCP server providing 50+ crypto, market intelligence, and AI inference endpoints with x402 pay-per-request micropayments on Base.2Apache 2.0