Sponsored by Deepsite.site

Blockscout MCP Server

Created By
blockscout6 months ago
Wraps Blockscout APIs and exposes blockchain data by Model Context Protocol
Content

Blockscout MCP Server

The Model Context Protocol (MCP) is an open protocol designed to allow AI agents, IDEs, and automation tools to consume, query, and analyze structured data through context-aware APIs.

This server wraps Blockscout APIs and exposes blockchain data—balances, tokens, NFTs, contract metadata—via MCP so that AI agents and tools (like Claude, Cursor, or IDEs) can access and analyze it contextually.

Key Features:

  • Contextual blockchain data access for AI tools
  • Multi-chain support via getting Blockscout instance URLs from Chainscout
  • Custom instructions for MCP host to use the server
  • Supports MCP progress notifications for multi-step tool operations, allowing clients to track execution status
  • Enhanced User Experience: Provides periodic progress updates for long-running API queries (e.g., fetching extensive transaction histories) when requested by the client, improving responsiveness

Technical details

Refer to SPEC.md for the technical details.

Repository Structure

Refer to AGENTS.md for the repository structure.

Tool Descriptions

  1. __get_instructions__() - Provides custom instructions for the MCP host to use the server. This tool is required since the field instructions of the MCP server initialization response is not used by the MCP host so far (tested on Claude Desktop).
  2. get_chains_list() - Returns a list of all known chains.
  3. get_address_by_ens_name(name) - Converts an ENS domain name to its corresponding Ethereum address.
  4. lookup_token_by_symbol(chain_id, symbol) - Searches for token addresses by symbol or name, returning multiple potential matches.
  5. get_contract_abi(chain_id, address) - Retrieves the ABI (Application Binary Interface) for a smart contract.
  6. get_address_info(chain_id, address) - Gets comprehensive information about an address including balance, ENS association, contract status, and token details.
  7. get_tokens_by_address(chain_id, address, ...) - Returns detailed ERC20 token holdings for an address with enriched metadata and market data.
  8. get_latest_block(chain_id) - Returns the latest indexed block number and timestamp.
  9. get_transactions_by_address(chain_id, address, age_from, age_to, methods) - Gets transactions for an address within a specific time range with optional method filtering.
  10. get_token_transfers_by_address(chain_id, address, age_from, age_to, token) - Returns ERC-20 token transfers for an address within a specific time range.
  11. transaction_summary(chain_id, hash) - Provides human-readable transaction summaries using Blockscout Transaction Interpreter.
  12. nft_tokens_by_address(chain_id, address) - Retrieves NFT tokens owned by an address, grouped by collection.
  13. get_block_info(chain_id, number_or_hash) - Returns block information including timestamp, gas used, burnt fees, and transaction count.
  14. get_transaction_info(chain_id, hash) - Gets comprehensive transaction information with decoded input parameters and detailed token transfers.
  15. get_transaction_logs(chain_id, hash) - Returns transaction logs with decoded event data.
  16. get_address_logs(chain_id, address, ...) - Gets logs emitted by a specific address with decoded event data.

Example Prompts for AI Agents (to be added)

Placeholder: Practical examples of prompts for chats or IDEs to retrieve and analyze blockchain data via the MCP server will be added in this section.

Installation & Usage

Local Installation

Clone the repository and install dependencies:

git clone https://github.com/blockscout/mcp-server.git
cd mcp-server
uv pip install -e . # or `pip install -e .`

Building Docker Image Locally

Build the Docker image with the official tag:

docker build -t ghcr.io/blockscout/mcp-server:latest .

Pulling from GitHub Container Registry

Pull the pre-built image:

docker pull ghcr.io/blockscout/mcp-server:latest

Configuring Claude Desktop

To use this MCP server with Claude Desktop:

  1. Open Claude Desktop and click on Settings

  2. Navigate to the "Developer" section

  3. Click "Edit Config"

  4. Open the file claude_desktop_config.json and configure the server:

    {
      "mcpServers": {
        "blockscout": {
          "command": "docker",
          "args": [
            "run", "--rm", "-i",
            "ghcr.io/blockscout/mcp-server:latest"
          ]
        }
      }
    }
    
  5. Save the file and restart Claude Desktop

  6. When chatting with Claude, you can now enable the Blockscout MCP Server to allow Claude to access blockchain data

License

This project is primarily distributed under the terms of the MIT license. See LICENSE for details.

Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
Tavily Mcp
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
DeepChatYour AI Partner on Desktop
WindsurfThe new purpose-built IDE to harness magic
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
Serper MCP ServerA Serper MCP Server
Amap Maps高德地图官方 MCP Server
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
Playwright McpPlaywright MCP server
Context7Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
ChatWiseThe second fastest AI chatbot™
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
CursorThe AI Code Editor
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.