Tools
MCP server
floprouter's tools for any MCP client, from Claude Code to Cursor and Codex.
floprouter-mcp lets an agent list models and miners, run paid chat completions, and check sessions, balance and grant state. It never handles wallet keys.
Not published yet. The package is built and tested, but it is not on npm. The commands below work once it is.
Shell
npx -y floprouter-mcp # stdio, what desktop and IDE clients use npx -y floprouter-mcp --http # streamable HTTP on http://127.0.0.1:8792/mcp
| Variable | Meaning |
|---|---|
FLOPROUTER_API_KEY | Your fr_... key. Without it, the read-only tools work. Falls back to the key saved by floprouter login. |
FLOPROUTER_BASE_URL | Default https://api.floprouter.com |
| Tool | What it does | Paid |
|---|---|---|
list_models | Models, ready and reachable miners, escrow per 1,000 tokens | no |
list_miners | Miners with score, settle rate, sessions, strikes, calibration and reachability | no |
get_miner | One miner in detail | no |
chat | One chat completion, auto or pinned miner | yes |
session_status | Settlement state of a session | no |
account | Balance, deposit address, fee and grant state | no |
router_status | Network, sync state and payer | no |
Claude Code:
Shell
claude mcp add floprouter --scope user -e FLOPROUTER_API_KEY=fr_... -- npx -y floprouter-mcp
Claude Desktop (claude_desktop_config.json) and Cursor (~/.cursor/mcp.json):
JSON
{
"mcpServers": {
"floprouter": {
"command": "npx",
"args": ["-y", "floprouter-mcp"],
"env": { "FLOPROUTER_API_KEY": "fr_..." }
}
}
}Codex (~/.codex/config.toml):
TOML
[mcp_servers.floprouter] command = "npx" args = ["-y", "floprouter-mcp"] env = { FLOPROUTER_API_KEY = "fr_..." }
chat returns once the reply is verified. Use session_status for the settlement; many MCP clients time a tool out before a settlement finishes.