flapjax-mcp
flapjax-mcp
Read-only FLAPJAX on-chain state for agents — a zero-dependency Model Context Protocol server (stdio).
Seven tools over the FLAPJAX/WBNB 1% PancakeSwap V3 pool on BSC, the FlapJax treasury, any BSC address, and the FlapJax x402 checker on Base. No API keys held by the server, no transactions, no writes — only eth_call / eth_getBalance / eth_blockNumber against public BSC RPCs (with fallback across four endpoints) and read-only HTTP calls to the checker.
Install
git clone https://github.com/kaminariouji/flapjax-mcp
# no dependencies; Node.js >= 18MCP client config (Claude Desktop, Cursor, or any MCP client):
{
"mcpServers": {
"flapjax": {
"command": "node",
"args": ["/absolute/path/to/flapjax-mcp/index.mjs"]
}
}
}Related MCP server: BNB Chain MCP Server
Tools
Tool | What it returns |
| sqrtPriceX96, tick, liquidity, mid price both directions — pinned to a block number |
| WBNB absorbed for a +N% move / FJ absorbed for a -N% move, in both fee conventions (net = curve, gross = trader pays net/0.99) |
| Live QuoterV2 quote: |
| Treasury + pool balances (BNB, FLAPJAX, WBNB) and the daily buyback context with the skip-rule projection |
| BNB / FLAPJAX / WBNB balances for any address — verify an agent actually got paid |
| Calls the FlapJax Agent/Wallet Checker (x402, Base mainnet): free live payment terms (price, payTo, schema example) + the wallet's FJ-credit balance; with |
| Static reference: addresses, buyback program, known quirks, links |
Verified sample (block 127,053,470 — 2026-10-11)
depth with percent: 2:
{
"up": { "netWbnbIn": 0.06488399, "grossWbnbIn": 0.06553938, "fjOut": 155378465.32 },
"down": { "netFjIn": 160111004.59, "wbnbOut": 0.06553614 }
}These reproduce — to the digit — the numbers independently reconciled in the public Q18 review: the +2% gross depth of 0.065539 WBNB, and the two fee conventions (gross = net/0.99).
quote with side: "buy", amount: 0.01:
{ "amountOut": 23907253.97, "amountOutSide": "FJ", "route": "WBNB -> FLAPJAX (1% pool)" }Matches the clean-table convention quote at the same pinned block (23,907,253.97).
treasury:
{
"balances": { "bnb": 0.15464914, "flapjax": 213830043.84, "wbnb": 0 },
"buybackContext": { "derivedAvailableBnb": 0.04464914, "wouldBuyNow": true }
}check_address on 0x8c062dc5d775b7d5efc168f75a875f392f53dcdf:
{ "bnb": 5.25e-7, "flapjax": 1750000, "wbnb": 0 }check_token on the same address (free mode — live 402 terms + FJ credits, 2026-10-12):
{
"checker": "https://flapjax-check.run402.com",
"fj_credit": { "status": 200, "body": { "credits": 0, "used": 0 } },
"full_check_http_status": 402,
"payment_terms": {
"scheme": "exact", "network": "eip155:8453",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount_base_units": "20000", "amount_usd": 0.02,
"pay_to": "0x3393319386c77ea0e8873a9bf510f1b6668a02a8"
},
"paid_result": { "note": "full paid check not attempted: set FLAPJAX_X402_KEY ..." }
}The paid path is opt-in and host-owned: the tool signs the x402 payment locally with your key (FLAPJAX_X402_KEY env, the host's own wallet — the server never bundles or stores any key). Install the optional x402-fetch package for it:
npm install x402-fetch
FLAPJAX_X402_KEY=0x... node index.mjs # full checks enabled; $0.02 USDC/call on BaseFJ lane: 1,000,000 FLAPJAX = 20 checks (send to the FlapJax treasury, redeem via /fj/redeem).
Notes & caveats
Read-only. Public data, not financial advice. Public RPC endpoints may rate-limit.
Historical
eth_getLogsis blocked on most public BSC RPCs; this server deliberately uses only calls that work without an archive key.Known quirk (also returned by
info): Pancake V3tickBitmapis indexed by compressed tick (tick / tickSpacing= 200 for this pool), not the raw tick.Related: the browser probe at https://kaminariouji.github.io/flapjax-probe/.
MIT license.
Related MCP Connectors
Non-custodial DeFi for AI agents: swaps, concentrated liquidity (V3/V4) zaps + ranges, 5 EVM chains
Signed BNB Chain reads (balances, tokens, NFTs, prices, TapeOut names) with verifiable receipts
Lighter funding/volume snapshot and multi-chain wallet balance checks for AI agents.
11Pay-per-call (x402/USDC-Base) web + crypto data tools for AI agents: audit, extract, crypto, DeFi.
Related MCP Servers
- AlicenseBqualityFmaintenanceCross-exchange crypto orderflow for AI agents. 20 exchanges, 26 tokens, 9 tools — CVD, whale activity, funding/OI, 7-year OHLCV, on-chain address risk (EVM + Solana). Pay-per-call USDC via x402, no API key.927 npm1MIT
- AlicenseNot gradedqualityNot gradedmaintenanceA comprehensive Model Context Protocol server that enables AI agents to interact with BNB Chain, opBNB, and other EVM networks through natural language. It provides tools for DeFi trading, DEX swaps, smart contract deployment, token operations, security analysis, and market data across multiple blockchain networks.64 npm-
- AlicenseAqualityAmaintenanceLive verifiable on-chain data for the $BOBAI token on BNB Chain: price computed from pair reserves × Chainlink (no price API), liquidity depth with LP-burn proof, buyback-and-burn audit trail, and fee-on-transfer-safe trade params. 13 read-only tools + 2 guided prompts, no API key.25MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to interact with BNB Chain, including wallet creation, balance queries, token transfers, swaps via PancakeSwap V3, and price data from Binance Oracle.MIT