Skip to main content
Glama
Br0ski777

token-price

by Br0ski777

Token Price API

MCP Server x402 License: MIT

通过 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/fetchx402-agent-tools、ATXP)都会自动处理 402 -> 签名 -> 重试循环。

工具

工具

方法

路径

价格

描述

finance_get_token_price

POST

/api/price

$0.003

获取实时加密代币价格,包含 24 小时涨跌、市值和成交量

finance_get_token_price

当你需要任何加密货币或代币的当前价格时使用此工具。返回 JSON 格式的实时市场数据。

参数

名称

类型

必填

描述

token

string

代币名称或 CoinGecko ID(例如 bitcoin、ethereum、solana)

currency

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,零注册。

许可证

MIT

A
license - permissive license
Not graded
quality - not tested
B
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

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

  • A
    license
    Not graded
    quality
    B
    maintenance
    Provides 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

View all related MCP servers

Related MCP Connectors

View all MCP Connectors

Latest Blog Posts

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