{"_id":"@colygon/polygon-mcp","_rev":"2-07bff7e305dd17f6141719231559171a","name":"@colygon/polygon-mcp","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@colygon/polygon-mcp","version":"1.0.0","keywords":["mcp","claude","polygon","matic","blockchain","ethereum","web3","ai"],"author":{"name":"Dablclub"},"license":"MIT","_id":"@colygon/polygon-mcp@1.0.0","maintainers":[{"name":"colygon","email":"colin@lowenberg.org"}],"homepage":"https://github.com/Dablclub/polygon-mcp#readme","bugs":{"url":"https://github.com/Dablclub/polygon-mcp/issues"},"bin":{"polygon-mcp":"build/index.js"},"dist":{"shasum":"75a494986ddb2df01a7be5c6ff2095a2a264ba8e","tarball":"https://registry.npmjs.org/@colygon/polygon-mcp/-/polygon-mcp-1.0.0.tgz","fileCount":15,"integrity":"sha512-4Efs6BY190Dw41x+0GbvBSFLCDqFRJETWU0GEx7Z/I3gWqYC/q2qtYlAtsuqCJU/gthaVQNFeQ8cA17H2Iwvmw==","signatures":[{"sig":"MEQCIB/2T4naxFJB5weTryHFi/LlYbhTlM0nz0vePcq0B0v1AiAvumBkvaeAuctsW81jvAMacz1DkF5r6LbbqB1so94oHA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":47235},"type":"module","gitHead":"7346ba06f044bb857b9d054eebf2f6ac6879f6a6","scripts":{"dev":"tsc --watch","run":"ts-node src/index.ts","test":"node test-polygon-mcp.js","build":"tsc && chmod +x build/index.js","start":"node build/index.js","submit":"node scripts/submit-to-directory.js","test:npm":"node test-npm-install.js","prepublishOnly":"npm run build"},"_npmUser":{"name":"colygon","email":"colin@lowenberg.org"},"repository":{"url":"git+https://github.com/Dablclub/polygon-mcp.git","type":"git"},"_npmVersion":"11.2.0","description":"A Model Context Protocol (MCP) server that provides onchain tools for Claude AI, allowing it to interact with the Polygon PoS blockchain","directories":{},"_nodeVersion":"23.5.0","dependencies":{"zod":"^3.24.2","viem":"^2.23.9","bip39":"^3.1.0","dotenv":"^16.4.7","ethers":"^6.13.5","graphql":"^16.10.0","graphql-request":"^7.1.2","reflect-metadata":"^0.2.2","@modelcontextprotocol/sdk":"^1.6.1"},"_hasShrinkwrap":false,"packageManager":"yarn@4.5.1","devDependencies":{"react":"^19.0.0","nodemon":"^3.1.9","ts-node":"^10.9.2","prettier":"^3.5.3","react-dom":"^19.0.0","typescript":"^5.8.2","@types/node":"^22.13.9","@types/react":"^19","@types/react-dom":"^19"},"_npmOperationalInternal":{"tmp":"tmp/polygon-mcp_1.0.0_1742101227298_0.323840578229587","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@colygon/polygon-mcp","version":"1.0.1","description":"A Model Context Protocol (MCP) server that provides onchain tools for Claude AI, allowing it to interact with the Polygon PoS blockchain","bin":{"polygon-mcp":"build/index.js"},"type":"module","scripts":{"run":"ts-node src/index.ts","dev":"tsc --watch","build":"tsc && chmod +x build/index.js","start":"node build/index.js","test":"node test-polygon-mcp.js","test:npm":"node test-npm-install.js","submit":"node scripts/submit-to-directory.js","prepublishOnly":"npm run build"},"repository":{"type":"git","url":"git+https://github.com/Dablclub/polygon-mcp.git"},"keywords":["mcp","claude","polygon","matic","blockchain","ethereum","web3","ai"],"author":{"name":"Dablclub"},"license":"MIT","packageManager":"yarn@4.5.1","dependencies":{"@modelcontextprotocol/sdk":"^1.6.1","bip39":"^3.1.0","dotenv":"^16.4.7","ethers":"^6.13.5","graphql":"^16.10.0","graphql-request":"^7.1.2","reflect-metadata":"^0.2.2","viem":"^2.23.9","zod":"^3.24.2"},"devDependencies":{"@types/node":"^22.13.9","@types/react":"^19","@types/react-dom":"^19","nodemon":"^3.1.9","prettier":"^3.5.3","react":"^19.0.0","react-dom":"^19.0.0","ts-node":"^10.9.2","typescript":"^5.8.2"},"_id":"@colygon/polygon-mcp@1.0.1","gitHead":"7346ba06f044bb857b9d054eebf2f6ac6879f6a6","bugs":{"url":"https://github.com/Dablclub/polygon-mcp/issues"},"homepage":"https://github.com/Dablclub/polygon-mcp#readme","_nodeVersion":"23.5.0","_npmVersion":"11.2.0","dist":{"integrity":"sha512-kmlDm1L7lVxOMKotzV8WWKH4zhMHWbmssqUgMlgW3qbH+kWv5ptZhjvvuO4WDnalZmwIrIyjf5ep460WBwesrg==","shasum":"ef9e2be55830da7bfd93490ea643021d34c1e113","tarball":"https://registry.npmjs.org/@colygon/polygon-mcp/-/polygon-mcp-1.0.1.tgz","fileCount":15,"unpackedSize":47235,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCGcZw7G17hXtSPeSvXNccOtkMhvI5rq2DUe4HMCfVDjgIhAO394ZhEi+DWnRN0f8uP14B7yXd7XurkXSChMGaJ0uUF"}]},"_npmUser":{"name":"colygon","email":"colin@lowenberg.org"},"directories":{},"maintainers":[{"name":"colygon","email":"colin@lowenberg.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/polygon-mcp_1.0.1_1742101621437_0.7273245625745728"},"_hasShrinkwrap":false}},"time":{"created":"2025-03-16T05:00:27.168Z","modified":"2025-03-16T05:07:01.856Z","1.0.0":"2025-03-16T05:00:27.467Z","1.0.1":"2025-03-16T05:07:01.670Z"},"bugs":{"url":"https://github.com/Dablclub/polygon-mcp/issues"},"author":{"name":"Dablclub"},"license":"MIT","homepage":"https://github.com/Dablclub/polygon-mcp#readme","keywords":["mcp","claude","polygon","matic","blockchain","ethereum","web3","ai"],"repository":{"type":"git","url":"git+https://github.com/Dablclub/polygon-mcp.git"},"description":"A Model Context Protocol (MCP) server that provides onchain tools for Claude AI, allowing it to interact with the Polygon PoS blockchain","maintainers":[{"name":"colygon","email":"colin@lowenberg.org"}],"readme":"# Polygon MCP Server\n\nA Model Context Protocol (MCP) server that provides onchain tools for Claude AI, allowing it to interact with the Polygon PoS blockchain.\n\n## Features\n\n- Call contract functions on Polygon PoS\n- Get ERC20 token balances\n- Transfer ERC20 tokens\n- Get current gas prices\n\n## Installation\n\n### Option 1: Install from npm (Recommended)\n\n```bash\nnpm install -g @colygon/polygon-mcp\n```\n\nThis will install the Polygon MCP server globally on your system.\n\n### Option 2: Install from source\n\n1. Clone this repository:\n```bash\ngit clone https://github.com/Dablclub/polygon-mcp.git\ncd polygon-mcp\n```\n\n2. Install dependencies:\n```bash\nnpm install\n```\n\n3. Build the project:\n```bash\nnpm run build\n```\n\n## Configuration\n\nCreate a `.env` file in the root directory with the following variables:\n\n```\nSEED_PHRASE=\"your twelve word seed phrase here\"\n```\n\n## Usage\n\n### Running the server\n\nIf installed globally via npm:\n```bash\npolygon-mcp\n```\n\nIf installed from source:\n```bash\nnpm start\n```\n\n### Testing the server\n\nA test script is included to demonstrate how to use the Polygon MCP server tools:\n\n```bash\nnode test-polygon-mcp.js\n```\n\nThis script will show examples of how to use each of the available tools in Claude.\n\n### Using with Claude\n\nTo use this MCP server with Claude, you need to add it to your MCP settings file:\n\n#### If installed globally via npm:\n\nFor VSCode Claude extension:\n```json\n{\n  \"mcpServers\": {\n    \"polygon\": {\n      \"command\": \"polygon-mcp\",\n      \"env\": {\n        \"SEED_PHRASE\": \"your twelve word seed phrase here\"\n      },\n      \"disabled\": false,\n      \"autoApprove\": []\n    }\n  }\n}\n```\n\nFor Claude desktop app:\n```json\n{\n  \"mcpServers\": {\n    \"polygon\": {\n      \"command\": \"polygon-mcp\",\n      \"env\": {\n        \"SEED_PHRASE\": \"your twelve word seed phrase here\"\n      },\n      \"disabled\": false,\n      \"autoApprove\": []\n    }\n  }\n}\n```\n\n#### If installed from source:\n\nFor VSCode Claude extension:\n```json\n{\n  \"mcpServers\": {\n    \"polygon\": {\n      \"command\": \"node\",\n      \"args\": [\"/path/to/polygon-mcp/build/index.js\"],\n      \"env\": {\n        \"SEED_PHRASE\": \"your twelve word seed phrase here\"\n      },\n      \"disabled\": false,\n      \"autoApprove\": []\n    }\n  }\n}\n```\n\nFor Claude desktop app:\n```json\n{\n  \"mcpServers\": {\n    \"polygon\": {\n      \"command\": \"node\",\n      \"args\": [\"/path/to/polygon-mcp/build/index.js\"],\n      \"env\": {\n        \"SEED_PHRASE\": \"your twelve word seed phrase here\"\n      },\n      \"disabled\": false,\n      \"autoApprove\": []\n    }\n  }\n}\n```\n\n## Available Tools\n\n### call_contract\n\nCall a contract function on Polygon PoS.\n\nParameters:\n- `contractAddress`: The address of the contract to call\n- `functionName`: The name of the function to call\n- `functionArgs`: The arguments to pass to the function\n- `abi`: The ABI of the contract\n- `value` (optional): The value of MATIC to send with the transaction\n\n### erc20_balance\n\nGet the balance of an ERC20 token on Polygon PoS.\n\nParameters:\n- `contractAddress`: The address of the contract to get the balance of\n\n### erc20_transfer\n\nTransfer an ERC20 token on Polygon PoS.\n\nParameters:\n- `contractAddress`: The address of the contract to transfer the token from\n- `toAddress`: The address of the recipient\n- `amount`: The amount of tokens to transfer\n\n### get_gas_price\n\nGet the current gas price on Polygon PoS.\n\n## MCP Marketplace Submission\n\nThis MCP server is being submitted to the [Cline MCP Marketplace](https://github.com/cline/mcp-marketplace). The submission details can be found in the `mcp-marketplace-submission.md` file.\n\nTo complete the submission, you'll need to:\n1. Create a new issue in the MCP Marketplace repository\n2. Follow the submission steps outlined in the `mcp-marketplace-submission.md` file\n3. Attach the logo image (`assets/logo.png`) to your submission\n\n## License\n\nMIT\n","readmeFilename":"README.md"}