Stops AI agents losing money on Solana: pre-sign checks, intent matching, token verdicts. x402 USDC.
One address for any MCP client. No sign-in needed on this server.
16 read4 other
Grouped by tool name. At most: only reads or looks up information.
Odel charges nothing per call. The publisher may charge for its own service.
An intelligence layer between Solana and AI agents. It checks transactions before an agent signs them, confirms a transaction does exactly what the agent meant, gives token safety verdicts, explains failures, and converts amounts with real on-chain decimals, so agents stop losing money to hallucinated values.
POST /mcp (Streamable HTTP) or /mcp/sseio.github.Timothymycompc/solana-pulse-gatewayAutomated accounts fail on Solana far more often than people expect: a study of over 1.5 billion failed transactions found bots failing 58% of the time (Why Does My Transaction Fail?, ISSTA 2025). For AI agents the usual causes are mistakes a model makes confidently: wrong decimals, copycat tickers, invented addresses or signatures, expired blockhashes, priority fees in the wrong unit, and signing transactions whose effects nobody checked. Each tool here removes one of those mistakes and returns a verdict, the reasons and a fix.
| Tool | Prevents | Price |
|---|---|---|
preflight_transaction | Signing a drainer or a doomed transaction: shows each wallet's exact gains and losses, flags approvals, authority changes and account closures, expired blockhashes and fee overpay | $0.01 |
check_transaction_intent | A transaction that differs from what was asked ("send 5 USDC to X"): compares asset, exact amount, recipient and sender, and flags anything extra | $0.01 |
token_verdict | Buying scam tokens: SAFE / CAUTION / AVOID from mint and freeze powers, Token-2022 traps, verification, liquidity, concentration and age | $0.01 |
explain_transaction | Guessing from logs: real balance changes by wallet, programs used, and the decoded failure reason | $0.005 |
resolve_token | Copycat tickers: the verified mint for a ticker, with copycats counted | $0.001 |
fee_advice | Fee unit mistakes: tiers in micro-lamports per compute unit plus the exact cost in SOL | $0.001 |
wallet_snapshot | Inflated totals from spam airdrops: holdings with USD values, priced vs unpriced, verified vs unverified | $0.001 |
convert_amount | Decimal errors: human amounts to exact base units using the mint's real decimals | Free |
explain_error | Blind retries: Solana error codes in plain language with a fix | Free |
inspect_address | Sending to the wrong kind of address: wallet, token account, mint, program and more | Free |
find_ata | Wrong token accounts: Token-2022 aware derivation, existence check and creation cost | Free |
get_solana_balance, get_token_accounts, get_recent_transactions, get_solana_blockhash | Stale or invented data: live reads (holdings ranked by value with spam flagged; blockhash with seconds left) | Free |
Prices apply only after a tool's 25 free calls for the day.
Every tool documents each input (with how to get it) and each returned field (with what it means and exactly how it is computed): GET /api/tools and GET /api/tools/<name>. GET /api/tools/<name>/example returns ready-to-run inputs built from live mainnet data.
HTTP:
curl -X POST https://solana-pulse-gateway-1021990235790.us-central1.run.app/api/tools/convert_amount \
-H 'content-type: application/json' -d '{"mint":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","amount":"5"}'
MCP (Claude Desktop, Cursor):
{ "mcpServers": { "solana-pulse": { "command": "npx", "args": ["-y", "mcp-remote", "https://solana-pulse-gateway-1021990235790.us-central1.run.app/mcp"] } } }
exact, USDC on Solana mainnet). HTTP answers 402 with a PAYMENT-REQUIRED header; MCP returns a PaymentRequired tool result and accepts payment in _meta["x402/payment"]. The PayAI facilitator verifies, settles and pays network fees. Calls that return an error are never charged.server/tools/): one definition per tool holds its use-when line, documentation, live example and code. MCP tools, HTTP routes, /api/tools, llms.txt, /.well-known/mcp.json and the playground are all generated from it, so docs cannot drift from behavior.server/tools/decode.ts): decodes System, SPL Token, Token-2022, Compute Budget, Associated Token Account and Memo instructions, resolves address lookup tables, simulates against live state and computes per-wallet balance changes.server/x402.ts, server/meter.ts, server/pricing.ts): an admission gate (free tool, owner key, free call, or x402), the official @x402/express and @x402/mcp integrations, and a revenue ledger of settled payments.npm install
cp .env.example .env # set DATABASE_URL at minimum
npm run dev # Express + Vite on http://localhost:3000
npm run build # type-check, then bundle frontend and server into dist/
See DEVELOPING.md for the folder layout and how to add a tool, change a price, recolor the site or deploy.
npm test # 21 tests, offline, about 15 seconds
npm run test:record # re-record the mainnet scenarios (reads and simulations only)
tests/safety.test.ts) run against real mainnet transactions recorded in tests/fixtures/: a drainer token approval (BLOCK), SOL moved by a hidden extra instruction, a 10x decimals slip, an extra USDC transfer to a stranger (all MISMATCH), plus clean transfers that must pass, including one that creates the recipient's token account.tests/meter.test.ts) runs the real SQL on an in-memory Postgres (PGlite): the daily allowance, refunds for failed calls, the daily reset and percent-encoded tool names.tests/units.test.ts): exact amount math, error explanations and instruction decoding.GitHub Actions runs the type check, the tool check and the tests on every push.
MIT. See LICENSE.