TailGuard MCP Server
Provides live read-only Solana Mainnet JSON-RPC inspection of SPL and Token-2022 mints, including authority and extension checks used for pre-trade risk verdicts.
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.
TailGuard — Autonomous Solana Long-Tail Risk Scout, Token-2022 Guard & MCP Server

On-chain data provided by CoinGecko.
Built for the CoinGecko API × Superteam "Long Tail" Solana Hackathon (AI Agents with CoinGecko Data track).
TailGuard fuses both core autonomous-agent safety problems on Solana into one deterministic, zero-mainnet-spend security product:
Autonomous Long-Tail Pool Risk Scout (
tailguard scan) — scans CoinGecko Solana trending & newly created pools across PumpSwap, Meteora, Raydium, and Orca, cross-checking every mint live on Solana Mainnet RPC.Pre-Trade Execution Guard (
tailguard guard+ Native 4-Tool MCP Servertailguard mcp+ Solana Blink/api/actions/guard) — computes deterministicALLOW|WARN|BLOCKpolicy verdicts before an AI agent signs a Solana swap.
Why TailGuard?
Autonomous Solana trading agents fail on long-tail pools in six repeatable ways: honeypot zero-sell traps, active SPL/Token-2022 rug authorities (permanentDelegate, predatory transfer fees, transferHook), extreme whale concentration, router bad-fill quote manipulation (> 800 bps), resurrected dead pools with collapsed historical liquidity, and lookalike ticker/mint spoofs.
TailGuard answers the core judging question — "Does it act reliably on its own, and are its answers grounded in data?" — with 100% deterministic policy rules grounded in live CoinGecko Onchain telemetry and live read-only Solana RPC state, never hallucinated LLM intuition.
Related MCP server: Cabal-Hunter
Mission Control Screenshots
On-chain data provided by CoinGecko.
1. Live CoinGecko Solana Pools Scanner & Real Mainnet Token-2022 Detection

2. Live Solana Mainnet Token-2022 Extension Inspector (PYUSD) & Pre-Trade Swap Guard (V4 Bad-Fill BLOCK)

3. 6-Vector Adversarial Rug & Bad-Fill Drill (6/6 BLOCKED, 100/100) + Solana Actions/Blinks & MCP

