com.blockscout/mcp-server
MCP server for Blockscout
★ 34MITother
Install
Config snippet generator goes here (5 client tabs)
README
# Blockscout MCP Server
[](https://smithery.ai/server/@blockscout/mcp-server)
<a href="https://glama.ai/mcp/servers/@blockscout/mcp-server">
<img width="380" height="200" src="https://glama.ai/mcp/servers/@blockscout/mcp-server/badge" alt="Blockscout Server MCP server" />
</a>
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
- **Versioned REST API**: Provides a standard, web-friendly interface to all MCP tools. See [API.md](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](https://github.com/blockscout/agent-skills). 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](https://github.com/blockscout/agent-skills) for full capabilities and installation instructions.
## Configuring MCP Clients
### Using Claude Connectors Directory - Recommended
The easiest way to use the Blockscout MCP server with Claude ( Claude Web, Claude Desktop and Claude Code) is through the official [Anthropic Connectors Directory](https://claude.com/connectors). This provides a native, managed installation experience with automatic updates.
#### Installation
##### Option 1: Direct Link
Visit [claude.com/connectors/blockscout](https://claude.com/connectors/blockscout) and click links in "Used in" section to install the Blockscout connector.
##### Option 2: Via Settings
1. Open Claude (Web or Desktop app)
2. Go to Settings > Connectors > Browse connectors
3. Search for "Blockscout"
4. Click "Connect" to install
> **Note:** Connectors require a paid Claude plan (Pro, Team, Max, or Enterprise).
### Claude Code Setup
To quickly install the Blockscout MCP server for use with Claude Code, run the following command in your terminal:
```sh
claude mcp add --transport http blockscout https://mcp.blockscout.com/mcp
```
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.
### Cursor Setup
Use [this deeplink](https://cursor.com/en/install-mcp?name=blockscout&config=eyJ1cmwiOiJodHRwczovL21jcC5ibG9ja3Njb3V0LmNvbS9tY3AiLCJ0aW1lb3V0IjoxODAwMDB9) to install the Blockscout MCP server in Cursor.
### Gemini CLI Setup
1. Add the following configuration to your `~/.gemini/settings.json` file:
```json
{
"mcpServers": {
"blockscout": {
"httpUrl": "https://mcp.blockscout.com/mcp",
"timeout": 180000
}
}
}
```
2. For detailed Gemini CLI MCP server configuration instructions, see the [official documentation](https://github.com/google-gemini/gemini-cli/blob/main/docs/tools/mcp-server.md).
## Try Blockscout X-Ray GPT
Experience the power of the Blockscout MCP server through our showcase GPT: **[Blockscout X-Ray](https://chatgpt.com/g/g-68a7f315edf481918641bd0ed1e60f8b-blockscout-x-ray)**
This GPT demonstrates the full capabilities of the MCP server, providing intelligent blockchain analysis and insights. It's a great way to explore what's possible when AI agents have contextual access to blockchain data.
### Local Development Setup (For Developers)
If you want to run the server locally for development purposes:
```json
{
"mcpServers": {
"blockscout": {
"command": "docker",
"args": [
"run", "--rm", "-i",
"ghcr.io/blockscout/mcp-server:latest"
]
}
}
}
```
## Technical details
Refer to [SPEC.md](SPEC.md) for the technical details.
## Repository Structure
Refer to [AGENTS.md](AGENTS.md) for the repository structure.
## Testing
Refer to [TESTING.md](TESTING.md) for compreh