Token Revoke
FreeStale (541d)Enables secure management and revocation of ERC20 token allowances across 40+ blockchain networks, helping users protect their assets by controlling which proto
About
Enables secure management and revocation of ERC20 token allowances across 40+ blockchain networks, helping users protect their assets by controlling which protocols have permission to spend their tokens.
README
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
fetchsupport). - 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-mcpInstall Dependencies:
npm installClient 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_CHAINSinserver.js.
License
This project is licensed under the MIT License. See the LICENSE file for details.
Install Token Revoke in Claude Desktop, Claude Code & Cursor
unyly install token-revokeInstalls into Claude Desktop, Claude Code, Cursor & VS Code — handles npx, uvx and build-from-source repos for you.
First time? Get the CLI: curl -fsSL https://unyly.org/install | sh
Or configure manually
Run in your terminal:
claude mcp add token-revoke --env MORALIS_API_KEY="" --env PRIVATE_KEY="" -- npx -y token-revoke-mcpStep-by-step: how to install Token Revoke
FAQ
Is Token Revoke MCP free?
Yes, Token Revoke MCP is free — one-click install via Unyly at no cost.
Does Token Revoke need an API key?
Yes, it requires environment variables: MORALIS_API_KEY, PRIVATE_KEY. Unyly injects them into the config during install.
Is Token Revoke hosted or self-hosted?
Self-hosted: the server runs locally on your machine via the install command above.
How do I install Token Revoke in Claude Desktop, Claude Code or Cursor?
Open Token Revoke on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
Changes
Versions and requested access over time.
- New version published
- New version published
Related MCPs
GitHub
PRs, issues, code search, CI status
by GitHubFilesystem
Secure file operations with configurable access controls.
Memory
Knowledge graph-based persistent memory system.
Template MCP Server
A CLI tool to create a new Model Context Protocol server project with TypeScript support, dual transport options, and an extensible structure
by mcpdotdirectAmap Maps Mcp Server
MCP server for using the AMap Maps API
by duxiaohuiSupabase
Database, auth and storage
by SupabaseEverything
Reference / test server with prompts, resources, and tools.
Git
Tools to read, search, and manipulate Git repositories.
Sequential Thinking
Dynamic and reflective problem-solving through thought sequences.
Time
Time and timezone conversion capabilities.
Compare Token Revoke with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All development MCPs
