blofin-mcp 1.1.0 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +41 -5
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -53,6 +53,7 @@ A Model Context Protocol (MCP) server for the [BloFin](https://blofin.com/) cryp
53
53
  | `BLOFIN_API_SECRET` | Yes | Your BloFin API secret |
54
54
  | `BLOFIN_PASSPHRASE` | Yes | Your BloFin API passphrase |
55
55
  | `BLOFIN_BASE_URL` | No | API base URL (defaults to demo trading) |
56
+ | `BLOFIN_BROKER_ID` | No | Broker ID provided by BloFin (auto-injected into trading requests) |
56
57
 
57
58
  ### Base URLs
58
59
 
@@ -66,27 +67,62 @@ npm install
66
67
  npm run build
67
68
  ```
68
69
 
69
- ### MCP Configuration
70
+ ### Claude Desktop
70
71
 
71
- Add to your MCP client configuration (e.g. Claude Desktop):
72
+ Add to your Claude Desktop config (`Settings Developer → Edit Config`):
72
73
 
73
74
  ```json
74
75
  {
75
76
  "mcpServers": {
76
77
  "blofin": {
77
- "command": "node",
78
- "args": ["/path/to/blofin-mcp/dist/index.js"],
78
+ "command": "npx",
79
+ "args": ["-y", "blofin-mcp"],
79
80
  "env": {
80
81
  "BLOFIN_API_KEY": "your-api-key",
81
82
  "BLOFIN_API_SECRET": "your-api-secret",
82
83
  "BLOFIN_PASSPHRASE": "your-passphrase",
83
- "BLOFIN_BASE_URL": "https://openapi.blofin.com"
84
+ "BLOFIN_BASE_URL": "https://openapi.blofin.com",
85
+ "BLOFIN_BROKER_ID": "your-broker-id"
84
86
  }
85
87
  }
86
88
  }
87
89
  }
88
90
  ```
89
91
 
92
+ ### Cursor / Windsurf / Cline
93
+
94
+ Same configuration format as above. Add to each client's MCP settings.
95
+
96
+ ### OpenClaw
97
+
98
+ Add `"mcpServers"` to your `~/.openclaw/openclaw.json` (top-level field, alongside `identity`, `agent`, etc.):
99
+
100
+ ```json5
101
+ {
102
+ "identity": { "name": "Clawd", "emoji": "🦞" },
103
+ "agent": { "workspace": "~/.openclaw/workspace" },
104
+
105
+ // Add this section ↓
106
+ "mcpServers": {
107
+ "blofin": {
108
+ "command": "npx",
109
+ "args": ["-y", "blofin-mcp"],
110
+ "env": {
111
+ "BLOFIN_API_KEY": "your-api-key",
112
+ "BLOFIN_API_SECRET": "your-api-secret",
113
+ "BLOFIN_PASSPHRASE": "your-passphrase",
114
+ "BLOFIN_BASE_URL": "https://openapi.blofin.com",
115
+ "BLOFIN_BROKER_ID": "your-broker-id"
116
+ }
117
+ }
118
+ }
119
+ }
120
+ ```
121
+
122
+ If your `openclaw.json` already has a `"mcpServers"` section with other servers, just add `"blofin": { ... }` inside it.
123
+
124
+ Restart OpenClaw after saving. The agent will automatically discover the 36 BloFin tools.
125
+
90
126
  ## API Documentation
91
127
 
92
128
  See [BloFin API Docs](https://docs.blofin.com/index.html) for full API reference.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "blofin-mcp",
3
- "version": "1.1.0",
3
+ "version": "1.1.2",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "bin": {