Attest

io.github.attestagents由 GitHub 账号 attestagents 发布v1.0.0更新于 Oct 24, 2026

Scan agent payment endpoints (x402, AP2, L402, MPP, 402) for a trust grade A-F before paying.

已验证Streamable HTTP可网页运行金融安全与监控

概览

AI 生成的概览

Attest 让 AI 助手在付款前扫描 x402、AP2、L402、MPP 和 HTTP 402 支付端点,获得 A–F 信任评级与安全结论。

可以做什么
  • 扫描支付端点网址,返回字母评级、综合评分、结论、风险标记、价格与报告链接
  • 查询某个主机最近一次已记录的评级,用作快速预检
  • 在付款当下核验实时的 402 支付报价,返回允许、警告或阻止及机器可读的原因,例如钱包不匹配或价格被替换
适用场景
适用于助手通过 x402 类协议自主付款的场景,希望在向陌生或不可信端点授权付款前,在支付流程中加入确定性的安全检查。
运行要求
可使用托管的远程端点(Streamable HTTP),或在本地以 Node.js 18 或更高版本通过 stdio 运行 npm 包 attest-mcp(例如用 npx)。无需 API 密钥或账号。可选环境变量 ATTEST_BASE_URL 用于自托管或测试时覆盖 API 基础地址。
安装前请注意
被扫描的网址和结果会记录到 Attest 的公开目录,因此不要扫描网址或响应中含私密或敏感信息的端点。评级在 Attest 的服务器上完成,请求会发送给该第三方。结论仅为建议:它本身不执行也不拦截付款,助手自身的支付逻辑必须遵守该结论。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Attest,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/io.github.attestagents%2Fattest-mcp/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。

{
  "mcpServers": {
    "attest": {
      "type": "http",
      "url": "https://attestagent.org/api/mcp"
    }
  }
}

README

Attest MCP Server

[npm version] [npm downloads] [License: MIT] [Node.js]

Trust scanning for agent payments — right inside your AI agent.

attest-mcp is a Model Context Protocol server that lets any MCP-compatible agent (Claude, Cursor, Windsurf, VS Code, and more) scan an agent payment endpoint and get back a letter grade A–F with a clear safety verdict before authorizing a single cent.

It covers the agentic payment protocols in use today: x402, MPP, AP2, L402, and HTTP 402.

Powered by Attest. The scoring engine runs entirely on Attest's servers — this package is a thin client that relays requests, so installing it never exposes any proprietary grading logic.


Why

Autonomous agents are starting to pay for things on their own. A single malicious or misconfigured endpoint can drain funds through impersonation, a blocklisted payout wallet, bait-and-switch pricing, or a broken payment handshake. attest-mcp gives your agent a fast, deterministic safety check it can run as a step in its payment loop.

Tools

ToolWhat it does
attest_scanRuns a full scan on a payment endpoint URL and returns a grade (A–F), a composite score (0–100), a verdict, danger flags, price, and a link to the full report. Call this before paying an unfamiliar endpoint.
attest_gradeFast lookup of the most recent grade for a host that has already been scanned. Good for a quick pre-check.

Requirements

  • Node.js 18 or newer
  • Any MCP-compatible client

No API key required.

Quick start

Run it directly with npx (no install needed):

bash
npx attest-mcp

The server speaks MCP over stdio, so you normally don't run it by hand — you point your MCP client at it using one of the configs below.

Client setup

Claude Desktop

Edit claude_desktop_config.json (Settings → Developer → Edit Config):

json
{  "mcpServers": {    "attest": {      "command": "npx",      "args": ["-y", "attest-mcp"]    }  }}

Cursor

Add to ~/.cursor/mcp.json (or Settings → MCP → Add new server):

json
{  "mcpServers": {    "attest": {      "command": "npx",      "args": ["-y", "attest-mcp"]    }  }}

Windsurf

Add to ~/.codeium/windsurf/mcp_config.json:

json
{  "mcpServers": {    "attest": {      "command": "npx",      "args": ["-y", "attest-mcp"]    }  }}

VS Code

Add to .vscode/mcp.json in your workspace:

json
{  "servers": {    "attest": {      "command": "npx",      "args": ["-y", "attest-mcp"]    }  }}

Any other MCP client

Use the command npx -y attest-mcp with the stdio transport.

Remote server (no install)

Prefer not to install anything? Attest also runs a hosted MCP server you can connect to over Streamable HTTP:

https://attestagent.org/api/mcp

Point any remote-MCP-capable client at that URL.

Usage example

Once connected, just ask your agent in natural language:

"Before you pay, scan https://api.example.com/paid-resource with Attest."

The agent calls attest_scan and gets back something like:

json
{  "host": "api.example.com",  "grade": "A",  "composite": 95,  "danger": false,  "verdict": "Valid endpoint, established host.",  "priceHuman": "0.01 USDC",  "reportUrl": "https://attestagent.org/r/abc-123"}

Configuration

Environment variableDefaultDescription
ATTEST_BASE_URLhttps://attestagent.orgOverride the Attest API base URL. Only needed for self-hosting or testing.

Security & privacy

  • No secrets, no accounts, no API keys. The server holds no credentials.
  • No proprietary logic ships here. Grading happens server-side; this package only relays requests and formats responses.
  • Inputs are validated before any request is made.
  • Outbound only. The server makes HTTPS requests to the Attest API and speaks MCP over stdio — it opens no inbound ports.
  • Scanned URLs and results are logged to Attest's public directory. Do not scan endpoints whose URL or response contains private or sensitive information. See attestagent.org/legal.

Links

Contributing

Issues and pull requests are welcome — see CONTRIBUTING.md.

License

MIT © Attest

来源:README.md,提交 ac54bb5

工具

2

attest_scan

Scan an agent payment endpoint (x402 / HTTP 402) and return a letter grade A to F with a safety verdict before paying.

输入参数url必填

attest_guard

Verify a live 402 payment offer at the moment of spend. Pass the EXACT offer you just received (url, payTo, amount, asset, network) and get an allow / warn / block verdict with machine-readable reasons: wallet mismatch vs the verified payout wallet, price swaps vs the last verified quote, danger flags, blocklisted wallets, and typosquats. Call this AFTER receiving a 402 offer and BEFORE authorizing the payment.

输入参数url必填asset必填payTo必填amount必填schemenetwork必填

版本历史

1
  1. v1.0.0最新Sep 16, 2026

评分

已满足适用检查项的 100%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分