Provides comprehensive tools for interacting with Binance cryptocurrency exchange, including market data retrieval, account balance management, order placement and cancellation, futures trading, and fund transfers.
Enables interaction with Coinbase cryptocurrency exchange through tools for accessing market data, managing account balances, executing trades, and handling orders.
MCP Server CCXT
ā ļø Work in Progress: This project is currently under active development. Features and APIs may change without notice. Use in production environments at your own risk.
MCP (Model Context Protocol) server that exposes CCXT cryptocurrency exchange APIs via Server-Sent Events (SSE). This server provides 24 comprehensive tools for interacting with multiple cryptocurrency exchanges.
š Security First
IMPORTANT: This server includes multiple layers of security to prevent accidental or malicious trading operations:
š”ļø SAFE_MODE: Disable all trading operations, only read-only access
ā±ļø Rate Limiting: Prevent burst of orders (max 10 orders/minute per session)
š Enhanced Logging: Full audit trail of all trading operations
š Tool Classification: Clear separation between safe vs dangerous tools
šØ Security Checks: Multiple validation layers before executing trades
See
Quick Start - Safe Mode
For maximum security (recommended for production):
With SAFE_MODE enabled:
ā Can read: balances, markets, prices, orders, history
ā Cannot: place orders, cancel orders, transfer funds
Features
š Web-based MCP server using SSE transport
š± Multiple exchange support: Binance, Coinbase, Kraken, Bitfinex, Bybit
š§ 24 comprehensive tools (13 public + 11 private)
š Environment-based credentials management
š”ļø Advanced security features (SAFE_MODE, rate limiting, audit logs)
š Public APIs: Market data, tickers, orderbooks, OHLCV, trades, funding rates
š° Private APIs: Account balance, order management, futures trading, fund transfers
š Session-based transport with UUID tracking
š Detailed logging for debugging
Installation
Configuration
Create a .env file in the root directory:
Security Recommendations:
Always enable SAFE_MODE unless trading is explicitly required
Use separate API keys for read-only vs trading operations
Enable IP restrictions on exchange API keys
Never commit
.envfile to version controlSee SECURITY.md for complete security guide
Running the Server
The server will start on http://0.0.0.0:3000 (or your configured HOST/PORT).
Available Endpoints
SSE Stream:
GET http://localhost:3000/sse- Establishes SSE connectionMessages:
POST http://localhost:3000/message?sessionId=<uuid>- Handles MCP messagesHealth Check:
GET http://localhost:3000/health- Server health statusInfo:
GET http://localhost:3000/- Server informationStats:
GET http://localhost:3000/stats- Server statistics
Available Tools
Public Tools (13 tools - No authentication required)
list_exchanges - List all available exchanges
get_ticker - Get current ticker for a trading pair
batch_get_tickers - Get multiple tickers at once
get_orderbook - Get market order book
get_ohlcv - Get candlestick data
get_trades - Get recent trades
get_markets - List all available markets
get_exchange_info - Get exchange information
get_leverage_tiers - Get futures leverage tiers
get_funding_rates - Get perpetual futures funding rates
get_positions - Get open positions (public data)
get_open_orders - Get open orders (public data)
get_order_history - Get order history (public data)
Private Tools (10 tools - Require API credentials)
account_balance - Get account balance
place_market_order - Place market order ā ļø
place_limit_order - Place limit order ā ļø
cancel_order - Cancel specific order
cancel_all_orders - Cancel all orders
set_leverage - Set futures leverage
set_margin_mode - Set margin mode (isolated/cross)
place_futures_market_order - Place futures market order ā ļø
place_futures_limit_order - Place futures limit order ā ļø
transfer_funds - Transfer funds between accounts
ā ļø Warning: Trading tools execute real operations with real money!
Testing
Basic Test
Extended Test
Tool Examples
Get Ticker
Batch Get Tickers
List Exchanges
Get Account Balance (requires credentials)
Place Limit Order (requires credentials) ā ļø
Architecture
MCP Integration
Using with n8n
Install MCP connector in n8n
Configure server URL:
http://your-server:3000Use tools in workflows
Custom Integration
Security
ā ļø Important Security Notes:
Never commit to version control
Trading tools execute real trades with real money
Use HTTPS in production
Restrict access with firewall rules
Be aware of rate limits on exchanges
Supported Exchanges
Coinbase (default)
Binance
Kraken
Bitfinex
Bybit
CCXT supports 100+ exchanges. Add credentials in .env to enable more.
Troubleshooting
Server won't start
Check port 3000 is not in use
Verify
.envfile existsCheck logs for errors
Tools not showing
Restart server after code changes
Check tool definitions
Review server logs
Authentication errors
Verify API keys in
.envCheck exchange name (lowercase)
Ensure proper API permissions
License
MIT
Contributing
Contributions welcome! Please:
Fork the repository
Create feature branch
Add tests
Submit pull request
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
Provides access to cryptocurrency exchange APIs through CCXT, enabling market data retrieval, account balance checks, and trading operations across multiple exchanges like Binance, Coinbase, and Kraken with built-in security features.