warden402-mcp
A stdio MCP server that exposes guard_token, guard_tx, and guard_address endpoints for pre-execution security and trust evaluation of tokens, transactions, and addresses on Base.
README
Warden — warden402.xyz
The pre-execution security & trust layer for agents transacting on Base.
Give Warden a token, a pending transaction, or an address → get a single decision:
block · review · clear with reasons, a risk score, and a plain-language summary.
Warden uses the x402 Bazaar as its intelligence backend and builds judgment, a provable track record, and (next) a firewall on top.
Why
x402 infrastructure is ahead of demand; the missing layer is trust. The marketplace vertical is crowded (Coinbase Bazaar + dozens of clones), but pre-execution security is wide open. Warden owns that vertical.
What's in here
| Path | What |
|---|---|
web/ |
The website (warden402.xyz) — landing + live demo + track-record. Runs the guard in-process, so it deploys as a single Vercel project. |
src/ |
Standalone Hono Guard API (same logic) — for agents/SDK/MCP and a persistent-ledger host. |
sdk/ |
@warden402/sdk — client + enforce/assertSafe gate + LangChain tools. |
mcp/ |
warden402-mcp — stdio MCP server exposing guard_token / guard_tx / guard_address. |
scripts/ |
smoke.ts (offline decision tests), probe.ts (calibration), recheck.ts (outcome re-checker). |
The decision contract (immutable spine)
Every endpoint returns a Verdict (src/schema/verdict.ts). Principles:
- The LLM never touches the verdict.
decisionandriskScorecome from deterministic rules; the LLM only writessummary. Auditable. - Fails safe. If a Bazaar signal can't be fetched it becomes
unknown→degraded:true→ the verdict isreviewat worst, never a falseclear. - Every verdict is snapshotted (
verdictId+ signal evidence) → the track-record moat.
Decision rules
- Hard rule:
honeypotorsanctionsfail → block (regardless of score). - Weighted-average risk ≥ 70 → block; degraded → review.
- Any single
fail(e.g. liquidity collapse) floors the decision at review (can't be diluted by the average). 2+warns → review. Else clear.
Endpoints
| Endpoint | What it checks |
|---|---|
GET /guard/token?address= |
honeypot, taxes, liquidity, holder concentration, OFAC |
POST /guard/tx {from,to,calldata} |
decodes calldata (unlimited approve / setApprovalForAll), sanctions + contract risk on the counterparty |
GET /guard/address?address= |
sanctions, contract risk, age/activity |
GET /track-record |
public trust stats (decision mix, hit-rate, rugs caught/missed) |
(The website exposes the same via /api/guard.)
Run locally
# Single-project site (recommended) — runs guard in-process
cd web && npm install
cp .env.example .env.local # set BAZAAR_INTERNAL_SECRET
npm run dev # http://localhost:3000
# Or the standalone Hono API
npm install
cp .env.example .env # set BAZAAR_INTERNAL_SECRET
npm run smoke # offline decision tests
npm run dev # http://localhost:8787
Production topology
web/is the production API + site. Deployed as a single Vercel project (Root Directory =web). It runs the guard/firewall in-process, so the endpoints agents actually call (/api/guard,/api/firewall) are live here. Hot path is edge-friendly: KV store (nofs) + per-IP rate limiting. Persistence turns on whenKV_REST_API_URL/KV_REST_API_TOKENare set.src/(Hono API) is an optional Node host — for teams that want a persistent-disk ledger or the x402 payment layer. Not required; not deployed by default. Thesrc/modules are the canonical logic; a drift-guard test (tests/drift.test.ts) proves the web copy stays identical.- Drift is impossible to ship silently:
npm testfails if the two diverge.
Deploy
See DEPLOY.md. TL;DR: new Vercel project, Root Directory = web,
set BAZAAR_INTERNAL_SECRET (+ optional KV_REST_API_URL/KV_REST_API_TOKEN for
persistent track-record), deploy. Done.
Bazaar internal-auth
Warden calls Bazaar without paying x402 (so our own products don't bill themselves) via
the X-Warden-Internal header. Bazaar must have a matching WARDEN_INTERNAL_SECRET. Until
set, all signals come back unknown and verdicts stay safely at review.
Roadmap
- ✅ Guard MVP (
/guard/token) + verdict contract - ✅
/guard/tx(pre-sign) +/guard/address+ track-record + re-checker - ✅ SDK / MCP / website
- ⏳ x402 payment layer (free tier → 402) + MCP Registry / Agentic.Market listing
- ⏳ Firewall / policy gateway — sits in front of an agent's x402 + onchain calls: spend caps, allow/deny by trust score, anomaly + injection-drain detection, audit log. B2B, Cloudflare Worker edge. The north star.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。