BM

Эта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал

46 stars 29 forks Качество 75 Тренд 20NOASSERTION

blockscout/mcp-сервер - это кандидат на сервер MCP, импортированный из https://github.com/blockscout/mcp-server.

Обзор

blockscout/mcp-сервер - это кандидат на сервер MCP, импортированный из https://github.com/blockscout/mcp-server.

Обзор (машинный перевод)

Model Context Protocol (MCP) - это открытый протокол, предназначенный для того, чтобы позволить агентам ИИ, IDE и средствам автоматизации потреблять, запрашивать и анализировать структурированные данные через контекстно-ориентированные API.

Этот сервер обертывает API Blockscout и раскрывает данные блокчейна — балансы, токены, NFT, метаданные контрактов — через MCP, чтобы агенты и инструменты ИИ (такие как Claude, Cursor или IDE) могли получать доступ и анализировать его контекстуально.

** Основные характеристики:**

Контекстный доступ к данным блокчейна для инструментов ИИ Поддержка нескольких цепей через конфигурацию Blockscout PRO API с обогащением метаданных Chainscout Версия REST API: Предоставляет стандартный веб-дружественный интерфейс для всех инструментов MCP. API.md для полной документации. Пользовательские инструкции для MCP-хоста для использования сервера Интеллектуальная оптимизация контекста для сохранения токенов LLM при сохранении доступности данных Умный срез ответа с настраиваемыми размерами страниц для предотвращения переполнения контекста Непрозрачная пагинация курсора с использованием строк, кодируемых Base64URL, вместо сложных параметров Автоматическое усечение больших полей данных с четкими индикаторами и руководством по доступу Стандартизированная модель ToolResponse со структурированными ответами JSON и последующими инструкциями

Эта страница переведена автоматически. Технические детали смотрите в оригинале.

README

Показан фрагмент оригинального README. Открыть оригинал.

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.

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.

Открыть полный README на GitHub

Установка

docker run --rm -i ghcr.io/blockscout/mcp-server:latest
Новичок в MCP? Начните с руководства на mcpskill.org →

Конфигурация

{ "mcpServers": { "blockscout": { "url": "https://mcp.blockscout.com/mcp", "timeout": 180000, "headers": { "Blockscout-MCP-Pro-Api-Key": "proapi_your_key_here" } } } }