com.ftkai/ftk-mcp
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
FTK agent kit
Prediction-market and crypto-derivatives data for trading agents, paid per call in USDC with x402 - no account, no API key, no subscription. This kit is everything an agent needs to call the FTK market data API:
ftk-mcp: an MCP server (stdio) that exposes every/v1endpoint as a tool and does the x402 payment step itself (402 -> check price -> sign USDC authorization -> retry), with a per-call price cap;examples/btc_edge_agent.py: a small agent that pays for one call and prints Polymarket BTC markets that are mispriced against the options market;tests that run a full paid call against a local API with the real x402 middleware and an offline facilitator (no chain, no real money).
What the API sells: Polymarket wallet true PnL and a PnL leaderboard, Polymarket BTC price-target markets vs. options-implied probability (edge after fees), Polymarket GPU rental-price markets, and live cross-venue perpetual-futures funding and spreads.
Polymarket data is for individual traders and individual developers only; it is not sold to funds, market makers,
fintech companies or data vendors. FTK is not affiliated with Polymarket or Deribit and uses only official public APIs.
MIT licence (see LICENSE). Source: https://github.com/0x3f97/ftk-agent-kit. Not on PyPI yet; install from
that repository as below.
Quick start (about 3 minutes)
Requires Python 3.10+ and uv.
1. Install and look at the data for free (no wallet, nothing is signed):
git clone https://github.com/0x3f97/ftk-agent-kit && cd ftk-agent-kit
uv sync
curl -s https://api.ftkai.io/v1/sample/polymarket-btc-edge | head -c 600; echo # free fixed sample, same schema
uv run python examples/btc_edge_agent.py # sample + the price quoteThe last command prints the schema check and price: 0.5 USDC on eip155:8453 to 0x...: that is the 402 offer.
2. Give the agent a wallet. Create a new wallet just for this, put a few USDC on Base in it (no ETH needed: the facilitator pays gas), and export its key in the shell that runs the agent:
export FTK_BUYER_PRIVATE_KEY=0x... # dedicated low-balance wallet, never your main wallet
export FTK_MAX_PRICE_USD=0.50 # refuse any single payment above this3. First paid call:
uv run python examples/btc_edge_agent.py --min-edge 0.02 --tier 1500
# example output:
# paid 0.5 USDC, settlement 0x..., data age 312 s
# +0.034 YES model 0.1079 ask 0.058 Will Bitcoin dip to $40,000 by December 31, 2026?4. Use it from your agent (Claude Code shown; any stdio MCP client works, see Configure below):
claude mcp add ftk -e FTK_MAX_PRICE_USD=0.50 -e FTK_BUYER_PRIVATE_KEY=$FTK_BUYER_PRIVATE_KEY \
-- uv run --directory "$PWD" ftk-mcpThen ask: "Use ftk_pm_btc_edge to list Polymarket BTC markets with at least 2 cents of edge after fees."
Free alternatives before paying: ftk_sample (fixed rows, exact paid schema) and ftk_free (real but
delayed or truncated data, small daily allowance per IP).
Related MCP server: NEX Agent Co. MCP Server
Tools
tool | cost | returns |
| free | the API description ( |
| free | FIXED illustrative rows (placeholder symbols, invented numbers) in exactly the paid schema, so an agent can check fields before paying |
| $0.01 per call | live funding opportunities: best short/long venue pair per symbol, annualized spread now/24h/7d, entry basis, fees, volume, capacity |
| $0.01 per call | live spreads: highest bid vs lowest ask venue per symbol, gross and net of estimated taker fees (bp), funding carry |
| $0.25 per call | Polymarket wallet: native PnL vs true PnL (unpriced placeholder positions at 0), strategy breakdown; pay-per-call covers cached wallets (the scored set), others get a free 404; with |
| $0.50 per call | Polymarket wallets ranked by PnL after fees, with coverage and computed_at |
| $0.25 per call | Polymarket GPU rental-price markets: bid/ask, implied probability, days remaining, market-implied average per event, live public GPU rental prices (GPU.ai, Akash, Lambda) and the gap; FTK own rental index |
| $0.50 per call | Polymarket BTC price-target markets vs options-implied probability: fill cost for 400/1500/5000 USDC and edge after fees (derived values only; not affiliated with Polymarket or Deribit) |
Paid tools return {"status", "paid", "quote", "transaction", "as_of", "age_seconds", "rows"}.
as_of / age_seconds describe the snapshot (refreshed about once a minute).
Configure (Claude Desktop / Claude Code / any stdio MCP client)
{
"mcpServers": {
"ftk": {
"command": "uv",
"args": ["run", "--directory", "/path/to/ftk-agent-kit", "ftk-mcp"],
"env": {
"FTK_MAX_PRICE_USD": "0.50",
"FTK_BUYER_PRIVATE_KEY": "<0x... key of a wallet holding a little USDC on Base>"
}
}
}
}Claude Code: claude mcp add ftk -e FTK_MAX_PRICE_USD=0.50 -e FTK_BUYER_PRIVATE_KEY=<key> -- uv run --directory /path/to/ftk-agent-kit ftk-mcp
variable | default | meaning |
|
| API origin |
| unset | wallet key used to sign x402 payments. Without it the paid tools never pay: they return the price quote from the 402 response. Use a dedicated low-balance wallet. |
|
| refuse to sign any payment above this per call (0.50 covers every tool: Polymarket leaderboard and btc-edge $0.50, wallet $0.25; set 0.01 to allow only the $0.01 tables) |
| none | monthly-plan key: sent as |
| unset | if set, refuse to pay any other recipient address |
How payment works
The tool sends a plain
GETto the paid endpoint. The API answers402 Payment Requiredwith aPAYMENT-REQUIREDheader (base64 JSON: amount, asset, network,payTo).The tool checks the offer before signing: scheme
exact, network Base mainnet (eip155:8453), asset = USDC on Base, amount <=FTK_MAX_PRICE_USD, andpayTo=FTK_EXPECTED_PAY_TOif set. Anything else is refused and nothing is signed.It signs an EIP-3009 USDC authorization with the x402 SDK and retries with
PAYMENT-SIGNATURE. The server verifies the signature, runs the query, and settles the payment only if the response is a success; on any error (4xx/5xx, including 503 for a stale snapshot) nothing is settled. The settlement transaction hash is returned astransaction.
Note: a 200 is charged even when it is an empty array, and a call that times out on the client side
after the server answered may still be settled. See ftk_docs for the exact policy.
Test
uv sync # includes the dev group: pytest, fastapi, uvicorn, x402[fastapi]
uv run pytest # no network, no real moneytests/test_server.py: offer checks, price cap, quote-only without a key, API-key mode, tool parameters.tests/test_paid_call_local.py: starts a local stand-in API (tests/local_api.py) guarded by the real x402 FastAPI middleware, with an offline facilitator (tests/fake_facilitator.py) that verifies the EIP-3009 signature. The MCP server, over stdio, pays for funding, wallet, leaderboard and btc-edge with a key generated in the test.tests/test_example_agent.py: the example agent against the same local API, dry run and paid run.Optional:
FTK_TEST_BASE=http://127.0.0.1:8081 uv run pytestadds a stdio round-trip against a running API (free tools and the 402 quote only; it never pays).
Files
path | what |
| the MCP server (one file) |
| example agent |
| tests, local stand-in API, offline facilitator |
| dependencies: |
| MIT |
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Paid MCP tools behind one endpoint. Agents pay per call in USDC on Base via x402.
Pay-per-call data for agents over x402: crypto prices, on-chain reads, web research, public tenders.
Pay-per-call DeFi and macro intel for AI agents. x402 USDC tools via streamable HTTP /api/mcp.
Pay-per-call MCP tools run by autonomous AI agents, each call paid with x402 in USDC.
Related MCP Servers
AlicenseAqualityDmaintenanceGives MCP-compatible LLM agents direct access to real-time MEV and DeFi data via Valorem's x402-paid API endpoints, with payments in USDC on Base mainnet.9MIT- FlicenseNot gradedqualityDmaintenanceEnables AI agents to access 11 paid x402 endpoints as standard MCP tools, paying per call in USDC on Base without API keys, covering chat, code, vision, embeddings, crypto prices, weather, geolocation, forex, and WHOIS data.-
- AlicenseAqualityCmaintenanceEnables MCP-capable AI agents to make pay-per-call Solana data requests (snapshots, risk checks, token reports, health, balances, transactions, trending pairs) with automatic USDC settlement over x402.5MIT
- AlicenseNot gradedqualityCmaintenancecryptofeed402 is a pay-per-call crypto market-data feed for AI agents: live Hyperliquid funding, OI, marks and candles for all crypto perps and HIP-3 stock perps (xyz:TSLA, 24/7), funding history, predicted funding, liquidation levels, OKX spot, news sentiment, daily brief. No account or API key: pay per call in USDC on Base, from $0.001. Failed calls never charged. Signed receipts. Not advice.MIT