Pacioli Solana & CoinGecko Veritas
Queries the Solana Mainnet-Beta JSON-RPC (getBalance and getTokenAccountsByOwner) to read native SOL lamports and major SPL token balances (USDC, USDT, JUP, RAY, BONK, JTO, PYTH, MSOL, JLP, WIF) for any wallet, builds an exact-rational double-entry treasury balance sheet from them, verifies Phantom/Solflare 64-byte Ed25519 ownership signatures, and cross-checks the resulting valuations against Solana DEX pool reserves.
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.
⚖️ Pacioli Solana & CoinGecko Veritas (v1.0.0)
Zero-Float Exact-Rational ($\mathbb{Q}$) Treasury Analytics Dashboard & Streamable HTTP MCP Server for Solana + CoinGecko
Superteam Earn × CoinGecko
Long TailHackathon Declaration (Analytics, Data & MediaTrack):100%of this standalone repository (pacioli-solana-veritas) was designed and built from scratch starting December 4, 2026 (within the Dec 1 – Dec 15, 2026 build window) under the open-source Apache-2.0 license. Market & on-chain pool data are proudly Powered by CoinGecko API.
🌐 Live Production Dashboard: https://pacioli-solana-veritas-952479300704.europe-west1.run.app
🤖 Live Streamable HTTP MCP Server:
https://pacioli-solana-veritas-952479300704.europe-west1.run.app/mcp(/.well-known/mcp.json)

🎯 The Problem: Silent IEEE-754 Floating-Point Drift & Unverified Analytics in DeFi / AI
Standard crypto dashboards and AI agents parse market prices and token balances using IEEE-754 float64 numbers (0.1 + 0.2 != 0.3). Across multi-hop Solana swaps, large SPL treasury valuations (lamports at $10^9$ scale), and CEX-vs-DEX basis checks:
IEEE-754 rounding errors accumulate silently, breaking double-entry accounting identities ($\text{Assets} - \text{Liabilities} - \text{Equity} \neq 0$).
AI agents hallucinate or misread liquidity depth, falling prey to thin Solana DEX pools or Spot-vs-DEX price divergence.
Analytics outputs lack cryptographic provenance — screenshots and raw JSON responses can be altered with zero audit trail.
Related MCP server: CurveGuard MCP Server
💎 Our Solution: End-to-End Exact-Rational ($\mathbb{Q}$) Analytics + Cryptographic Receipts
Zero-Float Ingestion (
parse_float=str→fractions.Fraction): Even Python's JSON parser is configured withjson.loads(raw, parse_float=str)so CoinGecko spot prices, 24h volumes, market caps, and DEX pool reserves never touch IEEE-754 binary floating-point. Every figure entersfractions.Fraction($p/q \in \mathbb{Q}$) with exact base-10 precision.Live Solana Mainnet On-Chain Verification + Wallet Signature Proof:
Queries confirmed native
SOL(lamports) and major SPL token accounts (USDC,USDT,JUP,RAY,BONK,JTO,PYTH,MSOL,JLP,WIF) directly via Solana JSON-RPC (getBalance+getTokenAccountsByOwner).Connects natively to Phantom / Solflare in the browser and verifies 64-byte Solana Ed25519 (
RFC 8032) ownership signatures in pure zero-dependency Python.
CoinGecko Global Spot VWAP vs. Solana On-Chain DEX Spread Detector: Cross-verifies CoinGecko
/simple/price(precision=full) against top Solana DEX liquidity pools (CoinGecko Onchain/onchain/networks/solana/tokens/{mint}/pools/ GeckoTerminal) in exact rational basis points (bps), flagging thin reserves (<$25k) or basis divergence (>35 bps/>150 bps).RFC 6962 Merkle Audit Trees +
<300BCompact MTC Attestation: Every treasury and market audit is sealed into a domain-separated RFC 6962 Merkle Tree (0x00leaf,0x01internal node), signed with Ed25519, and accompanied by a compact<300-byteSHA-384 Merkle Tree Credential (MTC) verifiable offline in< 2 ms.Streamable HTTP Model Context Protocol (
POST /mcp) Server: Any MCP-compatible AI client (Claude, Gemini, Cursor, Antigravity) can connect directly to/mcpwith zero auth to invoke 4 deterministic read-only analytical tools.
🏗️ Architecture
+-----------------------+ +-----------------------------------+
| CoinGecko API v3 | | Solana Mainnet-Beta JSON-RPC |
| Spot VWAP + 24h Vol + | | getBalance (Slot & Lamports) + |
| Onchain Solana Pools | | getTokenAccountsByOwner (SPL) |
+-----------+-----------+ +-----------------+-----------------+
| json.loads(..., parse_float=str) |
+------------------+------------------+
v
+----------------------------------------------+
| Pacioli Exact-Rational Engine (p/q in Q) |
| - Assets - Liabilities - Equity == 0/1 |
| - Exact Portfolio Weights (sum w_i == 1/1) |
| - HHI Concentration & 24h Slippage bps |
| - IEEE-754 Float64 Drift Benchmark |
+----------------------+-----------------------+
v
+----------------------------------------------+
| Cryptographic Notary (Pure-Stdlib Python) |
| - RFC 6962 Binary Merkle Inclusion Proofs |
| - RFC 8032 Ed25519 Signature + Solana Base58 |
| - Compact <300B SHA-384 MTC Token |
+-----------+----------------------+-----------+
| |
v v
+---------------------------+ +--------------------------+
| Interactive Web Dashboard | | Streamable HTTP /mcp |
| Phantom/Solflare Connect | | 4 Zero-Float Agent Tools |
+---------------------------+ +--------------------------+🚀 Quickstart (30 Seconds)
# 1. Install lightweight dependencies (or reuse any Python 3.11+ virtualenv with FastAPI & httpx)
pip install -r requirements.txt
# 2. Optional: Set your complimentary CoinGecko Analyst Pro API key (falls back cleanly to public v3 if unset)
export COINGECKO_PRO_API_KEY="your_analyst_key_here"
# Or Demo key: export COINGECKO_DEMO_API_KEY="..."
# Optional custom Solana RPC: export SOLANA_RPC_URL="https://api.mainnet-beta.solana.com"
# 3. Run unit & cryptographic test suite
pytest -v
# 4. Start the Analytics Dashboard + REST API + /mcp Server
uvicorn pacioli_veritas.app:app --reload --port 8080Then open http://localhost:8080 in your browser!
🔌 MCP Server Tools (POST /mcp)
Connect any MCP client to http://localhost:8080/mcp:
audit_solana_wallet_treasury— Live zero-float Pacioli double-entry balance sheet + Merkle & Ed25519 receipt for any Solana wallet.audit_coingecko_solana_dex_spread— Exact rational basis-point (bps) cross-check between CoinGecko global VWAP and Solana DEX pool reserves.quantify_ieee754_float_drift— Exact rational vs IEEE-754float64multi-hop drift benchmark.verify_pacioli_cryptographic_receipt— Deterministic 6-point verification of any sealed Pacioli receipt.
📜 Attribution & License
Market & DEX Data: Powered by CoinGecko API
Author: David Porto Baraldés (Homo Universalis)
License: Apache License 2.0 (
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
Solana SPL/Token-2022 rug forensics and deterministic Solana payment receipt verification MCP.
31 verifiable M2M open-data, compliance, Web3 token-safety, and prediction-market endpoints under HTTP x402 v2 (Coinbase CDP + PayAI across Base, Polygon, Arbitrum, and Solana USDC) and MCP v2.2.0 (33 tools). Features 4-block official sanctions (OFAC SDN, UN, EU FSFi, UK OFSI), EVM/Solana Token Safety, Polymarket+Kalshi odds, multi-service POST /batch, 100% transient Web-to-Markdown extraction, and ECDSA secp256k1 oracle proofs.
Read-only crypto MCP: markets, funding, spreads, DeFi, prediction markets, explorer & RPC.
Governed MCP: agent audit, provenance, deterministic checks, and receipt-backed FragGate execution.
Related MCP Servers
- AlicenseAqualityDmaintenanceMCP server for deterministic numeric verification and spreadsheet auditing. Enables AI agents to verify math/finance claims, audit rows, and evaluate covenant rules with signed, independently checkable receipts.426 PyPIMIT
- AlicenseNot gradedqualityCmaintenanceEnables MCP clients to scan Pons bonding curves on Robinhood Chain (4663) for 0-wallet sniper walls and 100ms swarm activity, replay stop-loss/trailing-stop exits, and verify hourly Keccak-256 Merkle-sealed audits.MIT
- 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