ChainFETCH MCP Server
Enables AI-powered analysis of Ethereum blockchain data through semantic search, natural language queries, and structured filtering. Provides comprehensive access to addresses, transactions, blocks, tokens, and smart contracts with real-time blockchain intelligence.
README
ChainFETCH MCP Server
A Model Context Protocol (MCP) server that provides access to ChainFETCH API - an AI-powered Ethereum blockchain intelligence platform with advanced semantic search capabilities.
Features
ChainFETCH combines real-time blockchain streaming with AI-powered analysis to provide:
- 🔥 Live Block Streaming: Real-time Ethereum block processing every ~12 seconds
- 🧠 AI-Powered Semantic Search: Vector similarity search using Qwen3-Embedding-0.6B model
- 🤖 LLM-Enhanced Queries: LLaMA 3.2 3B model for intelligent parameter selection
- ⚡ Multi-Modal Search: Semantic, LLM, and JSON search options
- 🎯 Comprehensive Coverage: Addresses, transactions, blocks, tokens, and smart contracts
Available Tools
Address Analysis
search_addresses_semantic- AI-powered vector similarity searchsearch_addresses_json- 150+ parameter filteringsearch_addresses_llm- Natural language to smart parameter selectionget_address_summary- AI-generated address summariesget_address_info- Detailed address information
Transaction Intelligence
search_transactions_semantic- Semantic transaction searchsearch_transactions_json- 254+ curated parameterssearch_transactions_llm- Natural language transaction queriesget_transaction_summary- AI transaction summariesget_transaction_info- Detailed transaction data
Block Analysis
search_blocks_semantic- AI-powered block searchsearch_blocks_json- 120+ block parameterssearch_blocks_llm- Natural language block queriesget_block_summary- AI block summariesget_block_info- Detailed block information
Token Intelligence
search_tokens_semantic- Semantic token searchsearch_tokens_json- Comprehensive token filteringsearch_tokens_llm- Natural language token queriesget_token_summary- AI token summariesget_token_info- Detailed token informationget_nft_instance_info- NFT instance details
Smart Contract Analysis
search_smart_contracts_semantic- AI contract searchsearch_smart_contracts_json- 50+ contract parameterssearch_smart_contracts_llm- Natural language contract queriesget_smart_contract_summary- AI contract summariesget_smart_contract_info- Detailed contract information
Installation
Prerequisites
- Node.js 18.0.0 or higher
- ChainFETCH API token from chainfetch.app
Option 1: NPM Install (Recommended)
npm install -g chainfetch-mcp-server
Option 2: From Source
git clone https://github.com/chainfetch/chainfetch-mcp-server.git
cd chainfetch-mcp-server
npm install
npm run build
npm link
Configuration
Environment Variables
Set your ChainFETCH API token:
export CHAINFETCH_API_TOKEN="your_api_token_here"
For Claude Desktop
Add to your Claude Desktop configuration file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"chainfetch": {
"command": "npx",
"args": ["chainfetch-mcp-server"],
"env": {
"CHAINFETCH_API_TOKEN": "CHAINFETCH_API_TOKEN"
}
}
}
}
For Claude via ngrok (HTTP Mode)
Start the server in HTTP mode:
MCP_HTTP_MODE=true chainfetch-mcp-server
In another terminal, start ngrok:
ngrok http 8000
Configure Claude MCP Connector with:
- Server URL:
https://your-ngrok-url.ngrok.app/streamable-http - API Key: Your ChainFETCH API token
Usage Examples
Semantic Search
// Find whale addresses
search_addresses_semantic({
query: "whale addresses with high ETH balance and DeFi activity",
limit: 10
})
// Find suspicious transactions
search_transactions_semantic({
query: "high gas transactions with failed status",
limit: 5
})
Natural Language Queries
// LLM-powered address search
search_addresses_llm({
query: "Show me verified smart contracts deployed in the last month"
})
// LLM-powered transaction search
search_transactions_llm({
query: "Find large value transfers between exchanges"
})
Structured Filtering
// JSON search with specific parameters
search_addresses_json({
eth_balance_min: "10.0",
is_contract: true,
is_verified: true,
transactions_count_min: 1000,
limit: 20
})
Detailed Analysis
// Get comprehensive address information
get_address_info({
address: "0x742D35Cc6335C06576BE5A1D5E2A7df9e7B0E8df"
})
// Get AI-generated summary
get_address_summary({
address_hash: "0x742D35Cc6335C06576BE5A1D5E2A7df9e7B0E8df"
})
API Coverage
This MCP server provides access to ChainFETCH's comprehensive API including:
- 150+ Address Parameters: Balance, contract status, transaction counts, token holdings
- 254+ Transaction Parameters: Value, gas, addresses, block info, token transfers
- 120+ Block Parameters: Height, gas usage, transaction counts, miner info
- Token Analysis: ERC-20, ERC-721, ERC-1155 support with metadata
- Smart Contract Intelligence: Verification status, proxy patterns, ABI analysis
Error Handling
The server provides detailed error messages for common issues:
- Missing API token
- Invalid addresses/hashes
- Rate limiting
- Network connectivity issues
Development
Local Development
# Install dependencies
npm install
# Run in development mode
npm run dev
# Run in HTTP mode for testing
npm run dev:http
Testing with Claude
- Set up your API token
- Configure Claude Desktop or use ngrok
- Test with simple queries first
- Use the semantic search for exploratory analysis
Support
- Documentation: ChainFETCH API Docs
- API Access: Get API Token
- Issues: GitHub Issues
License
MIT License - see LICENSE file for details.
Changelog
v1.0.0
- Initial release
- Full ChainFETCH API integration
- Semantic, LLM, and JSON search modes
- Address, transaction, block, token, and smart contract tools
- Claude Desktop and ngrok HTTP support
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。