Guides through installing and configuring the BloFin MCP server for crypto trading, including API key creation, MCP config, demo/production switching, and connection verification.
Ships in blofin-skills-hub. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Guide users through setting up and configuring the BloFin MCP server for trading on BloFin exchange.
npm install -g blofin-mcp
Or install locally:
git clone https://github.com/blofin/blofin-mcp.git
cd blofin-mcp
npm install
npm run build
Direct the user to BloFin API Management:
READ — view balances, order history, positionsTRADE — place and cancel ordersTRANSFER — move funds between accountsAdd the blofin MCP server to your agent's MCP configuration (e.g. mcp.json or settings.json):
{
"mcpServers": {
"blofin": {
"command": "node",
"args": ["/path/to/blofin-mcp/dist/index.js"],
"env": {
"BLOFIN_API_KEY": "your-api-key",
"BLOFIN_API_SECRET": "your-api-secret",
"BLOFIN_PASSPHRASE": "your-passphrase",
"BLOFIN_BROKER_ID": "your-broker-id (optional)",
"BLOFIN_BASE_URL": "https://openapi.blofin.com"
}
}
}
}
Replace /path/to/blofin-mcp with the actual installation path (e.g., the global npm path or the local clone directory).
| Environment | Base URL | Use Case |
|---|---|---|
| Demo Trading | https://demo-trading-openapi.blofin.com | Testing, learning, paper trading |
| Production | https://openapi.blofin.com | Real money trading |
BLOFIN_BASE_URL is not setAfter configuration, verify the setup works:
get_apikey_info to verify API key permissions and statusget_tickers with instId: "BTC-USDT" to test public data accessget_balance to verify authenticated accessreadOnly field: 0 = Read+Write, 1 = Read only)| Issue | Solution |
|---|---|
| Signature verification failed | Check that API secret and passphrase are correct; ensure no extra spaces |
| IP not in whitelist (152406) | Add your current IP to the API key's whitelist on BloFin |
| Access key expired (152402) | Keys without IP binding expire after 90 days; recreate or bind an IP |
| Rate limit (429) | Reduce request frequency; REST API limit is 500/min per IP |
| Connection timeout | Check your network; verify the base URL is correct |
| Variable | Required | Description |
|---|---|---|
BLOFIN_API_KEY | Yes | Your BloFin API key |
BLOFIN_API_SECRET | Yes | Your BloFin API secret key |
BLOFIN_PASSPHRASE | Yes | The passphrase set when creating the API key |
BLOFIN_BROKER_ID | No | Broker ID for order attribution (provided by BloFin) |
BLOFIN_BASE_URL | No | API base URL (defaults to demo trading endpoint) |
READ permission only and upgrade as neededWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
9 skills in this plugin
/blofin-account-managerManage BloFin futures account — check balances, view positions, configure leverage, margin mode, and position mode. Requires authenticated BloFin API access./blofin-asset-managerManage BloFin assets — check balances across account types, transfer funds between accounts (funding, futures, copy trading, earn, spot), and track deposit/withdrawal history. Requires authenticated API access with TRANSFER permission./blofin-copy-tradingManage BloFin copy trading — view copy trading account, positions, orders, and lead trader operations. Supports both follower and lead trader workflows. Requires authenticated API access.Other plugins' skills for the same job
/blofin-skills-hub:blofin-setupfrom blofin-skills-hub
blofin-skills-hub@fin-skills is listed by howard-lynn-ye/fin-rsi — review the source before installing
npx claudepluginhub howard-lynn-ye/fin-rsi --plugin blofin-skills-hub