Token OHLCV History API

io.github.Br0ski777Published by GitHub account Br0ski777v1.1.0Updated Oct 24, 2026

Historical OHLCV candles for any token. CoinGecko + GeckoTerminal on-chain. x402.

VerifiedSSEWeb executableFinanceData & Analytics

Overview

AI-generated overview

Remote MCP endpoint that returns historical OHLCV price candles for tokens by CoinGecko ID or on-chain contract, paid per call via x402.

What you can do
  • Fetch historical OHLCV candles for a token, by CoinGecko ID or by contract address plus chain (base, ethereum, solana, arbitrum, polygon, optimism, bsc)
  • Choose the interval (daily, 4h, 1h) and history length (default 30 days, max 365, with shorter limits for intraday intervals)
  • Receive JSON with timestamp, open, high, low, close and volume per candle, plus the token, interval, days and data source (CoinGecko or GeckoTerminal)
  • Use a GET or POST variant of the same candle tool
When to use it
Useful when an assistant needs historical price data for technical analysis, backtesting, trend detection or charting of a token. It is not intended for swap quotes, news or funding rates.
Requirements
A remote MCP endpoint added by URL; no package, API key or signup. Payment is per call in USDC on Base L2 through the x402 protocol, so an x402-capable client with a funded wallet is needed to complete the 402 challenge and retry.
Before you install
Each call costs $0.005 in USDC on Base, so automated or repeated queries spend real funds from the connected wallet. The server is part of a larger marketplace of paid APIs and relies on third-party data providers and payment facilitators.

Installation

In SourceWeft

  1. Open Token OHLCV History API in the dashboard and add it to a workspace.
  2. Enable the server for the chats that should use its tools.

Web executable via SSE. Remote servers run from the web runtime once configured in a workspace.

Use with an agent

Paste this prompt into Claude Code, Codex, Cursor or another agent — or into SourceWeft chat. The agent reads this server's install guide, shows you its publisher, endpoint and sign-in, and adds it to your client once you agree. Keys never go into a command.

Read https://sourceweft.com/mcp/io.github.Br0ski777%2Ftoken-ohlcv/install.md and connect the MCP server it describes to my client. Before changing any config, show me its publisher, endpoint and sign-in method and wait for my OK. Never put an API key in a command or in a file I would commit; ask me where it should come from.

Read the install guide the agent follows

Other MCP clients

Add this to your client's mcpServers config.

{
  "mcpServers": {
    "token-ohlcv-history-api": {
      "type": "sse",
      "url": "https://token-ohlcv.api.klymax402.com/mcp"
    }
  }
}

README

Token OHLCV History API

[MCP Server] [x402] [License: MIT]

Historical OHLCV candles for any token -- daily, 4h, 1h intervals. CoinGecko + GeckoTerminal powered. Pay-per-call via x402 (USDC on Base L2) -- no API key, no signup, no rate-limit wall.

Part of the klymax402 marketplace -- 100 x402 micropayment APIs for AI agents, one wallet, USDC on Base.

Quickstart -- MCP

Add to your MCP client config (Claude Desktop, Cursor, ElizaOS, etc.):

json
{  "mcpServers": {    "token-ohlcv": {      "url": "https://token-ohlcv.api.klymax402.com/mcp"    }  }}

Quickstart -- HTTP (x402)

bash
curl "https://token-ohlcv.api.klymax402.com/api/candles"# -> 402 Payment Required, with an x402 payment challenge in the response body

Any x402-aware client (@x402/fetch, x402-agent-tools, ATXP) handles the 402 -> sign -> retry cycle automatically.

Tools

ToolMethodPathPriceDescription
token_get_ohlcv_historyGET/api/candles$0.005Get historical OHLCV candles for any token by ID or contract address
token_get_ohlcv_historyPOST/api/candles$0.005Get historical OHLCV candles for any token by ID or contract address (POST variant)

token_get_ohlcv_history

Use this when you need historical price candlestick data for any token. Returns OHLCV candles in JSON.

Parameters

