SuperAPIAI Directory

token-revoke-mcp

github.com · AI developer platforms

Check and revoke ERC-20 token allowances across multiple blockchains.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsAPI

About this tool

Purpose

token-revoke-mcp is an MCP server focused on checking and revoking ERC-20 token approvals (allowance), helping users improve the security and control of their wallets.

Main Capabilities

  • Fetch Token Approvals: Retrieve all ERC-20 token approvals for a wallet on a specified chain, including token details, balances, and at-risk USD value.
  • Revoke Allowances: Submit a transaction to revoke an ERC-20 token approval for a specific spender.
  • Check Transaction Status: Verify the success or failure of a submitted transaction via its transaction hash.
  • Multi-Chain Support: Supports more than 50 EVM-compatible chains, including mainnets (such as Ethereum, Polygon, BSC) and testnets (such as Goerli, Mumbai).

Usage

Prerequisites:

  • Node.js: version 18 or higher (for native fetch support).
  • Moralis API Key: required to obtain token approval data.
  • Private Key: an Ethereum-compatible private key used to sign revoke transactions.

Installation steps:

  1. Clone the repository: git clone https://github.com/kukapay/token-revoke-mcp.git cd token-revoke-mcp
  2. Install dependencies: npm install

Client configuration example: { "mcpServers" : { "token-revoke-mcp" : { "command" : " node " , "args" : [ " path/to/token-revoke-mcp/index.js " ], "env" : { "MORALIS_API_KEY" : " your moralis api key " , "PRIVATE_KEY" : " your wallet private key " } } } }

Interaction examples (natural language prompts as input, output is the raw text value in the content array returned by the server):

  • Example 1: Fetch token approvals "Show me all the token approvals for my wallet on Polygon."
  • Example 2: Revoke an approval "Revoke the allowance for token 0x2791bca1f2de4661ed88a30c99a7a9449aa84174 to spender 0x1111111254eeb25477b68fb85ed929f73a960582 on BSC."
  • Example 3: Check transaction status "Did my transaction 0x123... on BSC go through?" Possible output: Pending: Transaction 0x123... on bsc is still pending or not found. Success: Transaction 0x123... on bsc has completed with status: successful. Block number: 12345. Failure: Transaction 0x123... on bsc has completed with status: failed. Block number: 12345.

Applicable Scenarios

Suitable for users who need to manage ERC-20 token approvals, reduce approval risk, and revoke approvals that are no longer in use, especially for scenarios involving operations on multiple EVM chains and the desire to view and handle them in a unified way.

Limitations

Supported chains are based on the Moralis JS SDK's chaindata.ts, with examples including the mainnets ethereum, polygon, bsc, avalanche, fantom, arbitrum, optimism, etc., and the testnets goerli, mumbai, bsc testnet, arbitrum goerli, optimism sepolia, etc.; for the complete list, see SUPPORTED_CHAINS in server.js. The project uses the MIT license; see the LICENSE file for details. Other features, fees, or platform information not mentioned in the materials are not provided at this time.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools