Solana Metrics MCP Server

MCP server for analyzing Solana metrics from InfluxDB and generating Grafana dashboards

Local serverstdio

What is the Solana Metrics MCP server?

Solana metrics mcp server lets Claude, Cursor and other MCP clients work with Solana Metrics directly. MCP server for analyzing Solana metrics from InfluxDB and generating Grafana dashboards.

What Solana Metrics does

This MCP server analyzes Solana metrics from InfluxDB and generates Grafana dashboards. It's designed to work with the sol_metrics database and provides intelligent categorization and analysis of blockchain metrics.

Key capabilities

  • 🔍 Metric Discovery — Lists all available metrics from the sol_metrics InfluxDB database
  • 🏷️ Intelligent Categorization — Automatically categorizes metrics into logical groups (Consensus, Network, Banking, Accounts, RPC, Performance, Jito/MEV)
  • 📊 Metric Analysis — Provides detailed explanations of what each metric measures and why it's useful
  • 📁 Auto-Dashboard Export — Creates and saves importable Grafana dashboard JSON files to grafana/ folder
  • 🔎 Code Search — Helps locate metric definitions in the Solana Rust codebase
  • 🔄 Dual InfluxDB Support — Compatible with both InfluxDB v1 and v2
  • 🛠️ VS Code Integration — Works seamlessly as an MCP server in Visual Studio Code

Installing the solana metrics mcp server

The server is distributed via npm as npm, so most clients can run it without a manual build step. Add it to your MCP client's configuration and restart the client to pick it up — the copy-paste configs for Claude Desktop, Claude Code and Cursor are on this page.

Configuration

Before the server will start you need to supply 5 environment variables: INFLUX_URL, INFLUX_TOKEN, INFLUX_ORG, INFLUX_BUCKET, INFLUX_VERSION. Keep credentials in your client's env block or a secrets manager rather than committing them.

Where it fits

Monitoring servers replace the paste-the-stack-trace ritual with an assistant that reads the real event, with all its surrounding context intact. Solana Metrics sits in that group. Worth comparing against the other monitoring security servers in this directory before you commit to one, since several overlap in scope but differ sharply in setup cost and permissions.

Practical notes

  • This server runs locally, so it operates with whatever access your machine and its credentials already have. Scope that deliberately rather than by default.
  • It will not start until its required credentials are present, so set those before wondering why the tools never appear.
  • Maintained by wcampbellgalaxy.
  • MCP clients ask for confirmation before each tool call by default. Keep that on while you learn what the solana metrics mcp server actually does with your data.
  • Every entry in this directory is reviewed by hand before it goes live, and details are checked against the project's own documentation.

How to install the Solana Metrics MCP server

{
  "mcpServers": {
    "solana-metrics": {
      "command": "npx",
      "args": ["-y", "npm"],
      "env": {
        "INFLUX_URL": "your-value",
        "INFLUX_TOKEN": "your-value",
        "INFLUX_ORG": "your-value",
        "INFLUX_BUCKET": "your-value",
        "INFLUX_VERSION": "your-value"
      }
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Configuration

VariableDescriptionRequired
INFLUX_URLEndpoint or connection string the server talks to.Yes
INFLUX_TOKENCredential the server authenticates with.Yes
INFLUX_ORGConfiguration value read at startup.Optional
INFLUX_BUCKETConfiguration value read at startup.Optional
INFLUX_VERSIONConfiguration value read at startup.Optional

Frequently asked questions

It connects Solana Metrics to MCP-compatible AI assistants such as Claude and Cursor. Instead of copying data back and forth by hand, the assistant works with Solana Metrics directly.