Skip to main content
Glama
gasrescue MCP server

gasrescue MCP server

Official

gasrescue MCP server

gasrescue MCP server – quality and maintenance score on Glama

Rescues stablecoins from wallets that have no gas, for AI agents, through gasrescue.io. EVM chains, Solana and Tron in one server, no API key and no account.

The wallet holds USDC or USDT but no ETH, POL, AVAX, BNB, SOL, TRX or HYPE, so every transfer fails with "insufficient funds for gas". With this server an agent can find out where the money is stuck, then still send the stablecoins, or swap a few dollars into the gas coin so the wallet works on its own again: the wallet signs, gasrescue sends the transaction and pays the network fee, and its fees come out of the amount.

Chains: Base, Arbitrum, Ethereum, Polygon, Avalanche, BNB Chain, HyperEVM, Robinhood Chain, Solana, Tron. Tokens: USDC, USDC.e, USDT (USDT0 on Arbitrum, Polygon and HyperEVM), USDG, USD1, FDUSD, depending on the chain.

Listed in the official MCP Registry as io.github.gasrescue/gasrescue.

Tools

Tool

What it does

gasrescue_info

Chains, tokens, fees and limits

check_wallet

Read-only: stablecoins and gas of an address on every chain, issuer freezes included

quote_send

Quote a send without gas; returns fees, what the recipient gets and a transfer id

quote_swap

Quote a swap into the gas coin (ETH, POL, AVAX, SOL, HYPE) without gas

get_signing_request

What the wallet has to sign for a quote

submit_signatures

Submit the signatures; gasrescue sends and pays the gas

get_transfer

Status and explorer link

sign_and_submit

Only with GASRESCUE_EVM_PRIVATE_KEY: checks and signs an EVM quote with that wallet

Related MCP server: Arbitrum Bridge MCP Server

Setup

Claude Desktop, Cursor and other MCP clients:

{
  "mcpServers": {
    "gasrescue": {
      "command": "npx",
      "args": ["-y", "gasrescue-mcp"]
    }
  }
}

Without a key the server never signs anything. The agent hands the signing request to the user's wallet, or to its own wallet tool, and submits the signatures.

BNB Chain works without a contract, because USDT and USDC there have no signed transfers. The signing request has kind evm-transactions: the wallet signs funding.message with personal_sign (plain text, no transaction, proves the wallet is the sender's), then submit_signatures with fund: true and that fundSignature makes gasrescue send the wallet a little BNB, then the wallet sends the two listed transfers itself (fee first) and the agent reports their hashes with submit_signatures and txs: { fee, transfer }.

Letting the agent sign (EVM only)

"env": {
  "GASRESCUE_EVM_PRIVATE_KEY": "0x…",
  "GASRESCUE_ALLOWED_RECIPIENTS": "0xYourExchangeDeposit,0xYourOtherWallet"
}

sign_and_submit does not trust the API's answers. It signs only a quote made with quote_send or quote_swap in the same session, and only while the signing request is still exactly that quote: the wallet, the recipient, the chain, the token, the amount, the fee and, on a swap, the output and the minimum output. It signs only for the published gasrescue contract and token of that chain, only the typed-data layouts the contracts use, and only signatures that expire within an hour. Tokens with only a permit (USDT0 and USDC.e on Polygon, USDT on Avalanche) take two signatures, a permit plus the order itself; both are checked. With GASRESCUE_ALLOWED_RECIPIENTS set, sends go only to those addresses. The key stays in this process; only signatures are sent.

sign_and_submit signs only against https://gasrescue.io. For your own test server set GASRESCUE_API and GASRESCUE_TRUST_CUSTOM_API=1; it then trusts the contracts that server publishes.

Use a wallet that holds only what the agent should be able to move. Transfers on a blockchain are final.

Limits

$2 to $1,000 per transfer, 10 transfers per wallet in 24 hours, Tron at least $10. Service fee 0.5%, at least $0.25, at most $2 per send and $5 per swap, plus the network fee. Every quote shows the exact figures.

More: https://gasrescue.io/agents?ref=mcp-readme

License

MIT

Available Tools

7 tools
check_walletCheck a wallet for stuck stablecoinsA
Read-onlyIdempotent

Checks one address on every supported chain where it is valid: which stablecoins it holds, its gas balance, whether the stablecoins are stuck (not enough gas to move them) and whether a token is frozen by its issuer. Use it before quote_send or quote_swap to find the chain and token to rescue. A frozen token cannot be moved by any tool here; only the issuer can lift that. Read-only: nothing is signed, sent or stored. Returns { address, chains: [{ key, label, native, tokens: [{ symbol, balance, frozen }], gas, stuck, frozen, canSwap }] }; a chain that did not answer has error: true.

Inputs: address (required).

gasrescue_infoSupported chains, tokens and feesA
Read-onlyIdempotent

Lists what gasrescue supports: the chains, the stablecoins on each, which chains can swap into their gas coin, the fees and the limits. Use gasrescue when a wallet holds USDC, USDT or USDG but no ETH, POL, AVAX, BNB, SOL, TRX or HYPE for the network fee ("insufficient funds for gas"). Call this first to get the chain keys and token symbols the other tools expect. Read-only, takes no input. Returns network, fees (service percent, minimum, maximum), limits (USD per transfer, transfers per wallet per day, quote validity) and the chains with their tokens and gas coin. gasDrop: true marks a chain without a gasrescue contract (BNB Chain): there gasrescue sends the wallet a little gas and the wallet sends two plain transfers itself.

Inputs: no named parameters.

get_signing_requestGet what the wallet must signA
Read-onlyIdempotent

Returns what the sender's wallet has to sign for a quote from quote_send or quote_swap. kind "evm-typed-data": sign every steps[].typedData with eth_signTypedData_v4, in order (one authorization, or for permit tokens a permit plus the order itself); binding is the order the authorization commits to, so recipient, fee and minimum can be checked first. kind "tron-transactions": sign every steps[].transaction (first the fee, then the transfer). kind "evm-transactions" (gas drop, BNB Chain): if funding.needed, sign funding.message with personal_sign (a message, no transaction, proves the wallet is the sender's) and call submit_signatures with fund: true and that fundSignature first, so gasrescue sends the wallet the gas; then send every steps[].tx from the wallet (eth_sendTransaction, fee first) and report the hashes with submit_signatures txs: { fee, transfer }. kind "solana-transaction" or "solana-versioned-transaction": sign the base64 transaction. Read-only. Pass the result to submit_signatures. Fails when the quote expired; then request a new quote.