Quickstart (Clone → Install → Verify → Run in 30 Seconds)
Requirements: Node.js >= 20 (tested on Node 22.21.0). Zero external runtime npm dependencies.
git clone https://github.com/xgbtxy/tailguard.git
cd tailguard
npm install
cp .env.example .env
# 1. Type-check, build, and run all 31 deterministic unit/integration tests
npm run typecheck
npm run build
npm test
# 2. Run the 6-Vector Adversarial Rug & Bad-Fill Drill (6/6 BLOCKED, 100/100)
npm run drill
# 3. Live keyless CoinGecko Solana scan + live Solana Mainnet Token-2022 inspection ($0 spend)
# On proxied Windows hosts running Node 22, set NODE_USE_ENV_PROXY=1
npm run cli -- scan --live --limit 6
npm run cli -- inspect 2b1kV6DkPAnxd5ixfnxCpjxmKwqjjaYmCZfHsFu24GXo --live
# 4. Launch Mission Control Web UI + REST API + Solana Actions/Blinks server
npm run serve
# Open http://127.0.0.1:3088 (switch between Deterministic Fixture & Live CoinGecko + Solana RPC)Environment Configuration (.env.example)
Never commit .env or real API keys to git. TailGuard works out-of-the-box with zero API key (live keyless CoinGecko/GeckoTerminal mode + offline deterministic fixtures) and unlocks Pro-tier /top_holders automatically when COINGECKO_API_KEY is provided:
COINGECKO_API_KEY=
COINGECKO_API_TIER=pro # pro (pro-api.coingecko.com) | demo (api.coingecko.com)
COINGECKO_MODE=fixture # fixture (offline deterministic) | live (real CoinGecko + Solana RPC)
SOLANA_RPC_URL=https://api.mainnet-beta.solana.com
PORT=3088How CoinGecko API Is Used
On-chain data provided by CoinGecko.
src/coingecko/client.ts implements a resilient 3-tier Onchain Solana client:
Analyst / Pro Tier (
pro-api.coingecko.com/api/v3/onchain) viax-cg-pro-api-keywhenCOINGECKO_API_KEYandCOINGECKO_API_TIER=proare set — unlocks/tokens/{mint}/top_holderswhale concentration checks.Demo / Keyless Public Tier (
api.coingecko.com/api/v3/onchain→api.geckoterminal.com/api/v2fallback) — works live immediately for judges without needing a paid key.Deterministic Offline Fixture Tier (
fixture) — guarantees 100% reproducible tests, demos, and air-gapped evaluation on network timeouts (AbortSignal.timeout(15000)).
CoinGecko Endpoint | Purpose in TailGuard |
| Live trending long-tail Solana pool discovery ( |
| Freshly launched Solana DEX pool monitoring ( |
| Independent CoinGecko USD reference spot price, FDV, launchpad graduation state, and deepest pool selection |
| Native |
| Historical numeric 6-tuple OHLCV drawdown calculation detecting survivorship/dead-pool drains |
| Non-LP Top-10 whale concentration verification ( |
Fail-Closed Secret Hygiene: redactCoinGeckoHeaders() and redactSecretsInText() strip x-cg-pro-api-key, x-cg-demo-api-key, Authorization, and CG-... tokens from every log line, error message, API response, and MCP payload.
How Solana Is Used ($0 Mainnet Spend, Zero Private Keys)
Live Read-Only SPL & Token-2022 Inspector (
src/solana/inspector.ts):Calls Solana Mainnet JSON-RPC
getAccountInfo(mint, { encoding: "jsonParsed", commitment: "confirmed" })directly with zero private keys and$0gas.Distinguishes classic
spl-token(Tokenkeg...) vsspl-token-2022(TokenzQd...) and decodes security-critical Token-2022 extensions:permanentDelegate(holder wallet clawback/burn risk)transferFeeConfig(transferFeeBasisPoints— blocks predatory>= 500 bpsfees)transferHook(external program execution on transfer)mintCloseAuthorityconfidentialTransferMint/confidentialTransferFeeConfigmetadataPointer&tokenMetadata
Distinguishes regulated institutional issuers (e.g.,
PYUSD,USDC) from anonymous long-tail rug traps.
Solana Actions / Blinks v2.2 Pre-Flight Guard (
GET /actions.json,GET/POST /api/actions/guard):Standards-compliant CORS +
X-Action-Version: 2.2+X-Blockchain-Ids: solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdpendpoints allowing any Solana wallet/Blink client to run a zero-gas pre-flight check before signing a swap.
Native 4-Tool MCP Stdio Server (For AI Agents)
Start the MCP server over stdio (npm run mcp or node dist/mcp/server.js) and connect it to Claude Code, Cursor, Codex, or Solana Agent Kit:
{
"mcpServers": {
"tailguard": {
"command": "node",
"args": ["dist/mcp/server.js"],
"env": {
"COINGECKO_MODE": "live",
"NODE_USE_ENV_PROXY": "1"
}
}
}
}MCP Tool | What It Does |
| Scans CoinGecko trending/new Solana pools + inspects SPL/Token-2022 authorities |
| Full CoinGecko token/trades/OHLCV/top_holders + live Solana RPC mint audit |
| Pre-trade |
| Runs the deterministic 6-Vector Adversarial Rug & Bad-Fill Drill ( |
Every MCP response carries "attribution": "On-chain data provided by CoinGecko".
Verified Test, Drill & Live Run Results
6-Vector Adversarial Rug & Bad-Fill Drill (npm run drill)
========================================================================
TailGuard — 6-Vector Adversarial Rug & Bad-Fill Security Drill
On-chain data provided by CoinGecko
========================================================================
V1 | PASS [BLOCKED] | Score 100/100 | Honeypot / Zero-Sell Trap
└─ RULE_HONEYPOT_ZERO_SELLS: buys=50, sells=0 (0.0% sells)
V2 | PASS [BLOCKED] | Score 100/100 | Active Mint / Freeze / Permanent Delegate Rug
└─ RULE_ACTIVE_MINT_FREEZE_AUTH: mintAuthority=ACTIVE, freezeAuthority=ACTIVE
V3 | PASS [BLOCKED] | Score 85/100 | Whale Cabal Concentration (> 70%)
└─ RULE_WHALE_CONCENTRATION: top10NonLp=84.6%
V4 | PASS [BLOCKED] | Score 100/100 | Bad-Fill / Quote Manipulation (> 800 bps)
└─ RULE_QUOTE_DIVERGENCE_BPS: divergenceBps=1450 (limit=800)
V5 | PASS [BLOCKED] | Score 90/100 | Dead-Pool / Survivorship Drain
└─ RULE_DEAD_POOL_SURVIVORSHIP: drawdown=97.07%, reserve=$1850
V6 | PASS [BLOCKED] | Score 100/100 | Lookalike Ticker / Mint Spoof
└─ RULE_SPOOF_MINT_MISMATCH: expected=DezXAZ8z..., actual=Sp00fBnk...
------------------------------------------------------------------------
C0 | PASS [ALLOW] | Benign Verified JUP/USDC Swap Control
RESULT: 6/6 BLOCKED | SCORE 100/100 | CONTROL PASS
========================================================================Live Keyless CoinGecko + Solana Mainnet RPC Sample (npm run cli -- inspect 2b1kV6DkPAnxd5ixfnxCpjxmKwqjjaYmCZfHsFu24GXo --live)
TailGuard Solana Token Audit — PYUSD (2b1kV6DkPAnxd5ixfnxCpjxmKwqjjaYmCZfHsFu24GXo)
On-chain data provided by CoinGecko
Verdict: ALLOW | Risk Score: 0/100 | Holder Check: UNAVAILABLE_ON_DEMO
Solana RPC (solana-rpc-live): program=spl-token-2022 | mintAuth=DRXA1H9S... | freezeAuth=2apBGMsS...
Token-2022 Extensions: mintCloseAuthority, permanentDelegate, transferFeeConfig, confidentialTransferMint, confidentialTransferFeeConfig, transferHook, metadataPointer, tokenMetadata
permanentDelegate: 2apBGMsS6ti9RyF5TwQTDswXBWskiJP2LD4cUEDqYJjk
transferFeeBps: 0
CoinGecko (geckoterminal-v2): priceUsd=0.9995346286 | reserveUsd=$22.08M | 24hVol=$11.71MQuality & Security Verification Summary
Gate | Command / Check | Verified Result |
TypeScript Build |
| 0 errors (Node 22 ESM) |
Automated Test Suite |
| 31/31 PASS (parsers, redaction, Token-2022, V1–V6, MCP, HTTP/Blinks, Zero-XSS) |
Adversarial Rug Drill |
| 6/6 BLOCKED ( |
Headless UI & Mobile Audit | Desktop | 0 JS errors, 0 network errors, 0 layout/overlap defects, 9/9 PASS |
Zero-XSS DOM Enforcement |
| 0 |
Repository Structure
src/
├── types.ts # Normalized CoinGecko, Solana Token-2022, Guard & Drill schemas
├── config.ts # Env config + fail-closed redactCoinGeckoHeaders / redactSecretsInText
├── coingecko/client.ts # 3-tier CoinGecko Onchain Solana client (Pro -> Demo/Public -> Fixture)
├── solana/inspector.ts # Read-only Solana Mainnet SPL + Token-2022 jsonParsed mint inspector
├── guard/engine.ts # Deterministic 0-100 risk engine, bps-divergence Swap Guard & service
├── drill/rug-drill.ts # 6-Vector Adversarial Rug & Bad-Fill Drill + benign JUP control
├── mcp/server.ts # Native 4-tool MCP stdio JSON-RPC 2.0 server
├── server.ts # Mission Control HTTP API + Solana Actions/Blinks v2.2 endpoints
├── cli.ts # `scan | inspect | guard | drill | mcp | serve` CLI
└── fixtures/solana-longtail.ts
web/ # Zero-XSS Mission Control UI (createElement/textContent only)
test/ # 6 Vitest suites (31 tests)
docs/THREAT_MODEL.md # Formal trust boundaries & 6-vector threat matrix
AI_USAGE.md # Transparent AI assistance & deterministic grounding disclosureLicense & Attribution
Released under the MIT License.
On-chain data provided by CoinGecko.
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
Solana token safety for AI agents — rug-pull, honeypot & Token-2022 trap detection before you buy.
Solana rug and scam checker for AI agents: token risk score, wallet and drainer-link scans, Pro watchlists. Free tier; agents can self-pay for Pro in USDC.
Solana pre-trade safety for agents: rug check, honeypot sell-sim, drainer scan, tx preflight.
Pre-trade token safety checks for AI agents on Solana and Base. x402 USDC per call, no key.
Related MCP Servers
AlicenseAqualityBmaintenanceProvides post-deploy Solana threat intelligence, enabling AI agents to check operators, tokens, and network stats for detecting rug pulls and malicious activity.544 npm2MIT- AlicenseAqualityCmaintenanceOn-chain Solana token safety for trading agents — traces coordinated wallet funding, same-block Jito bundles, serial-rug deployers and live coordinated dumps into one Exit-Liquidity Risk verdict before a swap. Free tier, then $0.02 USDC/query via x402.12MIT

GORZ MCP serverofficial
AlicenseNot gradedqualityCmaintenanceEnables AI assistants and trading agents to run Solana memecoin safety checks, including grades, red flags, launch bundles, same-second sellers, rug-farm links, and wallet activity.66 npmMIT- AlicenseAqualityCmaintenanceEnables AI agents to run read-only Solana token rug and scam risk checks, producing a 0–100 score with plain-English red flags from on-chain, RugCheck, Jupiter, and DexScreener data, plus wallet and URL scans and token monitoring. It supports a hosted Streamable HTTP endpoint and a stdio bridge, with free usage limits and an agent-purchasable Pro tier.9MIT