mcpField
B
Blockscout MCP Server

Blockscout MCP Server

Local
github.com/karacurtFinance4Updated 82w ago

About Blockscout MCP Server

Blockscout MCP Server connects AI models to the Blockscout API through a standardized MCP interface. It provides tools for querying blockchain data, including blocks, transactions, accounts, tokens, and smart contracts.

Key features

  1. 01Query Blockscout API endpoints
  2. 02Retrieve block and transaction details
  3. 03Inspect accounts and balances
  4. 04Explore tokens and transfers
  5. 05Call smart contracts

Use cases

  1. 01Look up blockchain transactions and blocks
  2. 02Check account balances and activity
  3. 03Review token holders and transfers
  4. 04Make contract calls through Blockscout

MCP support

The server exposes Blockscout API capabilities as tools for MCP clients, including search and retrieval of blockchain data. The API endpoint is configured with `BLOCKSCOUT_API_URL`.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json · Universal config
{
"mcpServers": {
"blockscout": {
"command": "npx",
"args": [
"-y",
"blockscout-mcp"
],
"env": {
"BLOCKSCOUT_API_URL": "<BLOCKSCOUT_API_URL>"
}
}
}
}
Run commandnpx -y blockscout-mcp
Environment variables to set
BLOCKSCOUT_API_URL

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
npmblockscout-mcp

Tools

No tool list yet

Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.

Details

From the project README

Blockscout MCP Server

This is a Model Context Protocol (MCP) server implementation for interacting with the Blockscout API. It provides a standardized interface for AI models to interact with the Blockscout API.

Features

  • Support for any Blockscout API endpoint
  • Get current block number
  • Check account balances
  • Get transaction counts (nonces)
  • Retrieve block information
  • Get transaction details
  • Make contract calls

Prerequisites

  • Node.js (v16 or higher)
  • npm (Node Package Manager)

Installation

  1. Clone the repository:
git clone <repository-url>
cd blockscout-mcp
  1. Install dependencies:
npm install
  1. Build the project:
npm run build
  1. Install globally:
npm install -g .

This global installation makes the blockscout-mcp command available system-wide, which is required for Cursor to find and execute the MCP server.

Configuration

The server uses the following environment variable:

Cursor MCP Configuration

Add the following to your mcp.json file in your Cursor (Settings > MCP > Add New Global Server):

{
  "mcpServers": {
    "blockscout-mcp": {
      "command": "npx",
      "args": ["-y", "blockscout-mcp"],
      "env": {
        "BLOCKSCOUT_API_URL": "YOUR_API_ENDPOINT"
      }
    }
  } 
}

This configuration will make the following tools available in Cursor:

  • search
  • get_transactions
  • get_blocks
  • get_token_transfers
  • get_stats
  • get_transaction_info
  • get_transaction_token_transfers
  • get_transaction_internal_txs
  • get_transaction_logs
  • get_block_info
  • get_block_transactions
  • get_address_info
  • get_address_token_transfers
  • get_token_info
  • get_token_holders
  • get_internal_transactions
  • get_main_page_transactions
  • get_main_page_blocks
  • get_indexing_status
  • get_transaction_chart
  • get_market_chart
  • get_transaction_raw_trace
  • get_transaction_state_changes
  • get_transaction_summary
  • get_block_withdrawals
  • get_address_counters
  • get_address_internal_transactions
  • get_address_logs
  • get_address_blocks_validated
  • get_address_coin_balance_history
  • get_address_coin_balance_history_by_day
  • get_smart_contracts
  • get_smart_contract_counters
  • get_smart_contract
  • get_json_rpc_url
  • get_account_abstraction_status
  • get_addresses
  • get_address_transactions
  • get_address_token_balances
  • get_address_tokens
  • get_address_withdrawals
  • get_address_nfts
  • get_address_nft_collections
  • get_tokens
  • get_token_transfers_list
  • get_token_counters
  • get_token_instances
  • get_token_instance_by_id
  • get_token_instance_transfers
  • get_token_instance_holders
  • get_token_instance_transfers_count
  • refetch_token_instance_metadata
  • get_withdrawals
  • search_redirect

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.