The openmm-mcp server exposes cryptocurrency trading and market data tools to AI agents (via Claude Desktop, Cursor, Windsurf, etc.) across supported exchanges (MEXC, Bitget, Gate.io, Kraken) and Cardano DEX, through 13 tools:
Market Data
get_ticker— Real-time price, bid/ask, spread, and volume for any trading pairget_orderbook— Order book depth (bids/asks) with configurable limitget_trades— Recent trade history with configurable limit
Account Management
get_balance— View balances for all assets or a specific assetlist_orders— List open orders, optionally filtered by trading pair
Trading
create_order— Place limit or market buy/sell orderscancel_order— Cancel a specific order by IDcancel_all_orders— Cancel all open orders for a trading pair
Automated Grid Strategy
start_grid_strategy— Deploy grid trading orders around the current price, with linear/geometric spacing and flat/pyramidal sizing models; includes dry-run preview modestop_strategy— Stop a running strategy by cancelling all its ordersget_strategy_status— Check strategy status, open orders, current price, and P&L estimate
Cardano DEX
get_cardano_price— Aggregated token prices from Cardano DEX liquidity pools (INDY, SNEK, MIN, NIGHT)discover_pools— Discover Cardano DEX liquidity pools for a native token
The server also provides structured resources (supported exchanges, grid strategy docs, example profiles) and pre-built prompts for market analysis, portfolio overview, and grid setup. It supports stdio and HTTP transport modes and can be run locally, via Docker, or as a hosted remote server.
Allows access to aggregated Cardano token prices and liquidity pool discovery from decentralized exchanges (DEXes) via on-chain data.
@qbtlabs/openmm-mcp
MCP (Model Context Protocol) server for OpenMM — exposes market data, account, trading, and strategy tools to AI agents via Claude Desktop, Claude Code, Cursor, Windsurf, and other MCP clients.
Install and connect — 13 tools are now available to your AI agent.
What Agents Can Do
Monitor markets — Real-time prices, order books, and trade history across multiple exchanges
Trade — Place limit and market orders, cancel orders, manage positions
Check balances — View account holdings across all connected exchanges
Run grid strategies — Configure and deploy automated grid trading with dry-run preview
Discover Cardano DEX liquidity — Aggregated token prices and pool discovery via on-chain data
⚡ Quick Start
MCP Server (13 tools)
# 1. Install & Setup OpenMM MCP
npm install -g @qbtlabs/openmm-mcp
npx @qbtlabs/openmm-mcp setupThe setup wizard will:
Ask which MCP clients to configure (Claude Desktop, Claude Code, Cursor, Windsurf)
Let you select exchanges (MEXC, Gate.io, Kraken, Bitget)
Prompt for API credentials
Automatically update your MCP config files
CLI Tool — Optional
# 2. Install & Setup OpenMM CLI
npm install -g @3rd-eye-labs/openmm
npx @3rd-eye-labs/openmm setupCreates a .env file with your exchange credentials for direct CLI usage.
Verify Installation
After setup, restart your MCP client and try:
"What is my balance on MEXC?"
Manual Installation
npm install -g @qbtlabs/openmm-mcpOr run directly:
npx @qbtlabs/openmm-mcpAvailable Tools
Tool | Description | Parameters |
| Real-time price, bid/ask, spread, volume |
|
| Order book depth (bids/asks) |
|
| Recent trades with buy/sell summary |
|
| Account balances (all or filtered) |
|
| Open orders (all or by symbol) |
|
| Place limit or market order |
|
| Cancel order by ID |
|
| Cancel all orders for a pair |
|
| Calculate and place grid orders |
|
| Cancel all orders for a pair |
|
| Grid status with open orders and spread |
|
| Aggregated Cardano token price from DEXes |
|
| Discover Cardano DEX liquidity pools |
|
MCP Resources
URI | Description |
| Supported exchanges with credential requirements |
| Grid trading strategy documentation |
| Example grid profiles (conservative/moderate/aggressive) |
Prompts
Prompt | Description |
| Analyze ticker + order book + trades for a pair |
| Summarize balances and open orders |
| Recommend grid config based on market analysis |
Supported Exchanges
MEXC —
MEXC_API_KEY,MEXC_SECRET_KEYBitget —
BITGET_API_KEY,BITGET_SECRET,BITGET_PASSPHRASEGate.io —
GATEIO_API_KEY,GATEIO_SECRETKraken —
KRAKEN_API_KEY,KRAKEN_SECRET
Framework Setup
Claude Code
claude mcp add openmm -- npx @qbtlabs/openmm-mcpSet your exchange API keys as environment variables before launching Claude Code.
Claude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"openmm": {
"command": "npx",
"args": ["@qbtlabs/openmm-mcp"],
"env": {
"MEXC_API_KEY": "your_key",
"MEXC_SECRET_KEY": "your_secret",
"KRAKEN_API_KEY": "your_key",
"KRAKEN_SECRET": "your_secret"
}
}
}
}Cursor
Add to .cursor/mcp.json in your project:
{
"mcpServers": {
"openmm": {
"command": "npx",
"args": ["@qbtlabs/openmm-mcp"],
"env": {
"MEXC_API_KEY": "your_key",
"MEXC_SECRET_KEY": "your_secret"
}
}
}
}Windsurf
Add to ~/.codeium/windsurf/mcp_config.json:
{
"mcpServers": {
"openmm": {
"command": "npx",
"args": ["@qbtlabs/openmm-mcp"],
"env": {
"MEXC_API_KEY": "your_key",
"MEXC_SECRET_KEY": "your_secret"
}
}
}
}Docker
docker build -t openmm-mcp .
docker run -e MEXC_API_KEY=your_key -e MEXC_SECRET_KEY=your_secret openmm-mcpRemote Server
Connect directly to the hosted server — no local install required:
https://openmm-mcp.qbtlabs.io/mcpAny MCP-Compatible Client
The server uses stdio transport by default. Point your client at:
npx @qbtlabs/openmm-mcpPass exchange credentials as environment variables (see Supported Exchanges).
HTTP Mode
Run the server with HTTP transport (Streamable HTTP + SSE):
MCP_TRANSPORT=http PORT=3000 npx @qbtlabs/openmm-mcpPOST /mcp— MCP endpointGET /health— Health check
Example Usage
Check a ticker price:
{
"tool": "get_ticker",
"arguments": {
"exchange": "mexc",
"symbol": "BTC/USDT"
}
}Place a limit buy order:
{
"tool": "create_order",
"arguments": {
"exchange": "kraken",
"symbol": "ETH/USDT",
"type": "limit",
"side": "buy",
"amount": 0.5,
"price": 2400
}
}Preview a grid strategy (dry run):
{
"tool": "start_grid_strategy",
"arguments": {
"exchange": "mexc",
"symbol": "INDY/USDT",
"levels": 5,
"spacing": 0.02,
"orderSize": 50,
"dryRun": true
}
}Get aggregated Cardano DEX price:
{
"tool": "get_cardano_price",
"arguments": {
"symbol": "INDY"
}
}Development
git clone https://github.com/QBT-Labs/openMM-mcp-agent.git
cd openMM-mcp-agent
npm install
cp .env.example .env # Edit with your API keys
npm run typecheck # Type checking
npm run lint # Linting
npm run format:check # Format checking
npm test # Run tests
npm run build # Build to dist/Resources
OpenMM SDK — Underlying trading SDK
npm package — Published package
MCP Specification — Model Context Protocol docs
QBT Labs — Organization
Contributing
See CONTRIBUTING.md for guidelines on submitting issues and pull requests.
License
MIT