GeckoGuard MCP
Allows checking proposed Solana DEX swaps and auditing SPL tokens against CoinGecko fair prices and Solana DEX pool telemetry; models liquidity depth and price impact, evaluates SPL mint/freeze authorities and pool age, and can build/sign SPL Memo v2 attestations on Solana Devnet via Phantom/Solflare.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
GeckoGuard MCP
Grounded Pre-Trade Risk and Rug-Guardrail MCP Server + Trading-Desk Console for Solana Agents
Live Web Console: https://alphonshhhomenicmtu.github.io/geckoguard-solana-mcp/
Demo Video (1080p): https://www.youtube.com/watch?v=RlZ3XNbAcB0
Repository: https://github.com/alphonshhhomenicmtu/geckoguard-solana-mcp
Data Attribution: Data provided by CoinGecko
Autonomous Solana trading agents fail in predictable ways: they execute stale or poisoned DEX quotes far from fair market value, route large clips into thin pools with double-digit slippage, or buy freshly launched micro-caps with active freeze authorities and fabricated wash volume.
GeckoGuard MCP sits between an agent's swap router and transaction signing. It cross-checks every proposed Solana trade against live CoinGecko fair prices and Solana DEX pool telemetry, enforces fail-closed policy rules (ALLOW / WARN / DENY), attaches SHA-256 citation receipts to every number it returns, and optionally anchors the verdict digest onto Solana Devnet via SPL Memo v2.
Screenshots
1. Live Pre-Trade Guardrail Console (JUP ALLOW)

2. Adversarial Exploit Drill: Spoofed DEX Quote (+11.4% -> DENY)

3. Thin-Pool Rug Drill, Verifiable CoinGecko Citations, and MCP JSON-RPC Output