NameTypeRequiredDescription
tokenstringnoCoinGecko token ID (e.g. bitcoin, ethereum, solana). Use this OR contract+chain.
contractstringnoOn-chain contract address (e.g. 0x...). Use with chain parameter for GeckoTerminal lookup.
chainstringnoBlockchain network for contract lookup: base, ethereum, solana, arbitrum, polygon, optimism, bsc.
daysnumbernoNumber of days of history (default 30, max 365). For 1h interval max 2 days, for 4h max 90 days.
intervalstringnoCandle interval: daily (default), 4h (if days <= 90), 1h (if days <= 2).

Returns

  • candles -- array of candlestick objects with timestamp, open, high, low, close, volume
  • token -- token identifier used
  • interval -- candle interval (daily, 4h, 1h)
  • days -- number of days of history returned
  • source -- data source (CoinGecko or GeckoTerminal)

Example response:

json
{"candles":[{"timestamp":1712966400,"open":3105.20,"high":3142.80,"low":3089.50,"close":3128.60,"volume":1250000000}],"token":"ethereum","interval":"daily","days":30,"source":"CoinGecko"}

When to use: technical analysis, backtesting, trend detection, and charting. Supports 10,000+ tokens by CoinGecko ID or on-chain contract address via GeckoTerminal.

Not for: swap quotes (use dex_get_swap_quote), news (use crypto_get_latest_news), funding rates (use perp_scan_funding_arbitrage).

token_get_ohlcv_history

Use this when you need historical price candlestick data for any token. Returns OHLCV candles in JSON. POST variant of token_get_ohlcv_history -- same params passed as JSON body instead of query string.

Parameters

NameTypeRequiredDescription
tokenstringnoCoinGecko token ID (e.g. bitcoin, ethereum, solana). Use this OR contract+chain.
contractstringnoOn-chain contract address (e.g. 0x...). Use with chain parameter for GeckoTerminal lookup.
chainstringnoBlockchain network for contract lookup: base, ethereum, solana, arbitrum, polygon, optimism, bsc.
daysnumbernoNumber of days of history (default 30, max 365). For 1h interval max 2 days, for 4h max 90 days.
intervalstringnoCandle interval: daily (default), 4h (if days <= 90), 1h (if days <= 2).

Returns

  • candles -- array of candlestick objects with timestamp, open, high, low, close, volume
  • token -- token identifier used
  • interval -- candle interval (daily, 4h, 1h)
  • days -- number of days of history returned
  • source -- data source (CoinGecko or GeckoTerminal)

Example response:

json
{"candles":[{"timestamp":1712966400,"open":3105.20,"high":3142.80,"low":3089.50,"close":3128.60,"volume":1250000000}],"token":"ethereum","interval":"daily","days":30,"source":"CoinGecko"}

When to use: technical analysis, backtesting, trend detection, and charting. Supports 10,000+ tokens by CoinGecko ID or on-chain contract address via GeckoTerminal.

Not for: swap quotes (use dex_get_swap_quote), news (use crypto_get_latest_news), funding rates (use perp_scan_funding_arbitrage).

Example agent prompts

  • "Historical price candlestick data for any token"
  • "Historical price candlestick data for any token"

Payment

  • Protocol: x402 -- HTTP-native pay-per-call, no signup, no API key
  • Network: Base L2 (eip155:8453)
  • Asset: USDC
  • Facilitator: Coinbase CDP (primary), PayAI (fallback)
  • Also reachable via ATXP (OAuth-wrapped x402, RFC 9728 protected-resource metadata)

Part of klymax402

100 x402 micropayment APIs for AI agents -- one wallet, USDC on Base, zero signup.

License

MIT

Source: README.md at commit 047deae

Tools

0
SourceWeft has not read this server's tools yet.

Version history

1
  1. v1.1.0LatestSep 16, 2026

Score

50% of the applicable checks met

How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.

  • Reached in the last 30 daysRequired25 pts

    Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.

  • Auth declaredRequired10 pts

    Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.

  • Tools listed15 pts

    Answer tools/list without a credential, or ship a package that starts in a sandbox without one.

  • DescriptionRequired15 pts
  • Logo10 pts
  • Documentation15 pts
  • License10 pts