Blockscout MCP Server
OfficialThe Blockscout MCP Server provides contextual blockchain data access for AI agents and tools via the Model Context Protocol (MCP). You can:
Access Multi-Chain Data: Retrieve blockchain data across multiple chains, including balances, tokens, NFTs, and contract metadata
Resolve ENS Names: Convert ENS domain names to Ethereum addresses
Analyze Smart Contracts: Fetch contract ABIs and detailed information
Examine Transactions: Get comprehensive transaction data with human-readable summaries and decoded logs
Track Token Activity: View ERC-20 transfers and NFT holdings for specific addresses
Query Block Information: Access detailed block data including timestamps, gas, and fees
Monitor Address Activity: Get transaction history, token holdings, and ENS names
Search Tokens: Find token addresses by symbol or name
Set Custom Instructions: Provide specific guidance for MCP hosts to use the server effectively
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Blockscout MCP Server show me the top 10 token holders for USDC on Ethereum"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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 Blockscout PRO API configuration with Chainscout metadata enrichment
Versioned REST API: Provides a standard, web-friendly interface to all MCP tools. See API.md for full documentation.
Custom instructions for MCP host to use the server
Intelligent context optimization to conserve LLM tokens while preserving data accessibility
Smart response slicing with configurable page sizes to prevent context overflow
Opaque cursor pagination using Base64URL-encoded strings instead of complex parameters
Automatic truncation of large data fields with clear indicators and access guidance
Standardized ToolResponse model with structured JSON responses and follow-up instructions
Enhanced observability with MCP progress notifications and periodic updates for long-running operations
Enhanced Analysis with Agent Skills
For more powerful and efficient blockchain analysis, install the Blockscout Analysis skill from the agent-skills repository. This skill provides AI agents with structured guidance for execution strategies, response handling, security best practices, and workflow orchestration.
Learn more: See the agent-skills README for full capabilities and installation instructions.
Related MCP server: EVM MCP Server
Configuring MCP Clients
Blockscout PRO API Key
Configuring the Blockscout MCP server with an AI agent requires a Blockscout PRO API key. Most of the data tools route their requests through the authenticated Blockscout PRO API gateway, so without a valid key those tools fail fast before making any upstream request.
To obtain a key, register on the Blockscout Developer Portal (the free tier does not require a credit card) and generate an API key; keys are prefixed proapi_. Then supply it when configuring your client, as shown in the sections below.
Claude Setup (Web, Desktop, Cowork) - Recommended
The easiest way to use the Blockscout MCP server with Claude is the official hosted server: a native, managed installation experience with automatic updates and nothing to run yourself. Add it as a Custom Connector with your own PRO API key. Claude sends the key on every request in an x-api-key header, which the server accepts as an alias for its Blockscout-MCP-Pro-Api-Key header.
Open Claude and go to Customize > Connectors. On Team and Enterprise plans an organization Owner does this under Organization settings > Connectors.
Click Add custom connector. Set the name to
Blockscoutand the URL tohttps://mcp.blockscout.com/mcp, then continue.Leave Authentication as
None(Claude detects it). A warning that the connector has no credentials is expected: the key is supplied in the next step.Open Request headers, select
x-api-keyfrom the list, and paste your PRO API key as the value. Pick exactly this name; the server does not read the other similar-looking names in the list.Click Add.
Note: The Request headers section is in beta and is not yet available to every organization. If your dialog does not show it, use the Connectors Directory below.
Note: On Team and Enterprise plans the key is entered once by the Owner and shared by the whole organization. Authentication settings cannot be edited after a connector is added: to change the key, remove the connector and add it again.
Using Claude Connectors Directory
If the Custom Connector dialog has no Request headers section, install the Blockscout connector from the official Anthropic Connectors Directory. It connects to the same hosted server but uses a shared access key.
Installation
Option 1: Direct Link
Visit claude.com/connectors/blockscout and click links in "Used in" section to install the Blockscout connector.
Option 2: Via Settings
Open Claude (Web or Desktop app)
Go to Settings > Connectors > Browse connectors
Search for "Blockscout"
Click "Connect" to install
Limitations: Due to the use of a shared access key, there may be restrictions on connector access and capabilities.
Claude Code Setup
Pass your PRO API key via the Blockscout-MCP-Pro-Api-Key header when adding the server:
claude mcp add --transport http blockscout https://mcp.blockscout.com/mcp \
--header "Blockscout-MCP-Pro-Api-Key: proapi_your_key_here"After running this command, Blockscout will be available as an MCP server in Claude Code, allowing you to access and analyze blockchain data directly from your coding environment.
ChatGPT Apps Setup
Install the Blockscout app from the ChatGPT Apps marketplace:
Open the Blockscout app page (or search for "Blockscout" in the ChatGPT Apps directory).
Click "Connect" to enable the app for your ChatGPT account.
Codex App Setup
Open Codex and go to Settings > MCP Servers > Add server.
Set Name to
Blockscout, select the Streamable HTTP tab, and set URL tohttps://mcp.blockscout.com/mcp.Under Headers, add a header with key
Blockscout-MCP-Pro-Api-Keyand valueproapi_your_key_here.Save and restart the Codex app.
Codex CLI Setup
Codex CLI cannot attach a custom header from the command line, so configure it in two steps:
Scaffold the server entry:
codex mcp add Blockscout --url https://mcp.blockscout.com/mcpEdit
~/.codex/config.tomlto add the PRO API key header and enable the streamable-HTTP MCP client (required for remote MCP servers to connect). The resulting configuration should look like this:[features] experimental_use_rmcp_client = true [mcp_servers.Blockscout] url = "https://mcp.blockscout.com/mcp" http_headers = { "Blockscout-MCP-Pro-Api-Key" = "proapi_your_key_here" }
Cursor Setup
Add the server to your Cursor MCP configuration — either the project-level .cursor/mcp.json or the global ~/.cursor/mcp.json — supplying your PRO API key via the Blockscout-MCP-Pro-Api-Key header:
{
"mcpServers": {
"blockscout": {
"url": "https://mcp.blockscout.com/mcp",
"timeout": 180000,
"headers": {
"Blockscout-MCP-Pro-Api-Key": "proapi_your_key_here"
}
}
}
}Local Development Setup (For Developers)
If you want to run the server locally for development purposes:
{
"mcpServers": {
"blockscout": {
"command": "docker",
"args": [
"run", "--rm", "-i",
"ghcr.io/blockscout/mcp-server:latest"
]
}
}
}Technical details
Refer to SPEC.md for the technical details.
Repository Structure
Refer to AGENTS.md for the repository structure.
Testing
Refer to TESTING.md for comprehensive instructions on running both unit and integration tests.
Tool Descriptions
__unlock_blockchain_analysis__()- Initializes a Blockscout MCP session: returns server reference data, theblockscout-analysisskill pointer, and the URI resolution rule. Call it once per session, before any other tool.get_chains_list(query=None)- Returns a list of supported chains, with optional filtering by name, chain ID, native currency, or ecosystem.get_address_by_ens_name(name)- Converts an ENS domain name to its corresponding Ethereum address.lookup_token_by_symbol(chain_id, symbol)- Searches for token addresses by symbol or name, returning multiple potential matches.get_contract_abi(chain_id, address)- Retrieves the ABI (Application Binary Interface) for a smart contract.inspect_contract_code(chain_id, address, file_name=None)- Allows getting the source files of verified contracts.get_address_info(chain_id, address)- Gets comprehensive information about an address including balance, ENS association, contract status, token details, and public tags.get_tokens_by_address(chain_id, address, cursor=None)- Returns detailed ERC20 token holdings for an address with enriched metadata and market data.get_block_number(chain_id, [datetime])- Retrieves the block number and timestamp for a specific date/time or the latest block.get_transactions_by_address(chain_id, address, age_from, age_to, methods, cursor=None)- Gets transactions for an address within a specific time range with optional method filtering.get_token_transfers_by_address(chain_id, address, age_from, age_to, token, cursor=None)- Returns ERC-20 token transfers for an address within a specific time range.nft_tokens_by_address(chain_id, address, cursor=None)- Retrieves NFT tokens owned by an address, grouped by collection.get_block_info(chain_id, number_or_hash, include_transactions=False)- Returns block information including timestamp, gas used, burnt fees, and transaction count. Can optionally include a list of transaction hashes.get_transaction_info(chain_id, hash, include_raw_input=False)- Gets comprehensive transaction information with decoded input parameters and detailed token transfers.read_contract(chain_id, address, abi, function_name, args='[]', block='latest')- Executes a read-only smart contract function and returns its result. Theabiargument is a JSON object describing the specific function's signature.direct_api_call(chain_id, endpoint_path, query_params=None, cursor=None, method='GET', json_body=None)- Calls a raw Blockscout API endpoint for advanced or chain-specific data. Supports GET (default) and POST requests with JSON body.
Example Prompts for AI Agents
Is any approval set for OP token on Optimism chain by `zeaver.eth`?Calculate the total gas fees paid on Ethereum by address `0xcafe...cafe` in May 2025.Which 10 most recent logs were emitted by `0xFe89cc7aBB2C4183683ab71653C4cdc9B02D44b7`
before `Nov 08 2024 04:21:35 AM (-06:00 UTC)`?Tell me more about the transaction `0xf8a55721f7e2dcf85690aaf81519f7bc820bc58a878fa5f81b12aef5ccda0efb`
on Redstone rollup.Is there any blacklisting functionality of USDT token on Arbitrum One?What is the latest block on Gnosis Chain and who is the block minter?
Were any funds moved from this minter recently?When the most recent reward distribution of Kinto token was made to the wallet
`0x7D467D99028199D99B1c91850C4dea0c82aDDF52` in Kinto chain?Which methods of `0x1c479675ad559DC151F6Ec7ed3FbF8ceE79582B6` on the Ethereum
mainnet could emit `SequencerBatchDelivered`?What is the most recent executed cross-chain message sent from the Arbitrum Sepolia
rollup to the base layer?Development & Deployment
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 .`To customize the leading part of the User-Agent header used for RPC requests,
set the BLOCKSCOUT_MCP_USER_AGENT environment variable (defaults to
"Blockscout MCP"). The server version is appended automatically.
Providing the PRO API Key to the Server
When you run the server yourself, provide the Blockscout PRO API key through the BLOCKSCOUT_PRO_API_KEY environment variable — exported in your shell or placed in a gitignored .env file in the project root. This enables all data access, public-tag enrichment, and contract reads. Never commit the key or embed it in a client-shipped binary; when running via Docker, pass it at runtime (e.g. -e BLOCKSCOUT_PRO_API_KEY=...) rather than baking it into the image.
export BLOCKSCOUT_PRO_API_KEY=proapi_your_key_hereClient-supplied keys (HTTP transports). When the server runs in HTTP mode, a client can supply its own PRO API key in a request header — by default Blockscout-MCP-Pro-Api-Key, configurable via BLOCKSCOUT_PRO_API_KEY_HEADER (set it to an empty string to disable client-supplied keys entirely). The server also reads the key from an x-api-key header, for clients whose header names are restricted to a fixed list (for example Claude Custom Connectors). The configured header wins when both are present; x-api-key is consulted only when the configured header is missing or blank, and disabling client-supplied keys disables it too. This works the same way for both HTTP transports — MCP-over-HTTP tool calls and the REST API. A client-supplied key takes precedence over BLOCKSCOUT_PRO_API_KEY for that request; if the client sends no key, the server falls back to its own configured key; if neither is present, the request fails with the not-configured error. A client key that is present but malformed fails any request that needs the PRO API with no fallback (the server never silently uses its own key in place of a bad client key); tools that don't use the PRO API are unaffected. This makes it possible to run a shared HTTP server where each client authenticates with its own key.
Low-credit warning. Access to the PRO API is metered in credits. When the remaining balance reported by the API drops below a configurable threshold, every data tool appends an advisory note to its response, prompting operators to top up so PRO API access stays ready for continued high-volume usage. The threshold is set via BLOCKSCOUT_PRO_API_LOW_CREDITS_THRESHOLD (default 5000 credits; set to 0 to disable the note). The note fires for any balance below the threshold, including zero and negative balances.
PRO API key requirement notice. BLOCKSCOUT_PRO_API_KEY_REQUIRED_NOTICE holds an operator-configured notice that the server appends as the last entry of the notes field of tool responses whose requests did not carry the client's own (well-formed) PRO API key. It exists to announce the official public server's migration to mandatory client-supplied keys, so only the official deployment is expected to set it. When the variable is unset or empty (the default), the feature is completely off. Community and self-hosted operators should leave it empty — in particular in stdio mode, where you configure BLOCKSCOUT_PRO_API_KEY yourself and no request header can carry a client key, the notice would only repeat a migration message that does not apply to your deployment.
Running the Server
The server runs in stdio mode by default:
python -m blockscout_mcp_serverHTTP Mode (MCP only):
To run the server in HTTP Streamable mode (stateless, SSE responses by default):
python -m blockscout_mcp_server --httpYou can also specify the host and port for the HTTP server:
python -m blockscout_mcp_server --http --http-host 0.0.0.0 --http-port 8080Development Mode (Plain JSON Responses):
For development and testing with simple HTTP clients (curl, Insomnia), you can enable plain JSON responses instead of SSE streams:
export BLOCKSCOUT_DEV_JSON_RESPONSE=true
python -m blockscout_mcp_server --httpNote: This disables Server-Sent Events (SSE) and progress notifications. Only use this for local testing and debugging.
Tunneling with Ngrok (Development Mode):
The Python MCP SDK enforces DNS rebinding protection, which blocks requests from ngrok tunnels by default. To enable tunneling for development and testing:
Start an ngrok tunnel to your local server:
ngrok http 8000Configure the allowed host and origin using your ngrok URL:
export BLOCKSCOUT_MCP_ALLOWED_HOSTS="your-tunnel-id.ngrok-free.app" export BLOCKSCOUT_MCP_ALLOWED_ORIGINS="https://your-tunnel-id.ngrok-free.app" python -m blockscout_mcp_server --http
Note: These settings are primarily for development use. When these variables are not set, DNS rebinding protection
is automatically determined by the server's bind host: enabled for localhost, disabled for non-localhost (e.g.,
0.0.0.0). If your Host header includes a non-standard port, use the :* wildcard suffix (e.g.,
"example.com:*") or specify the exact host:port value.
For more details on ngrok tunneling with MCP servers, see the OpenAI Apps SDK Examples documentation.
HTTP Mode with REST API:
To enable the versioned REST API alongside the MCP endpoint, use the --rest flag (which requires --http).
python -m blockscout_mcp_server --http --restWith custom host and port:
python -m blockscout_mcp_server --http --rest --http-host 0.0.0.0 --http-port 8080CLI Options:
--http: Enables HTTP Streamable mode.--http-host TEXT: Host to bind the HTTP server to (default:127.0.0.1).--http-port INTEGER: Port for the HTTP server (default:8000).--rest: Enables the REST API (requires--http).
Building Docker Image Locally
Initialize the bundled skill submodule, bake its commit metadata into the Docker build context, then build the image:
git submodule update --init --recursive agent-skills
python scripts/bake_skill_metadata.py
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:latestRunning with Docker
HTTP Mode (MCP only):
To run the Docker container in HTTP mode with port mapping:
docker run --rm -p 8000:8000 ghcr.io/blockscout/mcp-server:latest python -m blockscout_mcp_server --http --http-host 0.0.0.0With custom port:
docker run --rm -p 8080:8080 ghcr.io/blockscout/mcp-server:latest python -m blockscout_mcp_server --http --http-host 0.0.0.0 --http-port 8080HTTP Mode with REST API:
To run with the REST API enabled:
docker run --rm -p 8000:8000 ghcr.io/blockscout/mcp-server:latest python -m blockscout_mcp_server --http --rest --http-host 0.0.0.0Note: When running in HTTP mode with Docker, use --http-host 0.0.0.0 to bind to all interfaces so the server is accessible from outside the container.
With a Blockscout PRO API Key:
Pass the key at runtime with -e rather than baking it into the image (see Providing the PRO API Key to the Server):
docker run --rm -p 8000:8000 -e BLOCKSCOUT_PRO_API_KEY=proapi_your_key_here \
ghcr.io/blockscout/mcp-server:latest python -m blockscout_mcp_server --http --http-host 0.0.0.0With session metering enabled (optional):
Session metering limits how many tool calls a caller without a client-supplied PRO API key may make per session identifier issued by __unlock_blockchain_analysis__. It is off by default. Enabling it means setting a signing secret (at least 32 bytes — generate it, don't invent it), and it requires HTTP mode and a server-side PRO API key (metered calls are served upstream on it), plus a persistent volume for the session database. Generate the secret once and store it durably (a secret manager, or persistent environment configuration); every restart and redeploy must pass the same stored value:
# Once, not per start: generate the secret and keep it.
BLOCKSCOUT_SESSION_SECRET="$(python -c 'import secrets; print(secrets.token_urlsafe(32))')"
docker run --rm -p 8000:8000 \
-v blockscout-mcp-sessions:/data \
-e BLOCKSCOUT_SESSION_SECRET="$BLOCKSCOUT_SESSION_SECRET" \
-e BLOCKSCOUT_SESSION_DB_PATH=/data/sessions.db \
-e BLOCKSCOUT_PRO_API_KEY=proapi_your_key_here \
ghcr.io/blockscout/mcp-server:latest python -m blockscout_mcp_server --http --http-host 0.0.0.0Most deployments do not need any of this: leave BLOCKSCOUT_SESSION_SECRET unset (the default) and no volume is required. Losing the volume or rotating the secret invalidates live session identifiers by design; the exposure is bounded by the configured TTL. Re-generating the secret inline on every docker run is the accidental form of that rotation — it wipes all live identifiers on each restart even though the database volume survived, so never embed the generation command in the start command. Restoring an older copy of the database revives the budgets it recorded — after a historical restore, rotate the secret unless that is intended. Optional knobs: BLOCKSCOUT_SESSION_MCP_MAX_CALLS and BLOCKSCOUT_SESSION_REST_MAX_CALLS (per-surface call ceilings over one shared per-identifier counter; both default 5; 0 closes metered access on that surface while leaving identifier issuance and get_chains_list navigation open), BLOCKSCOUT_SESSION_TTL_SECONDS (default 900), and BLOCKSCOUT_SESSION_SWEEP_INTERVAL_SECONDS (how often expired session rows are cleaned up; default: once per TTL).
Stdio Mode: The default stdio mode is designed for use with MCP hosts/clients (like Claude Desktop, Cursor) and doesn't make sense to run directly with Docker without an MCP client managing the communication.
Testing with Claude Desktop
Use MCP bundle to test the server with Claude Desktop.
Build the bundle as per instructions in mcpb/README.md.
Open Claude Desktop.
Double-click to open the
blockscout-mcp-dev.mcpbfile to automatically install the bundle.Configure the Blockscout MCP Server URL when prompted (default:
http://127.0.0.1:8000/mcp)
Privacy and Anonymous Telemetry
To help us improve the Blockscout MCP Server, community-run instances of the server collect anonymous usage data by default. This helps us understand which tools are most popular and guides our development efforts.
What we collect:
The name of the tool being called (e.g.,
get_block_number).The parameters provided to the tool (the
session_idparameter is masked to a placeholder before transmission).The version of the Blockscout MCP Server being used.
A one-way, non-reversible hash (SHA-256) of the PRO API key available to authorize the request, when one is present. This is a derived fingerprint only — the key itself is never transmitted and cannot be recovered from the hash.
What we DO NOT collect:
We do not collect any personal data, IP addresses (the central server uses the sender's IP for geolocation via Mixpanel and then discards it), or secrets and private keys themselves. The PRO API key in particular is never transmitted — only its one-way, non-reversible fingerprint described above, from which the key cannot be recovered.
How to Opt-Out
You can disable this feature at any time by setting the following environment variable:
export BLOCKSCOUT_DISABLE_COMMUNITY_TELEMETRY=trueLicense
This project is licensed under the Blockscout Software Licence. See the LICENSE file for full terms.
Available Tools
18 toolsdirect_api_callARead-onlyInspect
Call a raw Blockscout API endpoint for advanced or chain-specific data.
Do not include query strings in ``endpoint_path``; pass all query parameters via
``query_params`` to avoid double-encoding.
**SUPPORTS PAGINATION**: If response includes 'pagination' field,
use the provided next_call to get additional pages.
Returns:
ToolResponse[Any]: Must return ToolResponse[Any] (not ToolResponse[BaseModel])
because specialized handlers can return lists or other types that don't inherit
from BaseModel. The dispatcher system supports flexible data structures.
Inputs: chain_id (required), endpoint_path (required), query_params, cursor.
get_address_by_ens_nameARead-onlyInspect
Useful for when you need to convert an ENS domain name (e.g. "blockscout.eth") to its corresponding Ethereum address.
Inputs: name (required).
get_address_infoARead-onlyInspect
Get comprehensive information about an address, including:
- Address existence check
- Native token (ETH) balance (provided as is, without adjusting by decimals)
- ENS name association (if any)
- Contract status (whether the address is a contract, whether it is verified)
- Proxy contract information (if applicable): determines if a smart contract is a proxy contract (which forwards calls to implementation contracts), including proxy type and implementation addresses
- Token details (if the contract is a token): name, symbol, decimals, total supply, etc.
Essential for address analysis, contract investigation, token research, and DeFi protocol analysis.
Inputs: chain_id (required), address (required).
get_block_infoARead-onlyInspect
Get block information like timestamp, gas used, burnt fees, transaction count etc. Can optionally include the list of transaction hashes contained in the block. Transaction hashes are omitted by default; request them only when you truly need them, because on high-traffic chains the list may exhaust the context.
Inputs: chain_id (required), number_or_hash (required), include_transactions.
get_chains_listARead-onlyInspect
Get the list of known blockchain chains with their IDs. Useful for getting a chain ID when the chain name is known. This information can be used in other tools that require a chain ID to request information.
Inputs: no named parameters.
get_contract_abiARead-onlyInspect
Get smart contract ABI (Application Binary Interface). An ABI defines all functions, events, their parameters, and return types. The ABI is required to format function calls or interpret contract data.
Inputs: chain_id (required), address (required).
get_latest_blockARead-onlyInspect
Get the latest indexed block number and timestamp, which represents the most recent state of the blockchain. No transactions or token transfers can exist beyond this point, making it useful as a reference timestamp for other API calls.
Inputs: chain_id (required).
get_tokens_by_addressARead-onlyInspect
Get comprehensive ERC20 token holdings for an address with enriched metadata and market data.
Returns detailed token information including contract details (name, symbol, decimals), market metrics (exchange rate, market cap, volume), holders count, and actual balance (provided as is, without adjusting by decimals).
Essential for portfolio analysis, wallet auditing, and DeFi position tracking.
**SUPPORTS PAGINATION**: If response includes 'pagination' field, use the provided next_call to get additional pages.
Inputs: chain_id (required), address (required), cursor.
get_token_transfers_by_addressARead-onlyInspect
Get ERC-20 token transfers for an address within a specific time range.
Use cases:
- `get_token_transfers_by_address(address, age_from)` - get all transfers of any ERC-20 token to/from the address since the given date up to the current time
- `get_token_transfers_by_address(address, age_from, age_to)` - get all transfers of any ERC-20 token to/from the address between the given dates
- `get_token_transfers_by_address(address, age_from, age_to, token)` - get all transfers of the given ERC-20 token to/from the address between the given dates
**SUPPORTS PAGINATION**: If response includes 'pagination' field, use the provided next_call to get additional pages.
Inputs: chain_id (required), address (required), age_from, age_to, +2 more.
get_transaction_infoARead-onlyInspect
Get comprehensive transaction information.
Unlike standard eth_getTransactionByHash, this tool returns enriched data including decoded input parameters, detailed token transfers with token metadata, transaction fee breakdown (priority fees, burnt fees) and categorized transaction types.
By default, the raw transaction input is omitted if a decoded version is available to save context; request it with `include_raw_input=True` only when you truly need the raw hex data.
Essential for transaction analysis, debugging smart contract interactions, tracking DeFi operations.
Inputs: chain_id (required), transaction_hash (required), include_raw_input.
get_transaction_logsARead-onlyInspect
Get comprehensive transaction logs.
Unlike standard eth_getLogs, this tool returns enriched logs, primarily focusing on decoded event parameters with their types and values (if event decoding is applicable).
Essential for analyzing smart contract events, tracking token transfers, monitoring DeFi protocol interactions, debugging event emissions, and understanding complex multi-contract transaction flows.
**SUPPORTS PAGINATION**: If response includes 'pagination' field, use the provided next_call to get additional pages.
Inputs: chain_id (required), transaction_hash (required), cursor.
get_transactions_by_addressARead-onlyInspect
Retrieves native currency transfers and smart contract interactions (calls, internal txs) for an address.
**EXCLUDES TOKEN TRANSFERS**: Filters out direct token balance changes (ERC-20, etc.). You'll see calls *to* token contracts, but not the `Transfer` events. For token history, use `get_token_transfers_by_address`.
A single tx can have multiple records from internal calls; use `internal_transaction_index` for execution order.
Use cases:
- `get_transactions_by_address(address, age_from)` - get all txs to/from the address since a given date.
- `get_transactions_by_address(address, age_from, age_to)` - get all txs to/from the address between given dates.
- `get_transactions_by_address(address, age_from, age_to, methods)` - get all txs to/from the address between given dates, filtered by method.
**SUPPORTS PAGINATION**: If response includes 'pagination' field, use the provided next_call to get additional pages.
Inputs: chain_id (required), address (required), age_from, age_to, +2 more.
inspect_contract_codeBRead-onlyInspect
Inspects a verified contract's source code or metadata.
Inputs: chain_id (required), address (required), file_name.
lookup_token_by_symbolARead-onlyInspect
Search for token addresses by symbol or name. Returns multiple potential
matches based on symbol or token name similarity. Only the first
``TOKEN_RESULTS_LIMIT`` matches from the Blockscout API are returned.
Inputs: chain_id (required), symbol (required).
nft_tokens_by_addressARead-onlyInspect
Retrieve NFT tokens (ERC-721, ERC-404, ERC-1155) owned by an address, grouped by collection.
Provides collection details (type, address, name, symbol, total supply, holder count) and individual token instance data (ID, name, description, external URL, metadata attributes).
Essential for a detailed overview of an address's digital collectibles and their associated collection data.
**SUPPORTS PAGINATION**: If response includes 'pagination' field, use the provided next_call to get additional pages.
Inputs: chain_id (required), address (required), cursor.
read_contractARead-onlyInspect
Calls a smart contract function (view/pure, or non-view/pure simulated via eth_call) and returns the
decoded result.
This tool provides a direct way to query the state of a smart contract.
Example:
To check the USDT balance of an address on Ethereum Mainnet, you would use the following arguments:
{
"tool_name": "read_contract",
"params": {
"chain_id": "1",
"address": "0xdAC17F958D2ee523a2206206994597C13D831ec7",
"abi": {
"constant": true,
"inputs": [{"name": "_owner", "type": "address"}],
"name": "balanceOf",
"outputs": [{"name": "balance", "type": "uint256"}],
"payable": false,
"stateMutability": "view",
"type": "function"
},
"function_name": "balanceOf",
"args": "["0xF977814e90dA44bFA03b6295A0616a897441aceC"]"
}
}
Inputs: chain_id (required), address (required), abi (required), function_name (required), +2 more.
transaction_summaryARead-onlyInspect
Get human-readable transaction summaries from Blockscout Transaction Interpreter.
Automatically classifies transactions into natural language descriptions (transfers, swaps, NFT sales, DeFi operations)
Essential for rapid transaction comprehension, dashboard displays, and initial analysis.
Note: Not all transactions can be summarized and accuracy is not guaranteed for complex patterns.
Inputs: chain_id (required), transaction_hash (required).
__unlock_blockchain_analysis__ARead-onlyInspect
Unlocks access to other MCP tools.
All tools remain locked with a "Session Not Initialized" error until this
function is successfully called. Skipping this explicit initialization step
will cause all subsequent tool calls to fail.
MANDATORY FOR AI AGENTS: The returned instructions contain ESSENTIAL rules
that MUST govern ALL blockchain data interactions. Failure to integrate these
rules will result in incorrect data retrieval, tool failures and invalid
responses. Always apply these guidelines when planning queries, processing
responses or recommending blockchain actions.
COMPREHENSIVE DATA SOURCES: Provides an extensive catalog of specialized
blockchain endpoints to unlock sophisticated, multi-dimensional blockchain
investigations across all supported networks.
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 18 tools
Most tools have distinct purposes with clear boundaries, such as get_address_info for address details versus get_tokens_by_address for token holdings. However, some overlap exists between get_transaction_info and transaction_summary, where both provide transaction details but with different focuses (comprehensive vs. human-readable), which could cause minor confusion.
Tool names follow a consistent verb_noun pattern throughout, such as get_address_info, get_block_info, and get_transaction_info. The only exception is direct_api_call, which still fits a verb_noun style, and __unlock_blockchain_analysis__ uses underscores but is a special initialization tool, not affecting the overall consistency.
With 18 tools, the count is slightly high but reasonable for a comprehensive blockchain explorer server covering addresses, blocks, transactions, contracts, tokens, and NFTs. It includes core operations like reading contracts and fetching chain lists, though it might be borderline for some use cases due to the number.
The tool set provides complete coverage for blockchain analysis, including address lookup, block and transaction details, contract interactions (ABI, code inspection, reading), token and NFT holdings, and paginated data retrieval. There are no obvious gaps; it supports essential workflows from basic queries to advanced investigations.
Maintenance
Related MCP Connectors
A Model Context Protocol server for Wix AI tools
MCP server connecting AI agents to non-custodial staking data across 130+ networks.
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Pay-per-call on-chain data for AI agents: token, wallet, risk, whale, NFT, tx. No API keys.
Related MCP Servers
- AlicenseDqualityDmaintenanceA Model Context Protocol server that gives LLMs the ability to interact with Ethereum networks, manage wallets, query blockchain data, and execute smart contract operations through a standardized interface.5432 npm14MIT
- AlicenseBqualityDmaintenanceA Model Context Protocol server that enables AI agents to interact with 30+ Ethereum-compatible blockchain networks, providing services like token transfers, contract interactions, and ENS resolution through a unified interface.2896 npm379MIT
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that enables AI assistants to access Flow blockchain data and perform operations such as checking balances, resolving domains, executing scripts, and submitting transactions.1MIT
- -licenseNot gradedqualityNot gradedmaintenanceComprehensive Model Context Protocol server that enables AI agents to interact with 30+ Ethereum-compatible blockchain networks, supporting token transfers, smart contract interactions, and ENS name resolution through a unified interface.1-