NIX MCP Server

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.

Category
Visit Server

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 networks
  • nix_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 hash
  • nix_get_transactions - Get latest transactions or filter by account

Account Tools

  • nix_get_account - Get account information
  • nix_get_account_balance - Get account balances
  • nix_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

  1. Clone the repository with submodules:
git clone --recursive <repository-url>
cd nix-mcp
  1. Initialize the project (installs UV and dependencies):
./init.sh
  1. Configure environment (optional):
cp .env.example .env
# Edit .env to set your endpoints

Usage with Claude Code

Configuration in Claude Code

  1. Open Claude Code settings (⌘+, on Mac or Ctrl+, on Windows/Linux)

  2. Navigate to the MCP Servers section

  3. 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"
    }
  }
}
  1. 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.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured