Connect your agent harness
Every supported harness speaks the Model Context Protocol. Add the multi MCP server once and your agent sees every perp venue at once — plus, with a key, routed trades, pair trades, and cross-chain funding.
Two transports work everywhere: local stdio (npx -y @multidex/mcp, reads your key from MULTI_API_KEY) and remote HTTP (https://multi-venym-labs.vercel.app/mcp, send your key in the Authorization header). Without a key, only public market-data tools are exposed.
.mcp.json or claude mcp add — verify with /mcp.
config.toml or codex mcp add — verify with codex mcp list.
opencode.json — local or remote MCP entry.
~/.cursor/mcp.json — user or project level.
One-command install
@multidex/agent-kit writes (or merges) the multi MCP server into your harness's config file in one command — no hand-editing:
- 1Run init for your harnessbash
npx @multidex/agent-kit init claude-code --key multi_sk_live_... npx @multidex/agent-kit init cursor --key multi_sk_live_... # Flags: # --remote use the hosted HTTP endpoint instead of local stdio # --readonly register only read tools (sets MULTI_READONLY=1) # --project write the project-level config instead of the user-level one # --dry-run print the merged config without writing anythingSupported harnesses:
claude-code·claude-desktop·codex·opencode·cursor·windsurf·hermes·openclaw·gemini·generic(prints snippets). - 2Verify the setupbash
multi-agent doctor # connectivity, key, and scope checks multi-agent tools # tool catalog multi-agent harnesses # list supported harnesses
Claude Code
Config file: .mcp.json (project) or ~/.claude.json (user) · official docs ↗
{
"mcpServers": {
"multi": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@multidex/mcp"],
"env": { "MULTI_API_KEY": "multi_sk_live_..." }
}
}
}Codex CLI
Config file: ~/.codex/config.toml (or project .codex/config.toml) · official docs ↗
[mcp_servers.multi]
command = "npx"
args = ["-y", "@multidex/mcp"]
[mcp_servers.multi.env]
MULTI_API_KEY = "multi_sk_live_..."OpenCode
Config file: opencode.json (project) or ~/.config/opencode/opencode.json · official docs ↗
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"multi": {
"type": "local",
"command": ["npx", "-y", "@multidex/mcp"],
"enabled": true,
"environment": { "MULTI_API_KEY": "multi_sk_live_..." }
}
}
}Hermes Agent
Config file: ~/.hermes/config.yaml · official docs ↗
mcp_servers:
multi:
command: "npx"
args: ["-y", "@multidex/mcp"]
env:
MULTI_API_KEY: "multi_sk_live_..."
enabled: true
supports_parallel_tool_calls: true # market reads onlyOpenClaw
Config file: ~/.openclaw/openclaw.json · official docs ↗
{
"mcp": {
"servers": {
"multi": {
"command": "npx",
"args": ["-y", "@multidex/mcp"],
"env": { "MULTI_API_KEY": "multi_sk_live_..." }
}
}
}
}Cursor
Config file: ~/.cursor/mcp.json (or project .cursor/mcp.json) · official docs ↗
{
"mcpServers": {
"multi": {
"command": "npx",
"args": ["-y", "@multidex/mcp"],
"env": { "MULTI_API_KEY": "multi_sk_live_..." }
}
}
}Windsurf
Config file: ~/.codeium/windsurf/mcp_config.json · official docs ↗
{
"mcpServers": {
"multi": {
"command": "npx",
"args": ["-y", "@multidex/mcp"],
"env": { "MULTI_API_KEY": "multi_sk_live_..." }
}
}
}Gemini CLI
Config file: ~/.gemini/settings.json (or project .gemini/settings.json) · official docs ↗
{
"mcpServers": {
"multi": {
"command": "npx",
"args": ["-y", "@multidex/mcp"],
"env": { "MULTI_API_KEY": "multi_sk_live_..." }
}
}
}Tell your coding agent about multi
Drop this into your project's AGENTS.md or CLAUDE.md so an agent working in your repo knows the contract:
## multi (cross-platform perp DEX aggregator)
- MCP server `multi` is configured (tools: get_orderbook, get_candles, execute_order,
open_pair_position, swap_quote, ...). Prefer MCP tools over raw HTTP.
- For code, use @multidex/sdk (TS) or the `multidex-sdk` pip package (Python).
- API base: https://multi-venym-labs.vercel.app/api. Public reads need no key; execution uses
MULTI_API_KEY (scoped, risk-limited). Always pass an Idempotency-Key on retries.
- Docs: https://multi-venym-labs.vercel.app/docs · llms.txt: https://multi-venym-labs.vercel.app/llms.txt