ContractInfoMCP MCP Server

基于 MCP 协议的**本地**以太坊合约信息获取工具,支持在 Cursor 等 AI 工具中使用。采用 **uv** 作为现代化的 Python 项目管理工具。

Local serverstdioPython

What is the ContractInfoMCP MCP server?

If you want an AI assistant working directly with ContractInfoMCP, the contractinfomcp mcp server is the bridge. 基于 MCP 协议的本地以太坊合约信息获取工具,支持在 Cursor 等 AI 工具中使用。采用 uv 作为现代化的 Python 项目管理工具。.

What ContractInfoMCP does

基于 MCP 协议的本地以太坊合约信息获取工具,支持在 Cursor 等 AI 工具中使用。采用 uv 作为现代化的 Python 项目管理工具。

Tools it exposes

Once connected, the assistant can call these 2 tools directly:

  • ContractInfo — The ContractInfo tool exposed by this server
  • ContractSummary — The ContractSummary tool exposed by this server

Installing the contractinfomcp mcp server

Setup follows the standard MCP pattern: clone or install the server, then register it in your client's configuration file and restart the client. The configuration snippets on this page cover Claude Desktop, Claude Code and Cursor.

Configuration

Before the server will start you need to supply one environment variable: ETHERSCAN_API_KEY. Keep credentials in your client's env block or a secrets manager rather than committing them.

Where it fits

Developer-tool servers are usually the first ones people connect, because they turn "help me with this code" into an assistant that can actually read the repo and act on it. ContractInfoMCP sits in that group, and the shape of its toolset — ContractInfo, ContractSummary — tells you what it is really for. Worth comparing against the other developer tools servers in this directory before you commit to one, since several overlap in scope but differ sharply in setup cost and permissions.

Practical notes

  • This server runs locally, so it operates with whatever access your machine and its credentials already have. Scope that deliberately rather than by default.
  • It will not start until its required credentials are present, so set those before wondering why the tools never appear.
  • Maintained by ACaiSec, written in Python.
  • MCP clients ask for confirmation before each tool call by default. Keep that on while you learn what the contractinfomcp mcp server actually does with your data.
  • Every entry in this directory is reviewed by hand before it goes live, and details are checked against the project's own documentation.

Available tools

ToolWhat it does
ContractInfoThe ContractInfo tool exposed by this server.
ContractSummaryThe ContractSummary tool exposed by this server.

How to install the ContractInfoMCP MCP server

**Windows 用户**:
```json
{
  "mcpServers": {
    "contract-inspector": {
      "command": "<project_path>/.venv/Scripts/python.exe",
      "args": ["-m", "contract_inspector.main"],
      "cwd": "<project_path>"
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Configuration

VariableDescriptionRequired
ETHERSCAN_API_KEYCredential the server authenticates with.Yes

Example prompts to try

  • Use ContractInfoMCP to ContractInfo.
  • Use ContractInfoMCP to ContractSummary.

Frequently asked questions

It connects ContractInfoMCP to MCP-compatible AI assistants such as Claude and Cursor, exposing 2 tools (ContractInfo, ContractSummary) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with ContractInfoMCP directly.