8004swap MCP server
io.github.Stakemate369/8004swap-mcp·v0.1.0MCP server exposing 8004Swap (no-KYC agent-to-agent RFQ swap) as tools any MCP agent can call.
0 stars39 downloads/wk
Reviews
Write oneNobody has reviewed 8004swap yet.
If you have run it, two minutes of your experience saves the next person an afternoon.
8004swap tools (5, 1 write)
write = sends, deletes, buys or postsRead from the package source without running it. The installed server may list more.
check_agent_statusCheck whether an address is registered and active on the 8004Swap Registry (i.e. allowed to trade). Read-only, no signing.
fill_quoteAct as taker: settle a signed quote on-chain by calling Settlement.fillQuote (or fillQuoteWithPermit if a
pay_x402write actionFetches an HTTP resource; if it replies with the x402 payment-required protocol (protocol v2,
register_agentSelf-register the configured agent (AGENT_PRIVATE_KEY) on the 8004Swap Registry so it's allowed to trade.
request_quoteAct as taker: broadcast an RFQ over the 8004Swap Relay and collect signed quotes from maker agents subscribed
Public scan report
scanner v0.1.10 · 2026-10-29 · same rubric, same numbers if you re-run it
- Code scan9 source files scanned25/25
- –Live reliabilityno gateway calls yet and no remote to proben/a
- –Tool poisoningtools not inspected (local package is not executed); not countedn/a
- Auth qualitystatic API keys via environment variables6/15
- Maintenancelast push 59 days ago12/15
- Maintainer identityregistry namespace matches repository owner6/10
How 8004swap compares
Against every graded AI and agents MCP server, from our own scans and uptime checks. Updated after each scan run.
- Safety score
- 75/100
- higher than 45% of 4,461 AI and agents servers
- Tools
- 5
- the typical AI and agents server has 6
- Tools that change things
- 20%
- typical: 0%. Fewer write tools means less an agent can break
- Downloads a week
- 39
- more than 30% of 1,554 AI and agents servers with a package
What its tools let an agent do: 3 read · 1 create · 1 change
Install 8004swap in Claude Code, Cursor or VS Code
Runs npx -y @stakemate/8004swap-mcp-server on your machine. Read the scan report first; the gateway never runs local packages.
claude mcp add 8004swap-mcp -- npx -y @stakemate/8004swap-mcp-server
What the publisher says
From the 8004swap repository's README, as published. We do not edit it. Read it on GitHub
8004Swap
Non-custodial RFQ exchange built only for autonomous agents (not humans). Every trade is a direct match between two agents (maker/taker), settled atomically on-chain — no pre-funded liquidity pool, following the 0x Protocol / CoW Swap pattern.
Differentiator: no-KYC access + on-chain reputation via ERC-8004, not just another exchange with a bot layer bolted onto infra that still requires human KYC.
Status: testnet (Base Sepolia). No real funds at risk. No formal audit yet.
Architecture
Maker agent ──┐ ┌── Taker agent
│ WebSocket (RFQ, off-chain │
▼ EIP-712 signature, gasless) ▼
┌─────────────────────────────────────────────┐
│ Relay (relay/) │
│ RFQ matching, best-price ranking │
└─────────────────────┬─────────────────────────┘
│ signed quote
▼
┌───────────────────────────┐
│ Settlement.sol │ ← atomic settlement,
│ (contracts/Settlement.sol)│ Chainlink oracle,
└─────────────┬───────────────┘ risk caps
│ isActive() / recordFill()
▼
┌───────────────────────────┐
│ Registry.sol │ ← who's allowed to trade
│ (contracts/Registry.sol) │
└───────────────────────────┘proves key control). Owner can pause globally.
- Registry.sol — registry of authorized agents (self-registration, msg.sender
registered per pair (deny-by-default), checks staleness, applies risk caps (maxTradeAmount, maxVolumePerWindow) and an optional anti-sybil fee (feeBps).
- Settlement.sol — settles an EIP-712-signed Quote. Requires a Chainlink oracle
RFQs by token pair, and returns the best signed quote to the taker, who settles on-chain by calling fillQuote directly.
- relay/ — WebSocket server that authenticates agents (login signature), matches
EIP-712 signing and on-chain settlement, for anyone integrating an agent without reimplementing the protocol from scratch. See sdk/README.md.
- sdk/ (@stakemate/8004swap-agent-sdk) — TypeScript client that wraps the WS handshake,
websockets + web3.py). See sdk-python/README.md.
- sdk-python/ (8004swap-agent-sdk) — same thing, in Python (eth_account +
tools (requestquote, fillquote, checkagentstatus, register_agent), so any MCP-capable agent can trade directly without a human in the loop. See mcp-server/README.md.
- mcp-server/ (@stakemate/8004swap-mcp-server) — exposes the protocol as MCP
See PROTOCOL.md for the exact Relay message format.
Running locally
Contracts (Foundry)
forge build
forge testRelay
cd relay
npm install
cp .env.example .env # fill in BASE_RPC_URL, REGISTRY_ADDRESS
npm run devAgent examples (maker/taker) live in relay/examples/ — they run against the local or hosted Relay. To integrate a new agent, prefer sdk/ (@stakemate/8004swap-agent-sdk), which wraps the same flow as those examples as a library.
Contract deployment
forge script script/DeploySepolia.s.sol --rpc-url <sepolia_rpc> --private-key <key> --broadcastscript/Deploy.s.sol is the mainnet version (4 pairs against USDC) — do not run without an explicit decision, contracts have not gone through a formal audit yet.
Current network (Base Sepolia)
Shortened. The full README is on GitHub.
Nothing above is checked by us. What we check is on the safety report.
8004swap: common questions
- Is 8004swap MCP server safe?
- Mostly: it is graded B (75/100). Read the 8004swap safety report
- How do I install 8004swap?
- It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
- Does 8004swap need an API key?
- Yes. The registry entry asks for
AGENT_PRIVATE_KEY. - Is 8004swap maintained?
- The last commit was 66 days ago (2026-08-31). The latest release is v0.1.0.
- What can I use instead of 8004swap?
- Servers from other publishers that do the same job: Actual Budget MCP Server, Ausca MCP server and AKShare MCP server.
- How does 8004swap compare with other AI and agents MCP servers?
- safety score 75/100 (higher than 45% of 4,461 AI and agents servers); tools 5 (the typical AI and agents server has 6); tools that change things 20% (typical: 0%. Fewer write tools means less an agent can break). Full comparison.
Alternatives to 8004swap
Same job from other publishers: the closest match first, then the best rated.
- Actual Budget MCP ServerMCP server exposing Actual Budget accounts, transactions, budgets and reporting to LLM assistants.not reviewedEstablishedB
- AuscaPay-per-call APIs and MCP services for agents, no accounts or keys, with verifiable receipts.not reviewedEstablishedA
- AKShareLet a model explore AKShare's 1000+ China market data functions on its own — search, inspect, callnot reviewedEstablishedA