home / mcp / binance mcp server
bach-binance-mcp - 由 MCP工厂自动创建
Configuration
View docs{
"mcpServers": {
"bach-ai-tools-bach-binance-mcp": {
"command": "npx",
"args": [
"-y",
"@snjyor/binance-mcp@latest"
],
"env": {
"YOUR_ENV_PLACEHOLDER": "YOUR_VALUE"
}
}
}
}This Binance MCP server lets you access real-time cryptocurrency market data programmatically. You can query current prices, order books, candlestick data, and 24-hour changes directly from your AI workflows, without switching to external websites.
Install and run the MCP server, then connect your MCP client to the provided command configuration. Once active, the Binance data tools appear in your MCP client’s Available Tools list and are used automatically when you ask for price data, order books, or candlestick charts.
Practical usage patterns include asking for the current price of a cryptocurrency, requesting recent trades, pulling K-line data for a specific interval, or obtaining 24-hour price changes. You can also explicitly request specific tools by name if your client supports tool-aware prompts.
Prerequisites: you need Node.js and npm installed on your machine.
Global MCP server (STDIO) example you can run directly with a package manager:
npx -y @snjyor/binance-mcp@latestCursor integration (example) create a project-level MCP configuration to run the same server locally.
# In your project, create a Cursor MCP config file
{
"mcpServers": {
"binance": {
"command": "npx",
"args": [
"-y",
"bach-binance-mcp"
]
}
}
}If you prefer to run the server from a project-local setup, you can also configure a project JSON snippet to launch the same MCP server.
{
"mcpServers": {
"binance": {
"command": "npx",
"args": [
"-y",
"bach-binance-mcp"
]
}
}
}To develop or test locally, install dependencies, build, and run the server. Use the built-in MCP Inspector to debug your setup if needed.
# Install dependencies
npm install
# Build the project
npm run build
# Start the server locally for testing
npm run startKeep dependencies up to date. Run regular checks for security advisories in your MCP environment and use environment-specific configuration to manage access to sensitive data.
Fetches the current price for a specified cryptocurrency.
Retrieves the current order book data showing buy and sell depth.
Returns a list of recent trades for the selected market.
Provides historical trades data for analysis.
Gets aggregated trades data.
Retrieves K-line (candlestick) data for specified intervals.
Fetches UI-optimized K-line data for display.
Gets the current average price for a market.
Provides 24-hour price change statistics.
Gives trading day market information.
Retrieves a simplified view of the order book ticker.
Fetches rolling window price change statistics.