kukapay/token-revoke-mcp
Free用于检查和撤销多个区块链上 ERC-20 代币授权的 MCP 服务器。
FreeFree tier
About kukapay/token-revoke-mcp
Token Revoke MCP is an open-source Model Context Protocol (MCP) server that enables users to check and revoke ERC-20 token allowances across 50+ EVM-compatible blockchains. It integrates with Moralis API to fetch detailed token approvals, including balances and USD values at risk, and allows submitting revocation transactions and checking their status. Prerequisites include Node.js 18+, a Moralis API key, and an Ethereum private key for signing. The tool is licensed under MIT and designed for easy integration with MCP-compatible clients.
Key Features
Fetch Token Approvals: Retrieve all ERC-20 token approvals for a wallet on a specified chain, including token details, balances, and USD values at risk.
Revoke Allowances: Submit transactions to revoke ERC-20 token allowances for specific spenders.
Check Transaction Status: Verify success or failure of submitted transactions using transaction hashes.
Multi-Chain Support: Supports over 50 EVM-compatible chains including mainnets (Ethereum, Polygon, BSC) and testnets (Goerli, Mumbai).
Open Source (MIT): Free to use, modify, and distribute.
Pros & Cons
Pros
- Fully open source and free under MIT license.
- Supports over 50 EVM-compatible chains for broad coverage.
- Provides real-time token approval data via Moralis API.
- Easy to integrate with MCP-compatible clients using simple natural language prompts.
- Simple installation: clone repo, install dependencies, and configure environment variables.
Cons
- Requires a Moralis API key (external service dependency).
- Requires exposing an Ethereum private key for signing revocation transactions (security risk if not handled carefully).
- Only supports ERC-20 tokens; does not support other token standards (e.g., ERC-721).
- Transaction status depends on blockchain confirmation times and network conditions.
Best For
Auditing token approvals to identify security risks and unwanted spending allowances.Revoking unused or suspicious token allowances to protect wallet assets.Monitoring token risk exposure by checking balances and USD values at risk across chains.Integrating token allowance management into DeFi security dashboards or automation workflows.
FAQ
What chains are supported?
The server supports over 50 EVM-compatible chains, including mainnets like Ethereum, Polygon, BSC, Avalanche, Fantom, Arbitrum, Optimism, and testnets like Goerli and Mumbai. The full list is based on Moralis JS SDK's chain data.
What are the prerequisites to use this tool?
You need Node.js version 18 or higher, a Moralis API key (for fetching token approval data), and an Ethereum-compatible private key (for signing revocation transactions).
How do I install and configure the MCP server?
Clone the repository, run 'npm install' to install dependencies, then configure your MCP client with the command 'node path/to/token-revoke-mcp/index.js' and set the environment variables MORALIS_API_KEY and PRIVATE_KEY.
Is the tool free to use?
Yes, the tool is open source under the MIT License, so it is free to use, modify, and distribute. However, using the Moralis API may have its own pricing.