Skip to main content
Glama
geckosentinel-mcp

geckosentinel-mcp

by lingxiansen2

GeckoSentinel — Verifiable Solana Risk, Due-Diligence & Pre-Trade Guard AI Agent + MCP Server

Built for the Superteam Earn × CoinGecko "Long Tail" Hackathon (Track 2: Long Tail: AI Agents with Coingecko Data).

Live App: https://geckosentinel-solana.vercel.app
GitHub Repository: https://github.com/lingxiansen2/geckosentinel-solana
MCP HTTP Endpoint: POST https://geckosentinel-solana.vercel.app/api/mcp

GeckoSentinel is an autonomous, zero-hallucination Solana risk and execution agent—available as a web research desk, a standalone Model Context Protocol (MCP) server (geckosentinel-mcp), and a CLI (geckosentinel). Instead of prompting an LLM to guess token fundamentals, every metric, policy verdict, and risk memo generated by GeckoSentinel is deterministically computed from live CoinGecko API, Solana Mainnet RPC, and Jupiter Swap v1 responses and cryptographically bound to clickable [E#] SHA-256 Evidence Receipts.


Screenshots

Token Due-Diligence & Evidence Drawer

Autonomous New & Trending Pool Scout

Token Due-Diligence & Evidence Drawer

Autonomous Pool Scout

Pre-Trade Price-Check Guard & MCP Server

Agent Live Execution Trace

Pre-Trade Price-Check Guard & MCP

Agent Live Execution Trace


Related MCP server: SafePulse AI

Core Capabilities

  1. Token Due-Diligence & Risk Memo (Run Agent DD)

    • Accepts any Solana ticker (JUP, BONK, WIF, RAY, PYTH, FARTCOIN, etc.) or arbitrary SPL / Token-2022 mint address.

    • Executes a 7-step autonomous pipeline (resolve_solana_token → fetch_market_and_pools → fetch_security_and_holders → verify_solana_mint_rpc → inspect_orderflow_and_peers → simulate_pretrade_jupiter → synthesize_grounded_memo).

    • Outputs a 0–100 Safety Score, PASS / WATCH / REJECT verdict, 100% Grounding Integrity check, multi-DEX price dispersion (bps), Top-10 holder concentration, category peer comparison, and exportable Markdown Memo + Evidence JSON.

    • Every claim includes clickable [E#] badges opening the Obsidian Evidence Provenance Drawer with exact API endpoint, latency, timestamp, SHA-256 payload digest, and verified JSON extract.

  2. Autonomous Pool Scout (New + Trending Sentinel)

    • Scans live Solana trending_pools and new_pools from CoinGecko, fetches security metadata per token, and audits all mints in 1 batched Solana Mainnet RPC getMultipleAccounts call.

    • Applies configurable hard risk policies (minTvlUsd, maxTop10Pct, minGtScore, rejectMintAuthority, rejectFreezeAuthority, Token-2022 permanentDelegate, and zero-sell honeypot detection) to emit PASS, WATCH, or REJECT verdicts.

    • One-click Telegram Markdown and Discord Webhook Embed briefing exporter + "Deep DD →" drill-down.

  3. Pre-Trade Price-Check Guard & Real MCP Server

    • Benchmarks live Jupiter Swap v1 quotes against CoinGecko on-chain spot prices, pool TVL depth, and Solana Mainnet RPC mint/freeze authorities, returning ALLOW, WARN, or BLOCK (with actionable 1% TVL safe clip sizing and a machine-readable Policy Receipt JSON).

    • Exposes a real Model Context Protocol (MCP) server over both stdio (dist/mcp/server.mjs) and stateless HTTP JSON-RPC (POST /api/mcp) with an interactive in-browser MCP Playground.

  4. Agent Live Execution Trace

    • Records every autonomous workflow run (runId, total latency, per-step tool inputs/outputs, provider badges, and linked [E#] receipts) and provides a one-click "Run Full Autonomous Cycle" (Scout → Auto-Select Top Pool → Deep DD → Pre-Trade Guard).


Local Setup & Quickstart

GeckoSentinel runs out-of-the-box with zero API keys (automatically falling back to CoinGecko Public API + GeckoTerminal v2 on-chain endpoints) and automatically upgrades to Analyst Pro (500 RPM) when COINGECKO_API_KEY is provided in .env.local.

Prerequisites

  • Node.js >= 20 (tested on Node v24.15.0)

  • npm >= 10

Installation & Running Locally

# 1. Clone the repository
git clone https://github.com/lingxiansen2/geckosentinel-solana.git
cd geckosentinel-solana

# 2. Optional: copy env template (leave COINGECKO_API_KEY blank for zero-key public mode)
cp .env.example .env.local

# 3. Install dependencies
npm install --legacy-peer-deps

# 4. Run unit tests (Vitest)
npm test

# 5. Build the standalone MCP Server & CLI + Next.js app
npm run build:mcp
npm run build

# 6. Start the web app
npm run dev

Open http://localhost:3000. Every tab runs a live workflow automatically on initial view.


MCP Server & CLI Usage

GeckoSentinel ships 4 MCP tools built with @modelcontextprotocol/sdk and zod:

Tool Name

Purpose

solana_token_due_diligence

Full 7-step grounded token due-diligence report + SHA-256 receipts

solana_scout_pools

Live Solana new/trending pool scan + batched RPC mint audit (PASS/WATCH/REJECT)

solana_pretrade_price_guard

CoinGecko vs Jupiter v1 quote deviation & authority guard (ALLOW/WARN/BLOCK)

solana_verify_evidence

Cross-verify CoinGecko security flags against live Solana RPC getAccountInfo

Connect to Claude Code, Cursor, or Claude Desktop

First compile the standalone server bundle:

npm run build:mcp

Claude Code:

claude mcp add geckosentinel -- node /absolute/path/to/coingecko-agent/dist/mcp/server.mjs

Cursor (.cursor/mcp.json) / Claude Desktop (claude_desktop_config.json):

{
  "mcpServers": {
    "geckosentinel": {
      "command": "node",
      "args": ["/absolute/path/to/coingecko-agent/dist/mcp/server.mjs"],
      "env": {
        "COINGECKO_API_PLAN": "pro"
      }
    }
  }
}

Stateless HTTP JSON-RPC (POST /api/mcp):

curl -X POST https://geckosentinel-solana.vercel.app/api/mcp \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"solana_pretrade_price_guard","arguments":{"query":"JUP","amountUsd":1000}}}'

CLI:

node dist/cli.mjs dd JUP
node dist/cli.mjs scout --mode mixed --limit 8
node dist/cli.mjs guard JUP --usd 25000 --max-dev-bps 100
node dist/cli.mjs verify JUPyiwrYJFskUPiHa7hkeR8VUtAeFoSYbKedZNsDvCN

How CoinGecko API is Used

All market intelligence, DEX pool discovery, holder distribution, security metadata, trade orderflow, and sector peer benchmarks are sourced from CoinGecko (src/lib/coingecko.ts), with "Data by CoinGecko API" (https://www.coingecko.com/en/api) displayed in the global header, Evidence Provenance Drawer, exported briefings, and footer (src/components/CoinGeckoAttribution.tsx).

Capability

CoinGecko Endpoint (Analyst Pro / Keyless Fallback)

Grounded Output

Token Resolution

GET /onchain/search/pools?network=solana

Resolves tickers to highest-liquidity SPL mint

Spot Price & Market Metrics

GET /onchain/networks/solana/tokens/{mint}?include=top_pools

USD price, FDV, MCap, TVL, 24h volume

Cross-DEX Dispersion

GET /onchain/networks/solana/tokens/{mint}/pools

Raydium, Orca, Meteora, PumpSwap spread (bps)

Security & Holder Breakdown

GET /onchain/networks/solana/tokens/{mint}/info

GT Score + sub-scores, holder count, Top-10 %

Top Holder Ledger (Pro)

GET /onchain/networks/solana/tokens/{mint}/top_holders

Top wallet addresses & percentage shares

Swap Orderflow

GET /onchain/networks/solana/tokens/{mint}/trades

Buy/sell ratio, whale trades (>=$5K), Solscan tx

Autonomous Pool Scout

GET /onchain/networks/solana/trending_pools & new_pools

Real-time Solana DEX candidate feeds

Pre-Trade Benchmark

GET /onchain/simple/networks/solana/token_price/{mints}

Mid-price oracle check against Jupiter quotes

Sector Peers

GET /coins/solana/contract/{mint} & /coins/markets

Category-matched Solana peer comparison


How Solana is Used

  1. Solana Mainnet JSON-RPC Mint Inspection (src/lib/solana.ts):

    • Calls getAccountInfo (jsonParsed) during Due-Diligence and Pre-Trade Guard runs, and batched getMultipleAccounts during Autonomous Pool Scout scans.

    • Verifies program ownership (SPL Token TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA vs Token-2022 TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb), live mintAuthority / freezeAuthority revocation status, and dangerous Token-2022 extensions such as permanentDelegate.

  2. Jupiter Swap v1 Live Routing (https://lite-api.jup.ag/swap/v1/quote):

    • Computes executable swap prices, price impact (%), and DEX route hops for $1,000 Due-Diligence sanity checks and arbitrary trade sizes in the Pre-Trade Guard, cleanly flagging NO_JUPITER_ROUTE or excess price deviation as BLOCK.


Grounding & Verification Architecture

  • Zero-Hallucination Policy: No LLM free-text generation is allowed to invent statistics. Every CitedClaim in src/lib/agent/policies.ts binds explicitly to one or more EvidenceRecord IDs (E1..En), verified by computeGroundingIntegrity().

  • Cryptographic Payload Receipts (src/lib/http.ts): Every upstream HTTP response is SHA-256 hashed (sha256 hex digest) and sanitized against secret leakage before being returned to the UI or MCP client.


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
      Enables live Solana Token-2022 forensic audits, Jupiter v6 quote/swap rescue, and Jito bundleOnly-protected safe-swap/safe-exit transaction building for AI agents and trading bots.
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables auditing Solana and EVM tokens and smart contracts for honeypots, mint/freeze authorities, proxy upgradeability, swap taxes, whale concentration, and liquidity depth, plus querying an autonomous threat radar for rug-pull and wash-volume signals.
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables 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
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables agents and hosts to pre-check proposed Solana swaps by pricing both token legs, validating pool reserves and observation freshness, and returning a reasoned allow/block verdict with exact evidence. It also produces citation-backed token due-diligence memos, verifies cited fields, screens new pools, and compares quote batches.
      MIT