Koskamo

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.

TxWhy MCP logo, by TxWhyCommunity listingStreamable HTTPNo sign-inEndpoint checked 2026-11-23Published by TxWhy
MCP endpoint (Streamable HTTP)
https://txwhy.vercel.app/api/mcp
Vendor documentation

What its tools do

3 tools, grouped by the hints the server advertises. Hints are self-declared, not verified behavior.

3 of 3 have a description · 0 of 3 declare behavior hints · 3 of 3 with parameters document them all

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

Community listingRegistry 0.2.0

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
Server-advertised capabilities
{
  "tools": {
    "listChanged": true
  }
}

Tools

3 advertised

repair_transaction — Repair a Solana transaction
Advertised by the server during the last successful anonymous check.

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.

repair_transaction input schema
{
  "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
Advertised by the server during the last successful anonymous check.

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.

diagnose_transaction input schema
{
  "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
Advertised by the server during the last successful anonymous check.

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.

explain_error input schema
{
  "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

No prompt definitions available.

Resources

Not advertised

No resource definitions available.

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.

100% (37 of 37 checks answered)

  1. 2026-11-18: 5 of 5 checks answered
  2. 2026-11-19: 4 of 4 checks answered
  3. 2026-11-20: 3 of 3 checks answered
  4. 2026-11-21: 4 of 4 checks answered
  5. 2026-11-22: 4 of 4 checks answered
  6. 2026-11-23: 3 of 3 checks answered
  7. 2026-11-24: 4 of 4 checks answered
  8. 2026-11-25: 4 of 4 checks answered
  9. 2026-11-26: 4 of 4 checks answered
  10. 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.

This server is operated by the named third party. Listing and endpoint checks are not an endorsement or a security audit. Review the operator's permissions, terms, and data handling before connecting. How listings are checked and corrected.

Claude Code

Run this once in a terminal. It registers the remote server. Use --scope project to write .mcp.json for the repo.
Claude Code configuration
claude mcp add --transport http txwhy-mcp https://txwhy.vercel.app/api/mcp

Codex

Run this once. Codex stores MCP servers in ~/.codex/config.toml (or .codex/config.toml in a trusted project).
Codex configuration
codex mcp add txwhy-mcp --url https://txwhy.vercel.app/api/mcp

Cursor

Merge this server into .cursor/mcp.json in your project, then enable txwhy-mcp in your MCP settings.
Cursor configuration
{
  "mcpServers": {
    "txwhy-mcp": {
      "url": "https://txwhy.vercel.app/api/mcp"
    }
  }
}

Cline

Merge this into cline_mcp_settings.json (Cline → MCP Servers → Configure).
Cline configuration
{
  "mcpServers": {
    "txwhy-mcp": {
      "type": "streamableHttp",
      "url": "https://txwhy.vercel.app/api/mcp",
      "disabled": false
    }
  }
}

VS Code

Merge this server into .vscode/mcp.json. Use MCP: List Servers to start txwhy-mcp and inspect its tools.
VS Code configuration
{
  "servers": {
    "txwhy-mcp": {
      "type": "http",
      "url": "https://txwhy.vercel.app/api/mcp"
    }
  }
}

Gemini CLI

Run this once. It writes .gemini/settings.json in the current project; pass --scope user for ~/.gemini/settings.json.
Gemini CLI configuration
gemini mcp add --transport http txwhy-mcp https://txwhy.vercel.app/api/mcp

Claude Desktop

Open Claude Settings > Connectors > Add custom connector, enter this server URL and enable it for the conversation. This is a manual remote-connector handoff, not a desktop JSON configuration.
Claude Desktop configuration
https://txwhy.vercel.app/api/mcp

Windsurf

Merge this into ~/.codeium/windsurf/mcp_config.json, then refresh MCP in Cascade. Windsurf remote servers use serverUrl, not url.
Windsurf configuration
{
  "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.