Related MCP server: SolGuard MCP
How CoinGecko API is used
GeckoGuard runs live out of the box with zero API key required, and upgrades automatically when COINGECKO_API_KEY is provided in .env (or entered in memory in the web console):
Mode | Spot Fair-Price Endpoint | Solana Onchain Pool & Metadata Endpoints | Auth Header |
Public Zero-Key (Default) |
|
| None |
CoinGecko Demo Key |
|
|
|
CoinGecko Analyst / Pro Key |
|
|
|
Engineering details inside src/coingecko-client.ts:
SHA-256 Citation Receipts: Every upstream response is canonically serialized and hashed (
payloadSha256) alongside the secret-sanitized endpoint URL, HTTP status, UTC timestamp, and exact extracted fields.Rate-Limit Resilience: Concurrent requests for the same mint coalesce in flight, responses cache in memory for 30 seconds, and HTTP 429/5xx errors retry with exponential backoff respecting
Retry-After.Honest Provenance: If public endpoints rate-limit during an interactive session, curated presets can fall back to deterministic snapshots explicitly tagged
offline-fixturein both UI and JSON receipts. Strict server workflows can disable fallback (allowFixtureFallback: false) to enforce pure fail-closed behavior.
How Solana is used
Strict 32-Byte Base58 Mint & Signer Validation: Every input address is decoded from Base58 and verified to be an exact 32-byte Solana Ed25519 public key before any upstream API call is made (
src/validation.ts).Multi-DEX Solana Pool Depth & Slippage Modeling: Parses live Solana AMM pools across Raydium, Meteora, Orca, and PumpSwap, computes liquidity-weighted DEX VWAP, measures per-venue basis-point spread against CoinGecko global fair price, simulates constant-product AMM price impact across clip tiers (
$1k,$10k,$50k,$250k), and computes the maximum safe single-clip size.SPL Token Security Signals: Evaluates GeckoTerminal trust scores (
gt_score), pool creation age, buy/sell orderflow skew, volume-to-liquidity turnover, and mutable SPL mint/freeze authority status when indexed.Phantom & Solflare Wallet Connect + Solana Devnet Memo Attestation: The web console connects directly to Phantom or Solflare browser wallets, reads live Devnet SOL balances from
https://api.devnet.solana.com, and signs real SPL Memo v2 transactions (MemoSq4gqABAXKb96qnH8TysNcWxMyWCqXgDLGmfcHr) that permanently anchor the compact guardrail verdict JSON and SHA-256 citation digest on Solana Devnet (guaranteed<= 566bytes).
MCP Tools Exposed (src/mcp-server.ts)
Tool Name | Purpose |
| Checks a proposed DEX swap price and USD size against CoinGecko fair value, quote freshness, and top pool reserves. Returns |
| Runs standalone token due diligence for any Solana SPL mint: liquidity floor, CoinGecko listing status, wash-volume anomalies, 24h volatility, pool age, GT score, and mutable authority checks. |
| Simulates constant-product price impact across configurable USD clip tiers and returns the recommended maximum safe single-clip size. |
| Compares CoinGecko spot fair price against every top Solana DEX pool in basis points to surface stale pools or venue dislocation. |
| Runs a guardrail audit and packages the verdict + SHA-256 report digest into a verified |
The server also exposes the read-only MCP resource geckoguard://policy/default so agents can inspect active policy thresholds before proposing trades.
Pre-Trade Guardrail Policy Matrix
Rule Code | Severity | Default Trigger Condition |
|
| Missing reference fair price or |
|
| Quote timestamp older than |
|
| ` |
|
| ` |
|
| Primary Solana pool reserve |
|
| Primary Solana pool reserve |
|
| Trade size |
|
| Trade size |
|
| 24h volume/liquidity |
|
| 24h absolute price move |
|
| Mint exists on Solana DEX pools but is not indexed in CoinGecko spot catalog |
|
| GeckoTerminal trust score |
|
| SPL mint authority or freeze authority remains active |
|
| Primary DEX pool created |
Local Setup & Commands
Prerequisites
Node.js
>= 20and npm>= 10No API key is required for default public mode
1. Install and Build
git clone https://github.com/alphonshhhomenicmtu/geckoguard-solana-mcp.git
cd geckoguard-solana-mcp
npm install
cp .env.example .env
npm run build2. Run the Live Web Console Locally
npm run dev:web3. Run the CLI Audit Tool
# Live audit of JUP using public CoinGecko + GeckoTerminal endpoints
npm run audit -- audit JUP
# Simulate a spoofed DEX swap quote (+13% above fair value -> exits with code 2 / DENY)
npm run audit -- verify-swap --mint JUP --quoted-price 0.21 --trade-size 15000 --offline
# Inspect multi-clip liquidity depth and safe single-clip sizing
npm run audit -- liquidity SOL --sizes 5000,25000,100000 --offline
# Generate a compact Solana Devnet SPL Memo v2 attestation payload
npm run audit -- memo SOL --offline4. Connect to Claude Desktop, Cursor, or Any MCP Client
Start the stdio MCP server directly:
npm run mcpOr copy examples/mcp-client-config.json into your MCP host configuration:
{
"mcpServers": {
"geckoguard-solana": {
"command": "npx",
"args": ["-y", "tsx", "./src/mcp-server.ts"],
"env": {
"COINGECKO_API_TIER": "public",
"COINGECKO_API_KEY": "${COINGECKO_API_KEY}"
}
}
}
}Set COINGECKO_API_TIER=pro and export COINGECKO_API_KEY in your shell environment to upgrade to CoinGecko Analyst/Pro onchain endpoints without storing keys in any config file.
Verification & Security
Automated Test Suite:
npm testexecutes 76 Vitest unit, integration, adversarial, CLI, and live in-memory MCP JSON-RPC tests (100% PASS).Type Safety:
npm run typecheckchecks both Node MCP server (tsconfig.json) and browser bundle (tsconfig.web.json) understrict: true.Zero Leaked Secrets: Verified with
gitleaks detect --source . --no-git --redact(0 leaks), runtime secret redaction on all error paths, and credential-stripping URL sanitization on every citation receipt.
Attribution & License
Market prices, market capitalization, 24h volume, and Solana DEX pool telemetry are powered by CoinGecko and GeckoTerminal APIs.
Data provided by CoinGecko.
Licensed under the MIT License.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Pre-trade risk gating and verifiable decision evidence for AI trading agents. Oracle-backed price/safety checks across Base, Solana, Hyperliquid and BNB, plus signed receipts and portable evidence bundles for any agent action.
Pre-sign Solana tx guard for agents: ALLOW/WARN/BLOCK verdict, x402 USDC pay-per-call.
Pre-trade token safety checks for AI agents on Solana and Base. x402 USDC per call, no key.
Pre-trade risk verdicts (PASS/CAUTION/DANGER/BLOCK) for onchain trades. Paid per call via x402.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables Solana AI agents and treasury operators to run pre-trade swap safety checks, citation-grounded token due diligence, multisig treasury policy audits, and new-pool screening through MCP tools backed by CoinGecko data and Solana RPC. It returns deterministic ALLOW/WARN/BLOCK decisions and evidence-grounded reports with SHA-256 receipts.MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI agents and MCP clients to screen Solana long-tail trades through deterministic fail-closed policy checks, block unsafe or prompt-injected swaps, compute safe trade limits, run red-team probes, and commit and verify decisions in a SHA-256 hash-chained audit ledger using CoinGecko and Solana RPC data.MIT
- AlicenseNot gradedqualityBmaintenanceEnables MCP-capable agents to compare Jupiter swap quotes against CoinGecko market prices and receive ALLOW, WARN, or BLOCK verdicts with supporting figures and endpoints. It also supports preparing unsigned guarded swap transactions only when checks pass and the requested wallet matches.MIT
- AlicenseNot gradedqualityBmaintenanceEnables 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