Documentation Index
Fetch the complete documentation index at: https://docs.decibel.trade/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
The MCP server is bundled with the Decibel CLI. You can run it directly withnpx (no global install required) or install the CLI first:
- A Node API token from Geomi
- An API wallet created at app.decibel.trade/api (for trading operations)
Setup with Claude Code
The fastest way to add the MCP server:DECIBEL_PRIVATE_KEY and DECIBEL_SUBACCOUNT_ADDRESS if you’ve already added a default account with decibel-cli account add.
Setup with JSON config
Add the following to your MCP client’s configuration file. For Claude Code, this is~/.claude/settings.json. For Claude Desktop, this is claude_desktop_config.json.
Environment variables
The MCP server uses the same environment variables as the CLI:| Variable | Required | Description |
|---|---|---|
DECIBEL_NODE_API_KEY | Yes | Node API key for authentication |
DECIBEL_PRIVATE_KEY | Trading | API wallet private key for signing transactions |
DECIBEL_SUBACCOUNT_ADDRESS | Trading | Subaccount address |
DECIBEL_NETWORK | No | Network: mainnet, testnet (default), local |
DECIBEL_GAS_STATION_API_KEY | No | Gas Station API key for sponsored transactions |
DECIBEL_PRIVATE_KEY and DECIBEL_SUBACCOUNT_ADDRESS are required for trading tools (placing orders, cancelling, etc.). Market data tools (get_markets, get_price, get_orderbook) only require DECIBEL_NODE_API_KEY.Authentication
The MCP server supports the same authentication methods as the CLI, resolved in this order:- Environment variables (
DECIBEL_PRIVATE_KEY+DECIBEL_SUBACCOUNT_ADDRESS) - Default account from local storage (
~/.decibel/data.db)
decibel-cli account add first and the server will use the default account automatically.
Verify the connection
After configuring your MCP client, ask the AI agent to run a simple query:get_markets tool and return the list of available trading pairs.
