binance-futures-mcp 1.0.0__py3-none-any.whl → 1.0.2__py3-none-any.whl
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.
- {binance_futures_mcp-1.0.0.dist-info → binance_futures_mcp-1.0.2.dist-info}/METADATA +68 -84
- binance_futures_mcp-1.0.2.dist-info/RECORD +9 -0
- binance_futures_mcp-1.0.2.dist-info/entry_points.txt +2 -0
- binance_mcp/__main__.py +8 -2
- binance_mcp/server.py +4 -2
- binance_futures_mcp-1.0.0.dist-info/RECORD +0 -9
- binance_futures_mcp-1.0.0.dist-info/entry_points.txt +0 -2
- {binance_futures_mcp-1.0.0.dist-info → binance_futures_mcp-1.0.2.dist-info}/WHEEL +0 -0
- {binance_futures_mcp-1.0.0.dist-info → binance_futures_mcp-1.0.2.dist-info}/licenses/LICENSE +0 -0
- {binance_futures_mcp-1.0.0.dist-info → binance_futures_mcp-1.0.2.dist-info}/top_level.txt +0 -0
@@ -1,13 +1,12 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: binance-futures-mcp
|
3
|
-
Version: 1.0.
|
3
|
+
Version: 1.0.2
|
4
4
|
Summary: A Model Context Protocol server for Binance Futures API
|
5
|
+
Home-page: https://github.com/alexcandrabersiva/bin-mcp
|
5
6
|
Author: Binance MCP Server
|
6
|
-
|
7
|
-
Project-URL:
|
8
|
-
|
9
|
-
Project-URL: Issues, https://github.com/bin-mcp/binance-mcp-server/issues
|
10
|
-
Keywords: mcp,binance,trading,futures,api,model-context-protocol
|
7
|
+
Project-URL: Bug Tracker, https://github.com/alexcandrabersiva/bin-mcp/issues
|
8
|
+
Project-URL: Repository, https://github.com/alexcandrabersiva/bin-mcp.git
|
9
|
+
Keywords: mcp binance trading futures api model-context-protocol
|
11
10
|
Classifier: Development Status :: 4 - Beta
|
12
11
|
Classifier: Intended Audience :: Developers
|
13
12
|
Classifier: Programming Language :: Python :: 3
|
@@ -24,18 +23,46 @@ License-File: LICENSE
|
|
24
23
|
Requires-Dist: mcp>=1.0.0
|
25
24
|
Requires-Dist: aiohttp>=3.8.0
|
26
25
|
Requires-Dist: pydantic>=2.0.0
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
26
|
+
Dynamic: author
|
27
|
+
Dynamic: classifier
|
28
|
+
Dynamic: description
|
29
|
+
Dynamic: description-content-type
|
30
|
+
Dynamic: home-page
|
31
|
+
Dynamic: keywords
|
33
32
|
Dynamic: license-file
|
33
|
+
Dynamic: project-url
|
34
|
+
Dynamic: requires-dist
|
35
|
+
Dynamic: requires-python
|
36
|
+
Dynamic: summary
|
34
37
|
|
35
38
|
# Binance MCP Server
|
36
39
|
|
37
40
|
A Model Context Protocol (MCP) server that provides comprehensive access to Binance Futures API endpoints. This server implements all major trading, account management, and market data functionality as documented in the Binance Futures API.
|
38
41
|
|
42
|
+
## Quick Start
|
43
|
+
|
44
|
+
1. **Install the package:**
|
45
|
+
```bash
|
46
|
+
pip install binance-futures-mcp
|
47
|
+
```
|
48
|
+
|
49
|
+
2. **Run the server:**
|
50
|
+
```bash
|
51
|
+
uvx binance-futures-mcp --binance-api-key "your_key" --binance-secret-key "your_secret"
|
52
|
+
```
|
53
|
+
|
54
|
+
3. **Or configure in VS Code** by adding to your `settings.json`:
|
55
|
+
```json
|
56
|
+
{
|
57
|
+
"mcp.servers": {
|
58
|
+
"binance": {
|
59
|
+
"command": "uvx",
|
60
|
+
"args": ["binance-futures-mcp", "--binance-api-key", "your_key", "--binance-secret-key", "your_secret"]
|
61
|
+
}
|
62
|
+
}
|
63
|
+
}
|
64
|
+
```
|
65
|
+
|
39
66
|
## Features
|
40
67
|
|
41
68
|
### Account Information Tools
|
@@ -69,26 +96,17 @@ A Model Context Protocol (MCP) server that provides comprehensive access to Bina
|
|
69
96
|
|
70
97
|
## Installation
|
71
98
|
|
72
|
-
### Prerequisites
|
73
|
-
- Python 3.8 or higher
|
74
|
-
- Binance Futures API credentials
|
75
|
-
|
76
|
-
### Method 1: Install via uvx (Recommended)
|
77
|
-
|
78
99
|
```bash
|
79
|
-
|
100
|
+
pip install binance-futures-mcp
|
80
101
|
```
|
81
102
|
|
82
|
-
###
|
83
|
-
|
84
|
-
```bash
|
85
|
-
cd binance-mcp-server
|
86
|
-
pip install -e .
|
87
|
-
```
|
103
|
+
### Development Installation
|
88
104
|
|
89
|
-
|
105
|
+
For development, you can install from source:
|
90
106
|
|
91
107
|
```bash
|
108
|
+
git clone https://github.com/bin-mcp/binance-mcp-server.git
|
109
|
+
cd binance-mcp-server
|
92
110
|
pip install -e ".[dev]"
|
93
111
|
```
|
94
112
|
|
@@ -105,11 +123,8 @@ Add to your VS Code `settings.json`:
|
|
105
123
|
"mcp.servers": {
|
106
124
|
"binance": {
|
107
125
|
"command": "uvx",
|
108
|
-
"args": ["binance-mcp-
|
109
|
-
"env": {
|
110
|
-
"BINANCE_API_KEY": "your_api_key_here",
|
111
|
-
"BINANCE_SECRET_KEY": "your_secret_key_here"
|
112
|
-
}
|
126
|
+
"args": ["binance-futures-mcp", "--binance-api-key", "your_api_key", "--binance-secret-key", "your_secret_key"],
|
127
|
+
"env": {}
|
113
128
|
}
|
114
129
|
}
|
115
130
|
}
|
@@ -123,12 +138,9 @@ Add to your Cursor configuration file (`.cursor/mcp.json`):
|
|
123
138
|
{
|
124
139
|
"servers": {
|
125
140
|
"binance": {
|
126
|
-
"command": "uvx",
|
127
|
-
"args": ["binance-mcp-
|
128
|
-
"env": {
|
129
|
-
"BINANCE_API_KEY": "your_api_key_here",
|
130
|
-
"BINANCE_SECRET_KEY": "your_secret_key_here"
|
131
|
-
}
|
141
|
+
"command": "uvx",
|
142
|
+
"args": ["binance-futures-mcp", "--binance-api-key", "your_api_key", "--binance-secret-key", "your_secret_key"],
|
143
|
+
"env": {}
|
132
144
|
}
|
133
145
|
}
|
134
146
|
}
|
@@ -143,11 +155,8 @@ Add to your Windsurf configuration (`.windsurf/mcp.json`):
|
|
143
155
|
"mcpServers": {
|
144
156
|
"binance": {
|
145
157
|
"command": "uvx",
|
146
|
-
"args": ["binance-mcp-
|
147
|
-
"env": {
|
148
|
-
"BINANCE_API_KEY": "your_api_key_here",
|
149
|
-
"BINANCE_SECRET_KEY": "your_secret_key_here"
|
150
|
-
}
|
158
|
+
"args": ["binance-futures-mcp", "--binance-api-key", "your_api_key", "--binance-secret-key", "your_secret_key"],
|
159
|
+
"env": {}
|
151
160
|
}
|
152
161
|
}
|
153
162
|
}
|
@@ -165,11 +174,8 @@ Add to your Claude Desktop configuration file:
|
|
165
174
|
"mcpServers": {
|
166
175
|
"binance": {
|
167
176
|
"command": "uvx",
|
168
|
-
"args": ["binance-mcp-
|
169
|
-
"env": {
|
170
|
-
"BINANCE_API_KEY": "your_api_key_here",
|
171
|
-
"BINANCE_SECRET_KEY": "your_secret_key_here"
|
172
|
-
}
|
177
|
+
"args": ["binance-futures-mcp", "--binance-api-key", "your_api_key", "--binance-secret-key", "your_secret_key"],
|
178
|
+
"env": {}
|
173
179
|
}
|
174
180
|
}
|
175
181
|
}
|
@@ -179,42 +185,25 @@ Add to your Claude Desktop configuration file:
|
|
179
185
|
|
180
186
|
1. **No path needed**: With PyPI installation, you don't need to specify paths or working directories.
|
181
187
|
|
182
|
-
2. **Set API credentials**: Replace `
|
188
|
+
2. **Set API credentials**: Replace `your_api_key` and `your_secret_key` with your actual Binance API credentials.
|
183
189
|
|
184
190
|
3. **Alternative commands**: You can also use:
|
185
|
-
- `pip install binance-mcp
|
186
|
-
- `binance-mcp-server` (if installed globally)
|
191
|
+
- `pip install binance-futures-mcp && python -m binance_mcp`
|
192
|
+
- `binance-mcp-server` (if installed globally and on PATH)
|
187
193
|
|
188
194
|
4. **Python environment**: Using `uvx` automatically handles the Python environment.
|
189
195
|
|
190
196
|
5. **Security**: For production use, consider storing credentials in your system's environment variables instead of directly in configuration files.
|
191
197
|
|
192
|
-
##
|
193
|
-
|
194
|
-
### Prerequisites
|
195
|
-
- Python 3.8 or higher
|
196
|
-
- Binance Futures API credentials
|
197
|
-
|
198
|
-
### Method 1: Install via uvx (Recommended)
|
199
|
-
|
200
|
-
```bash
|
201
|
-
uvx --from git+https://github.com/alexcandrabersiva/bin-mcp binance-mcp-server
|
202
|
-
```
|
203
|
-
|
204
|
-
### Method 2: Local Installation
|
205
|
-
|
206
|
-
```bash
|
207
|
-
cd binance-mcp-server
|
208
|
-
pip install -e .
|
209
|
-
```
|
198
|
+
## Configuration
|
210
199
|
|
211
|
-
|
200
|
+
### API Requirements
|
212
201
|
|
213
|
-
|
214
|
-
|
215
|
-
|
202
|
+
Your Binance API key needs the following permissions:
|
203
|
+
- **Futures Trading**: For order placement and management
|
204
|
+
- **Futures Reading**: For account and market data access
|
216
205
|
|
217
|
-
|
206
|
+
**Note**: Market data endpoints (exchange info, prices, order books, etc.) work without authentication.
|
218
207
|
|
219
208
|
### Environment Variables
|
220
209
|
|
@@ -225,24 +214,19 @@ export BINANCE_API_KEY="your_api_key_here"
|
|
225
214
|
export BINANCE_SECRET_KEY="your_secret_key_here"
|
226
215
|
```
|
227
216
|
|
228
|
-
### API Permissions
|
229
|
-
|
230
|
-
Your Binance API key needs the following permissions:
|
231
|
-
- **Futures Trading**: For order placement and management
|
232
|
-
- **Futures Reading**: For account and market data access
|
233
|
-
|
234
|
-
**Note**: Market data endpoints (exchange info, prices, order books, etc.) work without authentication.
|
235
|
-
|
236
217
|
## Usage
|
237
218
|
|
238
219
|
### Running the Server
|
239
220
|
|
240
221
|
```bash
|
241
|
-
# Run directly
|
222
|
+
# Run directly (after installing from PyPI)
|
242
223
|
python -m binance_mcp
|
243
224
|
|
244
|
-
# Or using
|
245
|
-
binance-mcp
|
225
|
+
# Or using uvx (no installation needed)
|
226
|
+
uvx binance-futures-mcp
|
227
|
+
|
228
|
+
# With API credentials as arguments
|
229
|
+
uvx binance-futures-mcp --binance-api-key "your_key" --binance-secret-key "your_secret"
|
246
230
|
```
|
247
231
|
|
248
232
|
### Available Tools
|
@@ -0,0 +1,9 @@
|
|
1
|
+
binance_futures_mcp-1.0.2.dist-info/licenses/LICENSE,sha256=zqfwopvOi7kOx5YVOnehgmRFR-IU3x1n9JEShr3QOYg,1075
|
2
|
+
binance_mcp/__init__.py,sha256=ExUxc1kp3GoSwmEtC7eGgFMZlvSQ4IdW1T5xhw-NT98,106
|
3
|
+
binance_mcp/__main__.py,sha256=_9DBrtv0PAvjLjCqKk_cMfGtkqSUOcmU6HeQKFjuFMQ,214
|
4
|
+
binance_mcp/server.py,sha256=FZt8rs22u-37xeZg5Rg7uMVYsNDLZt99DG8EG5YN-k8,38270
|
5
|
+
binance_futures_mcp-1.0.2.dist-info/METADATA,sha256=bUTTzWuLNtsHdDt4K2F3sFEhDt-rHU5zKF6y3UQ_ORc,11022
|
6
|
+
binance_futures_mcp-1.0.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
7
|
+
binance_futures_mcp-1.0.2.dist-info/entry_points.txt,sha256=-1iVs9AF7JQBS-xMichP9hQhbCY7YfLFRJVaNKwuN34,69
|
8
|
+
binance_futures_mcp-1.0.2.dist-info/top_level.txt,sha256=RqGhe1caZUvBF_ezvTiLZD8kVS25eiWVkfJfmoND9m8,12
|
9
|
+
binance_futures_mcp-1.0.2.dist-info/RECORD,,
|
binance_mcp/__main__.py
CHANGED
@@ -1,7 +1,13 @@
|
|
1
1
|
#!/usr/bin/env python3
|
2
2
|
|
3
|
+
import asyncio
|
3
4
|
from binance_mcp.server import main
|
4
5
|
|
5
|
-
|
6
|
-
|
6
|
+
|
7
|
+
def cli_main():
|
8
|
+
"""Entry point for the command-line interface"""
|
7
9
|
asyncio.run(main())
|
10
|
+
|
11
|
+
|
12
|
+
if __name__ == "__main__":
|
13
|
+
cli_main()
|
binance_mcp/server.py
CHANGED
@@ -1,9 +0,0 @@
|
|
1
|
-
binance_futures_mcp-1.0.0.dist-info/licenses/LICENSE,sha256=zqfwopvOi7kOx5YVOnehgmRFR-IU3x1n9JEShr3QOYg,1075
|
2
|
-
binance_mcp/__init__.py,sha256=ExUxc1kp3GoSwmEtC7eGgFMZlvSQ4IdW1T5xhw-NT98,106
|
3
|
-
binance_mcp/__main__.py,sha256=arjH5cad7koMZTvXR3u3eLE6I7pdT1zg5ttp7KNjQ6Y,131
|
4
|
-
binance_mcp/server.py,sha256=LW16OetihWrkBLC1X-0Wg6k_Oug6PQ3LRVPkpEa32s0,38221
|
5
|
-
binance_futures_mcp-1.0.0.dist-info/METADATA,sha256=_rOapSOSDn8prUvEifrTocZ4wEMNJm0TJXql2YTkXFk,11017
|
6
|
-
binance_futures_mcp-1.0.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
7
|
-
binance_futures_mcp-1.0.0.dist-info/entry_points.txt,sha256=Olf_ctXC2kgUJEg-bfsy90EXuCDM0gW8xJwO_QzraqE,65
|
8
|
-
binance_futures_mcp-1.0.0.dist-info/top_level.txt,sha256=RqGhe1caZUvBF_ezvTiLZD8kVS25eiWVkfJfmoND9m8,12
|
9
|
-
binance_futures_mcp-1.0.0.dist-info/RECORD,,
|
File without changes
|
{binance_futures_mcp-1.0.0.dist-info → binance_futures_mcp-1.0.2.dist-info}/licenses/LICENSE
RENAMED
File without changes
|
File without changes
|