dex-kline-mcp
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
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@dex-kline-mcpget 1-hour kline data for USDC on Ethereum"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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
tabulatelibrary.
Related MCP server: liquidity-pools-mcp
Installation
Prerequisites
Python 3.10 or higher
uv for dependency management
Setup
Clone the repository:
git clone https://github.com/kukapay/dex-kline-mcp.git cd dex-kline-mcpInstall dependencies:
uv syncInstalling to Claude Desktop:
Install the server as a Claude Desktop application:
uv run mcp install main.py --name "DEX K-line"Configuration file as a reference:
{ "mcpServers": { "DEX K-line": { "command": "uv", "args": [ "--directory", "/path/to/dex-kline-mcp", "run", "main.py" ] } } }Replace
/path/to/dex-kline-mcpwith 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:1hend_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
Pair: TOKEN/USDT
+---------------------+------------+------------+------------+------------+------------+
| Timestamp | Open | High | Low | Close | Volume |
+---------------------+------------+------------+------------+------------+------------+
| 2025-07-03 01:00:00 | 0.12345678 | 0.12345678 | 0.12345678 | 0.12345678 | 1234.56789 |
| 2025-07-03 00:00:00 | 0.12345678 | 0.12345678 | 0.12345678 | 0.12345678 | 1234.56789 |
+---------------------+------------+------------+------------+------------+------------+License
This project is licensed under the MIT License. See the LICENSE file for details.
Acknowledgments
Data powered by GeckoTerminal API.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Tools
Related MCP Servers
AlicenseCqualityCmaintenanceAn MCP server providing unified access to blockchain operations, bridging, swapping, and crypto trading strategies for AI agents.37178GPL 3.0- AlicenseAqualityDmaintenanceAn MCP server that tracks and analyzes DEX liquidity pools to power intelligent DeFi agents and automated strategies.12MIT
- AlicenseAqualityDmaintenanceAn MCP server that provides AI agents with real-time access to DEX liquidity pool data, enabling smarter trading, analytics, and automated strategies.101MIT
- AlicenseBqualityDmaintenanceMCP server that exposes QuantXData's institutional crypto market data APIs to AI assistants, enabling natural language queries for trades, order books, OHLCV, options, and more across 120+ exchanges.12MIT
Related MCP Connectors
MCP server connecting AI agents to non-custodial staking data across 130+ networks.
MCP server for Gainium — manage trading bots, deals, and balances via AI assistants
MCP server exposing the Backtest360 engine API as tools for AI agents.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/kukapay/dex-kline-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server