MCP 服务

AgentServices|面向智能体的数据推理 API 与托管 MCP

AgentServices

一个基于 x402 微支付与 Base 链 USDC 的托管 API/MCP 服务,为 AI Agent 提供加密行情、DeFi 分析、AI 推理、图像与语音生成等接口。

获取与使用

可连接

按官方资料配置客户端连接服务

使用难度待核验
国内可用性待核验

2026-11-09 更新 · 本站尚未实测

项目介绍

MCP 服务 · 2026-11-09 更新 · 本站尚未实测

AgentServices 是一个面向 AI Agent 的付费 API 层,其 REST 钱包调用路径不使用 API Key 或订阅,而通过 x402 在 Base 主网上以 USDC 按请求付费;人类 MCP 通道另支持 Google OAuth 与 Stripe 预付额度,两种路径不能混为一谈。README 声明项目同时提供 REST 接口与托管的 MCP Server(Streamable HTTP,地址为 https://agentservices.to/mcp),并给出 x402 发现入口 /.well-known/x402。

按 README 描述,项目提供 60 多个端点,覆盖加密行情、市场情报、DeFi 分析、链上分析、LLM 推理、图像生成、语音合成、投资组合分析与争议解决等;其中 12 个免费,48 个以上通过 x402 付费,单次调用标价从 0.002 美元到 0.25 美元。以上数量与价格均来自 README 自述,未在本环境做实测验证。

核心能力

点击能力名称查看输入、输出和原文依据。

  • 加密与市场数据:现价、涨跌趋势、全球市值、恐惧贪婪指数、Gas 价格、新闻、社交情绪等免费接口。
  • 合成分析类接口:技术指标、代币风险评分、买卖信号、收益率比较、研究简报、市场脉搏、链上总览、投资组合情报、DeFi 策略报告等,按次计费。
  • AI 推理与媒体:README 称通过 OpenAI 兼容的 /v1/chat/completions 支持 400 多个 LLM 模型,并提供智能路由(model: "auto");另有图像生成与文本转语音接口。
  • 交易转发:提供 Hyperliquid 相关的下单、撤单、订单状态、策略限制与模拟盘接口,README 称该路径免费、不收取构建者费用,但会做策略校验后转发。
  • MCP 工具:server.json 列出了一组 MCP 工具,涵盖行情、指标、DeFi、搜索、推理、风险评分等。
  • 争议解决:提供 7 个策略模板的 AI 争议解决接口。

实际应用场景

适用场景

适合需要让自动化 Agent 按需调用外部数据与推理能力、且愿意使用链上微支付结算的开发者,例如构建行情监控、DeFi 收益比较、链上地址分析、市场情报汇总、开发者趋势调研等自动化流程。也适合希望通过托管 MCP 端点把这些能力接入对话式客户端的用户。

如果需求是纯本地部署、离线可用或无需任何付费的解决方案,则与该服务的定位不符。

安装与接入

README 给出的接入方式主要是连接托管服务,而非本地安装:

  1. REST + curl:免费接口可直接请求,例如 curl https://agentservices.to/v1/prices?symbols=BTC,ETH。付费接口会返回 HTTP 402 及支付信息,需由 x402 客户端完成支付后重试。
  2. MCP 配置:在支持 MCP 的客户端中配置 https://agentservices.to/mcp,传输方式为 streamable-http。README 示例中出现了 Claude Desktop、Cursor 等客户端名称,但未给出各客户端逐项配置说明。
  3. Python / TypeScript:README 提供了使用 httpx 与 @x402/facilitator 的示例片段,属于示意代码,非完整可运行工程。
  4. 人类计费通道:README 称通过 ChatGPT Developer Mode 或 Claude 自定义连接器的用户,可使用 Google OAuth 加 Stripe 预付额度。该功能需要配置一组环境变量(Google、Stripe 相关),未配置时服务以仅 x402 模式启动。
  5. 本地部署:README 提到技术栈为 FastAPI(Python 3.11+)、部署在 Vercel,并提供了 .env.example 的指引,但所给资料中未见完整的本地部署步骤,具体部署流程待核验。

注意:README 中示例命令属于原文演示,未在本环境执行验证。

Auth

REST 付费路径通过 x402 链上支付(无 API Key);人类 MCP 通道使用 Google OAuth + Stripe 预付额度

使用条件与限制

是否需要部署
服务入口见官方资料,客户端与认证要求见正文
是否需要注册
账号和认证要求见正文;未明确说明的项目仍待核验
是否需要 API Key
待核验
费用与额度
费用边界见正文,项目许可不代表模型或托管服务免费
所需权限
待核验
许可证与服务条款
待核验

权限费用与限制

  • 费用边界:免费与付费端点并存,付费端点按次以 USDC 结算,价格以 README 表格为准,实际扣费与结算情况需以官方为准。开源许可不等于这些 API 调用免费。
  • 支付依赖:核心付费路径依赖 Base 主网与 x402 协议,属于境外链上服务依赖,相关可用性、合规性与地域限制待核验。
  • 密钥与授权:README 声称不收集交易所 API Key,交易由 Agent 使用经 approveAgent 授权的子钱包本地签名;主钱包授权需人工完成一次,属于需要谨慎处理的权限动作。
  • 人类通道:Google OAuth 与 Stripe 预付额度涉及个人账户与支付信息,相关隐私与退款政策待核验。
  • 模型支持:README 列出了 GPT、Claude、Gemini、DeepSeek、Grok、Llama 等模型名称,但具体可用型号、上下文限制与计费口径以官方为准,未在本环境核验。

国内使用情况

网友核验 用户经验分享

与站长实测独立,不代表官方认证或本站已实测。

我要核验
0 位参与者0 份有效分项记录

最近核验:暂无有效核验。参与人数按当前项目有效身份去重;不同核验项分别统计,不合并成用户总结果。仅统计审核通过且未过期的记录。

分项统计、有效期与样本量
核验项目有效人数成功 / 部分 / 失败 / 无法判断成功率最近核验 / 有效期
官方网站访问00 / 0 / 0 / 0样本不足暂无 / 7 天
GitHub 仓库访问00 / 0 / 0 / 0样本不足暂无 / 7 天
安装与运行00 / 0 / 0 / 0样本不足暂无 / 30 天
官方服务国内连接 / MCP 连接00 / 0 / 0 / 0样本不足暂无 / 30 天
国内网络情况00 / 0 / 0 / 0样本不足暂无 / 7 天
国内模型兼容性00 / 0 / 0 / 0样本不足暂无 / 30 天
自定义 API00 / 0 / 0 / 0样本不足暂无 / 30 天
海外服务依赖
00 / 0 / 0 / 0样本不足暂无 / 30 天
海外账号要求
00 / 0 / 0 / 0样本不足暂无 / 30 天
中文界面
00 / 0 / 0 / 0样本不足暂无 / 30 天
客户端兼容性00 / 0 / 0 / 0样本不足暂无 / 30 天
账号及费用信息
00 / 0 / 0 / 0样本不足暂无 / 30 天

成功率 = 成功 ÷(成功 + 部分成功 + 失败);无法判断不计入分母。至少 5 份可判断结果才显示成功率。账号、费用、海外依赖与语言等事实项,成功表示核查结论与资料吻合,具体观察另行统计;不表示免费或没有海外依赖。不同网络、客户端和版本的结果不能直接等同。

最近有效核验

暂无审核通过且未过期的网友核验。欢迎提交真实使用记录。

查看全部有效核验 →

国内实测状态:国内可用性待核验。协议兼容和官方资料说明不等于国内网络可用。

官方网站访问
尚未实测 待核验
GitHub 仓库访问
尚未实测 待核验
官方服务国内连接
尚未实测 待核验
国内网络情况
尚未实测 待核验
国内模型兼容性
尚未实测 待核验
自定义 API
尚未实测 待核验
海外服务依赖
尚未实测 待核验
海外账号要求
尚未实测 待核验
中文界面
尚未实测 待核验
国内最后核验时间
尚未实测

许可与国内使用

仓库包含 Apache-2.0 许可证文件(LICENSE),README 顶部也声明 Apache-2.0,但 server.json 标注“MIT”,两类声明仍不一致,实际适用许可待核验。需注意:即使代码为开源许可,托管的 API、链上支付、第三方模型与 Stripe/Google 服务均可能另有条款与费用,不可等同于免费或可自由商用。

关于中国大陆网络环境下的可达性、支付合规性与稳定性,资料中没有任何说明,均待核验。域名存在不代表服务部署地域或合规资质,请自行向官方确认。

说明:本文基于仓库 README、LICENSE 与 server.json 整理,未做功能实测;版本号、端点数量与价格均为资料自述,可能随版本变化。

结果和权限边界

交易转发可产生真实订单和资金影响;策略校验不是安全审计或收益保证。查询行情不要求把主钱包授权给交易接口,具体工具须分别授权。AI 争议解决结果是模型输出,不代表司法裁判或官方认证。本站仅核对资料,未签名、付款、下单或调用付费接口。

项目资料与来源

官方网站 ↗

GitHub 仓库 ↗

官方文档 ↗

字段依据与待核验事项

access:来源确认 · "agentservices": { "url": "https://agentservices.to/mcp", "transport": "streamable-http" }

project_type:来源确认 · **MCP Server:** `https://agentservices.to/mcp` (Streamable HTTP)

原始 README(折叠技术参考)
# AgentServices

> The paid API layer for AI agents — data, intelligence, inference, and media via x402 micropayments
>
> **Canonical project:** https://github.com/vbkotecha/agentservices-api
> **Official site:** https://agentservices.to
> **License:** Apache-2.0
>
> AgentServices is an independent project. It is not affiliated with, endorsed by, or a replacement for any other x402 market-data provider.

[![Version](https://img.shields.io/badge/version-6.0.0-brightgreen)](https://github.com/vbkotecha/agentservices-api)
[![Network](https://img.shields.io/badge/network-Base%20Mainnet-blue)](https://base.org)
[![Payment](https://img.shields.io/badge/payment-x402%20%2F%20USDC-purple)](https://x402.org)
[![MCP](https://img.shields.io/badge/MCP-compatible-orange)](https://modelcontextprotocol.io)
[![Status](https://img.shields.io/badge/status-live-success)](https://agentservices.to/health)

**Live at:** [agentservices.to](https://agentservices.to) | **MCP Server:** `https://agentservices.to/mcp` (Streamable HTTP) | **Discovery:** `/.well-known/x402`

## What is this?

AgentServices is the monetized API layer for AI agents. No API keys, no subscriptions — agents pay per-request with USDC on Base using the [x402 payment protocol](https://x402.org).

**60+ endpoints** across crypto data, market intelligence, DeFi analytics, on-chain analytics, **400+ LLM models**, image generation, text-to-speech, portfolio intelligence, and dispute resolution. 12 are free. 48+ are paid via x402 (from $0.002 to $0.25 per call).

### What's new in v6.0

- **400+ LLM models** via OpenAI-compatible `/v1/chat/completions` — GPT, Claude, Gemini, DeepSeek, Grok, Llama, and more
- **Smart router** — use `model: "auto"` and the gateway classifies your task and picks the cheapest model that handles it
- **Image generation** — `/v1/images/generations` via gpt-image-2 ($0.05)
- **Text-to-speech** — `/v1/audio/speech` with natural voices ($0.05)
- **3 new MCP tools** — `chat`, `generate_image`, `text_to_speech`

## Buyer path: discover → try → pay → retain

Use the [buyer quickstart](docs/buyer-quickstart.md) for the complete path. The exact next action is to run the no-credential discovery check:

```bash
python3 examples/mcp_discovery_buyer_proof.py
```

Then follow the same buyer journey:

1. **Discover:** confirm the hosted MCP server and free tool catalog with the [MCP discovery proof](examples/mcp_discovery_buyer_proof.py).
2. **Try free:** retrieve a real price result with the [free SDK proof](examples/sdk_free_price_buyer_proof.js).
3. **Inspect the paid challenge:** decode the live 402 terms with the [paid SDK proof](examples/sdk_paid_indicator_buyer_proof.js). It never signs or settles payment.
4. **Buy an outcome:** pay the returned x402 terms, retry the same request, and retain the returned paid result. See the [token-risk](docs/token-risk-outcome-contract.md), [market-pulse](docs/market-pulse-outcome-contract.md), and [research-brief](docs/research-brief-outcome-contract.md) contracts for result limits and provenance.
5. **Retain evidence:** run the existing [receipt builder](examples/build_x402_receipt.py) with the original challenge, paid response, and your wallet authorization or transaction reference.

The four proofs have different limits: discovery and free SDK verify no-spend access; the paid SDK proof verifies challenge shape only; the receipt builder hashes buyer-held evidence and does not verify settlement. None of them claims adoption, settlement, or revenue.

For activation measurement definitions, see [Activation Metrics](docs/activation-metrics.md). To probe the live funnel, run `python3 examples/check_activation_funnel.py`.

## Buyer path: discover → try → pay → retain

Use the [buyer quickstart](docs/buyer-quickstart.md) for the complete path. The exact next action is to run the no-credential discovery check:

```bash
python3 examples/mcp_discovery_buyer_proof.py
```

Then follow the same buyer journey:

1. **Discover:** confirm the hosted MCP server and free tool catalog with the [MCP discovery proof](examples/mcp_discovery_buyer_proof.py).
2. **Try free:** retrieve a real price result with the [free SDK proof](examples/sdk_free_price_buyer_proof.js).
3. **Inspect the paid challenge:** decode the live 402 terms with the [paid SDK proof](examples/sdk_paid_indicator_buyer_proof.js). It never signs or settles payment.
4. **Buy an outcome:** pay the returned x402 terms, retry the same request, and retain the returned paid result. See the [token-risk](docs/token-risk-outcome-contract.md), [market-pulse](docs/market-pulse-outcome-contract.md), and [research-brief](docs/research-brief-outcome-contract.md) contracts for result limits and provenance.
5. **Retain evidence:** run the existing [receipt builder](examples/build_x402_receipt.py) with the original challenge, paid response, and your wallet authorization or transaction reference.

The four proofs have different limits: discovery and free SDK verify no-spend access; the paid SDK proof verifies challenge shape only; the receipt builder hashes buyer-held evidence and does not verify settlement. None of them claims adoption, settlement, or revenue.

## Endpoints

### Free (no payment required)
| Endpoint | Description |
|----------|-------------|
| `GET /v1/prices?symbols=BTC,ETH` | Current crypto prices (CoinGecko) |
| `GET /v1/trending` | Trending tokens by market activity |
| `GET /v1/global` | Global market cap, volume, BTC dominance |
| `GET /v1/fear-greed` | Crypto Fear & Greed sentiment index |
| `GET /v1/gas` | Current gas prices on Base/Ethereum |
| `GET /v1/predictions` | AI-generated market predictions |
| `GET /v1/news` | Latest crypto news headlines |
| `GET /v1/social/trending` | Trending social sentiment topics |
| `GET /v1/geo?ip=1.2.3.4` | IP geolocation lookup |
| `GET /v1/swap/quote?from=&to=&amount=` | DEX swap quote (0x integration) |
| `GET /v1/policies` | List dispute resolution policy templates |
| `GET /v1/trade/hyperliquid/bootstrap` | Hyperliquid agent-sign bootstrap (approveAgent flow) |
| `POST /v1/trade/hyperliquid/order` | Forward agent-signed HL order (policy-gated) |
| `POST /v1/trade/hyperliquid/cancel` | Forward agent-signed HL cancel |
| `GET /v1/trade/hyperliquid/order` | HL order status (query: `user`, `oid`) |
| `GET /v1/trade/hyperliquid/order/{id}` | HL order status (path param) |
| `GET/PUT /v1/trade/hyperliquid/policy` | Execution leash (max notional, coin allowlist, kill switch) |
| `POST /v1/trade/hyperliquid/paper/order` | Paper/sim order for agent training |
| `POST /v1/trade/hyperliquid/eval/order` | Policy pass/fail eval (training gym) |
| `GET /health` | API health check |

### Trade API — venue doors (FREE — not x402)

AgentServices is building **venue trade doors** under `/v1/trade/{venue}/…`. Hyperliquid ships first; more venues and a venue-neutral `/v1/trade/execute` router follow.

Each door is a **policy leash + forward** — not a smarter router. We do **not** claim better fills than the venue direct. Execution is **free at the call** (no x402 on the order path). Builder fees are omitted so routing through us is not more expensive than going direct.

**We never collect venue API keys.** Agents sign orders locally with an HL-approved agent wallet (`approveAgent` on the main wallet is the one human bootstrap step). AgentServices policy-checks (max notional, coin allowlist, kill switch) and forwards the signed payload.

Request bodies accept `market_type`: `spot`, `perp`, or `future`. Hyperliquid implements **perp** and **spot** today; unsupported types return a machine-readable `market_type_not_supported` error.

| MCP tool | HTTP equivalent |
|----------|-----------------|
| `trade_hyperliquid_order` | `POST /v1/trade/hyperliquid/order` |
| `trade_hyperliquid_cancel` | `POST /v1/trade/hyperliquid/cancel` |
| `trade_hyperliquid_order_status` | `GET /v1/trade/hyperliquid/order` |
| `trade_hyperliquid_get_policy` / `trade_hyperliquid_set_policy` | `GET/PUT /v1/trade/hyperliquid/policy` |
| `trade_hyperliquid_paper_order` | `POST /v1/trade/hyperliquid/paper/order` |
| `trade_hyperliquid_eval_order` | `POST /v1/trade/hyperliquid/eval/order` |

Legacy `hl_*` MCP tool names remain as aliases. See `GET /v1/trade/hyperliquid/bootstrap` for the approveAgent signing model.

**Roadmap:** `/v1/trade/{venue}` for additional venues; `/v1/trade/execute` for venue-neutral routing later.

### Paid — Data APIs (x402)
| Endpoint | Price | Description |
|----------|-------|-------------|
| `GET /v1/indicators/BTC` | $0.02 | Technical indicators (RSI, MACD, Bollinger Bands, ATR, Support/Resistance) |
| `GET /v1/yields` | $0.02 | Top DeFi yield pools by TVL |
| `GET /v1/metadata?url=` | $0.01 | URL metadata extraction and unfurling |
| `GET /v1/search?q=` | $0.01 | Web search for crypto/market information |
| `GET /v1/onchain/:address` | $0.02 | On-chain analytics for any address |
| `GET /v1/onchain/:address/tokens` | $0.03 | Token holdings for any address |

### Paid — Synthesis APIs (x402)
| Endpoint | Price | Description |
|----------|-------|-------------|
| `GET /v1/token-risk/{token}` | $0.03 | Snapshot-based volatility, liquidity-proxy, and market-cap risk score |
| `GET /v1/crypto-signals` | $0.04 | Aggregated buy/sell signals across multiple indicators |
| `GET /v1/yield-comparison` | $0.03 | Compare yields across protocols with risk-adjusted returns |
| `GET /v1/hn-sentiment` | $0.02 | Hacker News sentiment analysis for tech topics |
| `GET /v1/npm-stats/:package` | $0.02 | NPM package download stats and trends |
| `GET /v1/github-trending` | $0.02 | Trending GitHub repos by language/topic |
| `GET /v1/marketing-intel` | $0.05 | Marketing intelligence: competitors, content gaps, ad copy |

### Paid — Bundled Intelligence (x402)
| Endpoint | Price | Description |
|----------|-------|-------------|
| `GET /v1/research?q=` | $0.05 | Deep research: search + extract + synthesize in one call |
| `GET /v1/portfolio?symbol=BTC` | $0.10 | Portfolio intelligence: price + signal + risk + sentiment + verdict |
| `GET /v1/defi-strategy` | $0.25 | DeFi strategy report: top yields + TVL + comparison + risk flags |
| `GET /v1/market-pulse` | $0.05 | Market pulse: fear-greed + trending + news + social + whales + global |
| `GET /v1/onchain-overview` | $0.15 | On-chain overview: whales + exchange flows + stablecoin flows + correlation + DeFi TVL |

### Paid — AI Inference (x402)
| Endpoint | Price | Description |
|----------|-------|-------------|
| `POST /v1/inference` | $0.03 | LLM inference (gpt-5.4/5.4-mini/5.5) — chat completions |
| `POST /v1/complete` | $0.03 | Text completion (CodexSale proxy) |

### Paid — Dispute Resolution (x402)
| Endpoint | Price | Description |
|----------|-------|-------------|
| `POST /v1/disputes` | $0.05 | AI-powered dispute resolution (7 policy templates) |

---

## Use Cases — What Agents Can Build

### Portfolio Monitor
```bash
# ALL-IN-ONE: Get portfolio intelligence in a single call ($0.10)
# Returns: price + technical signal + risk score + market sentiment + verdict
curl "https://agentservices.to/v1/portfolio?symbol=BTC"

# Or build it yourself from individual endpoints:
# Get current prices (FREE)
curl https://agentservices.to/v1/prices?symbols=BTC,ETH,SOL

# Get technical signals for entry/exit ($0.04)
curl https://agentservices.to/v1/crypto-signals

# Check snapshot-based token risk before buying ($0.03)
# Use a CoinGecko-compatible identifier for portable direct HTTP calls.
curl https://api.agentservices.to/v1/token-risk/pepe
# Contract and payment-receipt guidance: docs/token-risk-outcome-contract.md
```

### DeFi Yield Optimizer
```bash
# ALL-IN-ONE: Get DeFi strategy report ($0.25)
# Returns: top yields + protocol TVL + cross-chain comparison + risk flags
curl "https://agentservices.to/v1/defi-strategy"

# Get all yield pools ranked by TVL ($0.02)
curl https://agentservices.to/v1/yields

# Compare yields with risk-adjusted returns ($0.03)
curl https://agentservices.to/v1/yield-comparison

# Check on-chain position for any wallet ($0.02)
curl https://agentservices.to/v1/onchain/0x9863aB6242663FCc84c33632741711dB78f8Fd15
```

### Market Intelligence Agent
```bash
# ALL-IN-ONE: Get market pulse report ($0.05)
# Returns: fear-greed + trending + news + social + whales + global market
curl "https://agentservices.to/v1/market-pulse"

# Get market sentiment (FREE)
curl https://agentservices.to/v1/fear-greed

# Search for latest news on any topic ($0.01)
curl "https://agentservices.to/v1/search?q=base+chain+ecosystem"

# Get trending tokens (FREE)
curl https://agentservices.to/v1/trending

# Get marketing intelligence report ($0.05)
curl "https://agentservices.to/v1/marketing-intel?competitor=blockrun&topic=x402"
```

### Technical Analysis Bot
```bash
# Full technical indicator suite ($0.02)
curl https://agentservices.to/v1/indicators/BTC
# Returns: RSI, MACD, Bollinger Bands, ATR, Support/Resistance levels

# AI-generated market predictions (FREE)
curl https://agentservices.to/v1/predictions

# Combine with on-chain analytics ($0.03)
curl https://agentservices.to/v1/onchain/0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045/tokens
```

### Developer Research Agent
```bash
# GitHub trending repos ($0.02)
curl "https://agentservices.to/v1/github-trending?language=python&since=weekly"

# NPM package stats ($0.02)
curl https://agentservices.to/v1/npm-stats/react

# Hacker News sentiment ($0.02)
curl "https://agentservices.to/v1/hn-sentiment?q=AI+agents"
```

### AI Chat / Inference
```bash
# Chat completions via x402 ($0.03)
curl -X POST https://agentservices.to/v1/inference \
  -H "Content-Type: application/json" \
  -d '{"model":"gpt-5.4-mini","messages":[{"role":"user","content":"Explain x402 in 3 sentences"}]}'
```

### On-Chain Analytics
```bash
# ALL-IN-ONE: Get full on-chain overview ($0.15)
# Returns: whale movements + exchange flows + stablecoin flows + correlation matrix + DeFi TVL
curl "https://agentservices.to/v1/onchain-overview"

# On-chain analytics for any wallet ($0.02)
curl https://agentservices.to/v1/onchain/0x9863aB6242663FCc84c33632741711dB78f8Fd15

# Token holdings for any wallet ($0.03)
curl https://agentservices.to/v1/onchain/0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045/tokens
```

---

## Quick Start

### Using curl
```bash
# Free — no payment needed
curl https://agentservices.to/v1/prices?symbols=BTC,ETH

# Paid — returns HTTP 402 with payment instructions in the header
curl -i https://agentservices.to/v1/indicators/BTC
# Response includes x402 payment envelope: network, amount, payTo address
# Agent pays via x402 client, retries with X-Payment header, gets data
```

### Using as MCP Server (Claude Desktop, Cursor, etc.)
```json
{
  "mcpServers": {
    "agentservices": {
      "url": "https://agentservices.to/mcp",
      "transport": "streamable-http"
    }
  }
}
```

13+ MCP tools available: `crypto_prices`, `trending_tokens`, `global_market`, `gas_prices`, `market_predictions`, `crypto_news`, `social_trending`, `technical_indicators`, `defi_yields`, `search_web`, `token_risk`, `crypto_signals`, `onchain_analytics`, `deep_research`, `portfolio_intelligence`, `defi_strategy`, `market_pulse`, `onchain_overview`

### Using with Python
```python
import httpx

# Free endpoints
resp = httpx.get("https://agentservices.to/v1/prices?symbols=BTC,ETH")
prices = resp.json()

# Paid endpoints — use x402 client to handle payment
from x402.client import x402Client
client = x402Client()
result = client.get("https://agentservices.to/v1/indicators/BTC")
# Client handles 402 → pays USDC → retries with payment proof → returns data
```

### Using with JavaScript/TypeScript
```typescript
// Free endpoints
const prices = await fetch("https://agentservices.to/v1/prices?symbols=BTC,ETH").then(r => r.json());

// Paid endpoints — use @x402/facilitator
import { wrapFetchWithPayment } from "@x402/facilitator";
const paidFetch = wrapFetchWithPayment(fetch);
const indicators = await paidFetch("https://agentservices.to/v1/indicators/BTC").then(r => r.json());
```

## Dispute Resolution Engine

AgentServices includes an AI-powered dispute resolution system with 7 policy templates:

| Policy | Use Case |
|--------|----------|
| `freelance-delivery` | Freelancer vs client delivery disputes |
| `milestone-payment` | Milestone-based project payment disputes |
| `sla-monitoring` | Service level agreement violations |
| `api-quality` | API response quality / uptime disputes |
| `bug-bounty` | Bug bounty validity disputes |
| `scope-dispute` | Project scope creep disputes |
| `physical-commerce` | Physical goods transaction disputes |

## Human billing door (ChatGPT / Claude)

Wallet agents continue to pay via **x402 on REST** — unchanged. Humans connecting through ChatGPT Developer Mode or Claude custom connectors can use **Google OAuth + Stripe prepaid credits** on MCP.

| Rail | Who | How |
|------|-----|-----|
| x402 | Wallet agents | Unauthenticated REST → HTTP 402 → USDC on Base |
| Credits | Logged-in humans | Google OAuth on MCP → deduct same USD price from prepaid balance |

**MCP URL for ChatGPT:** `https://agentservices.to/mcp`

### Environment variables

Copy [`.env.example`](.env.example). Required to enable the human door:

| Variable | Purpose |
|----------|---------|
| `GOOGLE_CLIENT_ID` | Google OAuth client ID |
| `GOOGLE_CLIENT_SECRET` | Google OAuth client secret |
| `OAUTH_JWT_SECRET` | Signs MCP bearer tokens (or use `SESSION_SECRET`) |
| `STRIPE_SECRET_KEY` | Stripe API secret key |
| `STRIPE_WEBHOOK_SECRET` | Verifies `checkout.session.completed` webhooks |
| `STRIPE_PRICE_CREDITS_10` | Optional Stripe Price ID for $10 pack (otherwise hardcoded) |
| `PUBLIC_BASE_URL` | Canonical host, e.g. `https://agentservices.to` |

Prepaid credit balances are stored in **Stripe Customer Balance** (one Stripe Customer per Google `sub`). No Redis, Postgres, or other database is required.

Without Google/Stripe vars the API boots in **x402-only mode**.

### Google Cloud Console redirect URIs

Add both hosts:

- `https://agentservices.to/oauth/google/callback`
- `https://api.agentservices.to/oauth/google/callback`

### Stripe webhook

Point Stripe to:

- `https://agentservices.to/billing/webhook`
- `https://api.agentservices.to/billing/webhook`

Event: `checkout.session.completed`

## Discovery & Listings

- [x402 Discovery](https://agentservices.to/.well-known/x402) — Live
- [MCP Registry](https://registry.modelcontextprotocol.io) — Listed as `to.agentservices/agentservices`
- [CDP Bazaar](https://bazaar.coinbase.com) — Extension enabled
- [awesome-x402](https://github.com/xpaysh/awesome-x402) — PR submitted

## Tech Stack

- **FastAPI** (Python 3.11+)
- **x402 v2** payment middleware (Coinbase CDP facilitator)
- **USDC** on **Base Mainnet** (EIP-3009 gasless transfers)
- Deployed on **Vercel** (`agentservices.to` + `api.agentservices.to`, auto-deploy from `main`)

## Coinbase AgentKit Integration

AgentServices includes a built-in [Coinbase AgentKit](https://github.com/coinbase/agentkit) action provider (`agentkit/` directory). This lets any AgentKit agent use AgentServices APIs with typed, documented actions:

```python
from coinbase_agentkit import AgentKit, AgentKitConfig
from agentkit import agentservices_action_provider

agent_kit = AgentKit(AgentKitConfig(
    wallet_provider=wallet_provider,
    action_providers=[agentservices_action_provider()]
))
```

**18 actions** covering free (prices, fear-greed, trending, gas) and paid endpoints (indicators, DeFi yields, portfolio intelligence, research, onchain analytics, AI inference, and more). See [`agentkit/README.md`](agentkit/README.md) for full documentation.

## License

MIT — Build on it, fork it, integrate it.

## Links

- **API:** [agentservices.to](https://agentservices.to)
- **MCP:** [agentservices.to/mcp](https://agentservices.to/mcp)
- **Discovery:** [agentservices.to/.well-known/x402](https://agentservices.to/.well-known/x402)
- **GitHub:** [github.com/vbkotecha/agentservices-api](https://github.com/vbkotecha/agentservices-api)
- **x402 Protocol:** [x402.org](https://x402.org)
- **Base:** [base.org](https://base.org)
历史前置条件说明(补充参考)

前置环境:调用托管服务需能访问 agentservices.to;本地部署据 README 为 Python 3.11+ 与 FastAPI,完整步骤待核验。权限:交易路径需在 Hyperliquid 主钱包完成一次 approveAgent 授权;人类计费通道需 Google OAuth 与 Stripe 账户及相应环境变量。费用:付费端点按次以 Base 主网 USDC 结算,实际价格与扣费待核验。境外依赖:依赖 Base 主网、x402 协议、Stripe、Google OAuth 及第三方模型供应商,可达性与合规性待核验。

项目来源与清单版权许可

https://github.com/vbkotecha/agentservices-api

整理来源:https://github.com/slavakurilyak/awesome-ai-agents

清单版权与许可:

MIT License

Copyright (c) 2024 Slava Kurilyak

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.