token-price
Token Price API
通过 CoinGecko 实时获取加密货币价格——价格、24 小时涨跌、市值、成交量。支持 10,000+ 种代币。通过 x402 按次付费(Base L2 上的 USDC)——无需 API 密钥、无需注册、无速率限制。
属于 klymax402 市场的一部分——面向 AI 代理的 100 个 x402 微支付 API,一个钱包,Base 上的 USDC。
快速开始 -- MCP
添加到你的 MCP 客户端配置(Claude Desktop、Cursor、ElizaOS 等):
{
"mcpServers": {
"token-price": {
"url": "https://token-price.api.klymax402.com/mcp"
}
}
}Related MCP server: CoinGecko Price MCP Server
快速开始 -- HTTP (x402)
curl -X POST "https://token-price.api.klymax402.com/api/price" \
-H "Content-Type: application/json" \
-d '{"token":"..."}'
# -> 402 Payment Required, with an x402 payment challenge in the response body任何支持 x402 的客户端(@x402/fetch、x402-agent-tools、ATXP)都会自动处理 402 -> 签名 -> 重试循环。
工具
工具 | 方法 | 路径 | 价格 | 描述 |
| POST |
| $0.003 | 获取实时加密代币价格,包含 24 小时涨跌、市值和成交量 |
finance_get_token_price
当你需要任何加密货币或代币的当前价格时使用此工具。返回 JSON 格式的实时市场数据。
参数
名称 | 类型 | 必填 | 描述 |
| string | 是 | 代币名称或 CoinGecko ID(例如 bitcoin、ethereum、solana) |
| string | 否 | 价格的计价货币(默认:usd)。支持 usd、eur、gbp 等。 |
返回值
price—— 指定货币下的当前价格change24h—— 24 小时价格变动百分比marketCap—— 以 USD 计的总市值volume24h—— 以 USD 计的 24 小时交易量token—— 使用的代币标识符currency—— 价格的目标货币
示例响应:
{"price":3128.60,"change24h":2.45,"marketCap":376000000000,"volume24h":15200000000,"token":"ethereum","currency":"usd"}适用场景:快速价格查询、组合估值和市场监控。支持超过 10,000 种代币,按 CoinGecko ID 查询(例如 bitcoin、ethereum、solana、dogecoin)。
不适用场景:股票价格(使用 finance_get_stock_price)、代币安全性检查(使用 token_check_safety)、历史 K 线(使用 token_get_ohlcv_history)、货币兑换(使用 finance_convert_currency)。
示例代理提示词
"任何加密货币或代币的当前价格"
支付
协议:x402 —— 基于原生 HTTP 的按次付费,无需注册,无需 API 密钥
网络:Base L2(
eip155:8453)资产:USDC
协调方:Coinbase CDP(主要),PayAI(备用)
也可通过 ATXP 访问(OAuth 包装的 x402,RFC 9728 受保护资源元数据)
作为 klymax402 的一部分
为 AI 代理提供 100 个 x402 微支付工具支付 API——一个钱包,Base 上的 USDC,零注册。
完整 API 参考:https://klymax402.com/llms-full.txt
许可证
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseNot gradedqualityNot gradedmaintenanceFree real-time cached CoinGecko USD prices + 24h change. No key, no signup, 15/min rate limit. x402 paid v2 soon. Perfect for trading/research agents.
- AlicenseNot gradedqualityDmaintenanceProvides cryptocurrency pricing information using the CoinGecko API, enabling users to fetch current prices of any cryptocurrency in their chosen currency.151ISC
- AlicenseAqualityCmaintenanceEnables AI agents to access crypto/web3 data across 5 chains with pay-per-call billing in USDC via x402, no API key required, and built-in spend caps.3636MIT
- AlicenseNot gradedqualityBmaintenanceProvides historical OHLCV candlestick data for any token by CoinGecko ID or contract address, with daily, 4h, and 1h intervals, paid per call via x402 micropayments.MIT
Related MCP Connectors
Live USD crypto spot prices by ticker (BTC, ETH, SOL, …) for AI agents. x402 pay-per-call.
Live financial data MCP: FX, crypto, stocks, news, URL reader. x402 on Base: $0.001/call.
Pay-per-use weather, environment, finance, and on-chain intelligence tools for AI agents via x402.
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/Br0ski777/token-price-x402'
If you have feedback or need assistance with the MCP directory API, please join our Discord server