Binance MCP Server
Provides tools for interacting with the Binance cryptocurrency exchange API, including connectivity testing, server time synchronization, and foundational tools for market data access and trading operations.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Binance MCP Server
A comprehensive FastMCP server implementation providing datetime utilities and Binance API integration tools for cryptocurrency market operations.
Features
š DateTime Tools: Get current date and time in ISO8601 format
š Binance API Integration: Direct connectivity to Binance cryptocurrency exchange
š Connectivity Testing: Test Binance API connectivity and server time sync
š FastMCP Framework: Built with FastMCP for efficient MCP server implementation
āļø Configuration Management: Environment-based configuration with dotenv support
š Observability: Logfire integration for monitoring and debugging
Related MCP server: MCP Time Server
Installation
Requirements
Python 3.8+
Dependencies listed in
pyproject.toml
Setup
# Install dependencies using rye (recommended)
rye sync
# Or using uv
uv syncEnvironment Configuration
Create a .env file in the project root:
# Server Configuration
PORT=8000
TRANSPORT=http
# Binance API Credentials (optional for basic tools)
BINANCE_API_KEY=your_api_key_here
BINANCE_API_SECRET=your_api_secret_here
# Observability (optional)
LOGFIRE_TOKEN=your_logfire_token_hereNote: API credentials are only required for authenticated Binance operations. Basic tools like datetime and connectivity testing work without credentials.
Usage
Running the Server
Standalone Mode
# Run the server directly
python -m binance_mcp.main
# Or use the installed script
mcp
# For development (from project root)
python -m src.binance_mcp.mainWith MCP Client (e.g., Claude Desktop)
Add to your Claude Desktop configuration (~/Library/Application Support/Claude/claude_desktop_config.json):
{
"mcpServers": {
"binance-mcp": {
"command": "python",
"args": ["-m", "binance_mcp.main"],
"cwd": "/path/to/binance-mcp",
"env": {
"BINANCE_API_KEY": "your_api_key",
"BINANCE_API_SECRET": "your_api_secret"
}
}
}
}Available Tools
get_current_datetime
Returns the current date and time in ISO8601 format.
Parameters: None
Response:
timestamp(string): Current date and time in ISO8601 format
Example Response:
{
"timestamp": "2025-08-18T23:01:41.949232+00:00"
}binance_test_connectivity
Tests connectivity to the Binance API endpoints.
Parameters: None
Response:
timestamp(string): ISO8601 timestamp when the test was performedreachable(boolean): True if Binance API is reachable, False otherwise
Example Response:
{
"timestamp": "2025-08-18T23:01:41.949232+00:00",
"reachable": true
}get_binance_server_time
Retrieves the current server time from Binance.
Parameters: None
Response:
server_time(integer): Unix timestamp in milliseconds representing Binance server time
Example Response:
{
"server_time": 1692396701949
}Development
Project Structure
binance-mcp/
āāā src/
ā āāā binance_mcp/
ā āāā __init__.py
ā āāā main.py # Main MCP server implementation
ā āāā models.py # Pydantic response models
ā āāā settings.py # Configuration management
ā āāā client.py # Binance client factory
ā āāā tools/
ā āāā __init__.py
ā āāā timestamp.py # DateTime and Binance time tools
āāā pyproject.toml # Project configuration
āāā .env # Environment variables (create from template)
āāā README.md # This fileTesting
Test the server functionality:
# Test individual tools (requires server to be running)
# The FastMCP framework provides built-in testing capabilities
# Run the server in development mode
rye run mcp
# Or if the virtualenv is activated
mcp
# Or use ruff for code quality checks
rye run ruff check src/Future Enhancements
Market data tools (ticker prices, order book, candlestick data)
Account information tools (balances, trading history)
Trading operations (place orders, cancel orders)
WebSocket streaming tools for real-time data
Additional cryptocurrency exchange integrations
Rate limiting and advanced error handling
Caching mechanisms for frequently accessed data
Portfolio analytics and reporting tools
License
[Add your license here]
Contributing
[Add contribution guidelines if needed]
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogā¦
This server cannot be deployed
Maintenance
Related MCP Connectors
Binance - 340 tools for market data, order books, and trading pairs
Generate Discord timestamps and manage your HammerTime bot settings.
IBAN, ISIN, VAT/tax ID, GTIN validation; timezone, geo, text, chain utilities. Pay per call
Unlock the power of real-time cryptocurrency data with our Crypto Price Insights MCP server.
Related MCP Servers
- AlicenseBqualityDmaintenanceGives large language models time awareness capabilities through various time-related functions including current time retrieval, timezone conversion, and relative time calculations.6MIT
- AlicenseBqualityCmaintenanceProvides time and date functionality with support for multiple formats and timezones, enabling users to get current time/date, format timestamps, and retrieve comprehensive datetime information.4MIT
- AlicenseAqualityDmaintenanceProvides tools for date-time manipulation, including timezone conversion and arithmetic operations like adding or subtracting time units. It also enables users to retrieve current date, time, and timezone information.320 npmISC
- AlicenseNot gradedqualityDmaintenanceProvides current date and time information in multiple formats, timezone conversion, date/time differences, and date calculations.1MIT