Allows interaction with Ethereum blockchain to fetch and revoke ERC-20 token allowances, enhancing wallet security and control
Provides tools for managing token allowances on Fantom blockchain, including revocation of permissions and transaction status verification
Supports fetching and revoking ERC-20 token allowances on Optimism, with transaction status checking capabilities
Enables checking and revoking ERC-20 token approvals on Polygon network, with support for fetching token details and USD values at risk
Token Revoke MCP
An MCP server for checking and revoking ERC-20 token allowances, enhancing security and control.
Features
- Fetch Token Approvals: Retrieve all ERC20 token approvals for a wallet on a specified chain, including token details, balances, and USD values at risk.
- Revoke Allowances: Submit transactions to revoke ERC20 token allowances for specific spenders.
- Check Transaction Status: Verify the success or failure of submitted transactions using transaction hashes.
- Multi-Chain Support: Supports over 50 EVM-compatible chains, including mainnets (e.g., Ethereum, Polygon, BSC) and testnets (e.g., Goerli, Mumbai).
Prerequisites
- Node.js: Version 18 or higher (for native
fetch
support). - Moralis API Key: Required for fetching token approval data.
- Private Key: An Ethereum-compatible private key for signing revocation transactions.
Installation
- Clone the Repository:
- Install Dependencies:
- Client Configuration:
Usage
Below are examples of how you might interact with the server using natural language prompts as input. The outputs are the raw text
values from the content
array returned by the server, assuming a client translates the prompts into tool calls.
Example 1: Fetch Token Approvals
Input Prompt:
"Show me all the token approvals for my wallet on Polygon."
Output Response:
Example 2: Revoke an Allowance
Input Prompt:
"Revoke the allowance for token 0x2791bca1f2de4661ed88a30c99a7a9449aa84174 to spender 0x1111111254eeb25477b68fb85ed929f73a960582 on BSC."
Output Response:
Example 3: Check Transaction Status
Input Prompt:
"Did my transaction 0x123... on BSC go through?"
Output Response (possible outputs):
- Pending:
- Success:
- Failure:
Supported Chains
The server supports a wide range of EVM-compatible chains based on the Moralis JS SDK’s chaindata.ts
. Examples include:
- Mainnets:
ethereum
,polygon
,bsc
,avalanche
,fantom
,arbitrum
,optimism
, etc. - Testnets:
goerli
,mumbai
,bsc testnet
,arbitrum goerli
,optimism sepolia
, etc. - Full list: See
SUPPORTED_CHAINS
inserver.js
.
License
This project is licensed under the MIT License. See the LICENSE file for details.
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
An MCP server for checking and revoking ERC-20 token allowances across multiple blockchains.
Related MCP Servers
- -securityAlicense-qualityAn MCP server providing tools for AI agents to mint ERC-20 tokens across multiple blockchains.Last updated -215JavaScriptMIT License
- AsecurityFlicenseAqualityAn MCP server that fetches on-chain blockchain data via the Ankr API, allowing LLMs to retrieve token balances for wallet addresses on specific networks.Last updated -14231TypeScript
- -securityFlicense-qualityAn MCP server that enables cross-chain token swapping between different blockchains using 1inch Fusion+ API, along with portfolio management tools for tracking assets across chains.Last updated -1JavaScript
- AsecurityAlicenseAqualityAn MCP server that provides access to Etherscan blockchain data APIs, allowing users to query Ethereum blockchain information through natural language.Last updated -64049TypeScriptMIT License