Skip to main content
Glama
Zoll MCP Server

Zoll MCP Server

by EuclidProofs

Zoll

Solana Pre-Trade Customs & Cryptographic x402 Clearing House

Zero-hallucination 10-check risk clearance, Alpenglow Votor finalized-slot forensics, Ed25519 Clearing Passports, and native Solana Ed25519SigVerify swap envelopes for autonomous AI trading agents.

CI Node 24 Zero-Dep Solana Alpenglow CoinGecko x402 v2 MCP Server License: MIT


Overview

Zoll (Swiss/German for Customs) is a non-custodial pre-trade clearing bureau built for autonomous Solana trading agents in the post-Alpenglow (SIMD-0326) era.

Before an AI agent routes a long-tail swap to Jupiter, it spends $0.015 in CoinGecko x402 data to receive a deterministic 10-check clearance verdict (ALLOW / CAP_SIZE / BLOCK) sealed into a slot-bound Ed25519 Clearing Passport with SHA-256 payload provenance, a 0%-hallucination Polygraph gate, and a ready-to-bundle Solana Ed25519SigVerify precompile execution envelope.

Zero LLM math. Every slippage curve, wash-churn ratio, on-chain SPL authority check, finalized vault diff, and round-trip honeypot test is computed deterministically in Node 24 with zero required runtime dependencies.


Related MCP server: SolAegis

Built for Solana's Alpenglow Era (SIMD-0326 Votor)

