Polygon MCP Server
Provides on-chain tools to interact with the Polygon PoS blockchain.
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
- Clone this repository:
git clone https://github.com/your-username/polygon-mcp.git
cd polygon-mcp
- Install dependencies:
npm install
- Build the project:
npm run build
Configuration
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 start
Using 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 callfunctionName: The name of the function to callfunctionArgs: The arguments to pass to the functionabi: The ABI of the contractvalue(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 fromtoAddress: The address of the recipientamount: The amount of tokens to transfer
get_gas_price
Get the current gas price on Polygon PoS.
License
MIT
Serveurs connexes
MCP MariaDB Server
Manage and query MariaDB databases using the Model Context Protocol (MCP), with support for SQL and vector search.
MySQL MCP Server
A MySQL server that connects to a database using environment variables for configuration.
MySQL Server
Provides read-only access to MySQL databases, allowing LLMs to inspect schemas and execute queries.
MongoDB MCP Server
A server for performing CRUD operations on a MongoDB database.
MCP Postgres Query Server
An MCP server for querying a PostgreSQL database in read-only mode.
GLEIF MCP Server
Access the Global Legal Entity Identifier (LEI) database for company verification, KYC, and corporate ownership research via GLEIF's public API.
MCP PostgreSQL Server
A server that enables AI models to interact with PostgreSQL databases through a standardized interface.
CData Oracle SCM
A read-only MCP server for querying live Oracle SCM data, powered by the CData JDBC Driver.
OpenCTI MCP Server
Integrates with the OpenCTI platform to query and retrieve threat intelligence data.
Project Synapse MCP Server
Transforms raw text into interconnected knowledge graphs and generates insights using a Neo4j database.