Are you the author? Sign in to claim
An MCP server that streams K-line (candlestick) data from decentralized exchanges (DEXs) to power your AI agents and wor
An MCP server that streams K-line (candlestick) data from decentralized exchanges (DEXs) to power your AI agents and workflows.
1m, 5m, 15m, 1h, 4h, 12h, 1d) with appropriate API endpoints.tabulate library.Clone the repository:
git clone https://github.com/kukapay/dex-kline-mcp.git
cd dex-kline-mcp
Install dependencies:
uv sync
Installing 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-mcp with your actual installation path.
get_klineThe server exposes a single tool, get_kline, which retrieves K-line data for a specified token.
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: 100Fetch the 1-hour K-line data for the token with the contract address 0xf4b385849f2e817e92bffbfb9aeb48f950ff4444 on the Binance Smart Chain (BSC).
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 |
+---------------------+------------+------------+------------+------------+------------+
This project is licensed under the MIT License. See the LICENSE file for details.
Data powered by GeckoTerminal API.
Run Claude Code as an MCP server so any agent can delegate coding tasks to it
Browser automation using accessibility snapshots instead of screenshots
Google's universal MCP server supporting PostgreSQL, MySQL, MongoDB, Redis, and 10+ databases
Official GitHub integration for repos, issues, PRs, and CI/CD workflows