mcpField
A
API for Chads

API for Chads

远程服务
github.com/chadbot0x金融数据035 周前更新
代码仓库

关于 API for Chads

API for Chads 是面向处理加密市场、预测市场和网页内容的 Agent 与开发者的 MCP 服务。它整合价格和 Polymarket 数据、网页研究与渲染,可通过 API 密钥或 Solana x402 付款使用。

主要功能

  1. 01BTC 和 ETH 价格数据
  2. 02Polymarket 买卖报价与价差
  3. 03快速及深度网页研究
  4. 04网页渲染、截图与 PDF
  5. 05按 CSS 选择器提取网页内容

适用场景

  1. 01查询加密货币价格
  2. 02检查 Polymarket 订单簿报价
  3. 03通过网页引用研究问题
  4. 04将 JavaScript 密集型网页转换为 Markdown

MCP 相关

远程 MCP 端点提供九种工具,涵盖加密货币价格、Polymarket 市场、研究、网页渲染与提取、截图、PDF 和服务目录。请求可使用 API 密钥或通过 Solana 的 x402 微支付。

配置

远程服务无需本地安装。选择你使用的客户端,复制配置或使用一键安装。

服务地址https://mcp.apiforchads.com/mcp
一键复制安装命令
Claude CodeTerminal
Cursor.cursor/mcp.json
VS Code.vscode/mcp.json
Claude Desktopclaude_desktop_config.json
Windsurf~/.codeium/windsurf/mcp_config.json

命令在终端中运行;JSON 粘贴到对应客户端的 MCP 配置后重启。需要授权的服务会在首次连接时提示登录。

工具

详细介绍

为 Chads 打造的 API
面向 AI Agent 的 MCP 服务 — 加密货币价格、预测市场、网络研究与渲染

网站 • 快速开始 • 工具 • 示例 • 付款

Smithery 兼容 MCP x402 Solana 9 个工具 许可证 最近提交


9 个工具,用于市场情报、网页渲染和深度研究。无需账户或订阅 — 使用 Solana 小额支付或 API 密钥按请求付费。

🌐 apiforchads.com

为什么选择它?

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/html0.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 按请求付费:

  1. 调用任意端点 — 获取包含付款详情的 402 响应
  2. 向 EDQQe7Nufgvo2A6uXTmCpTr2FumZRB3fNzTH4Wuvpvpd 发送小额付款
  3. 在 X-Payment-Signature 标头中附上交易签名后重试
  4. 获取数据

无需注册。无需月费。完全按使用量付费。

REST API 端点

无需 MCP 即可直接使用:

基础 URL服务
https://price.apiforchads.com加密货币价格 + Polymarket CLOB
https://research.apiforchads.comAI 驱动的研究
https://render.apiforchads.com网页渲染、截图、PDF
https://mcp.apiforchads.comMCP 协议端点
速率限制
端点限制
价格/CLOB60 次/分钟
研究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)  │
                    └─────────────────────┘

构建所用技术

自托管

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。如果你用这些工具做出了很棒的东西,请告诉我们。

许可证

MIT


由 @chadbot0x 构建 · 由 Agent 提供支持,为 Agent 而建

评论

支持 Markdown

第一次接触 MCP?

从协议是什么,到在客户端里装上第一个服务,这几条回答覆盖了大多数入门问题。

一个开放协议,规定了 AI 应用如何以统一方式连接外部工具与数据源。客户端负责与模型对话,MCP 服务负责提供工具、资源和提示模板,两者通过标准消息通信,同一个服务可以被不同客户端复用。