warden402-mcp

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.

Category
Visit Server

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:

  1. The LLM never touches the verdict. decision and riskScore come from deterministic rules; the LLM only writes summary. Auditable.
  2. Fails safe. If a Bazaar signal can't be fetched it becomes unknowndegraded:true → the verdict is review at worst, never a false clear.
  3. Every verdict is snapshotted (verdictId + signal evidence) → the track-record moat.

Decision rules

  • Hard rule: honeypot or sanctions fail → 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 (no fs) + per-IP rate limiting. Persistence turns on when KV_REST_API_URL / KV_REST_API_TOKEN are 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. The src/ 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 test fails 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

  1. ✅ Guard MVP (/guard/token) + verdict contract
  2. /guard/tx (pre-sign) + /guard/address + track-record + re-checker
  3. ✅ SDK / MCP / website
  4. ⏳ x402 payment layer (free tier → 402) + MCP Registry / Agentic.Market listing
  5. 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.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured