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
- 01Query Blockscout API endpoints
- 02Retrieve block and transaction details
- 03Inspect accounts and balances
- 04Explore tokens and transfers
- 05Call smart contracts
Use cases
- 01Look up blockchain transactions and blocks
- 02Check account balances and activity
- 03Review token holders and transfers
- 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.
Tools
Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.
Details
From the project READMEBlockscout 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
- Clone the repository:
git clone <repository-url>
cd blockscout-mcp
- Install dependencies:
npm install
- Build the project:
npm run build
- 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:
BLOCKSCOUT_API_URL: The Blockscout API endpoint URL to connect to (e.g., 'https://mainnet.game7.io/api' or 'https://testnet.game7.io/api')
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:
searchget_transactionsget_blocksget_token_transfersget_statsget_transaction_infoget_transaction_token_transfersget_transaction_internal_txsget_transaction_logsget_block_infoget_block_transactionsget_address_infoget_address_token_transfersget_token_infoget_token_holdersget_internal_transactionsget_main_page_transactionsget_main_page_blocksget_indexing_statusget_transaction_chartget_market_chartget_transaction_raw_traceget_transaction_state_changesget_transaction_summaryget_block_withdrawalsget_address_countersget_address_internal_transactionsget_address_logsget_address_blocks_validatedget_address_coin_balance_historyget_address_coin_balance_history_by_dayget_smart_contractsget_smart_contract_countersget_smart_contractget_json_rpc_urlget_account_abstraction_statusget_addressesget_address_transactionsget_address_token_balancesget_address_tokensget_address_withdrawalsget_address_nftsget_address_nft_collectionsget_tokensget_token_transfers_listget_token_countersget_token_instancesget_token_instance_by_idget_token_instance_transfersget_token_instance_holdersget_token_instance_transfers_countrefetch_token_instance_metadataget_withdrawalssearch_redirect
Comments
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.