关于 API for Chads
API for Chads 是面向处理加密市场、预测市场和网页内容的 Agent 与开发者的 MCP 服务。它整合价格和 Polymarket 数据、网页研究与渲染,可通过 API 密钥或 Solana x402 付款使用。
主要功能
- 01BTC 和 ETH 价格数据
- 02Polymarket 买卖报价与价差
- 03快速及深度网页研究
- 04网页渲染、截图与 PDF
- 05按 CSS 选择器提取网页内容
适用场景
- 01查询加密货币价格
- 02检查 Polymarket 订单簿报价
- 03通过网页引用研究问题
- 04将 JavaScript 密集型网页转换为 Markdown
MCP 相关
远程 MCP 端点提供九种工具,涵盖加密货币价格、Polymarket 市场、研究、网页渲染与提取、截图、PDF 和服务目录。请求可使用 API 密钥或通过 Solana 的 x402 微支付。
配置
远程服务无需本地安装。选择你使用的客户端,复制配置或使用一键安装。
https://mcp.apiforchads.com/mcpclaude mcp add --transport http chadbot0x-apiforchads https://mcp.apiforchads.com/mcp{"mcpServers":{"chadbot0x-apiforchads":{"type":"http","url":"https://mcp.apiforchads.com/mcp"}}}在 Cursor 中打开{"servers":{"chadbot0x-apiforchads":{"type":"http","url":"https://mcp.apiforchads.com/mcp"}}}在 VS Code 中打开{"mcpServers":{"chadbot0x-apiforchads":{"type":"http","url":"https://mcp.apiforchads.com/mcp"}}}{"mcpServers":{"chadbot0x-apiforchads":{"serverUrl":"https://mcp.apiforchads.com/mcp"}}}命令在终端中运行;JSON 粘贴到对应客户端的 MCP 配置后重启。需要授权的服务会在首次连接时提示登录。
工具
详细介绍
为 Chads 打造的 API
面向 AI Agent 的 MCP 服务 — 加密货币价格、预测市场、网络研究与渲染
9 个工具,用于市场情报、网页渲染和深度研究。无需账户或订阅 — 使用 Solana 小额支付或 API 密钥按请求付费。
为什么选择它?
AI Agent 需要数据。获取数据通常意味着要处理 API 密钥、月度套餐、速率限制控制面板和账单页面。这些都是为人类而非 Agent 设计的障碍。
API for Chads 专为 Agentic Web 打造:
- 原生支持 MCP — Agent 会自动发现并使用工具
- 原生支持 x402 — Agent 使用 Solana 按请求付费,无需人工参与
- 一个服务,四种能力 — 价格、市场、研究、渲染
- 低于一美分的价格 — 大多数请求的费用低于 0.02 美元
工具
| 工具 | 功能 | 价格 |
|---|---|---|
get_crypto_price | 通过 Chainlink 预言机和 Binance 获取实时 BTC/ETH 价格 | 0.0001 SOL |
get_prediction_market | 获取 Polymarket CLOB 的最佳买价/卖价/价差 | 0.0001 SOL |
quick_research | 基于网络信息的研究报告(约 20 秒) | 0.005 SOL |
deep_research | 带引用的自主深度研究(约 5 分钟) | 0.02 SOL |
render_webpage | 将 JS 渲染的页面转换为 markdown/text/html | 0.0003 SOL |
screenshot_webpage | 全页 PNG 截图 | 0.0005 SOL |
extract_from_webpage | 从任意页面提取 CSS 选择器内容 | 0.0003 SOL |
webpage_to_pdf | 将页面转换为 PDF 文档 | 0.0005 SOL |
list_services | 含价格信息的服务目录 | 免费 |
快速开始
Claude Desktop
添加到 claude_desktop_config.json:
{
"mcpServers": {
"apiforchads": {
"url": "https://mcp.apiforchads.com/mcp"
}
}
}
重启 Claude。现在你就有了 9 个新工具。
Cursor / Windsurf
添加到 MCP 设置中:
{
"apiforchads": {
"url": "https://mcp.apiforchads.com/mcp"
}
}
任意 MCP 客户端(Python)
from mcp import ClientSession
from mcp.client.streamable_http import streamablehttp_client
async with streamablehttp_client("https://mcp.apiforchads.com/mcp") as (r, w, _):
async with ClientSession(r, w) as session:
await session.initialize()
# Get BTC price
result = await session.call_tool("get_crypto_price", {"asset": "BTC"})
print(result) # {"chainlink_price": 65920.45, "binance_price": 65935.12, ...}
示例
获取加密货币价格
# With API key
curl -H "Authorization: Bearer YOUR_KEY" \
https://price.apiforchads.com/v1/prices/BTC
# Response
{
"asset": "BTC",
"chainlink_price": 65920.45,
"binance_price": 65935.12,
"chainlink_age_seconds": 13,
"timestamp": 1771833021
}
获取 Polymarket 订单簿
curl -H "Authorization: Bearer YOUR_KEY" \
https://price.apiforchads.com/v1/clob/will-trump-deport-less-than-250000
# Response
{
"market_slug": "will-trump-deport-less-than-250000",
"best_bid": 0.42,
"best_ask": 0.44,
"spread": 0.02,
"mid_price": 0.43
}
快速研究
curl -X POST -H "Authorization: Bearer YOUR_KEY" \
-H "Content-Type: application/json" \
https://research.apiforchads.com/v1/research \
-d '{"query": "What are the latest Bitcoin ETF inflows?", "tier": "quick"}'
# Returns job_id — poll /v1/research/status/{job_id} for results
渲染 JS 密集型页面
curl -X POST -H "Authorization: Bearer YOUR_KEY" \
-H "Content-Type: application/json" \
https://render.apiforchads.com/v1/render \
-d '{"url": "https://polymarket.com", "format": "markdown", "max_chars": 5000}'
截图
curl -X POST -H "Authorization: Bearer YOUR_KEY" \
-H "Content-Type: application/json" \
https://render.apiforchads.com/v1/render/screenshot \
-d '{"url": "https://example.com", "full_page": true}' \
--output screenshot.png
Python SDK(即将推出)
from apiforchads import Client
client = Client(api_key="YOUR_KEY")
btc = client.price("BTC")
print(f"BTC: ${btc.chainlink_price:,.2f}")
market = client.clob("will-trump-deport-less-than-250000")
print(f"Bid: {market.best_bid} Ask: {market.best_ask}")
report = client.research("Latest crypto regulations", tier="quick")
print(report.text)
付款
有两种付款方式:
1. API 密钥(推荐人类用户使用)
发送邮件至 [email protected],获取含 1000 次请求额度的免费 API 密钥。
curl -H "Authorization: Bearer YOUR_KEY" https://price.apiforchads.com/v1/prices/BTC
2. x402 小额支付(供 Agent 使用)
x402 protocol 支持 Agent 使用 Solana 按请求付费:
- 调用任意端点 — 获取包含付款详情的
402响应 - 向
EDQQe7Nufgvo2A6uXTmCpTr2FumZRB3fNzTH4Wuvpvpd发送小额付款 - 在
X-Payment-Signature标头中附上交易签名后重试 - 获取数据
无需注册。无需月费。完全按使用量付费。
REST API 端点
无需 MCP 即可直接使用:
| 基础 URL | 服务 |
|---|---|
https://price.apiforchads.com | 加密货币价格 + Polymarket CLOB |
https://research.apiforchads.com | AI 驱动的研究 |
https://render.apiforchads.com | 网页渲染、截图、PDF |
https://mcp.apiforchads.com | MCP 协议端点 |
速率限制
| 端点 | 限制 |
|---|---|
| 价格/CLOB | 60 次/分钟 |
| 研究 | 10 次/分钟 |
| 渲染 | 30 次/分钟 |
架构
┌─────────────────────┐
│ Cloudflare Edge │
│ (SSL + routing) │
└──────────┬──────────┘
│
┌────────────────┼────────────────┐
│ │ │
┌─────────┴──┐ ┌────────┴───┐ ┌────────┴───┐
│ Price API │ │ Research │ │ Render API │
│ :8100 │ │ API :8101 │ │ :8102 │
│ │ │ │ │ │
│ • Chainlink│ │ • Gemini │ │ • Playwright│
│ • Binance │ │ • Google │ │ • Chromium │
│ • CLOB │ │ • Search │ │ • SSRF prot │
└────────────┘ └────────────┘ └────────────┘
│ │ │
└────────────────┼────────────────┘
│
┌──────────┴──────────┐
│ MCP Server :8103 │
│ (tool discovery) │
└─────────────────────┘
构建所用技术
- MCP Python SDK — FastMCP 流式 HTTP 传输
- Chainlink — 去中心化预言机价格馈送
- Playwright — 用于 JS 渲染的无头 Chromium
- Gemini — 基于 Google 搜索 grounding 的 AI 研究
- x402 — 基于 Solana 的 HTTP 402 微支付协议
- Cloudflare Tunnels — 零信任网络
自托管
git clone https://github.com/chadbot0x/apiforchads-mcp.git
cd apiforchads-mcp
# Install dependencies
pip install mcp httpx
# Run the MCP server (connects to public APIs by default)
python server.py
如需运行完整技术栈(价格 + 研究 + 渲染 API),请参阅自托管指南(即将推出)。
参与贡献
欢迎提交问题和 PR。如果你用这些工具做出了很棒的东西,请告诉我们。
许可证
由 @chadbot0x 构建 · 由 Agent 提供支持,为 Agent 而建
评论
一个开放协议,规定了 AI 应用如何以统一方式连接外部工具与数据源。客户端负责与模型对话,MCP 服务负责提供工具、资源和提示模板,两者通过标准消息通信,同一个服务可以被不同客户端复用。