Anza's Alpenglow upgrade slashed Solana finality from 12.8s to 100–220ms and moved validator votes off-chain into BLS certificates. Zoll turns sub-second finalized state into four concrete pre-trade superpowers for autonomous agents:

  1. Ghost Liquidity Finalized Vault Diff (Check #9): Reads the pool's actual on-chain SPL/Token-2022 vaults at commitment: "finalized" via Helius RPC and diffs live finalized vault USD against CoinGecko's indexed reserve_in_usd. Catches active LP rug pulls during the indexer lag window (>30% vault drain triggers an instant HARD BLOCK).

  2. Consensus-Aware Votor Telemetry Gate (Check #9): Measures live processed vs. confirmed vs. finalized slot lag, 0% on-chain vote bloat, and non-vote TPS in real time (ALPENGLOW_FAST_TRACK vs. ALPENGLOW_STANDARD vs. CONSENSUS_TURBULENCE), adjusting risk scoring if consensus handovers degrade.

  3. Slot-Bound Ed25519 Clearing Passports + Native Solana Ed25519SigVerify Precompile Envelopes: Pins every Ed25519 Clearing Certificate to the exact finalizedSlot & finalizedBlockhash with a strict +25-slot TTL, and compiles a spec-accurate Ed25519SigVerify111111111111111111111111111 precompile instruction + Memo receipt anchor + guarded Jupiter swap—preventing stale-audit MEV and prompt-injected wallet signers.

  4. Live Round-Trip Buy → Sell Honeypot Proof (Check #10): Quotes a live $1,000 Buy (USDC → Token) via Jupiter and immediately quotes the reverse Sell (Token → USDC), proving capital retention and triggering a HARD BLOCK on sell-trap honeypots or ≥45% round-trip friction.


Architecture & Agent Lifecycle

flowchart LR
    Agent["Autonomous Solana Agent<br/>(Claude / OpenClaw / LangGraph / Bot)"] -->|"POST /mcp or stdio"| MCP["Zoll MCP & REST Gateway<br/>12 Tools · 7 Resources · 3 Prompts"]
    MCP --> BG["BudgetGuard<br/>Hard Caps: $0.025/audit · $0.50/session"]
    BG --> CG["CoinGecko x402 v2<br/>3 Calls ($0.015) · SHA-256 Bound"]
    BG --> HEL["Helius Mainnet RPC<br/>SPL/Token-2022 + Top-10 + Alpenglow + Finalized Vaults"]
    BG --> JUP["Jupiter Quote API<br/>5-Point Live Ladder + Round-Trip Honeypot Probe"]
    CG & HEL & JUP --> ENG["10-Check Deterministic Risk Engine<br/>ALLOW / CAP_SIZE / BLOCK"]
    ENG --> SEAL["Slot-Bound Ed25519 Signer<br/>zoll/clearing-certificate/v1 (TTL +25 slots)"]
    ENG --> POLY["Hallucination Polygraph<br/>0% Ungrounded Numeric Claims"]
    SEAL --> ENV["Solana Atomic Execution Envelope<br/>Ed25519SigVerify + Memo + Guarded Jupiter Swap"]
    ENV -->|"agentDirective + Signed Receipt"| Agent

10 Deterministic Pre-Trade Checks

#

Check

Data Source

Weight

What It Catches

01

Liquidity / FDV & Pool Age

CoinGecko x402

24%

Thin pools (<$5k hard floor), low Reserve/FDV ratios, sub-24h pools

02

AMM Slippage & Max Safe Clip

CoinGecko x402 + Jupiter Live

20%

Exact x·y=k price impact + live 5-point Jupiter multi-pool ladder

03

Wash-Volume & Bot Churn

CoinGecko x402

22%

Fake 24h turnover (vol/reserve) & abnormal tx-per-trader churn (≥8× thin-pool veto)

04

Momentum Blow-Off Trap

CoinGecko x402

12%

Pump-and-dump reversals (+80%+ 24h collapsing sharply in 5m/15m)

05

Cross-Pool Divergence

CoinGecko x402

10%

Severe price spread across Solana DEX pools & single-pool fragmentation

06

Community & Security Signals

CoinGecko x402

12%

Community suspicion reports (≥10 hard veto) & negative sentiment

07

SPL Authority & Extensions

Helius Mainnet RPC

16%

Active mintAuthority, freezeAuthority (hard veto), Token-2022 permanentDelegate (hard veto), transfer fees & hooks

08

On-Chain Holder Concentration

Helius Mainnet RPC

12%

Insider-bundled supply via live Top-1, Top-5, and Top-10 account shares

09

Alpenglow Finality & Vault Sync

Helius Mainnet RPC

10%

Live Votor slot lag (ALPENGLOW_FAST_TRACK) & Ghost Liquidity finalized vault pulls (>30% hard veto)

10

Round-Trip Honeypot Proof

Jupiter Live Quote API

14%

Live $1,000 Buy→Sell capital retention; hard-blocks NO_SELL_ROUTE or ≥45% sell-tax traps

Dual-Curve Technical Blueprint (x·y=k vs. Live Jupiter Multi-Pool Route)


Point Your Agent Here (MCP + Discovery)

Zoll exposes 4 automatic discovery channels so any autonomous agent immediately learns every tool, schema, and playbook:

  • Streamable HTTP MCP (JSON-RPC 2.0): POST http://127.0.0.1:4020/mcp

  • Local Stdio MCP: node src/mcpServer.mjs

  • Agent Discovery Manifest: GET http://127.0.0.1:4020/llms.txt

  • Programmatic Descriptor: GET http://127.0.0.1:4020/.well-known/agent.json

Plug into Claude Desktop / Cursor / OpenClaw / Antigravity

{
  "mcpServers": {
    "zoll": {
      "url": "http://127.0.0.1:4020/mcp",
      "command": "node",
      "args": ["src/mcpServer.mjs"]
    }
  }
}

Complete MCP Surface (12 Tools · 7 Resources · 3 Prompts)

Tool

Purpose

audit_solana_token

Full 10-check CoinGecko + Helius + Alpenglow + Jupiter audit, slot-bound Ed25519 certificate, agentDirective, and grounded memo

scan_trending_solana_pools

Live Solana trending pool tape with deterministic pre-audit previewRiskScore & maxRiskScore filter

search_solana_pools

Search Solana DEX pools by ticker, name, or mint address

inspect_spl_contract

Zero-x402-cost ($0) live Helius SPL / Token-2022 honeypot & Top-10 holder pre-check

simulate_slippage_ladder

Exact AMM slippage ladder, Max Safe Clip, and TWAP split-order chunking (chunksNeeded, recommendedChunkUsd)

compare_solana_candidates

Audit and rank 1–5 candidate tokens side-by-side within BudgetGuard

sweep_trending_alpha

Autonomous Top-N trending sweep bucketed into SAFE_TO_TRADE, CAPPED, and REJECTED_TRAPS

get_alpenglow_telemetry

Live Solana mainnet Alpenglow Votor finality lag, slot time, non-vote TPS, and finalized blockhash

build_verified_swap_envelope

Compiles native Solana Ed25519SigVerify precompile + Memo anchor + guarded Jupiter swap with live slot-TTL freshness check

verify_memo_grounding

Adversarial Hallucination Polygraph gate validating every numeric claim against SHA-256 provenance

verify_signed_receipt

Independent Ed25519 cryptographic verifier for any signed zoll/clearing-certificate/v1 receipt

get_x402_spend_ledger

Live Cost-of-Intelligence ROI ledger (x402 USDC spent vs. traps blocked & estimated loss prevented)

Resources:

  • zoll://ledger/summary — Live ROI spend & BudgetGuard limits

  • zoll://trending/solana — Live Solana trending pool tape

  • zoll://audit/latest — Latest slot-bound Ed25519 Clearing Certificate

  • zoll://alpenglow/telemetry — Live Alpenglow Votor consensus telemetry

  • zoll://policy/thresholds — Exact 10-check weights, hard-veto rules, and AMM slippage formula

  • zoll://attestation/pubkey — Zoll's Ed25519 public key (keyId, SPKI base64, PEM) for offline verification

  • zoll://system/health — Live CoinGecko, Helius, Ed25519, and BudgetGuard status

Prompts:

  • pre_trade_due_diligence — 4-step institutional clearance workflow (inspect_spl_contract → audit_solana_token → verify_signed_receipt → verify_memo_grounding)

  • sweep_solana_trending_safely — Autonomous trending sweep within BudgetGuard

  • verify_and_execute_handoff — Multi-agent wallet-signer Ed25519 verification checklist


Quick Start (Zero Required Dependencies)

Requires Node.js 22+ (verified on Node 24). No npm install needed to run the server, dashboard, MCP server, or full test suite.

git clone https://github.com/EuclidProofs/zoll.git
cd zoll
cp .env.example .env
# Optional: add COINGECKO_API_KEY and HELIUS_API_KEY in .env for live mainnet data
# (works immediately offline/public-hybrid even without keys)

# 1. Start the Clearing Desk UI + REST API + Streamable HTTP MCP (/mcp & /llms.txt)
npm start
# -> http://127.0.0.1:4020

# 2. Or start the MCP Server over stdio directly
npm run mcp

# 3. Run the 16-test verification & secret-hygiene suite
npm test

Execution Modes (X402_MODE)

Mode

Behavior

auto (default)

Uses live Solana USDC x402 when SOLANA_PRIVATE_KEY + optional @x402/* deps are configured; otherwise uses COINGECKO_API_KEY (Demo/Pro auto-detected) + live HTTP 402 challenge probe; falls back cleanly to public hybrid / fixtures

x402

Real Solana mainnet USDC micropayments ($0.005/call) gated by BudgetGuard

api_key

CoinGecko Pro/Demo key + real HTTP 402 x402 challenge header capture

public_hybrid

Public GeckoTerminal + CoinGecko market data + live 402 probe

fixture

100% deterministic offline calibration specimens (healthy_liquid, medium_cap_size, rug_wash_trap)


Security & Non-Custodial Architecture

  • Non-custodial by design: Zoll computes guarded Jupiter quotes and compiles verifiable Ed25519SigVerify instruction envelopes—your agent's own wallet/multisig retains full custody of signing keys.

  • Hard BudgetGuard circuit breaker: Enforces per-audit ($0.025) and per-session ($0.50) USDC spending caps before signing any x402 payment, returning HTTP 402 BUDGET_EXCEEDED on breach.

  • Strict secret redaction: .env and data/ (local ledger & Ed25519 key) are gitignored; Helius RPC URLs are always redacted to ?api-key=<redacted> across wire logs, provenance records, and error messages.

  • Verified CI: tests/test_guard.mjs runs 16 automated tests covering x402 v2 header decoding, BudgetGuard, 10-check scoring, Hallucination Polygraph mutation catching, Jupiter Guard, Helius SPL/Token-2022 + Ghost Liquidity + Alpenglow Votor parsing, Round-Trip Honeypot detection, Ed25519 tamper detection, Solana Ed25519SigVerify precompile verification, MCP stdio + HTTP /mcp + /llms.txt, and a repo-wide secret & local-path leak scan.


License

MIT — see LICENSE.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      B
      maintenance
      Equips AI agents with institutional risk management and execution tools for Solana and Hyperliquid, enabling Kelly-criterion position sizing, VaR/CVaR analysis, Monte Carlo simulations, circuit breaker checks, and wallet/funding data queries through standardized MCP tools.
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables agents to screen Solana tokens, triage swaps before signing, and generate optimized unsigned swap transactions with payment and budget controls through MCP tools.
      188 npm
      1
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI agents to perform DeFi safety checks over MCP, including pre-signing transaction simulation, sanctions and scam address screening, token rug checks, risk-scored launches, and liquidation-risk assessment.
      66 npm
      MIT