Floe Payments and Credit
OfficialThis MCP server exposes Floe Payments and Credit capabilities so an AI agent can manage spend, payments, credit/lending, webhooks, and its own lifecycle.
Manage agents and keys: create/list/get/pause/resume/close agents; mint, rotate, revoke agent keys; set rolling key budgets.
Manage credit/funding: open credit lines, preview credit-line bounds, get funding instructions, balances, activity, and usage summaries.
Govern spend: read available credit/headroom, loan state, session spend limits; set/clear spend limits; register/list/delete credit thresholds; get agent reputation.
Control merchant access: set/read allowlist mode and add/remove/list host or payee allowlist entries with spend caps.
Pay for x402 APIs: check, estimate, and forecast x402 costs, then execute paid x402 calls with idempotency.
Price inference: list Floe Inference models and estimate LLM/TTS/STT/realtime costs.
Use Base lending: browse markets/intents/loans, create lend/borrow/counter intents, repay, add/withdraw collateral, liquidate, revoke intents, and approve tokens.
Analyze and execute transactions: check compatibility, calculate risk, estimate interest, simulate, broadcast, and check transaction status.
Manage webhooks: create, list, and test webhooks for account events.
Use keyless tools: get markets, check x402 URLs, and search Floe docs without an API key.
Integrates with Coinbase to fund agent wallets with USDC using credit card, bank transfer, Apple Pay, and Google Pay.
Enables multi-agent workflows in CrewAI to handle secured working capital, x402 payments, and credit thresholds via Floe.
Allows LangChain agents to access Floe's financial tools for credit, loans, and payments.
Provides tools for OpenAI Agents SDK to interact with Floe's financial services.
@floelabs/mcp-server
Floe — trusted settlement for task-based AI. Your AI vendor counts resolutions, then sends an invoice. Floe reconciles every AI task or outcome you are billed for (Fin, Zendesk, Salesforce, HubSpot, Sierra, …) against your own tickets, helpdesk and CRM, and codes each one under the Cleared Work Taxonomy — accept, credit, unbilled, dispute, renewal lever — so finance knows which outcomes counted before the QBR, the CFO or the renewal asks. For finance and procurement teams buying AI priced per task or outcome, and for AI vendors who want cleared work on their invoices. Priced as a contingency audit (20% of recovered credits; nothing found, nothing owed) or a fixed per-vendor fee; one vendor, 30 days, read-only. floefinance.com/aibuyers →
Website · Taxonomy · Docs · Dashboard · 𝕏 @FloeLabs
About this package. The tools below are the MCP surface of Floe's earlier agent-billing platform (agent keys, budgets, cost estimates, vendor actuals). They still work against that API. The reconciliation audit above is delivered through the dashboard and the Floe team, not through these tools yet.
Start building with Floe
One key for your agent's whole vendor bill — LLM, voice, telephony, search, data — metered per call and budget-capped. Let your coding agent set it up, or wire it yourself:
Path | One line |
Agent — Claude Code / Cursor does the setup | paste: |
Skill — install the Floe agent skill |
|
MCP — hosted MCP server (88 tools) |
|
CLI — the full platform from your terminal: agents, keys, budgets, billing |
|
NPM — the SDK + |
|
New accounts get a $3 Welcome Credit (300 API credits) — no card. Set up with your AI tools → · Get a key →
Related MCP server: thebuyside-x402-agent
What makes this different
Most payment tools let an agent spend. Floe lets an agent reason about spend before it commits — and stops it before it overruns.
Agent-awareness tools —
get_credit_remaining,estimate_x402_cost,get_loan_state: your agent asks "do I have budget? is this call worth it?" before paying, not after.Context-aware budgets — set a session spend cap; the agent tapers as it nears the limit and replans to finish on budget.
The Floe agent skill (Floe-Labs/agent-skills) — the playbook that turns those tools into deliberate spending behavior. Jump to it ↓
Server-side enforcement — the soft signal is the skill; the hard ceiling is the on-chain spend cap + merchant allowlist. The agent cannot overspend regardless of what it decides.
Quick start (remote, recommended)
One-liner installs:
# Universal (any MCP-aware client)
npx -y add-mcp https://mcp.floelabs.xyz/mcp
# Claude Code
claude mcp add --transport http floe https://mcp.floelabs.xyz/mcp --header "Authorization: Bearer YOUR_FLOE_KEY"
# Codex (reads the key from $FLOE_API_KEY at connect time)
codex mcp add floe --url https://mcp.floelabs.xyz/mcp --bearer-token-env-var FLOE_API_KEYOr by JSON config:
{ "mcpServers": { "floe": {
"url": "https://mcp.floelabs.xyz/mcp",
"headers": { "Authorization": "Bearer floe_YOUR_AGENT_KEY" }
} } }Get your agent key: dashboard → Create agent → copy the floe_<hex> key
(shown once). Or from the CLI: npx @floelabs/cli init — paste your dashboard developer key and it
creates (or selects) the agent and mints the key for you. No key yet? The server still works —
see Keyless tier.
Scope params — narrow what a session can do straight from the URL:
https://mcp.floelabs.xyz/mcp?read_only=true # only non-mutating tools
https://mcp.floelabs.xyz/mcp?features=spend,pricing # only the named capability groupsCapability groups: lending, spend, pricing, lifecycle, observability, payments, webhooks, actuals, contracts, outcomes, docs.
Both params combine. The Floe agent skill's decision loop needs spend,pricing.
→ Local stdio, global install, and key taxonomy below
Tools at a glance
Group | Tools | For |
Payment execution ⭐ |
| pay any x402 vendor — with a cost preflight first |
Agent lifecycle |
| bootstrap and manage the fleet with a developer key |
Agent awareness ⭐ |
| every agent — reason about cost before paying |
Spend governance |
| govern + alert on utilization |
Merchant allowlist |
| default-deny on which destinations the agent may pay |
Funding & observability |
| fund agents + watch the fleet spend + measure enforcement coverage |
Webhooks |
| push notifications for account events + the delivery log |
Vendor actuals |
| what your OWN vendors charged you, reconciled against their billing records |
Interactions (by task) |
| the same money at the TASK grain — one call/SMS/job with every vendor leg joined, plus cost per minute |
Contracts (signed) |
| what you SIGNED per client — terms, commitment progress, and the drift from what the rate card is actually rating |
Outcomes (what a task produced) |
| report a billable outcome against a task id — Floe binds it to the call, so cost and outcome sit on one row — then find claims by the call |
Docs |
| learn the Floe API without leaving MCP |
Wallet |
| balances + state |
Utility |
| tx lifecycle |
Lending protocol (advanced) | 20+ intent / collateral / liquidation tools | crypto-native lending against deposits |
Full per-tool reference is in Tools (88) below.
Tested clients
Client | Status |
Claude Desktop |
|
Claude Code |
|
Cursor |
|
Continue / Cline | Best-effort |
CrewAI (via |
|
OpenAI Agents SDK |
|
ElizaOS |
|
Install options
Option 1 (remote) is in Quick start above. For local runs:
Local via npx
Run the server locally. It proxies all requests to the Floe API.
FLOE_API_KEY=floe_YOUR_AGENT_KEY npx -y @floelabs/mcp-server --stdioClaude Desktop config:
{
"mcpServers": {
"floe": {
"command": "npx",
"args": ["-y", "@floelabs/mcp-server", "--stdio"],
"env": {
"FLOE_API_KEY": "floe_YOUR_AGENT_KEY"
}
}
}
}Cursor config (.cursor/mcp.json):
{
"mcpServers": {
"floe": {
"command": "npx",
"args": ["-y", "@floelabs/mcp-server", "--stdio"],
"env": {
"FLOE_API_KEY": "floe_YOUR_AGENT_KEY"
}
}
}
}Install globally
npm install -g @floelabs/mcp-server
FLOE_API_KEY=floe_YOUR_AGENT_KEY floe-mcp --stdioTransport selection
--stdio and --http are explicit overrides. With neither flag, the server picks by
what stdin is: a pipe (an MCP client spawning it) → stdio; a terminal or a
service manager's /dev/null → HTTP on 127.0.0.1:3100. So a bare command: npx
config now works — but keep --stdio in configs anyway so behavior never depends on
how the client wires stdio. On startup failure the process logs [floe-mcp] Fatal:
to stderr and exits with code 1; in stdio mode all logging goes to stderr, never
stdout (which carries the MCP protocol).
Auth model
Auth source depends on transport:
Transport | Identity source |
Remote HTTP ( |
|
Local stdio ( |
|
Local HTTP (self-hosted) |
|
Keyless tier
The server starts (and the hosted endpoint answers) without any key. Keyless
sessions get exactly three tools with live results: get_markets,
check_x402_url, and search_floe_docs — enough to vet a vendor, price a call,
and learn the API before signup. Every other tool returns a structured error:
{ "error": "AUTH_REQUIRED", "status": 401,
"message": "…Requires an agent key (floe_...).",
"next": "Get a developer key at https://dev-dashboard.floelabs.xyz, then mint agent keys with create_agent_key. …" }Tool errors always carry the backend's HTTP status (so agents can distinguish
401/403/404/429), and 401/403 include a remediation hint that distinguishes
missing key from wrong key type.
Which key to use
Two key formats unlock different surfaces — every tool description states which one it needs:
Key format | Scope | Unlocks |
| One specific agent | Runtime: agent-awareness, spend governance, allowlist, reputation, |
| Whole developer account | Lifecycle: |
Typical bootstrap: connect with the developer key → create_agent →
create_agent_key → reconnect (or open a second MCP session) with the minted
agent key to spend.
Get an agent key:
Connect your wallet and Create an agent (name + borrow limit + max rate)
Copy the
floe_<64-hex>key shown at the end of the wizard — it is revealed once
You can also mint one from the CLI:
# Platform CLI — interactive: paste your developer key, create or select an
# agent, and the minted agent key lands in your OS keychain
# (manage agent keys later with `floe keys list|create|rotate|revoke`,
# developer keys with `floe devkeys`)
npx @floelabs/cli init
# SDK-level alternatives:
# TypeScript SDK
npx floe-agent register --name my-agent --borrow-limit 10000
# Python SDK
floe-agent register --name my-agent --borrow-limit 10000The platform CLI and this MCP server cover the same API surface. @floelabs/cli is the
full platform from a terminal — agents, keys, budgets, policies, billing, funds, phone,
metered calls — with --json on every command and stable exit codes for scripts and CI.
MCP remains the richer in-context integration: tools your agent discovers, reasons over,
and calls mid-session without shelling out.
Get a developer key (unlocks the lifecycle tools — create_agent, key minting, budgets, funding, webhooks — and multi-tenant visibility across all your agents):
Click Create Key, label it, pick
readorread_writepermissionsCopy the
floe_live_<base62>key shown once
Developer keys span the whole developer account and have a separate rate limit (100 req/min). Agent-runtime tools (get_credit_remaining, get_spend_limit, x402_pay, etc) return 401 with a developer key because the caller is the developer, not a single agent — the error's next hint says so and points at create_agent_key. See the API Keys docs for the full taxonomy.
Fund with fiat: You can fund your wallet with USDC via Coinbase — credit card, bank transfer, Apple Pay, Google Pay — directly from the dashboard. No crypto on-ramp needed.
Multiple agents
One Floe developer can own many agents. To run several MCP sessions side by side (e.g. a research agent and a trading agent), mint one key per agent and configure each MCP client entry with its own key:
{
"mcpServers": {
"floe-research": {
"url": "https://mcp.floelabs.xyz/mcp",
"headers": { "Authorization": "Bearer floe_KEY_FOR_RESEARCH_AGENT" }
},
"floe-trading": {
"url": "https://mcp.floelabs.xyz/mcp",
"headers": { "Authorization": "Bearer floe_KEY_FOR_TRADING_AGENT" }
}
}
}Each session is scoped to one agent — credit lines, spend limits, and webhooks stay isolated.
Environment Variables
Variable | Required | Default | Description |
| No (keyless tier without it) | — | Your Floe API key: |
| No |
| API endpoint |
| No |
| HTTP server port (non-stdio mode) |
| No |
| HTTP bind address; set |
| No | — | Comma-separated extra origins allowed by CORS in HTTP mode |
Tools (88)
Below the tools are listed by request type. The summary is in Tools at a glance above.
Every description also names the key it needs: agent key (floe_...), developer key
(floe_live_...), any key, or none. The feature-group tag in each heading is what
?features= filters on.
Payment execution (payments, pricing) ⭐
The reason the rest exists: estimate → forecast → pay. x402_pay needs an agent key; check_x402_url is keyless.
Tool | Description |
| Execute a paid x402 call through the Floe proxy — pays the vendor in USDC from the agent's balance/credit, returns the vendor response + |
| Batch cost forecast + policy preflight for up to 50 planned calls (with repeat counts) — one round-trip to validate a whole plan |
| Preflight one x402 URL — returns cost + reflection against your credit, no payment |
| Keyless probe: is this URL x402-protected, and what does it cost? |
Agent lifecycle (lifecycle) — developer key
Bootstrap and manage the fleet without touching the dashboard.
Tool | Description |
| Provision a managed agent: Privy wallet + sponsored on-chain delegation + the $3 welcome credit on the account's first agent (once per account, immediately spendable) |
| List every agent on the account with status and limits |
| One agent's detail: status, deposit address, credit used, 24h activity |
| Suspend an agent (kill-switch) — its keys fail auth until resumed |
| Reactivate a paused agent |
| Irreversibly wind an agent down: repay loans, sweep funds, disable keys |
| Mint a |
| Atomically revoke + re-mint a key (new plaintext once) |
| Delete a key — calls using it fail immediately |
| Set/update a fail-closed rolling budget on one key |
| Upgrade a pay-as-you-go agent to a managed credit line (collateral from its wallet) |
| Preview valid deposit/LTV ranges before |
Funding & observability (observability) — developer key
Tool | Description |
| Machine-readable "how to fund this agent": USDC deposit address, chain 8453, minimums/warnings |
| Aggregate USDC across developer wallet, agent wallets, and API credits |
| Unified activity feed (proxy calls, onramps, transfers, loans) with filters + cursor pagination |
| Spend/usage analytics rollup: KPIs, daily series, top endpoints |
| Coverage Score: share of known spend Floe enforces pre-call vs reconciled (off-path) vs dark. Pass |
Webhooks (webhooks) — developer key
Tool | Description |
| Register an endpoint for account events (signing secret shown once). Scopes: |
| List registered webhooks (secrets never returned) |
| The live event catalog — 30 events across loan / agent / credit / call / phone / marketplace |
| One webhook + its delivery stats (pending/success/failed/retrying/total) |
| Change URL, events, description, or pause/resume via |
| Delete an endpoint permanently |
| Send a signed test delivery to verify connectivity end-to-end |
| Rotate the signing secret (new secret shown once) |
| Account-wide delivery log with filters (endpoint, event, agent wallet, status, time range, delivery/correlation id) + cursor pagination; 30-day retention |
| One delivery in full: sent payload, sanitized response body, next retry time |
| Manually redeliver a failed delivery (dedupe on |
Vendor actuals (actuals) — developer key
What your own vendors charged you (FLO-746), reconciled against those vendors' billing records — not what Floe charged you. Every cost carries a status, and a status is a claim:
Status | Means | Never say |
| reconciled to the vendor's own per-request billing record | — |
| priced at the vendor's own realized rate for that period | "exact", or anything implying per-request precision |
| footed to the vendor's invoice | — |
| the vendor hasn't published this cost yet | any dollar figure |
| no vendor API publishes this — upload the invoice | any dollar figure |
costRaw is null for pending and manual — report units, never a zero. exact and period-rate are returned as separate subtotals and must never be added into one number.
When a cost arrives: some legs can be costed the moment a call ends, others only on the vendor's next-day batch — so a recent leg reads pending, which is the steady state, not a defect.
Coverage reads low on voice-heavy accounts at launch — a property of what vendors publish, not your setup. Close the gap via the invoice lane.
Tool | Description |
| Per-leg captured vendor cost with the vendor's own request id, typed units, status and provenance. Keyset-paginated. Filters: |
| Server-side by-call rollup — a |
| Totals by |
| Everything the engine could not reconcile — unmatched legs/actuals, unit mismatches, stale connectors, invoice variance. The named reasons a total is a lower bound |
| Your vendor billing credentials (masked — key material is never returned) + the connector catalog. |
| Re-check one stored credential against the vendor now. Distinguishes "revoked, re-key it" ( |
By task, not by vendor. The three tools below are the same money at the interaction grain: one AI task — a voice call, an SMS, or a non-call job — with every vendor leg of that task joined into one cost. That join is the unit of COGS, and it is the question no vendor dashboard can answer: Twilio sees minutes, OpenAI sees tokens, only the interaction sees a call.
Tool | Description |
| One row per task with duration, the vendors involved, a per-leg-kind breakdown ( |
| One task opened up: every leg in time order with units, capture source, status and cost, plus the identifiers they were joined on ( |
| Cost and cost per minute by |
Two kinds of money, never added by the agent. The reconciled vendor figures (exactRaw, periodRateRaw, totalRaw) are what your own vendors billed you. floeChargeRaw is what Floe charged for the legs Floe carried (keyless, Floe Phone, x402) — those legs carry no vendor bill of yours. paidRaw is the server's own sum of the two, and is null while the vendor half is still partial. floeChargeRaw is null, not zero, when Floe carried nothing.
costPerMinuteRaw is stated only when the cost is a real total, every task in the row has closed, and the duration is positive — otherwise it is null and costPerMinuteBlockedBy names why (partial_cost / open_interactions / no_duration). An unknown-duration $/min is unknowable, not a lower bound.
Gating: list_interactions and get_interaction are free by-task ledger reads (ledger_read). The four vendor-actuals reads and get_interaction_cost_rollup need attribution_reports, which is free since P2.6; the two connection tools need the Agency feature vendor_connections (and admin/owner for verify_vendor_connection).
Not exposed over MCP, on purpose. Invoice upload is a binary PUT to a signed storage URL — no agent has a file to send. Footing an invoice writes invoiced stamps against a vendor's invoice and is not undone by re-running, so that irreversible finance action keeps a human in the loop. Resolving a finding is a human verdict — the API refuses the machine's own auto_cleared for exactly that reason. Creating a connection writes a sealed credential, and credentials never travel through a tool call. All four live in the dashboard and in floe actuals.
Contracts (contracts) — developer key
What you signed, not what you spent. actuals is what your vendors charged you; this is what your client agreed to pay. They are separate capability groups on purpose, so an operator can hand over one without the other — commercial terms and vendor costs are sensitive in different directions.
Tool | Description |
| The contract book, newest term first: term dates, committed volume, the rate-card version pinned as signed, and |
| One contract by id. A contract on another account answers 404, not 403, so the endpoint never confirms that an id exists elsewhere. Does not carry |
status and state answer different questions. status is the stored human act — active or cancelled, and never expired. state is what the contract is right now (scheduled / active / expired / cancelled), derived from the term and the clock on every read. A term that ran out last month still reads status=active, so judge live-ness by state. Expiry is derived rather than stored precisely so that no background job can quietly stop running and leave a finished term looking live.
A contract lapses; it never auto-renews. When a term ends, usage keeps being rated by the rate card — billing never silently stops — but the contract surfaces in needsRenewalCount instead of renewing itself. The system does not commit an agency to terms nobody agreed to.
consumed may be a floor, and says so. It is counted in the contract's unit, independently of what the rate card meters — a client can commit to 10,000 task while the card bills per audio_minute, and that is still measurable because the ledger carries every one of those quantities. When isLowerBound is true, metered requests carried no task id, so the count is a FLOOR: report "at least X of N", never a bare "X of N", or you will tell a client they are behind a commitment they may already have met. consumed: null means it was not computed — unknown, never zero.
Signing and cancelling are not exposed over MCP, on purpose. Committing an agency to a term, or ending one early, is a commercial decision with a counterparty — the same reason invoice footing and finding resolution stay out of the tool surface. Both live in the dashboard.
Gating: both reads need attribution_reports, which is free since P2.6.
Interactions (actuals) — developer key
The same money at the task grain. One call, SMS or job with every vendor leg joined into one row — the grain that knows how long the work took, and therefore the only one that can state cost per minute. Registered under the actuals group, beside the per-leg reads above.
Tool | Description |
| One row per task: duration, the vendors involved, a per-leg-kind breakdown and |
| One task opened up — every leg in time order with vendor, leg kind, typed units, capture source, status and cost, plus the identifiers the legs were joined on |
| Task cost by customer, campaign, agent, channel, outcome or task type, with cost per minute per row |
Outcomes (outcomes) — agent key to emit, developer key to read
What a task produced, bound to the call its costs are on. Joined with that call's cost, this is what makes cost-per-outcome a number rather than an estimate.
Tool | Description |
| Agent key. Report a billable outcome against a task id; Floe resolves it to the call and binds the claim there. A task id that names no call is refused rather than stored unattached |
| Find claims by the call — task, interaction, customer, campaign, kind, status, source. Chain heads only; a claim that cannot be bound comes back with a reason rather than being dropped |
| One claim with the chain it corrected. Naming any event in a chain answers with the current head and reports |
An agent key may only report. There is no status argument on emit_outcome: confirming a claim, voiding one, reversing one and resolving a collision are operator acts on the developer surface, because they move money and the evidence that justifies them reaches that backend long after the call. Those verdicts are deliberately not exposed over MCP.
Why reversal stays off MCP. Reversing a billed outcome writes a credit line onto a client's next statement. That is a human operator's decision, not something an agent should take, and it sits with rate-card writes, which MCP doesn't expose either. Operators reverse from the dashboard, the developer API (POST /v1/developer/outcomes/{eventId}/reverse) or the CLI (floe outcomes reverse).
Three kinds can be priced. resolution, meeting_booked and qualified_lead are rate-card units: a confirmed claim of one of those kinds bills in the period it was confirmed in. Every other kind stays free text: recorded and readable, never billed.
Docs (docs) — keyless
Tool | Description |
| Search the Floe documentation index (llms.txt) — titles, URLs, descriptions |
Read tools (lending)
Tool | Description |
| List active lending markets with rates and liquidity (keyless) |
| Browse lend offers available for borrowing against |
| Browse borrow requests from borrowers seeking lenders |
| Get full details of a specific intent by hash |
| Get loan details by numeric ID |
| Get all loans for a wallet (borrower + lender) |
| Check loan LTV, health status, liquidation risk |
| Current oracle price for collateral tokens |
| Token balances for a wallet |
| Interest accrued on a loan |
Write tools (lending, return unsigned transactions)
Tool | Description |
| Create a lending offer |
| Create a borrowing request |
| Accept an existing offer (solver matches automatically) |
| Repay a loan with slippage protection |
| Add collateral to improve loan health |
| Withdraw excess collateral |
| Liquidate an unhealthy loan |
| Cancel an active intent |
| Approve token spending for the protocol |
Analysis tools (lending)
Tool | Description |
| Check if two intents can match |
| Risk metrics: LTV, liquidation price, buffer |
| Interest estimate for given loan terms |
Utility tools (lending)
Tool | Description |
| Dry-run a transaction (eth_call) |
| Submit a signed transaction |
| Check transaction receipt |
Agent-awareness tools (spend) ⭐
Lets an agent answer "do I have credit?", "is this call worth it?", and "where am I in the loan lifecycle?" before committing capital. All require an agent API key (floe_*). The calling identity is taken from the Bearer header in HTTP mode, or from FLOE_API_KEY in stdio mode.
Tool | Description |
| Current available credit, headroom to auto-borrow, utilization in bps |
| Coarse state: |
| Currently active session spend cap, if any |
| Set a session-level USDC ceiling (resets the session window) |
| Remove the session spend cap |
| List registered credit-utilization thresholds |
| Register a webhook trigger at a utilization threshold (cap: 20 per agent) |
| Remove a registered threshold |
| 0–100 credit score, band, and collateral multiplier for the calling agent |
Merchant-allowlist tools (spend)
Opt-in, default-deny restriction on which destinations the agent may pay. An allowlist entry is an ordinary capped policy row that doubles as "allowed AND capped". Default mode off = allow any vendor (zero onboarding friction). All require an agent API key (floe_*).
Tool | Description |
| Set enforcement: |
| Read the agent's current enforcement mode |
| Add an allowed-AND-capped entry — |
| Revoke an allowlist entry by policy id (from |
| List host ( |
Inference gateway tools (pricing)
Tool | Description |
| OpenAI-compatible model catalog for Floe Inference (text/embedding/TTS/STT/realtime) |
| Price an inference call from a usage vector without making it |
Budget-awareness skill
Floe's agent skills live in their own repo: Floe-Labs/agent-skills.
The floe skill is the playbook that turns the MCP tools above into deliberate spending behavior: read budget status before paying, taper as it nears the tightest cap, replan to finish the task on budget, and stop before the ceiling. It reads status from the existing get_credit_remaining, get_spend_limit, estimate_x402_cost, and get_loan_state tools, plus the X-Floe-Budget-Advisory header the Floe x402 proxy stamps on paid responses — no new tool or backend required.
Soft signal, not the guardrail. The skill helps a cooperative agent spend wisely. The real ceiling is enforced server-side — the on-chain credit line, the session spend cap, and (if configured) the merchant allowlist refuse calls past the limit regardless of what the agent decides.
Install:
npx skills add floe-labs/agent-skills # skills.sh CLI
# or manually:
git clone https://github.com/floe-labs/agent-skills
cp -r agent-skills/skills/floe ~/.claude/skills/ # or .claude/skills/ per-projectTransaction Flow
All write tools return unsigned transactions — the server never holds private keys.
1. Call a write tool (e.g., create_counter_intent)
→ Returns { transactions: [...], summary, warnings, expiresAt }
2. (Optional) Call simulate_transaction to dry-run
3. Sign each transaction locally with your wallet
4. Call broadcast_transaction with the signed hex
→ Returns { transactionHash, status, blockNumber }Example: Get a USDC Credit Line
Agent: "I need 9,950 USDC working capital"
1. get_open_lend_intents → browse USDC/USDC offers
2. create_counter_intent(offer_hash, wallet) → unsigned txs
3. simulate_transaction(from, to, data) → { success: true, gasEstimate }
4. Sign locally → signed hex
5. broadcast_transaction(signed_hex) → confirmedSigning with viem
import { createWalletClient, http } from "viem";
import { privateKeyToAccount } from "viem/accounts";
import { base } from "viem/chains";
const wallet = createWalletClient({
account: privateKeyToAccount(PRIVATE_KEY),
chain: base,
transport: http(),
});
// Sign and send each transaction in order
for (const { transaction: tx } of response.transactions) {
const hash = await wallet.sendTransaction({
to: tx.to,
data: tx.data,
value: BigInt(tx.value),
});
// Wait for confirmation before next step
}Programmatic Usage
MCP Client SDK
import { Client } from "@modelcontextprotocol/sdk/client";
import { StreamableHTTPClientTransport } from "@modelcontextprotocol/sdk/client/streamableHttp.js";
const client = new Client({ name: "my-agent" });
await client.connect(new StreamableHTTPClientTransport(
new URL("https://mcp.floelabs.xyz/mcp"),
{ requestInit: { headers: { "Authorization": "Bearer floe_..." } } }
));
const markets = await client.callTool("get_markets", {});
const counter = await client.callTool("create_counter_intent", {
offer_hash: "0x...",
wallet_address: "0x...",
});LangChain / LangGraph
from langchain_mcp_adapters import MultiServerMCPClient
async with MultiServerMCPClient({
"floe": {"url": "https://mcp.floelabs.xyz/mcp", "headers": {"Authorization": "Bearer floe_..."}}
}) as client:
tools = client.get_tools()
# Use tools in your agentCrewAI
CrewAI agents can consume the Floe MCP tools via langchain-mcp-adapters. A runnable crew is available in floe-cookbook/crewai-demo.
Architecture
Your Agent → MCP Server → credit-api.floelabs.xyz → Envio Indexer / Base RPC
↑ ↑
This package Private backend
(open source) (holds secrets)The MCP server is a thin HTTP client. All protocol logic, indexer queries, and RPC calls happen in the private Floe API backend. This package contains only tool definitions and fetch() calls.
Lending protocol (advanced)
Floe is the spend layer for AI agents — one key that pays any vendor API under programmable budgets (everything above). It also exposes an advanced, crypto-native intent-based lending layer on Base, for agents that want working capital against deposits:
Primary market (USDC/USDC): Deposit USDC as collateral, borrow up to 99.5% as a credit line. No price-volatility risk — same-token market.
Volatile markets: Also supports WETH and cbBTC collateral for crypto-native use cases.
Solvers automatically match compatible intent pairs on-chain.
Loans are created with matched terms, collateral locked in per-loan isolated escrow.
Gas-free — Floe sponsors all transaction costs.
Fixed rates — no variable-rate surprises.
Key concepts:
Intent: An on-chain offer to lend or borrow
Counter-Intent: An intent created to match an existing offer
Health Factor: Ratio of collateral value to debt — below threshold triggers liquidation
LTV (Loan-to-Value): Borrower's debt as % of collateral value
Contract Addresses (Base Mainnet)
Contract | Address |
LendingIntentMatcher |
|
PriceOracle |
|
LendingViews |
|
x402 Facilitator |
|
Links
License
MIT
Available Tools
65 toolsadd_allowlist_entryA
Add a merchant-allowlist entry — an allowed-AND-capped policy row. Use kind="api" to allowlist a host (match_key = hostname) or kind="vendor" to allowlist a payee (match_key = recipient wallet). limit_raw caps spend against this entry (raw USDC, 6 decimals). Enforcement only kicks in once set_allowlist_mode is host/vendor/both. Requires an agent key (floe_...).
Inputs: kind (required), limit_raw (required), match_key (required), match_kind.
add_collateralA
Build unsigned tx to add collateral to a loan. Requires any Floe API key (agent floe_... or developer floe_live_...).
Inputs: amount (required), loan_id (required), wallet_address (required), market_id.
approve_tokenA
Build unsigned tx to approve a token for Floe protocol. Requires any Floe API key (agent floe_... or developer floe_live_...).
Inputs: amount (required), token_address (required).
broadcast_transactionA
Submit a signed transaction to Base Mainnet. Requires any Floe API key (agent floe_... or developer floe_live_...).
Inputs: signed_transaction_hex (required).
calculate_riskB
Calculate risk metrics for a potential loan position. Requires any Floe API key (agent floe_... or developer floe_live_...).
Inputs: borrow_amount (required), duration_days (required), collateral_amount (required), interest_rate_percent (required), +1 more.
check_compatibilityA
Check if two intents can match. Requires any Floe API key (agent floe_... or developer floe_live_...).
Inputs: lend_offer_hash (required), borrow_offer_hash (required).
check_x402_urlA
Check whether a URL is x402-protected and, if so, what it costs — without any credential. Public probe (IP rate-limited). Returns { x402: false, status } for plain URLs or the payment requirements for x402 ones. Use to vet a vendor before minting keys or funding. No API key required.
Inputs: url (required).
clear_spend_limitA
Remove the agent's session spend cap. Subsequent paid calls will only be bounded by the on-chain creditLimit. Requires an agent key (floe_...).
Inputs: no named parameters.
close_agentA
Permanently close an agent: repays outstanding facility loans, sweeps unspent funds back to the developer (unspent welcome credit returns to the treasury), and disables its keys. Irreversible. Requires a developer key (floe_live_...).
Inputs: agent_id (required).
create_agentA
Provision a new managed agent end-to-end: agents row → Privy-managed wallet → sponsored on-chain operator delegation → $3 welcome credit auto-disbursed on the account's FIRST agent only (immediately spendable; once per account, not per agent). Defaults to pay-as-you-go funding (no credit line; upgrade later with open_credit_line). Returns agentId, privyWalletAddress (the deposit address), and delegationTxHash — NOT an API key; mint one with create_agent_key. Requires a developer key (floe_live_...).
Inputs: name (required), max_rate_bps, expiry_seconds, borrow_limit_raw.
create_agent_keyA
Mint a new agent API key (floe_...) for an agent — the credential its runtime tools and x402_pay use. The plaintext key is returned ONCE; store it securely and never echo it into chat. Optionally cap the key with a rolling spend budget (fail-closed). Requires a developer key (floe_live_...).
Inputs: agent_id (required), label, budget_raw, window_seconds.
create_borrow_intentC
Build unsigned tx to create a borrow request. Solver matches it with lenders. Requires any Floe API key (agent floe_... or developer floe_live_...).
Inputs: borrow_amount (required), wallet_address (required), collateral_amount (required), max_duration_days (required), +4 more.
create_counter_intentA
Create a counter-intent against an existing offer. Primary way to accept offers. Solver auto-matches. Requires any Floe API key (agent floe_... or developer floe_live_...).
Inputs: offer_hash (required), wallet_address (required).
create_lend_intentA
Build unsigned tx to create a lending offer. Solver matches it with borrowers. Requires any Floe API key (agent floe_... or developer floe_live_...).
Inputs: amount (required), max_ltv_bps (required), wallet_address (required), max_duration_days (required), +3 more.
create_webhookA
Register a webhook endpoint for account events. Returns the signing secret ONCE — store it to verify deliveries. Current event catalog: loan.health_warning, loan.expiry_warning, loan.liquidated, loan.repaid, agent.created, key.created, key.rotated, x402.first_settlement (plus credit.warning / credit.at_limit / credit.recovered via register_credit_threshold). Max 10 webhooks. Requires a developer key (floe_live_...).
Inputs: url (required), events (required), scope, description, +1 more.
delete_credit_thresholdA
Delete one of the agent's credit-utilization thresholds by id (from list_credit_thresholds). Requires an agent key (floe_...).
Inputs: id (required).
estimate_inference_costA
Estimate the USDC cost of a Floe Inference call for a given model and usage vector, WITHOUT making the call or touching balance. Returns the cheapest priceable source: { rail, provider, margin_bps, upstream_cost_usdc, cost_usdc, cost_raw }. Provide only the units the model bills: text models use input_tokens/output_tokens (+cached_input_tokens); TTS uses characters; STT uses audio_seconds; realtime voice uses audio_input_tokens/audio_output_tokens. Use BEFORE inference to decide gating. Requires any Floe API key (agent floe_... or developer floe_live_...).
Inputs: model (required), characters, input_tokens, audio_seconds, +4 more.
estimate_interestB
Estimate total interest for given loan terms. Requires any Floe API key (agent floe_... or developer floe_live_...).
Inputs: principal (required), duration_days (required), interest_rate_bps (required).
estimate_x402_costA
Preflight an x402-protected URL and return its USDC cost without paying. Reflects against the calling agent's available credit and session spend-limit so you can decide gating in one round-trip. Use BEFORE x402_pay. Requires an agent key (floe_...).
Inputs: url (required), method.
get_accrued_interestA
Get accrued interest and full credit status for a loan. Requires any Floe API key (agent floe_... or developer floe_live_...).
Inputs: loan_id (required).
get_activityA
Unified account activity feed: x402 proxy calls, onramps, transfers, and loan events, newest first. Filter by agent, type, or time range; paginate with the returned cursor. Requires a developer key (floe_live_...).
Inputs: type, limit, since, until, +2 more.
get_agentA
Get one agent's full detail: status, privyWalletAddress (deposit address), creditUsed, 24h transaction count, and session spend snapshot. Requires a developer key (floe_live_...).
Inputs: agent_id (required).
get_agent_reputationA
Return the calling agent's unified credit reputation: a 0-100 score, an A-E band, confidence (0-1 share of the model backed by real signals), the resulting collateral-requirement multiplier (collateralMultiplierBps; 10000 = 1.0x baseline, lower score = higher multiplier), modelVersion, and computedAt. Behavioral discipline (declined spends, policy breaches, tool-call reliability, verified-settlement diversity) feeds the score alongside repayment and payment history. Use to understand how much collateral the next borrow will require. Returns 404 until the first score is computed. Requires an agent key (floe_...).
Inputs: no named parameters.
get_allowlist_modeA
Return the agent's current merchant-allowlist enforcement mode (off | host | vendor | both). Requires an agent key (floe_...).
Inputs: no named parameters.
get_balancesA
Aggregate USDC balances across the developer account: developer wallet, every agent wallet, and API credits. Requires a developer key (floe_live_...).
Inputs: no named parameters.
get_credit_line_boundsA
Preview the valid deposit / LTV bounds and current funded balances for upgrading an agent to a credit line. Use BEFORE open_credit_line. Requires a developer key (floe_live_...).
Inputs: agent_id (required).
get_credit_remainingA
Return how much USDC credit the calling agent has left. Use BEFORE deciding whether to make a paid call. Two distinct numbers: available (= spendable USDC right now — what the proxy actually gates on) and headroomToAutoBorrow (= operator-delegation borrowing capacity — how much MORE the agent could draw from its credit line). These differ when the agent has delegation capacity but no facility loan opened yet: headroomToAutoBorrow > 0 does NOT imply available > 0. Use available for the spend gate. Requires an agent key (floe_...).
Inputs: no named parameters.
get_funding_instructionsA
Return machine-readable funding instructions for an agent: the USDC deposit address, chain (Base, 8453), and any minimums/warnings. Hand this to the human when welcome credit runs out — funding is the one step an agent cannot do alone. Requires a developer key (floe_live_...).
Inputs: agent_id (required).
get_intent_detailsA
Get full details of a specific intent by its offer hash. Requires any Floe API key (agent floe_... or developer floe_live_...).
Inputs: offer_hash (required).
get_loanA
Get details of a specific loan by its numeric ID. Requires any Floe API key (agent floe_... or developer floe_live_...).
Inputs: loan_id (required).
get_loan_healthB
Check loan health: LTV, liquidation risk, accrued interest, early repayment terms. Requires any Floe API key (agent floe_... or developer floe_live_...).
Inputs: loan_id (required).
get_loan_stateA
Return the agent's coarse credit state-machine view: idle | borrowing | at_limit | repaying. Use to gate actions that only make sense in specific states (e.g. don't spend while at_limit). Requires an agent key (floe_...).
Inputs: no named parameters.
get_marketsA
List all active lending markets with current rates and liquidity. No API key required.
Inputs: no named parameters.
get_open_borrow_intentsA
Browse open borrow requests. Use create_counter_intent to lend against one. Requires any Floe API key (agent floe_... or developer floe_live_...).
Inputs: skip, limit.
get_open_lend_intentsA
Browse open lend offers available for borrowing against. Requires any Floe API key (agent floe_... or developer floe_live_...).
Inputs: skip, limit.
get_spend_limitA
Return the agent's currently-active session spend cap, if any. Returns { active: false } when no cap is set. Requires an agent key (floe_...).
Inputs: no named parameters.
get_token_priceA
Get current oracle price for collateral token. Requires any Floe API key (agent floe_... or developer floe_live_...).
Inputs: market_id.
get_transaction_statusA
Check status of a submitted transaction. Requires any Floe API key (agent floe_... or developer floe_live_...).
Inputs: transaction_hash (required).
get_usage_summaryA
Spend/usage analytics rollup for the account: KPIs, daily series, and top endpoints over a time window. The "how is my fleet doing" one-call view. Requires a developer key (floe_live_...).
Inputs: window, agent_id.
get_user_loansA
Get all loans for a wallet address, both as borrower and lender. Requires any Floe API key (agent floe_... or developer floe_live_...).
Inputs: wallet_address (required), limit.
get_wallet_balanceB
Check token balances for a wallet. Requires any Floe API key (agent floe_... or developer floe_live_...).
Inputs: wallet_address (required), token_symbol.
liquidate_loanA
Build unsigned tx to liquidate an unhealthy loan. Requires any Floe API key (agent floe_... or developer floe_live_...).
Inputs: loan_id (required), max_repayment (required), wallet_address (required), market_id.
list_agentsA
List every agent owned by the developer account, with status, wallets, and credit limits. Requires a developer key (floe_live_...).
Inputs: no named parameters.
list_allowlistA
List the agent's merchant-allowlist entries (host "api" and payee "vendor" policies) with their spend caps. Does not include session/task spend policies. Requires an agent key (floe_...).
Inputs: no named parameters.
list_credit_thresholdsA
List the agent's registered credit-utilization thresholds. Each fires a credit.warning / credit.at_limit / credit.recovered webhook when crossed. Requires an agent key (floe_...).
Inputs: no named parameters.
list_modelsA
List the models available on Floe Inference — the keyless pay-as-you-go LLM/voice gateway. Returns OpenAI-compatible model objects (id like "openai/gpt-4o", modality: text | embedding | tts | stt | realtime, context_window). Use the id with the OpenAI-compatible /v1/chat/completions, /v1/embeddings, /v1/audio, or /v1/realtime endpoints, or price a call first with estimate_inference_cost. Requires any Floe API key (agent floe_... or developer floe_live_...).
Inputs: no named parameters.
list_webhooksA
List the account's registered webhooks with their subscribed events, scope, and active flag (secrets are never returned). Requires a developer key (floe_live_...).
Inputs: no named parameters.
open_credit_lineA
Upgrade a pay-as-you-go agent to a managed credit line: the server signs a borrow intent collateralized from the agent's wallet (which must already hold the deposit — see get_funding_instructions). Check get_credit_line_bounds first for valid deposit/LTV ranges. Requires a developer key (floe_live_...).
Inputs: agent_id (required), deposit_raw (required), max_ltv_bps, max_rate_bps.
pause_agentA
Pause (suspend) one agent — the per-agent kill-switch. Every call with the agent's keys fails auth from its next request until resume_agent. Only active agents can be paused. Requires a developer key (floe_live_...).
Inputs: agent_id (required).
register_credit_thresholdA
Register a new credit-utilization threshold. When utilizationBps crosses thresholdBps from below, the agent's webhook receives credit.warning (or credit.at_limit if >= 9500). Drops below → credit.recovered. Cap of 20 thresholds per agent. Requires an agent key (floe_...).
Inputs: threshold_bps (required), webhook_id.
remove_allowlist_entryA
Remove (revoke) a merchant-allowlist entry by policy id (from list_allowlist). Requires an agent key (floe_...).
Inputs: policy_id (required).
repay_loanA
Build unsigned tx to repay a loan with auto-approval and slippage protection. Requires any Floe API key (agent floe_... or developer floe_live_...).
Inputs: loan_id (required), wallet_address (required), slippage_bps.
resume_agentA
Resume a paused (suspended) agent. Cannot resurrect closed agents or ones suspended by their own lifecycle flows (credit freeze, failed delegation). Requires a developer key (floe_live_...).
Inputs: agent_id (required).
revoke_agent_keyA
Revoke (delete) an agent API key. Calls using it fail auth immediately. Irreversible — rotate_agent_key instead if the agent should keep running. Requires a developer key (floe_live_...).
Inputs: key_id (required), agent_id (required).
revoke_intentA
Build unsigned tx to cancel an active intent. Requires any Floe API key (agent floe_... or developer floe_live_...).
Inputs: side (required), offer_hash (required).
rotate_agent_keyA
Atomically revoke an agent key and mint its replacement (inherits label/permissions unless overridden). The new plaintext key is returned ONCE. Use on suspected leak or on a rotation schedule. Requires a developer key (floe_live_...).
Inputs: key_id (required), agent_id (required), label.
search_floe_docsA
Search the Floe documentation index (llms.txt) and return matching pages with titles, URLs, and descriptions. Whitespace-separated terms are matched case-insensitively against a page's section, title, URL, and description; results are ranked by how many terms hit, so pages matching every term come first. Use to answer "how do I…" questions about the Floe API, x402 vendors, spend controls, or this MCP server. No API key required.
Inputs: query (required), limit.
set_agent_key_budgetA
Set or update the rolling spend budget on one agent API key (FLO-585). Fail-closed: spend attributed to the key past the budget is refused until the window rolls. A 0 budget is invalid — revoke the key to block it entirely. Requires a developer key (floe_live_...).
Inputs: key_id (required), agent_id (required), budget_raw (required), window_seconds.
set_allowlist_modeA
Set the agent's merchant-allowlist enforcement mode. "off" (default) allows any vendor. "host" blocks unlisted hosts before the first fetch; "vendor" blocks unlisted payees before signing; "both" enforces both. Allowlist entries themselves are managed with add_allowlist_entry. Requires an agent key (floe_...).
Inputs: mode (required).
set_spend_limitA
Set or update the agent's session spend cap (USDC raw, 6 decimals). Resets the session window — anything spent before this call no longer counts. Operator-defined; distinct from the on-chain creditLimit. Requires an agent key (floe_...).
Inputs: limit_raw (required).
simulate_transactionA
Dry-run an unsigned tx. Returns success/revert and gas estimate. Requires any Floe API key (agent floe_... or developer floe_live_...).
Inputs: to (required), data (required), from (required), value.
test_webhookA
Send a signed test delivery to one webhook endpoint so you can verify connectivity and signature handling end-to-end. Requires a developer key (floe_live_...).
Inputs: webhook_id (required).
withdraw_collateralA
Build unsigned tx to withdraw excess collateral. Requires any Floe API key (agent floe_... or developer floe_live_...).
Inputs: amount (required), loan_id (required).
x402_forecastA
Batch cost forecast + policy preflight for a PLAN of paid calls (FLO-545). Given up to 50 planned x402 calls (each with an optional repeat count), returns the aggregated USDC cost projection and a policyPreflight block listing which of the agent's policies would breach if the plan ran now. Read-only — nothing is paid or mutated. Use to validate a multi-step plan in one round-trip instead of estimating call-by-call. Requires an agent key (floe_...).
Inputs: items (required).
x402_payA
Execute a paid x402 call through the Floe proxy: Floe pays the vendor in USDC from the calling agent's balance/credit (subject to spend limits, budgets, and allowlist) and returns the vendor's response plus the X-Floe-* metering headers (cost, budget advisory, settled receipt). Pass idempotency_key (Stripe-style) so retries never double-pay. Use estimate_x402_cost or x402_forecast FIRST. Requires an agent key (floe_...).
Inputs: url (required), body, method, headers, +1 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 65 tools
Many tools have clear and distinct purposes, but there are overlapping getters (e.g., get_loan_health vs. get_accrued_interest both report accrued interest and loan status; get_credit_remaining, get_loan_state, and get_spend_limit all concern credit state). The detailed descriptions help, but an agent could still select the wrong tool without reading carefully.
The vast majority of tool names follow a consistent verb_noun pattern (get_markets, create_borrow_intent, revoke_intent, set_allowlist_mode). Minor deviations include x402_pay and x402_forecast placing the prefix first, while estimate_x402_cost and check_x402_url embed it in the middle, and search_floe_docs includes the server name.
With 65 tools, the server far exceeds the 50+ threshold that signals an extreme mismatch. While the platform is broad (lending, payments, agent management, webhooks, inference), the sheer number is overwhelming and likely causes navigation and selection hurdles.
The tool surface covers the full lifecycle for most entities: agents (create, read, pause/resume, close), keys (create, rotate, revoke), intents (create, revoke, match), loans (repay, add/withdraw collateral, liquidate). Minor gaps exist: no webhook deletion or update, and no direct update endpoint for credit thresholds (only delete and re-register).
Maintenance
Related MCP Connectors
MCP marketplace: AI agents buy services from other agents per call in USDC, plus a bank cash-out
MCP for AI agents: financing, skills, lending on Base
Mycel: hire AI agents over MCP. Keyless discovery, self-service agent keys, pay per hire.
Agent Commerce Protocol MCP — bridges Stripe ACP + Google AP2 + Coinbase x402 for agent payments
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceMCP server for AgentPay — the payment gateway for autonomous AI agents. Fund a wallet once, give your agent the key, and it discovers, provisions, and pays for tool APIs on its own. One key, every tool.112 npm1MIT
- AlicenseAqualityDmaintenanceThe MCP gateway that lets any AI agent discover and pay metered APIs on Base or Solana — without the user wiring payments themselves.313 npm1Apache 2.0
- AlicenseAqualityCmaintenanceAgentPay VN — an MCP server that lets your AI agent collect real (fiat) payments over VietQR467 PyPI1MIT
- AlicenseAqualityCmaintenanceKeyless crypto payments for AI agents. One MCP call turns any wallet address into a non-custodial crypto payment link or tip jar, no API key and no account, with funds settling straight to your wallet at a 0% platform fee (USDC/USDT, BTC, LTC, DASH, DOGE, ZCASH).477 npm1MIT