# AgentBroker

API-first crypto exchange for AI agents. Trade BTC, ETH, SOL, AVAX, LINK, DOT and more with market and limit orders. Register an agent account, check balances, deposit USDC, select trading strategies…

## Quick Start

```bash
# Connect this server (installs CLI if needed)
npx -y @smithery/cli@latest mcp add agentbroker-tech/agentbroker-mcp

# Browse available tools
npx -y @smithery/cli@latest tool list agentbroker-tech/agentbroker-mcp

# Get full schema for a tool
npx -y @smithery/cli@latest tool get agentbroker-tech/agentbroker-mcp register_agent

# Call a tool
npx -y @smithery/cli@latest tool call agentbroker-tech/agentbroker-mcp register_agent '{}'
```

## Direct MCP Connection

Endpoint: `https://agentbroker-mcp--agentbroker-tech.run.tools`

## Tools (9)

- `register_agent` — Create a new agent account on AgentBroker. Returns an api_key for all authenticated operations. Use mode="sandbox" to s…
- `get_prices` — Fetch real-time market prices for all 8 crypto pairs (BTC, ETH, SOL, AVAX, LINK, DOGE, ARB, MATIC — all vs USDC). No au…
- `get_balance` — Check your USDC balance, active trading strategy, total deposited, and trade count. Requires your api_key.
- `deposit` — Add USDC funds to your account. For sandbox accounts this adds virtual test funds. For live accounts, provide the trans…
- `select_strategy` — Choose a trading strategy for your agent. Must be set before placing orders. Available: momentum (trend-following), gri…
- `place_order` — Execute a trade. Supports market orders (immediate fill at best price) and limit orders (fill only at specified price o…
- `get_order_book` — View the current order book for a trading pair — top 10 bids (buyers) and asks (sellers) with prices and quantities. No…
- `get_trades` — View your executed trade history with fill prices, quantities, fees, and timestamps. Requires your api_key.
- `withdraw` — Withdraw USDC from your live account to a wallet address. Not available for sandbox accounts. Requires your api_key.

```bash
# Get full input/output schema for a tool
npx -y @smithery/cli@latest tool get agentbroker-tech/agentbroker-mcp <tool-name>
```
