Token Revoke MCP
An MCP server for checking and revoking ERC-20 token allowances across multiple blockchains.
kukapay
README
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:
git clone https://github.com/kukapay/token-revoke-mcp.git cd token-revoke-mcp
-
Install Dependencies:
npm install
-
Client Configuration:
{ "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" } } } }
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:
[
{
"tokenAddress": "0x2791bca1f2de4661ed88a30c99a7a9449aa84174",
"tokenSymbol": "USDC",
"balance": "100.5",
"usdPrice": "1.00",
"usdValueAtRisk": "50.25",
"spenderAddress": "0x1111111254eeb25477b68fb85ed929f73a960582",
"approvedAmount": "1000.0",
"transactionHash": "0xabc...",
"timestamp": "2023-10-01T12:00:00Z"
}
]
Example 2: Revoke an Allowance
Input Prompt:
"Revoke the allowance for token 0x2791bca1f2de4661ed88a30c99a7a9449aa84174 to spender 0x1111111254eeb25477b68fb85ed929f73a960582 on BSC."
Output Response:
Allowance revocation submitted on bsc. Transaction hash: 0x123.... Note: Transaction is not yet confirmed.
Example 3: Check Transaction Status
Input Prompt:
"Did my transaction 0x123... on BSC go through?"
Output Response (possible outputs):
- 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.
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.
Recommended Servers
Crypto Price & Market Analysis MCP Server
A Model Context Protocol (MCP) server that provides comprehensive cryptocurrency analysis using the CoinCap API. This server offers real-time price data, market analysis, and historical trends through an easy-to-use interface.
MCP PubMed Search
Server to search PubMed (PubMed is a free, online database that allows users to search for biomedical and life sciences literature). I have created on a day MCP came out but was on vacation, I saw someone post similar server in your DB, but figured to post mine.
dbt Semantic Layer MCP Server
A server that enables querying the dbt Semantic Layer through natural language conversations with Claude Desktop and other AI assistants, allowing users to discover metrics, create queries, analyze data, and visualize results.
mixpanel
Connect to your Mixpanel data. Query events, retention, and funnel data from Mixpanel analytics.

Sequential Thinking MCP Server
This server facilitates structured problem-solving by breaking down complex issues into sequential steps, supporting revisions, and enabling multiple solution paths through full MCP integration.

Nefino MCP Server
Provides large language models with access to news and information about renewable energy projects in Germany, allowing filtering by location, topic (solar, wind, hydrogen), and date range.
Vectorize
Vectorize MCP server for advanced retrieval, Private Deep Research, Anything-to-Markdown file extraction and text chunking.
Mathematica Documentation MCP server
A server that provides access to Mathematica documentation through FastMCP, enabling users to retrieve function documentation and list package symbols from Wolfram Mathematica.
kb-mcp-server
An MCP server aimed to be portable, local, easy and convenient to support semantic/graph based retrieval of txtai "all in one" embeddings database. Any txtai embeddings db in tar.gz form can be loaded
Research MCP Server
The server functions as an MCP server to interact with Notion for retrieving and creating survey data, integrating with the Claude Desktop Client for conducting and reviewing surveys.