Purpose
tabula-mcp is an MCP server that provides credit lines for AI agents running on Robinhood Chain or Base. When an agent calls an x402 (HTTP 402) paid resource, Tabula can pay the seller first, the fee is recorded on the agent's tab, the tab then converts into a loan, and the agent repays on-chain with a USD stablecoin (USDG on Robinhood Chain, USDC on Base) via a one-time signature, without needing to hold ETH.
Main capabilities
- Credit payment: Agents obtain paid resources from sellers listed by list_sellers through a credit line, and Tabula advances the payment immediately.
- Loans and repayment: The tab converts into a loan with a 7-day term; the agent repays with on-chain dollars, and repayment is submitted by Tabula's relayer with no gas required.
- Multi-agent support: One credit line can serve multiple agents, and the owner can create an independent key and set a budget for each sub-agent.
- Tool set: Provides tools such as repay, repay_all, raise_limit, and autopay; the sub-agent server has only the first three tools.
- Secure signing: The server uses the owner key only to sign gateway login (valid for 5 minutes) and authorization to repay the agent's own loan with on-chain dollars; before signing, it verifies on-chain the recipient address, token, loan ownership, and amount cap.
Usage
- Preconditions: Node 20.19 or later; the agent needs an ERC-8004 identity (owned by an ordinary account key you hold, not a contract wallet); a credit line is required (on Robinhood Chain, use tabula-mcp join to open a 1 USD credit line when a seat is available, requiring other agent lenders on that chain to have at least three repaid loans with no defaults; on Base, contact team@tabula.credit for the first 1 USD credit line; collateralized credit lines can also be opened via the Tabula web app); when repaying, the owner wallet must hold the USD stablecoin of the corresponding chain.
- Configure the MCP client: the command is npx, the argument is -y tabula-mcp, and environment variables include the gateway address (Robinhood Chain is https://api.tabula.credit,Base is https://api-base.tabula.credit)等。
- Activate credit limit: Run the activation operation once in the terminal using the same variables.
- Usage: Have the agent obtain paid resources from the sellers displayed by list_sellers.
- Framework integration: Supports any framework that runs an MCP server, such as ElizaOS (@elizaos/plugin-mcp), Hermes Agent (~/.hermes/config.yaml), OpenClaw (~/.openclaw/openclaw.json or openclaw mcp set), AgentKit, and other LangChain agents (loaded via LangChain's MCP adapter). It is recommended to provide the framework with a sub-agent key (TABULA_SUBKEY) rather than the identity owner key.
- Sub-agents: The owner can create a key for each sub-agent and set a budget; the key is displayed only once. Sub-agents use TABULA_GATEWAY_URL and TABULA_SUBKEY at runtime, require no private key, and can pay and read bills within the budget, but cannot repay loans, create keys, etc.
Fees and Rules
- Loan fee: 0.75% of principal per 30 days, billed hourly based on actual usage time, with a minimum of one day; loan term is 7 days.
- Payment fee: 0.1% of each loan's principal, regardless of term.
- No gas fees: Repayment authorization is submitted by the Tabula relayer.
- The fees for the first loan repaid on time are refunded, up to $0.10.
- The above are the values at launch; current values can be viewed via the gateway GET /v1/bank; the loan fee is fixed at origination. Failure to repay on time constitutes delinquency; after 3 days it becomes a default, the credit limit is frozen, and the default record remains in the agent's public credit history.
Use Cases
Suitable for scenarios that require providing AI agents with on-chain credit payment capabilities, especially when agents need to frequently call x402 paid resources but are unwilling or unable to directly hold gas tokens; also suitable for scenarios where multiple agents share a credit limit with budget isolation.
Limitations
- The agent must have an ERC-8004 identity, and the identity must be owned by a regular account key; contract wallets are not supported.
- Activating a credit limit is subject to conditions (e.g., Robinhood Chain requires a repayment history, and the first batch on Base requires an application).
- Sub-agent keys have limited permissions and cannot repay loans or create keys.
- The server only trusts Tabula contracts on known chains; other deployments must be specified via TABULA_LEDGER and TABULA_BATCH_REPAYER, otherwise repayment will not be executed.
- Content returned by sellers is marked as external data; for agents that read uncontrollable content, it is recommended to use a subkey to limit risk.
- The documentation does not provide complete installation command details or all environment variable names; some configuration requires referring to the repository instructions.