Skip to main content

Quickstart

Add to MCP config:
EVM_WALLET_PRIVATE_KEY - EVM private key without 0x. Enables signing/broadcast tools.

Local Installation Options

For read-only mode, omit EVM_WALLET_PRIVATE_KEY.

Option A: Node.js

Requires Node.js v18+.

Option B: Docker

Pull the published image:
Or build from source:

Configuration

In case of local Node.js installation, copy the example config:
Main settings:
  • EVM_WALLET_PRIVATE_KEY - EVM private key without 0x. Enables signing/broadcast tools.
  • RUBIC_API_BASE_URL - Rubic API base URL (default https://rubic-api-v2.rubic.exchange).
  • TOKENS_API_BASE_URL - Rubic tokens API base URL (default https://api.rubic.exchange/api).
  • MCP_TRANSPORT - stdio (default) or http.
  • MCP_HOST / MCP_PORT - used in HTTP mode.
  • API_TIMEOUT_MS / MCP_TOOL_TIMEOUT_MS - request and tool execution timeouts.
Without EVM_WALLET_PRIVATE_KEY, read-only and build tools work, but tools that sign transactions will return an error.

Connecting to MCP Clients

Quickstart section is enough for the most use cases. All of the instructions below are related to local installation options. All examples below use stdio mode. Replace /full/path/to with the actual path printed after npm run build. Claude Code
Using Docker:
Verify: claude mcp list Claude Desktop Add to claude_desktop_config.json: Node.js:
Docker:
Cursor Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global):
Windsurf Add to ~/.codeium/windsurf/mcp_config.json:
GitHub Copilot (VS Code) Add to .vscode/mcp.json:
Cline Open Cline settings → MCP Servers → Edit MCP Settings:
Continue Add to ~/.continue/config.json:
Zed Add to ~/.config/zed/settings.json:

Other clients (generic stdio)

Use command node + args ["/full/path/to/dist/index.js"], or Docker command:

Hosted MCP

Use hosted read-only MCP endpoint: https://mcp-api-v2.rubic.exchange/mcp Example generic MCP config:

Transport modes

Node.js

Docker

Or with Docker Compose:

Development