NIX MCP Server
Enables AI-powered blockchain data queries and analysis through the Native Indexer (NIX) system. Supports querying blocks, transactions, account information, and network status across various blockchain networks.
README
NIX MCP Server
A Python-based MCP (Model Context Protocol) server providing Native Indexer (NIX) query capabilities for blockchain data. This server can be used with Claude Code to enable AI-powered blockchain data queries and analysis.
Overview
The NIX MCP Server enables querying blockchain data through the Native Indexer system using a standardized MCP interface. It communicates with a Rodeos endpoint to fetch data from various blockchains and networks.
Features
Available Tools
Configuration Tools
nix_get_global_configs- Get global configurations for all or specific networksnix_get_network_status- Get the status of a specific blockchain network
Block Query Tools
nix_get_blocks- Query blocks by range or specific height
Transaction Tools
nix_get_transaction- Get a specific transaction by hashnix_get_transactions- Get latest transactions or filter by account
Account Tools
nix_get_account- Get account informationnix_get_account_balance- Get account balancesnix_get_account_keys- Get account public keys
Installation
Prerequisites
- Python 3.11 or higher
- UV package manager
- Access to a Rodeos endpoint (default: http://127.0.0.1:8880)
- Optional: Access to a Nodeos endpoint for ABI fetching (default: http://127.0.0.1:8888)
Setup
- Clone the repository with submodules:
git clone --recursive <repository-url>
cd nix-mcp
- Initialize the project (installs UV and dependencies):
./init.sh
- Configure environment (optional):
cp .env.example .env
# Edit .env to set your endpoints
Usage with Claude Code
Configuration in Claude Code
-
Open Claude Code settings (⌘+, on Mac or Ctrl+, on Windows/Linux)
-
Navigate to the MCP Servers section
-
Add the NIX MCP server configuration:
{
"nix-mcp": {
"command": "uv",
"args": ["run", "python", "-m", "nix_mcp.server_fastmcp"],
"cwd": "/path/to/nix-mcp",
"env": {
"RODEOS_ENDPOINT": "http://127.0.0.1:8880",
"NODEOS_API": "http://127.0.0.1:8888",
"NIX_QUERY_CONTRACT": "nix.q",
"NIX_CONTRACT": "nix"
}
}
}
- Restart Claude Code to load the MCP server
Using the Tools in Claude
Once configured, you can use natural language to query blockchain data:
- "Get the latest blocks on NEAR mainnet"
- "Show me the transaction with hash 0x123..."
- "Get the account balance for alice.near"
- "Fetch network status for ETH testnet"
The tools will be available in Claude's tool panel and can be invoked automatically based on your queries.
Manual Usage
Running the Server Standalone
# Using default configuration
./run.sh
# Or with custom endpoints
RODEOS_ENDPOINT=http://your-rodeos:8880 NODEOS_API=http://your-nodeos:8888 ./run.sh
Configuration
Environment Variables
The server can be configured through environment variables (set in .env file or passed directly):
RODEOS_ENDPOINT- Rodeos HTTP endpoint URL (default: http://127.0.0.1:8880)NODEOS_API- Nodeos API endpoint for ABI fetching (default: http://127.0.0.1:8888)NIX_QUERY_CONTRACT- NIX query contract account (default: nix.q)NIX_CONTRACT- NIX main contract account (default: nix)LOG_LEVEL- Logging level: DEBUG, INFO, WARNING, ERROR (default: INFO)CLEOS_PATH- Path to cleos binary if not in PATH (optional)
Development
Project Structure
nix-mcp/
�� src/
�� nix_mcp/
�� __init__.py
�� server.py # MCP server implementation
�� client.py # NIX query client
�� tools.py # Tool handler functions
�� protobuf/ # Generated protobuf files
�� proto/ # Source proto files
�� compile_proto.py # Protobuf compilation script
�� pyproject.toml # UV package configuration
�� README.md
Next Steps
See NIX_MCP_IMPLEMENTATION_PLAN.md for the complete roadmap of features to be implemented.
推荐服务器
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 模型以安全和受控的方式获取实时的网络信息。