TxWhy MCP
An MCP server that diagnoses failed Solana transactions, rebuilds them to pass simulation, and proves the repair by verifying against live chain state. It provides tools to repair, diagnose, and explain errors without requiring API keys or accounts.
Endpoint and access
No sign-in to connect and list tools. Individual tools may still need a vendor account, credentials, or permissions; check the documented prerequisites.
https://txwhy.vercel.app/api/mcpWhat its tools do
3 tools, grouped by the hints the server advertises. Hints are self-declared, not verified behavior.
Not annotated (3)
Checks and signals
Each line is separate evidence, not a trust score.
- Passed Endpoint answered the live check ·
- Uptime 100% over 90 days
- Availability 2 of 2 checks passed in 30 days
What you can do with it
- Repair failed Solana transactions by fixing compute budget or slippage
- Diagnose the exact cause of a transaction failure using error codes
- Explain transaction errors without needing the full transaction data
Source and maintenance
Protocol and capabilities
- Server
- txwhy 0.2.0
- MCP protocol negotiated in check
- 2025-11-25
- Tools
- 3 advertised
- Resources
- Not advertised
- Resource templates
- Not advertised
- Prompts
- Not advertised
{
"tools": {
"listChanged": true
}
}Tools
3 advertised
repair_transaction — Repair a Solana transaction
Give it a Solana transaction that failed, or one you are about to send. It finds the cause and returns a rebuilt UNSIGNED transaction that has been simulated against live mainnet state to prove it passes. Fixes expired blockhashes, compute-unit limits, priority fees, loaded-data limits, slippage on plain Jupiter swaps (fresh quote, same tolerance), and slippage on direct Pump.fun, PumpSwap, Raydium AMM v4, Meteora DBC and Meteora DAMM v2 swaps (only the limit moves, never more than 25% against the user). Handles legacy, v0 and version 1 (SIMD-0385) transactions and durable nonces. When the failure cannot be fixed by rebuilding (not enough funds, a private program's own error), it says so and explains why instead of returning something that would fail again. Pass exactly one of `transaction` or `signature`. Sign the returned transaction with your own key and send it within about 60 seconds.
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"signature": {
"type": "string",
"description": "Signature (or explorer URL) of a transaction that already landed on mainnet and failed."
},
"transaction": {
"type": "string",
"description": "Base64 serialized transaction, signed or unsigned. Use this before sending, or after a send failed."
}
}
}diagnose_transaction — Diagnose a failed Solana transaction
Explains why a transaction that landed on mainnet failed: the exact failing instruction in the call tree, the named error, its cause, and how to fix it. Read-only and fast. Use repair_transaction when you want a working transaction back.
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"signature"
],
"properties": {
"signature": {
"type": "string",
"description": "Transaction signature or explorer URL."
}
}
}explain_error — Explain a Solana program error code
Looks up what a custom program error code means for a given program, using 1,800+ named errors from major Solana programs plus the runtime's own errors. Use it when you only have a code such as 6001 or 0x1771 from a simulation or an RPC response.
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"programId",
"code"
],
"properties": {
"code": {
"anyOf": [
{
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991
},
{
"type": "string"
}
],
"description": "Error code as a number, or a hex string like 0x1771."
},
"programId": {
"type": "string",
"description": "Base58 address of the program that raised the error."
}
}
}Prompts
Not advertised
Resources
Not advertised
90-day uptime
A lightweight connection check about every six hours, sampled on hosts with many listings. It shows the server answered, not that its tools work.
- 2026-11-18: 5 of 5 checks answered
- 2026-11-19: 4 of 4 checks answered
- 2026-11-20: 3 of 3 checks answered
- 2026-11-21: 4 of 4 checks answered
- 2026-11-22: 4 of 4 checks answered
- 2026-11-23: 3 of 3 checks answered
- 2026-11-24: 4 of 4 checks answered
- 2026-11-25: 4 of 4 checks answered
- 2026-11-26: 4 of 4 checks answered
- 2026-11-27: 2 of 2 checks answered
30-day availability
Aggregated from read-only remote checks; this is not a tool-execution or security guarantee.
- Successful checks
- 2 of 2 (100%)
- Average latency
- 823 ms
- 95th percentile latency
- 936 ms
Maintenance history
Public check and source-refresh events. Editorial and ownership records remain private.
- · probe · passed · 948 ms · 3 tool(s)
- · probe · passed · 698 ms · metadata changed · 3 tool(s)
Connect from your client
Each snippet registers the same endpoint; pick the client you use.
Claude Code
claude mcp add --transport http txwhy-mcp https://txwhy.vercel.app/api/mcpCodex
codex mcp add txwhy-mcp --url https://txwhy.vercel.app/api/mcpCursor
{
"mcpServers": {
"txwhy-mcp": {
"url": "https://txwhy.vercel.app/api/mcp"
}
}
}Cline
{
"mcpServers": {
"txwhy-mcp": {
"type": "streamableHttp",
"url": "https://txwhy.vercel.app/api/mcp",
"disabled": false
}
}
}VS Code
{
"servers": {
"txwhy-mcp": {
"type": "http",
"url": "https://txwhy.vercel.app/api/mcp"
}
}
}Gemini CLI
gemini mcp add --transport http txwhy-mcp https://txwhy.vercel.app/api/mcpClaude Desktop
https://txwhy.vercel.app/api/mcpWindsurf
{
"mcpServers": {
"txwhy-mcp": {
"serverUrl": "https://txwhy.vercel.app/api/mcp"
}
}
}Let your agent find its tools
Find servers like TxWhy MCP from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.