npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

etherscan-mcp-for-dev

v0.1.4

Published

An etherscan mcp made for developer

Readme

Etherscan MCP Server for Developer

License: MIT Built with xmcp

A powerful Model Context Protocol (MCP) server that brings Etherscan's blockchain data directly to your AI tools like Claude Code and Cursor! 🚀

Overview 🌟

This MCP server is specifically designed for dApp and smart contract developers! 👨‍💻 It supercharges your AI assistant with essential blockchain development tools by providing direct access to Etherscan's data:

  • 📄 Smart Contract ABIs - Fetch contract interfaces instantly for integration
  • 🔍 Contract Details - Get comprehensive contract information including source code
  • 🌐 Multi-Chain Support - Works across all major EVM networks

Optimized for developers: Only includes the most essential tools to keep context consumption small

Built with the awesome xmcp framework for maximum developer happiness! ✨

🚀 Getting Started

Prerequisites

  • Node.js (v20 or higher)
  • pnpm
  • An Etherscan API key (get yours at etherscan.io)

Installation & Setup

  1. Clone and Install

    git clone <your-repo-url>
    cd etherscan-mcp-for-dev
    pnpm install
  2. Development Server

    pnpm dev

    This fires up the MCP server with hot reloading! 🔥

  3. Build for Production

    pnpm build

🏗️ Project Structure

This project follows the xmcp structured approach where tools live in the src/tools directory and are automatically discovered:

src/
├── tools/
│   ├── getContractAbi.ts        # 📋 Fetch contract ABIs
│   ├── getContractDetail.ts     # 🔍 Get detailed contract info
│   └── getSupportedChains.ts    # 🌐 List supported chains
└── ...

Each tool follows this pattern:

import { z } from "zod";
import { type InferSchema } from "xmcp";

// 📝 Define parameters with Zod validation
export const schema = {
  address: z.string().describe("Contract address"),
  chain: z.string().describe("Chain name or ID"),
};

// 🏷️ Tool metadata
export const metadata = {
  name: "getContractAbi",
  description: "Fetch smart contract ABI from Etherscan",
  annotations: {
    title: "Get Contract ABI",
    readOnlyHint: true,
    destructiveHint: false,
    idempotentHint: true,
  },
};

// ⚡ Implementation
export default async function getContractAbi({ address, chain }: InferSchema<typeof schema>) {
  // Your awesome logic here!
  return {
    content: [{ type: "text", text: "Contract ABI data..." }],
  };
}

🛠️ Available Tools

getContractAbi 📋

Fetches the Application Binary Interface (ABI) for any verified smart contract.

Example Claude query:

"Can you get the ABI for the 0xdac17f958d2ee523a2206206994597c13d831ec7 on ethereum?"

getContractDetail 🔍

Retrieves comprehensive contract information including source code, compiler version, and proxy details.

Example Claude query:

"Show me the source code for contract 0xdac17f958d2ee523a2206206994597c13d831ec7 on ethereum"

getSupportedChains 🌐

Lists all supported blockchain networks and their chain IDs.

Example Claude query:

"What blockchains does etherscan support?"

🏃‍♂️ Running the Server

Development

pnpm dev  # Hot reloading goodness ⚡

Production

# Build first
pnpm build

# Then run with STDIO transport:
pnpm start

🔧 Integration with AI Tools

  1. Open Your AI Tools MCP configuration file:

    • Cursor: ~/.cursor/mcp.json
    • Windsurf: ~/.codeium/windsurf/mcp_config.json
    • Cline: ~/.cline/mcp_config.json
    • Claude: ~/.claude/mcp_config.json
  2. Add configuration:

    {
      "mcpServers": {
        "etherscan-mcp": {
          "command": "npx",
          "args": ["-y", "etherscan-mcp-for-dev@latest"],
          "env": {
            "ETHERSCAN_API_KEY": "your_api_key_here"
          }
        }
      }
    }

📚 Learn More

📄 License

MIT License - see LICENSE for details.


Built with ❤️ using xmcp