floprouter-mcp

v0.2.1
floprouter-mcp Checked 2 days ago Published 10 days ago

MCP server for the floprouter API: FLOP Network models and miners, paid chat completions, sessions, balance and grants for AI agents

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

list_models List models

Models in the FLOP on-chain registry: how many miners can serve each right now, the escrow per 1,000 tokens of prompt + max_tokens (FLOP), the minimum charge per request and the largest request served.

ParameterTypeDescription
only_availablebooleanOnly models with at least one ready miner

list_miners List miners

Registered FLOP miners with the router's reliability score (0-100), rank and the public on-chain facts behind it (settle rate, sessions, strikes, calibration), plus whether the router can reach them now.

ParameterTypeDescription
limitintegerDefault 20
min_scorenumber
modelstringModel id, for example qwen/qwen3-8b
offsetinteger
reachablebooleanOnly miners whose session URL the router has verified and can reach
readybooleanOnly miners that are ready to serve right now
sortstring

get_miner Inspect a miner

One miner in detail: score, on-chain history, stake, calibration, slashing, models with evidence, endpoints and recent channels.

ParameterTypeDescription
address *stringMiner SS58 address

chat Chat completion (paid)

Send one chat completion to a FLOP miner through floprouter and get the reply. Spends FLOP. Leave `miner` empty to let the router pick the most reliable ready miner, or pin one or more miner addresses. Returns the reply text plus the session id, miner, escrow and payer. Tools/function calling are not supported by the network.

ParameterTypeDescription
model *stringModel id from list_models, for example qwen/qwen3-8b
allow_fallbacksbooleanWhen pinned, allow other miners if the pinned ones fail. Default false when pinned
fallback_modelsarrayModels to try next, in order, if no miner serves `model` (the API's `models` list)
fallback_payerstringIn grant mode, run in credit mode when no miner has a live signed offer
max_tokensintegerDefault set by the router (256). The escrow, and so the cost, follows max_tokens
messagesarrayFull conversation in OpenAI format (use this or prompt)
minerPin to this miner address (or try these in order)
payerstringOverride the key's payer mode for this request
promptstringA single user message (use this or messages)
systemstringSystem prompt, used with prompt
wait_for_settlementbooleanAfter the reply, poll until the on-chain settlement is final (2-5 minutes; only for clients without a tool timeout). Default false: return as soon as the reply is verified and check later with session…

session_status Session status

Settlement state of a chat session: status (settling, settled, refunded, failed...), channel id, miner, escrow, amount paid to the miner, attempts and explorer links.

ParameterTypeDescription
session_id *string

generation Generation stats

One request by its id (gen-...): tokens, cost in FLOP (final once settled), finish reason, latency, the verified reply, and the session. Needs the key of the wallet that made it.

ParameterTypeDescription
id *stringThe generation id returned by chat (same as the session id)

account Balance, key and grant

The calling wallet's prepaid FLOP balance (available, held, deposit address, fee, recent ledger entries, withdrawals), this API key's usage in FLOP and rate limits, the state of its on-chain session-key grants (compute and fee grant by `kind`), and the router fees (`fees`: mode, accrued, collected, owed, last collection). In the default deposit-free mode the router collects its fee from the wallet through the fee grant, so no prepaid balance is needed. Needs an API key.

grant_status Grant status

The session-key grant that lets the router open channels paid by the user's wallet: state, expiry, days left, spending cap and today's room left, and whether renewal is due (under 2 days left or nearly used up). Also the router fees (`fees`: accrued, collected, owed) and the fee grant that pays them. Tell the user when renewal is due: only their wallet can sign a new grant (`floprouter grant`, one signature for both grants).

withdraw Withdraw prepaid balance

Send prepaid FLOP from the router balance back to the wallet that owns this API key (the only destination the API allows). The chain fee is taken out of the amount. Only use when the user asks for it.

ParameterTypeDescription
amount *stringDecimal FLOP, or "all" for the whole available balance

router_status Router status

Network, sync state, number of miners and verified endpoints, and which wallet pays for sessions.