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 分