txdoctor
txdoctor-mcp
Solana transaction failure diagnostics for AI agents.
An MCP (Model Context Protocol) server that decodes Solana program errors —
including the cross-program collisions that no single project's docs explain:
code 0x1773 means one thing in Jupiter, another in Raydium CLMM, another in
Orca, and five more meanings elsewhere. This server returns all of them and
tells you how to identify which program raised yours.
Data source & web version: txdoctor.app
Coverage
202 error entries across 12 programs:
Program | Codes |
Jupiter / Jupiter v4 | swap aggregation |
Raydium CPMM / CLMM / AMM v4 | swap, liquidity, limit orders |
Raydium LaunchLab | launchpad lifecycle: funding, graduation, vesting |
Orca Whirlpools | concentrated liquidity |
Meteora DLMM / Dynamic AMM | bin liquidity, launch pools |
pump.fun | bonding curve, graduation |
SPL Token / Token-2022 | token program errors |
Error definitions are compiled from each program's official source code and IDLs — not guessed.
Related MCP server: anchor-debug
Tools
lookup_error
Look up a code by hex or decimal: "0x1773" or "6003".
Returns every program's meaning, with likely causes, fixes and an example log
line for each — plus identification guidance when the code is contested.
decode_log
Paste a transaction log. Extracts the failed program ID and error code, then returns the exact meaning for that program, and the collision map when the program is unknown.
list_programs
List covered programs and code counts.
Setup
Claude Desktop
Add to claude_desktop_config.json:
{
"mcpServers": {
"txdoctor": {
"command": "npx",
"args": ["-y", "txdoctor-mcp"]
}
}
}Any MCP client (stdio)
npx -y txdoctor-mcpZero dependencies. Node ≥ 18. Data is embedded and works fully offline.
Example
{ "tool": "lookup_error", "arguments": { "code": "0x1e" } }→ 0x1e (decimal 30) is claimed by 3 programs with 3 different meanings:
transfer fee exceeds maximum in SPL Token / Token-2022, exceeded slippage in
Raydium AMM v4 — with the log line and fixes for each.
Web version
txdoctor.app has the full browsable catalogue, a cross-program collision index, and per-code pages like 0x1773 (8 programs, 8 meanings).
License
MIT
Available Tools
3 toolsdecode_logB
Paste a Solana transaction log (or any text containing a failure line). Extracts the failed program ID and error code, then returns the exact meaning for that program — plus the cross-program collision map when the program is unknown.
Inputs: log (required).
list_programsA
List the Solana programs covered by this catalogue and how many error codes each has.
Inputs: no named parameters.
lookup_errorA
Look up a Solana program error code by hex (0x1773) or decimal (6003). Returns every program's meaning for that code — cross-program collisions included — with likely causes, fixes and an example log line for each. Covers Jupiter, Raydium (CPMM/CLMM/AMM v4/LaunchLab), Orca, Meteora (DLMM/AMM), pump.fun, SPL Token, Token-2022.
Inputs: code (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
Each tool has a recognizable distinct role: list_programs is catalogue enumeration, decode_log is text/log-driven extraction, and lookup_error is direct code-driven lookup. The overlap between decode_log and lookup_error is real — both can end up returning meanings for an error code — but the input shapes (free text vs. a hex/decimal code) give an agent a clear selection rule.
All three names follow a clean verb_noun snake_case pattern: decode_log, list_programs, lookup_error. The verb choice maps meaningfully to the operation (list for enumeration, lookup for keyed retrieval, decode for parsing).
Three tightly scoped tools for a narrow diagnostic purpose, each covering a genuinely different entry point into the same catalogue. No redundant or filler tools; the surface matches the scope.
Core workflows — enumerate programs, decode a failed log, resolve a code — are all covered, including the cross-program collision case. Minor gaps: no lookup by program name or by error message/fuzzy text, and no batch decoding of multiple failure lines in one call.
Maintenance
Related MCP Connectors
Solana transaction diagnosis, simulation, token-risk evidence, and priority fees via x402 USDC.
Full Solana DeFi coverage: launchpads, tokens, trades, and wallets, decoded at scale.
Read-only Solana/pump.fun token scam screener: verdicts, alerts, bad-wallet list. NFA/DYOR.
Solana token rug/risk checks, live prices, tx decoding, pump.fun launch feed. Free tier + x402.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceExtends Solana debugging to AI agents via MCP: decode transaction failures, trace CPI trees, and profile compute for any Solana transaction.MIT
- AlicenseNot gradedqualityDmaintenanceProvides structured access to Solana Anchor error data, enabling AI coding agents to parse logs, debug transactions, and look up error codes.MIT
- AlicenseAqualityDmaintenanceInspects and debugs Solana transactions, accounts, Anchor IDLs, errors, and PDAs from MCP-compatible clients.52MIT
- AlicenseNot gradedqualityDmaintenanceDeterministic failure diagnosis for Soroban transactions and simulations, providing a normalized diagnosis with ranked causes, evidence, and fixes via CLI, MCP, or library.1Apache 2.0