geckoshield-mcp
Provides due-diligence and risk-gated Solana Actions/Blinks for long-tail tokens and pools: audits Token-2022 authorities and extensions, detects wash-volume and backdoor risks, and builds unsigned Solana Memo transactions.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@geckoshield-mcp audit this Solana token for Token-2022 backdoors and rug risk"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
GeckoShield
Zero-Hallucination Solana Long-Tail Token & Pool Due-Diligence Agent, Cryptographic Citation Verifier, MCP Server, and Risk-Gated Solana Actions/Blinks
Mandatory Attribution: Data provided by CoinGecko | On-chain data provided by GeckoTerminal
Executive Summary & Problem Statement
Solana launches thousands of long-tail DEX tokens daily across Raydium, PumpSwap, Meteora, and Pump.fun. Both retail traders and autonomous AI agents routinely suffer preventable losses from three compounding failure modes:
LLM Metric Hallucination: General-purpose crypto agents invent or silently drift spot prices, pool liquidity reserves, 24-hour trading volumes, turnover ratios, and holder concentration percentages without verifiable source bindings.
Token-2022 Contract Backdoors: Modern long-tail Solana tokens overwhelmingly deploy on Token-2022 (
TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb) rather than legacy SPL Token (TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA). In our live Mainnet audit of 30 pools, 26 of 30 tokens used Token-2022. Even whenmintAuthorityandfreezeAuthorityare revoked, hidden Token-2022 extensions—such aspermanentDelegate(unilateral holder seizure/burn),transferHook(arbitrary sell-blocking logic), mutabletransferFeeConfig(post-launch tax escalation up to 100%),defaultAccountState=frozen, andnonTransferable—can rug buyers instantaneously.Wash-Volume & Honeypot Traps: Newly trending pools routinely fabricate multi-million-dollar 24h volume atop thin liquidity reserves (up to 113.085x 24h volume-to-liquidity turnover in our live Mainnet cohort) to manipulate trending feeds.
GeckoShield solves all three problems with a deterministic, zero-hallucination forensic pipeline delivered across three native interfaces:
Single-Screen Forensic Web Console (
web/): Institutional dark/light security terminal (100dvh, vanilla ES2020, Solflare Wallet Standard + zero-friction Read-Only Simulation Mode) featuring Long-Tail Pool Radar, Token Forensic Dossier, Hallucination Gate & MCP Lab, and Solana Blinks & Benchmarks.Model Context Protocol (MCP) Server & Agent Skill (
geckoshield-mcp+SKILL.md): Standard JSON-RPC 2.0 stdio server exposing 5 security tools for Claude Desktop, Claude Code, Cursor, Windsurf, and autonomous trading agents.Risk-Gated Solana Actions / Blinks v2 (
/actions.json,/api/actions/attest/{mint}): Refuses clean attestations with HTTP400(CRITICAL_RUG_ALERT) when lethal backdoors are detected, and builds verifiable unsigned Solana Legacy Transactions targeting the official SPL Memo Program (MemoSq4gqABAXKb96qnH8TysNcWxMyWCqXgDLGmfcHr) for permitted tokens.
For full mathematical scoring formulas, Mermaid data-flow diagrams, Token-2022 risk tables, and binary wire-format specifications, see docs/architecture.md.
Related MCP server: pump.fun MCP Server
Verified Live Mainnet Benchmark Scorecard
Every metric below is directly reproduced from docs/evidence/longtail-audit-benchmark.json (captured at 2026-12-03T11:38:57Z, Solana Mainnet Slot 476,957,067, SOL = $64.27, zero-key public_zero_key tier) and verified test/UI runs:
Evaluation Dimension | Verified Result | Ground-Truth Details |
Live Solana Mainnet Cohort | 30 pools audited |
|
Token Program Composition | 26 Token-2022 / 4 SPL | Single-batch |
Live Token-2022 Fee Flags | 2 live trending tokens flagged |
|
Live Wash-Turnover Anomalies | 8 anomalies ( | Led by |
Live Memo Grounding Integrity | 707 / 707 claims verified (100.0%) |
|
Adversarial Hallucination Gate | 50 / 50 caught (100.0% catch rate) |
|
Token-2022 & Authority Backdoor Suite | 25 / 25 detected (100.0% TPR) |
|
Solana Mainnet Memo Simulation (Benchmark) | PASS ( | Live |
Solana Mainnet Memo Simulation (Live UI Blink) | PASS ( | End-to-end Web Console Blink simulation verified at Slot |
Automated Offline Test Suite | 15 / 15 PASS |
|
Headless Browser Visual QA ( | 0 errors / 0 overflow | Verified across all 4 dark & light console views ( |
How CoinGecko API is Used
GeckoShield treats CoinGecko and GeckoTerminal telemetry as a cryptographically verifiable input layer rather than an unchecked prompt string.
1. Three-Tier Adaptive Client (Zero-Key Out of the Box)
src/geckoshield/coingecko_client.py implements an automatic 3-tier adapter that works immediately without requiring paid keys or credit cards while upgrading transparently when a key is configured in .env:
Tier | Trigger Environment Variable | Market Endpoint Base | Solana On-Chain DEX Base | Auth Header |
Tier 1 ( |
|
|
|
|
Tier 2 ( |
|
|
|
|
Tier 3 ( | (none required) |
|
| (none) |
2. Exact CoinGecko & GeckoTerminal Endpoints Consumed
Endpoint | Purpose in GeckoShield | Bound Provenance Citations |
| Live SOL market benchmark ( | Market envelope SHA-256 |
| Cross-market CoinGecko trending context for snapshot enrichment | Market envelope SHA-256 |
| Ingests live trending Solana long-tail pools (15 pools per cohort) with token metadata and DEX venue attribution |
|
| Ingests newly deployed Solana long-tail pools (15 pools per cohort) for early launch risk screening |
|
| Resolves the deepest liquidity pool as canonical pricing venue for any arbitrary Solana mint lookup |
|
| Retrieves 24-hour hourly OHLCV candles returned by | OHLCV envelope SHA-256 |
| Retrieves recent on-chain pool swap flow for trade-level inspection | Trades envelope SHA-256 |
3. Cryptographic Provenance ([CG-01..CG-10]) & Rate-Limit Resilience
Immutable SHA-256 Provenance: Every raw JSON response is canonicalized (
sort_keys=True, separators=(",", ":")) and hashed viaSHA-256. Each extracted metric—spot price ([CG-01]), reserve liquidity ([CG-02]), 24h volume ([CG-03]), 24h turnover ratio ([CG-04]), 24h price change ([CG-05]), 24h transaction count ([CG-06]), unique traders ([CG-07]), tx-per-unique-trader ratio ([CG-08]), pool age in hours ([CG-09]), and FDV ([CG-10])—is stored as a typedEvidenceRecordwith exact URL, UTC timestamp, and payload hash.Deterministic Hallucination Enforcement: CoinGecko metrics drive 4 of the 6 risk scoring dimensions (
liquidity_depth_risk,wash_volume_risk,pool_maturity_volatility_risk, and behavioral honeypot floors) and are audited line-by-line byverify_memo_grounding()before any report is cleared.Bounded Backoff + Verified Mainnet Snapshot Fallback: A thread-safe rate pacer (
0.35sminimum interval) and bounded HTTP429retry loop (honoringRetry-Afterwith capped exponential backoff) prevent upstream bursts. If public endpoints throttle during evaluation, GeckoShield transparently serves the verified recorded Mainnet snapshot (data/live_longtail_snapshot.json) while explicitly taggingdata_source: "recorded_mainnet_snapshot"and preserving originalpayload_sha256digests.
How Solana is Used
Solana is embedded across on-chain contract forensics, risk-gated Actions/Blinks v2, pure-Python transaction serialization, live RPC simulation, and browser wallet signing:
Single-Batch Mainnet
getMultipleAccounts(jsonParsed) Mint & Token-2022 Parser (src/geckoshield/solana_inspector.py):Audits all 30 radar mints in a single
getMultipleAccountsJSON-RPC call (chunk size up to 100), anchoring every finding to its exact Mainnet context slot (Slot 476,957,067in the benchmark cohort).Inspects owner program (
TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DAvs.TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb),mintAuthority,freezeAuthority, supply, decimals, and every Token-2022 extension (permanentDelegate,transferHook,transferFeeConfig,defaultAccountState,nonTransferable,mintCloseAuthority,pausableConfig, and benign metadata extensions).Live Mainnet Discoveries: Across 30 live pools (
26Token-2022,4SPL), GeckoShield flaggedTERMINUS(6aPXErchjfESVWejxNu4JWM4xdzCMSwooXtgZDrR4rtR) andSI(DEW9dSN6QpWyNthphCpMmAbZP1Q4cEKR9xQXAri98WDP) for running activetransferFeeConfig(100 bps/1.00%) while retaining a mutabletransferFeeConfigAuthoritycapable of raising transfer taxes up to100%post-launch.Strict RPC Honesty: When deep single-token audits call
getTokenLargestAccountsand public Solana Mainnet RPC returns HTTP429, GeckoShield recordsholder_concentration.status = "rpc_rate_limited"([SOL-11]) and intentionally withholds exact holder percentages instead of hallucinating estimates.
Risk-Gated Solana Actions & Blinks v2 (
src/geckoshield/solana_actions.py):Serves spec-compliant
GET /actions.json,OPTIONS/GET/POST /api/actions/attest/{mint}with mandatory CORS headers,X-Action-Version: 2.2, andX-Blockchain-Ids: solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp.Hard
CRITICAL_RUG_ALERTRefusal Gate: If a mint triggers a lethal backdoor (such aspermanentDelegate,defaultAccountState=frozen,transferFeeConfig > 1000 bps, activetransferHook,nonTransferable, or activefreezeAuthority),GETsetsdisabled: truewith grounded warning citations andPOSTrefuses transaction issuance with HTTP400(ActionBlockedError).
Pure-Python Solana Legacy Transaction Builder & Live Mainnet
simulateTransaction:For non-critical tokens,
build_memo_transaction_base64()serializes a spec-compliant unsigned Solana Legacy Transaction (Base58 codec +compact-u16short_vec framing) invoking the official SPL Memo Program (MemoSq4gqABAXKb96qnH8TysNcWxMyWCqXgDLGmfcHr) with a live finalized blockhash fromgetLatestBlockhash.Compact on-chain attestation payload format:
GeckoShield:v1|mint=<MINT>|tier=<TIER>|safety=<SCORE>|sha256=<16_HEX_DIGEST>|slot=<SLOT>Live Mainnet Simulation Proof:
Benchmark run on
CATE(Ai66LHZG9MCzg1WKdawwqduVAXpNDUuV8M3uyq5ppump,SAFE,91.8/100): PASS at Solana Mainnet Slot476,957,083,59,248 CUconsumed,err=null,396-character Base64 transaction.Interactive Web Console Blink simulation: PASS at Solana Mainnet Slot
476,960,081,60,870 CUconsumed,err=null.
Solflare Wallet Standard Integration (
web/app.js):Detects
window.solflare/window.solana.isSolflarein the browser console to connect a real Solflare wallet for Memo transaction signing, and automatically provides zero-friction Read-Only Simulation Mode using a public funded Mainnet signer key (sigVerify=false) so any evaluator can test full Blink generation and MainnetsimulateTransactionwithout installing a wallet extension.
Visual Walkthrough & Evidence Gallery
Web Security Console (1920x1080 Live Captures)
1. Long-Tail Pool Radar — Real-time trending & newly launched Solana pools ranked by 6-dimension risk score, Token-2022 badges, and wash-turnover ratios (ishoespeed 113.1x, Jellykit 92.6x, TERMINUS 62.0x), with prominent CoinGecko & GeckoTerminal attribution.

2. Token Forensic Dossier — Deep single-mint audit showing the SPL/Token-2022 extension & authority matrix (TERMINUS live transferFeeConfig 100 bps + mutable authority at Slot 476,957,067), 6-dimension risk breakdown, citation-highlighted Security Memo (100% Grounded), and SHA-256 Evidence Provenance Ledger (while /api/audit/{mint} and audit_solana_token also return 24h hourly OHLCV candles).

3. Hallucination Gate & MCP Lab — Interactive adversarial testing bench: inject spoofed liquidity, price, or authority assertions into a memo and watch the Citation Verification Gate intercept every ungrounded claim in real time, alongside a live MCP tool runner.

4. Solana Actions / Blinks & Benchmarks — Risk-gated Solana Blink card preview, live Mainnet simulateTransaction verification (Slot 476,960,081, 60,870 CU, err=null) against MemoSq4gqABAXKb96qnH8TysNcWxMyWCqXgDLGmfcHr, and cohort benchmark distributions.

Quantitative Mainnet Benchmark Charts
5. Live Solana Mainnet Long-Tail Risk Landscape (30 Pools @ Slot 476,957,067) — Liquidity reserve vs. 24h wash-turnover ratio scatter and risk-tier breakdown highlighting extreme turnover outliers (ishoespeed 113.085x, Jellykit 92.583x) and live mutable transferFeeConfig tokens (TERMINUS, SI).

6. Hallucination Grounding & Token-2022 Security Scorecard — 50/50 (100%) adversarial hallucination interception across 7 attack categories with 0% clean false positives, paired with 25/25 (100% TPR) Token-2022/authority backdoor detection and 0/5 (0% FPR) benign controls.

Quickstart & Setup Steps
Prerequisites
Python 3.10+ (
python --version)
1. Clone & Install
git clone <YOUR_REPO_URL>
cd long-tail-coingecko-solana
pip install -e ".[dev]"2. Configure Environment (Optional — Runs Zero-Key Out of the Box)
Copy .env.example to .env if you wish to supply a CoinGecko Analyst/Pro or Demo API key, or a dedicated Solana RPC URL:
# macOS / Linux
cp .env.example .env
# Windows PowerShell
Copy-Item .env.example .envSecurity Notice: NEVER commit
.envor any real CoinGecko / OpenAI / RPC API keys to version control..envis already excluded in.gitignore. GeckoShield runs cleanly out of the box with zero API keys via public CoinGecko v3, GeckoTerminal v2, public Solana Mainnet RPC, and the verified recorded Mainnet snapshot fallback.
3. Run the Web Console & FastAPI Server
Option A (recommended explicit port 8080):
uvicorn geckoshield.api:app --host 127.0.0.1 --port 8080Then open http://127.0.0.1:8080 (interactive OpenAPI docs at http://127.0.0.1:8080/docs, Solana Actions discovery at http://127.0.0.1:8080/actions.json).
Option B (installed CLI entrypoint; defaults to http://127.0.0.1:8000, override with GECKOSHIELD_PORT=8080):
geckoshield-api4. Run the MCP Server (Claude Desktop / Claude Code / Cursor)
Launch directly over JSON-RPC 2.0 stdio:
geckoshield-mcp
# or:
python -m geckoshield.mcp_serverRegister in your Claude Desktop, Claude Code, or Cursor MCP configuration (claude_desktop_config.json / .cursor/mcp.json):
{
"mcpServers": {
"geckoshield": {
"command": "geckoshield-mcp",
"args": []
}
}
}Pair with the repository's SKILL.md agent skill so LLM agents strictly invoke the 5 exposed tools (scan_solana_long_tail_pools, audit_solana_token, verify_memo_grounding, detect_wash_volume_anomalies, build_audit_attestation_blink) and enforce zero-hallucination citation rules.
5. Re-Run the Live Mainnet Benchmark & Charts
python benchmarks/run_longtail_audit_benchmark.pyThis fetches live Solana trending + new pools, executes single-batch Mainnet mint inspection, runs the 50-case adversarial hallucination suite and 30-case Token-2022 security suite, executes live Mainnet Memo simulateTransaction, and regenerates data/live_longtail_snapshot.json, docs/evidence/longtail-audit-benchmark.json, docs/evidence/longtail-audit-benchmark.csv, and both 1600x900 benchmark PNG charts.
6. Run the Offline Deterministic Test Suite
pytestExpected output: 15 passed (100% offline deterministic verification with zero external network dependencies).
Repository Layout
long-tail-coingecko-solana/
├── README.md # Project overview, API/Solana usage, gallery & quickstart
├── SKILL.md # Agent skill specification for Claude Code / Cursor / MCP
├── LICENSE # MIT License
├── pyproject.toml # Package metadata, dependencies & CLI entrypoints
├── .env.example # Safe environment template (no real keys)
├── src/geckoshield/
│ ├── coingecko_client.py # 3-tier CoinGecko/GeckoTerminal client + SHA-256 + 429 fallback
│ ├── solana_inspector.py # Batched Mainnet SPL/Token-2022 parser + RPC simulation
│ ├── forensic_agent.py # 6-dimension risk engine, floor gates & grounded memo builder
│ ├── citation_verifier.py # Deterministic Hallucination Audit Gate (numeric + boolean facts)
│ ├── solana_actions.py # Solana Actions/Blinks v2 + pure-Python SPL Memo TX builder
│ ├── mcp_server.py # JSON-RPC 2.0 stdio MCP server exposing 5 security tools
│ └── api.py # FastAPI server hosting REST, MCP bridge, Blinks & Web UI
├── web/
│ ├── index.html # Single-screen 4-view security console markup
│ ├── styles.css # Institutional dark/light design tokens & layout
│ └── app.js # Vanilla ES2020 console logic & Solflare Wallet Standard
├── benchmarks/
│ └── run_longtail_audit_benchmark.py # Live Mainnet cohort, adversarial & Token-2022 benchmark runner
├── tests/
│ └── test_geckoshield.py # 15-case offline deterministic pytest suite
├── data/
│ └── live_longtail_snapshot.json # Verified recorded Mainnet snapshot (Slot 476,957,067)
├── demo/screenshots/ # Live 1920x1080 Web Console screenshots
└── docs/
├── architecture.md # System diagrams, risk math, Token-2022 matrix & wire spec
├── superteam-submission-draft.md # Superteam Earn copy-paste submission package
└── evidence/ # Benchmark JSON, CSV, and 1600x900 quantitative PNG chartsLicense & Attribution
Released under the MIT License. See LICENSE for full terms.
Available Tools
5 toolsaudit_solana_tokenA
Run a deep zero-hallucination forensic audit on any Solana SPL or Token-2022 mint: inspects mintAuthority, freezeAuthority, dangerous Token-2022 extensions (permanentDelegate, transferHook, transferFeeConfig, defaultAccountState, nonTransferable), CoinGecko/GeckoTerminal DEX telemetry, 6-dimension risk scores, SHA-256 EvidenceRecord ledger, and a citation-verified Security Memo.
Inputs: mint (required), refresh, include_ohlcv, include_holders.
build_audit_attestation_blinkA
Generate Solana Actions/Blinks v2 metadata for a token audit attestation and, when a Base58 signer account is supplied and the token is not CRITICAL_RUG_ALERT, construct an unsigned Base64 Solana Legacy Transaction invoking the SPL Memo Program with the GeckoShield SHA-256 digest.
Inputs: mint (required), account, base_url.
detect_wash_volume_anomaliesC
Rank Solana long-tail pools exhibiting abnormal 24h volume-to-liquidity turnover ratios, repeated bot tx-per-trader bursts, or asymmetric buy/sell honeypot imbalances.
Inputs: limit, min_turnover_ratio.
scan_solana_long_tail_poolsB
Scan live Solana trending and newly launched long-tail DEX pools from CoinGecko/GeckoTerminal, batch-inspect their SPL/Token-2022 mints on Solana Mainnet RPC, and rank them by 6-dimension risk and wash-volume anomalies.
Inputs: limit, refresh, category.
verify_memo_groundingA
Run GeckoShield's Hallucination Audit Gate on a draft security memo against the token's immutable EvidenceRecord ledger. Flags fabricated numeric values, missing citations, unknown citation IDs, and contradicted on-chain authority/extension claims.
Inputs: mint (required), memo_text (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 5 tools
Each tool has a fairly distinct action (audit a mint, scan trending pools, verify a memo, detect wash volume, build a Blink). However, scan_solana_long_tail_pools explicitly says it ranks pools by risk and wash-volume anomalies, which overlaps with detect_wash_volume_anomalies, and the boundary between audit_solana_token's memo output and verify_memo_grounding is only implied.
All five tools use a clean snake_case verb_noun pattern (audit_, scan_, verify_, detect_, build_) with domain nouns appended as qualifiers. The convention is predictable and readable across the whole set.
Five tools is well-scoped for a Solana token-audit service; each tool covers a distinct stage of the workflow (audit, discovery, validation, anomaly detection, attestation) and carries substantial functionality. No padding or filler tools are present.
The pipeline covers audit -> scan -> verify -> attest, but there is no tool to retrieve a previously generated EvidenceRecord, list past audits/attestations, or fetch a memo by digest — verify_memo_grounding depends on a ledger the agent cannot re-fetch in a stateless session. There is also no way to inspect an arbitrary wallet/holder distribution, which limits deeper forensic coverage.
Maintenance
Related MCP Connectors
Solana token safety for AI agents — rug-pull, honeypot & Token-2022 trap detection before you buy.
Pre-trade token safety checks for AI agents on Solana and Base. x402 USDC per call, no key.
DEFADE scores the rug pull risk of any token on Solana, Ethereum, Base, BSC, Robinhood, Arc, Hyperliquid, Monad and Elysium, and shows the evidence behind it: bundles and snipers at launch, fresh wallets, insider and funding networks, the dev wallet, holders and liquidity. 15 read-only tools let Claude, ChatGPT or any MCP client run real DEFADE scans inside the conversation: a full token scan, the rug pull probability (0 to 100), holders, whales, liquidity, launch bundles, snipers, wallet links, the dev wallet and more. Connect with a DEFADE API key (https://defade.org/developers), or with the connector key included in the Silver and Gold plans. Every tool is read-only: no wallet, no keys, no transactions.
Pre-trade safety + wallets: Solana/EVM token risk, honeypots, counterparties, balances, txs, CVEs.
Related MCP Servers
- AlicenseBqualityDmaintenance19 tools for crypto token risk intelligence. Detect rug pulls, honeypots, and scams before your agent transacts. Works with Claude Desktop, Cursor, Windsurf, and any MCP-compatible client.191MIT
- AlicenseBqualityBmaintenanceGives Claude, Cursor and other AI assistants six read-only Solana memecoin research tools: token info, 0-100 rug risk checks, chain-verified top holders, token screening, whale trades and wallet trade history. Runs with no dependencies or API keys, so assistants can answer questions like whether a token is a rug or which whales are dumping today.6MIT
- AlicenseNot gradedqualityBmaintenanceEnables Claude Desktop, Cursor, Windsurf, OpenCode, and autonomous AI agents to run Web3 security checks, detect transaction and token risks, scan DeFi yields, build vault-recovery and cross-chain sweep calldata, and create/verify non-custodial USDT/USDC invoices.MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to scan Solana long-tail pools, audit SPL/Token-2022 mint authorities, evaluate pre-trade swap guard verdicts, and run deterministic rug drills through four stdio tools grounded in CoinGecko on-chain data and live Solana RPC state.MIT