by kukapay
Check and revoke ERC‑20 token allowances across multiple EVM‑compatible chains, providing risk assessment, transaction submission, and status tracking.
Token Revoke enables users to query all ERC‑20 token approvals for a wallet on any supported EVM chain, assess the USD value at risk, and submit revocation transactions to remove unwanted allowances.
npm install
.MORALIS_API_KEY
and PRIVATE_KEY
).node index.js
).Q: Which blockchains are supported? A: More than 50 EVM‑compatible chains, including major mainnets (Ethereum, Polygon, BSC, Avalanche, Fantom, Arbitrum, Optimism) and popular testnets.
Q: Do I need any third‑party services? A: Yes, a Moralis API key is required to fetch allowance data.
Q: How is the revocation transaction signed?
A: The server uses the private key supplied via the PRIVATE_KEY
environment variable to sign transactions locally.
Q: Can I check the status of a transaction after submission? A: Absolutely. Use the transaction hash in a prompt to query its current state (pending, successful, or failed).
Q: Is there a limit to the number of allowances I can fetch at once? A: The limit is dictated by the underlying Moralis API and blockchain node rate limits.
An MCP server for checking and revoking ERC-20 token allowances, enhancing security and control.
fetch
support).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"
}
}
}
}
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.
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"
}
]
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.
Input Prompt:
"Did my transaction 0x123... on BSC go through?"
Output Response (possible outputs):
Transaction 0x123... on bsc is still pending or not found.
Transaction 0x123... on bsc has completed with status: successful. Block number: 12345.
Transaction 0x123... on bsc has completed with status: failed. Block number: 12345.
The server supports a wide range of EVM-compatible chains based on the Moralis JS SDK’s chaindata.ts
. Examples include:
ethereum
, polygon
, bsc
, avalanche
, fantom
, arbitrum
, optimism
, etc.goerli
, mumbai
, bsc testnet
, arbitrum goerli
, optimism sepolia
, etc.SUPPORTED_CHAINS
in server.js
.This project is licensed under the MIT License. See the LICENSE file for details.
Please log in to share your review and rating for this MCP.
Discover more MCP servers with similar functionality and use cases
by chaitin
Provides a self‑hosted web application firewall and reverse‑proxy that filters, monitors, and blocks malicious HTTP/S traffic, protecting web applications from attacks such as SQL injection, XSS, brute‑force, bot abuse, and various code injections.
by PortSwigger
Integrates Burp Suite with AI clients via the Model Context Protocol, providing a built‑in SSE server and a packaged Stdio proxy for seamless AI‑driven interaction with Burp.
by cycodehq
Boost security in the development lifecycle via static application security testing, software composition analysis, secrets detection, and infrastructure‑as‑code scanning.
by auth0
Auth0 MCP Server enables AI agents to manage Auth0 tenants using natural language, streamlining tasks like application and user management.
by ChristophEnglisch
keycloak-model-context-protocol is an MCP server implementation for Keycloak user management, enabling AI-powered administration of Keycloak users and realms through the Model Context Protocol (MCP).
by Spathodea-Network
OpenCTI MCP Server is a Model Context Protocol (MCP) server that provides seamless integration with the OpenCTI (Open Cyber Threat Intelligence) platform, enabling querying and retrieving threat intelligence data through a standardized interface.
by mytechnotalent
Provides real-time threat intelligence and detailed malware sample metadata from Malware Bazaar through an AI‑driven MCP server, enabling authorized cybersecurity research workflows.
by kapilduraphe
This project provides an Okta MCP (Multi-Cloud Platform) server that enables Claude to interact with Okta's user management system, offering comprehensive user and group management capabilities along with onboarding automation.
by descope-sample-apps
descope-mcp-server-stdio is a Model Context Protocol (MCP) server that integrates Descope's Management APIs with applications like Claude Desktop. It enables users to manage user data and audit logs directly from their desktop environment.