This MCP server provides tools for AI agents to mint and interact with ERC-20 tokens across 21 different blockchains. It enables token deployment, transfers, and queries through a standardized interface.
git clone https://github.com/kukapay/token-minter-mcp.git
cd token-minter-mcp/server
npm install
Set up your configuration file with the following format:
{
"mcpServers": {
"Token-Minter-MCP": {
"command": "node",
"args": ["path/to/token-minter-mcp/server/index.js"],
"env": {
"INFURA_KEY": "your infura key",
"PRIVATE_KEY": "your private key"
}
}
}
}
Input:
I want to create a new token called 'RewardToken' with the symbol 'RWD' on Arbitrum. It should have 5 million tokens in initial supply and use 6 decimal places.
Response:
Token deployment initiated on Arbitrum (chainId: 42161)!
Name: RewardToken
Symbol: RWD
Decimals: 6
Initial Supply: 5000000 tokens
Transaction Hash: 0xabc123...
Note: Use 'getTransactionInfo' to check deployment status.
Input:
Can you tell me how much POL I have in my wallet on the Polygon network?
Response:
Account Balance on Polygon (chainId: 137):
Address: 0xYourAddressHere
Balance: 25.3478 POL
Input:
What's the balance of my newly created token on Polygon?
Response:
Token Balance on Polygon (chainId: 137):
Address: 0xYourAddressHere
Token: 0xYourTokenAddressHere
Symbol: ABCD
Balance: 10000000.00 ABCD
Input:
Please transfer 150.75 USDC from my account to 0xRecipientAddressHere on Polygon.
Response:
Transfer initiated on Polygon (chainId: 137)!
Token: 0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174
To: 0xRecipientAddressHere
Amount: 150.75 (150.75 tokens)
Transaction Hash: 0xdef456...
Note: Use 'getTransactionInfo' to check transfer status.
Input:
What's the status of my token deployment transaction with hash 0xabc123... on Arbitrum?
Response:
Transaction Info on Arbitrum (chainId: 42161):
Hash: 0xabc123...
From: 0xYourAddressHere
To: Contract Creation
Value: 0 ETH
Status: Success
Deployed Contract Address: 0xNewTokenAddressHere
Input:
Give me the details of the token at address 0xNewTokenAddressHere on Arbitrum.
Response:
Token Info on Arbitrum (chainId: 42161):
Address: 0xNewTokenAddressHere
Name: RewardToken
Symbol: RWD
Decimals: 6
Total Supply: 5000000
Input:
How do I deploy a token on Polygon? What details do I need to provide?
Response:
To deploy a token on Polygon (chainId: 137), use the "deployToken" tool with these parameters:
- name: The token's full name (e.g., "MyToken")
- symbol: The token's ticker (e.g., "MTK")
- initialSupply: Amount in token units (e.g., 1000000 for 1M tokens, default 1,000,000)
- decimals: Optional number of decimals (default is 18)
- chainId: Optional chain ID (default is 1 for Ethereum)
cd token-minter-mcp
npm install
npx hardhat node
Use chainId: 1337 in your prompts to test locally.
Chain ID | Network Name | Native Token |
---|---|---|
1 | Ethereum | ETH |
137 | Polygon | POL |
56 | BSC | BNB |
42161 | Arbitrum | ETH |
10 | Optimism | ETH |
59144 | Linea | ETH |
8453 | Base | ETH |
81457 | Blast | ETH |
11297108109 | Palm | PALM |
43114 | Avalanche | AVAX |
42220 | Celo | CELO |
324 | zkSync | ETH |
5000 | Mantle | MNT |
204 | opBNB | BNB |
534352 | Scroll | ETH |
1923 | Swellchain | ETH |
130 | Unichain | ETH |
23448594291968334 | Starknet | ETH |
80094 | Berachain | BERA |
999 | Hyperliquid | HYPE |
146 | Sonic | S |
1337 | Localhost | ETH |
To add this MCP server to Claude Code, run this command in your terminal:
claude mcp add-json "token-minter" '{"command":"node","args":["path/to/token-minter-mcp/server/index.js"],"env":{"INFURA_KEY":"your infura key","PRIVATE_KEY":"your private key"}}'
See the official Claude Code MCP documentation for more details.
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"token-minter": {
"command": "node",
"args": [
"path/to/token-minter-mcp/server/index.js"
],
"env": {
"INFURA_KEY": "your infura key",
"PRIVATE_KEY": "your private key"
}
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.
To add this MCP server to Claude Desktop:
1. Find your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
~/.config/Claude/claude_desktop_config.json
2. Add this to your configuration file:
{
"mcpServers": {
"token-minter": {
"command": "node",
"args": [
"path/to/token-minter-mcp/server/index.js"
],
"env": {
"INFURA_KEY": "your infura key",
"PRIVATE_KEY": "your private key"
}
}
}
}
3. Restart Claude Desktop for the changes to take effect