Skip to main content
Glama

Polygon MCP Server

by Dablclub

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-mcp
  1. Install dependencies:
npm install
  1. 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 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

-
security - not tested
F
license - not found
-
quality - not tested

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

A Model Context Protocol (MCP) server that provides onchain tools for Claude AI, allowing it to interact with the Polygon PoS blockchain to call contract functions, manage ERC20 tokens, and check gas prices.

  1. Features
    1. Installation
      1. Configuration
        1. Usage
          1. Running the server
          2. Using with Claude
        2. Available Tools
          1. call_contract
          2. erc20_balance
          3. erc20_transfer
          4. get_gas_price
        3. License

          Related MCP Servers

          • -
            security
            F
            license
            -
            quality
            A Model Context Protocol server that allows Claude to make API requests on your behalf, providing tools for testing various APIs including HTTP requests and OpenAI integrations without sharing your API keys in the chat.
            Last updated -
            Python
            • Linux
            • Apple
          • -
            security
            F
            license
            -
            quality
            A Model Context Protocol server that provides onchain tools for Claude AI, allowing it to interact with the Solana blockchain through a standardized interface for operations like managing assets, executing token operations, and retrieving network information.
            Last updated -
            7
            TypeScript
          • A
            security
            F
            license
            A
            quality
            A Model Context Protocol (MCP) server that allows Claude AI to interact with custom tools, enabling extension of Claude's capabilities through the MCP framework.
            Last updated -
            TypeScript
            • Apple
          • -
            security
            F
            license
            -
            quality
            A Model Context Protocol server that extends Claude's capabilities by providing tools to interact with the Solana blockchain, allowing AI agents to perform operations like executing transactions, managing wallets, and accessing token information.
            Last updated -
            1
            • Apple
            • Linux

          View all related MCP servers

          MCP directory API

          We provide all the information about MCP servers via our MCP API.

          curl -X GET 'https://glama.ai/api/mcp/v1/servers/Dablclub/polygon-mcp'

          If you have feedback or need assistance with the MCP directory API, please join our Discord server