Skip to main content
The ouroborai MCP (Model Context Protocol) server exposes DeFi tools directly in your AI coding environment. This lets Claude Code, Claude Desktop, or Cursor execute swaps, manage positions, and query portfolio data without switching to a browser.

Available Tools

The MCP server exposes these tools:

Setup

First, build the MCP server:
This produces dist/index.js which runs as a stdio-based MCP server.
The MCP configuration file contains your private key in plaintext. Do NOT commit .mcp.json or claude_desktop_config.json to version control. The repository .gitignore excludes .mcp.json by default.

Usage Examples

After configuration, you can interact with the tools through natural language in your AI client:

Security Considerations

The MCP server has full access to the configured wallet. Any tool call that modifies on-chain state (trades, lending, perpetuals) will execute using the private key in the environment.
To limit risk:
  • Use a dedicated hot wallet with limited funds
  • Set up session keys via arb_session_key with spending limits and protocol restrictions
  • Review tool calls before confirming execution in your AI client
  • Consider using Arbitrum Sepolia for testing before mainnet

Troubleshooting

Ensure the command path points to a valid node binary and the args path points to the built dist/index.js. Try running the command manually to check for errors:
The server should start without output (it communicates via stdio).
Common causes:
  • PRIVATE_KEY not set or invalid format (must start with 0x)
  • ARB_RPC_URL unreachable or rate-limited
  • Insufficient ETH for gas or USDC for trades
  • Token symbol not recognized (use: USDC, WETH, ETH, ARB, WBTC, PENDLE)