Solana Metrics MCP Server
Generates and exports Grafana dashboard JSON configurations for visualizing Solana metrics, organized by categories like consensus, network, banking, and performance
Connects to InfluxDB (v1 or v2) to discover, list, and analyze metrics from the sol_metrics database containing Solana blockchain data
Analyzes Solana blockchain metrics across multiple categories (consensus, network, banking, accounts, RPC, performance, Jito/MEV) and helps locate metric definitions in the Solana Rust codebase
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Solana Metrics MCP Server analyze consensus metrics and generate a dashboard"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Solana Metrics MCP Server
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.
Features
🔍 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
Related MCP server: Corvus
Installation
npm install
npm run buildConfiguration
Set the following environment variables to connect to your InfluxDB instance:
export INFLUX_URL="http://your-influxdb-server:8086"
export INFLUX_TOKEN="your_token"
export INFLUX_ORG="your_org"
export INFLUX_BUCKET="sol_metrics"
export INFLUX_VERSION="v1" # or "v2" for InfluxDB v2Dashboard Export
When you generate dashboards using the generate_dashboard tool, the server automatically:
Saves JSON files to the
grafana/folder in your project directoryCreates timestamped backups for version history
Provides ready-to-import Grafana dashboard configurations
Generated dashboard files:
consensus-dashboard.json- Epoch rewards, slot confirmation, validator votingnetwork-dashboard.json- Gossip, cluster info, retransmit metricsbanking-dashboard.json- Transaction processing, prioritization feesaccounts-dashboard.json- Account database, cache, hashing metricsrpc-dashboard.json- RPC service and subscription metricsperformance-dashboard.json- CPU, memory, disk usage metricsjito-mev-dashboard.json- Block engine, bundle processing, MEV relayer metrics
Usage with Claude Desktop
Add this server to your Claude Desktop configuration:
{
"mcpServers": {
"solana-metrics": {
"command": "node",
"args": ["/absolute/path/to/solana-metrics-mcp-server/build/index.js"]
}
}
}Available Tools
1. list_metrics
Lists all available metrics from the sol_metrics database.
2. analyze_metrics
Analyzes and categorizes metrics with detailed explanations.
Parameters:
category(optional): Filter by category (Consensus, Network, Banking, Accounts, RPC, Performance, Jito/MEV, Other, All)
3. generate_dashboard
Generates a Grafana dashboard JSON for selected metrics.
Parameters:
category: Category to generate dashboard fordashboard_name: Name for the generated dashboard
4. search_rust_code
Searches for metric definitions in the Solana Rust codebase.
Parameters:
metric_name: Name of the metric to search for
Metric Categories
The server organizes metrics into the following categories based on Solana's architecture:
Consensus: Validator voting, slots, epochs, leader schedules
Network: Cluster topology, gossip, turbine, TPU/TVU, repairs
Banking: Transaction processing, PoH recording, leader slot utilization
Accounts: Account database operations, hashing, snapshots
RPC: API request handling, subscriptions, WebSocket connections
Performance: System resources, throughput benchmarks
Jito/MEV: MEV tips, bundle processing, block engine metrics
Development
# Development mode
npm run dev
# Build only
npm run build
# Start server
npm startContributing
This server is designed for Solana metrics analysis. For questions or improvements, please refer to the Solana metrics documentation and codebase.
Available Tools
4 toolsanalyze_metricsC
Analyze metrics and categorize them with explanations
Inputs: category.
generate_dashboardC
Generate a Grafana dashboard JSON for selected metrics
Inputs: category (required), dashboard_name (required).
list_metricsB
List all available metrics from the sol_metrics InfluxDB database
Inputs: no named parameters.
search_rust_codeC
Search for metric definitions in the Solana Rust codebase
Inputs: metric_name (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
The tools have mostly distinct purposes, but 'analyze_metrics' and 'generate_dashboard' could be confused as both involve processing metrics. 'list_metrics' and 'search_rust_code' are clearly distinct for data retrieval and code search respectively. The overlap is minor and descriptions help differentiate.
All tool names follow a consistent verb_noun pattern with snake_case throughout: analyze_metrics, generate_dashboard, list_metrics, search_rust_code. This predictability makes it easy for agents to understand and use the toolset.
With only 4 tools, the server feels thin for a metrics domain that typically involves more operations like filtering, aggregating, or updating metrics. While the tools cover key areas, the count is borderline minimal for comprehensive metrics handling.
The toolset covers listing, analyzing, visualizing, and searching metrics, but lacks operations for creating, updating, or deleting metrics, which are common in metrics management. There are notable gaps that agents might need to work around for full lifecycle coverage.
Related MCP Connectors
Solana on-chain intelligence — token scans, wallet profiling, bundle detection, 19 MCP tools.
Full Solana DeFi coverage: launchpads, tokens, trades, and wallets, decoded at scale.
Validator incident data for AI agents across Solana, Ethereum, Sui, and Cosmos.
On-chain investigations: wallet analysis and fund tracing on Solana, EVM chains, Bitcoin and Tron.
Related MCP Servers
- AlicenseCqualityDmaintenanceProvides comprehensive analytics for Solana wallets, enabling real-time portfolio insights, cross-protocol DeFi position monitoring, behavioral analytics, and AI-powered investment strategy recommendations across the Solana ecosystem.3ISC
- AlicenseAqualityDmaintenanceSolana DeFi Intelligence MCP server enabling natural language queries for wallet analytics, DeFi positions, protocol metrics, and token prices.81MIT
- AlicenseNot gradedqualityDmaintenanceProvides comprehensive analytics and insights for Solana wallets and their DeFi activities, including transaction tracking, DeFi position monitoring, risk profiling, and strategy recommendations.45 npm7MIT
- FlicenseAqualityDmaintenanceOn-chain investigation and analysis tools for Solana blockchain, enabling detection of wash trading, funding source tracing, holder concentration analysis, and MEV/bundle activity identification.43-