Retrieves K-line (candlestick) OHLCV data from Binance Smart Chain DEXs, supporting multiple timeframes and dynamically selecting the most liquid trading pools
Fetches K-line (candlestick) OHLCV data from Ethereum DEXs, automatically selecting pools with highest liquidity to provide accurate price and trading data
Streams K-line (candlestick) OHLCV data from Solana-based decentralized exchanges, with support for various timeframes and historical data retrieval
DEX K-line MCP
An MCP server that streams K-line (candlestick) data from decentralized exchanges (DEXs) to power your AI agents and workflows.
Features
- K-line Data Retrieval: Fetches OHLCV (Open, High, Low, Close, Volume) data for specified tokens on supported chains (Ethereum, Binance Smart Chain, Solana).
- Dynamic Timeframes: Supports multiple timeframes (
1m
,5m
,15m
,1h
,4h
,12h
,1d
) with appropriate API endpoints. - Best Pool Selection: Automatically selects the pool with the highest liquidity for accurate data.
- Flexible End Time: Allows specifying an end time in ISO 8601 format or defaults to the current UTC time.
- Tabular Output: Formats K-line data into a clean, readable table using the
tabulate
library.
Installation
Prerequisites
- Python 3.10 or higher
- uv for dependency management
Setup
- Clone the repository:
- Install dependencies:
- Installing to Claude Desktop: Install the server as a Claude Desktop application:Configuration file as a reference:Replace
/path/to/dex-kline-mcp
with your actual installation path.
Usage
Tool: get_kline
The server exposes a single tool, get_kline
, which retrieves K-line data for a specified token.
Parameters
chain
(str): Blockchain network (e.g.,eth
,bsc
,solana
)address
(str): Token contract addresstimeframe
(str): K-line timeframe (e.g.,1m
,5m
,15m
,1h
,4h
,12h
,1d
). Default:1h
end_time
(str, optional): ISO 8601 timestamp for data end time (e.g.,2025-07-03T02:14:00Z
). Default: current UTC timelimit
(int): Number of data points to return (max 1000). Default: 100
Example Prompt
Fetch the 1-hour K-line data for the token with the contract address 0xf4b385849f2e817e92bffbfb9aeb48f950ff4444 on the Binance Smart Chain (BSC).
Example Output
License
This project is licensed under the MIT License. See the LICENSE file for details.
Acknowledgments
Data powered by GeckoTerminal API.
This server cannot be installed
An MCP server that streams K-line (candlestick) data from decentralized exchanges (DEXs) to power your AI agents and workflows.
Related MCP Servers
- AsecurityAlicenseAqualityAn MCP server implementation that enables access to DexScreener API data, providing real-time information on DEX pairs, token profiles, and market statistics across multiple blockchains.Last updated -76JavaScriptThe Unlicense
- -securityAlicense-qualityDexPaprika MCP server allows LLMs to access real-time and historical data on tokens, DEX trading activity, and liquidity across multiple blockchains. It enables natural language queries for exploring market trends, token performance, and DeFi analytics through a standardized interface.Last updated -10210JavaScriptMIT License
- -security-license-qualityAn MCP server that provides real-time access to Chainlink's decentralized on-chain price feeds, optimized for seamless integration into AI agents and autonomous systems.Last updated -JavaScriptMIT License
- -securityAlicense-qualityAn MCP server that tracks and analyzes DEX liquidity pools to power intelligent DeFi agents and automated strategies.Last updated -PythonMIT License