polygon-mcp
Documentation
Polygon MCP Server
A Model Context Protocol (MCP) server that provides onchain tools for Claude AI, allowing it to interact with the Polygon PoS blockchain.
Features
- Call contract functions on Polygon PoS
- Get ERC20 token balances
- Transfer ERC20 tokens
- Get current gas prices
Installation
1. Clone this repository:
git clone https://github.com/your-username/polygon-mcp.git
cd polygon-mcp2. Install dependencies:
npm install3. Build the project:
npm run buildConfiguration
Create a `.env` file in the root directory with the following variables:
SEED_PHRASE="your twelve word seed phrase here"Usage
Running the server
npm startUsing with Claude
To use this MCP server with Claude, you need to add it to your MCP settings file:
For VSCode Claude extension:
{
"mcpServers": {
"polygon": {
"command": "node",
"args": ["/path/to/polygon-mcp/build/index.js"],
"env": {
"SEED_PHRASE": "your twelve word seed phrase here"
},
"disabled": false,
"autoApprove": []
}
}
}For Claude desktop app:
{
"mcpServers": {
"polygon": {
"command": "node",
"args": ["/path/to/polygon-mcp/build/index.js"],
"env": {
"SEED_PHRASE": "your twelve word seed phrase here"
},
"disabled": false,
"autoApprove": []
}
}
}Available Tools
call_contract
Call a contract function on Polygon PoS.
Parameters:
- `contractAddress`: The address of the contract to call
- `functionName`: The name of the function to call
- `functionArgs`: The arguments to pass to the function
- `abi`: The ABI of the contract
- `value` (optional): The value of MATIC to send with the transaction
erc20_balance
Get the balance of an ERC20 token on Polygon PoS.
Parameters:
- `contractAddress`: The address of the contract to get the balance of
erc20_transfer
Transfer an ERC20 token on Polygon PoS.
Parameters:
- `contractAddress`: The address of the contract to transfer the token from
- `toAddress`: The address of the recipient
- `amount`: The amount of tokens to transfer
get_gas_price
Get the current gas price on Polygon PoS.
License
MIT
Frequently asked questions
What is polygon-mcp?
polygon-mcp is a Model Context Protocol (MCP) server listed in the TrackMCP directory.
How do I install polygon-mcp?
Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.
Is polygon-mcp open source?
Yes — it is hosted on GitHub at https://github.com/Dablclub/polygon-mcp and has 6 stars.
Related MCP tools
Connect an MCP Client that only supports local (stdio) servers to a Remote MCP Server, with auth support: TypeScript-based implementation.
- Discover available MCP servers from our curated registry TypeScript-based implementation.
🍒 Cherry Studio is a desktop client that supports for multiple LLM providers. Built for the Model Context Protocol to enhance AI capabilities.
Enhanced ChatGPT Clone: Features Agents, MCP, DeepSeek, Anthropic, AWS, OpenAI, Responses API, Azure, Groq, o1, GPT-5, Mistral, OpenRouter, Vertex AI, Gemini...
FastGPT is a knowledge-based platform built on the LLMs, offers a comprehensive suite of out-of-the-box capabilities such as data processing, RAG retrieval, ...
Composio equips your AI agents & LLMs with 100+ high-quality integrations via function calling for the Model Context Protocol. Enhance AI assistants with powerf
Run your own MCP server? See who uses it and what to fix.
Measure it with TrackMCP