Inputs: transferId (required).

get_transferTransfer statusA
Read-onlyIdempotent

Returns the current state of a quote or transfer by its id, with the fees, the transaction hash and the explorer link once sent. States: quoted (waiting for the signature), submitting and sent (on its way; ask again after a few seconds), confirmed (done), failed (error says why) and expired (not signed in time; request a new quote). Use it to follow up after submit_signatures or to see whether a quote is still open. It cannot start, change or cancel anything; use quote_send or quote_swap to start. Read-only. Returns { summary, transfer }. An unknown or malformed id, or one older than 30 days, fails with "Transfer not found".

Inputs: transferId (required).

quote_sendQuote a send without gasA

Prices sending USDC, USDT or USDG from a wallet without gas (no ETH, POL, AVAX, BNB, SOL or TRX) to another address, e.g. an exchange deposit or another wallet. Use quote_swap instead when the user wants gas in the same wallet. Creates a free quote, valid for 10 minutes; nothing moves on chain until the wallet signs it. Returns { summary, transfer }: the transfer id, network and service fee, what the recipient gets (net) and status "quoted". Show the summary to the user and get approval before signing. Fails with a readable error when the amount is outside $2 to $1,000 (Tron: from $10), the wallet holds too little, the token is frozen, or the wallet sent 10 transfers in 24 hours.

Inputs: chain (required), token (required), amount (required), sender (required), +1 more.

quote_swapQuote a swap into gas without gasA

Prices swapping a stablecoin into the chain's gas coin (ETH, POL, AVAX, SOL, HYPE) or another stablecoin, for a wallet without gas, so it can pay its own fees again. The result always goes back to the same wallet; use quote_send to pay someone else. Not available on Tron. Creates a free quote, valid for 2 minutes because prices move; nothing moves on chain until the wallet signs it. Returns { summary, transfer } with the transfer id, fees, the expected output and the minimum output (below it the swap reverts and nothing moves). Show the summary to the user and get approval before signing.

Inputs: chain (required), token (required), amount (required), sender (required), +1 more.

submit_signaturesSubmit signatures and sendA
Destructive

Submits the wallet's signatures for a quote; gasrescue broadcasts the transaction, pays the gas and waits up to 3 minutes for the result. This moves funds and cannot be undone: call it only after the user approved the quote summary. A transfer can be submitted once; a second call is refused. Give signatures for EVM and Tron, signedTransaction for Solana, or for a gas drop fund: true with fundSignature and then txs. Returns { summary, transfer } with status confirmed or failed, the transaction hash and the explorer link.

Inputs: transferId (required), txs, fund, signatures, +2 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.6/5.0

    Scored across 7 tools

    Disambiguation5/5

    Each tool has a clearly distinct role in the rescue workflow: global info, wallet inspection, send quote, swap quote, signing payload retrieval, signature submission, and transfer status lookup. The two quote tools could seem similar at a glance, but their descriptions explicitly separate paying another address from swapping into gas for the same wallet.

    Naming Consistency3/5

    Most tools use readable verb_noun names such as get_signing_request, submit_signatures, check_wallet, and get_transfer, but quote_send and quote_swap reverse the order, and gasrescue_info uses a noun prefix. The set remains understandable, but the convention is noticeably mixed.

    Tool Count5/5

    Seven tools is well scoped for a gas-rescue workflow: discovery, wallet check, send quote, swap quote, signing payload, submission, and status tracking. There are no obviously redundant tools, and the workflow does not feel artificially fragmented.

    Completeness4/5

    The tool set covers the core lifecycle from information and wallet inspection through quoting, signing, submitting, and checking transfer status. Minor gaps remain around explicit cancellation or quote/history listing, but those are not central to the described rescue flow.

    Maintenance

    ActivityMaintained
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI agents to perform cross-chain bridging operations using natural language intents, with support for multiple protocols (Across, Stargate) and advanced security features like oracle validation and slippage protection. Provides comprehensive bridging tools including quote estimation, transaction building, and approval management across Arbitrum and Ethereum networks.
      MIT
    • F
      license
      C
      quality
      B
      maintenance
      Enables AI agents to interact with any EVM-compatible blockchain through natural language, supporting token swaps, cross-chain bridges, staking, lending, governance, gas optimization, and portfolio tracking across networks like Ethereum, BSC, Polygon, Arbitrum, and more.
      100
      48 npm
      44
      -