Analyze Solana metrics from InfluxDB and generate Grafana dashboards.
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.
grafana/
foldernpm install
npm run build
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 v2
When you generate dashboards using the generate_dashboard
tool, the server automatically:
grafana/
folder in your project directoryGenerated 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 metricsAdd this server to your Claude Desktop configuration:
{
"mcpServers": {
"solana-metrics": {
"command": "node",
"args": ["/absolute/path/to/solana-metrics-mcp-server/build/index.js"]
}
}
}
list_metrics
Lists all available metrics from the sol_metrics database.
analyze_metrics
Analyzes and categorizes metrics with detailed explanations.
category
(optional): Filter by category (Consensus, Network, Banking, Accounts, RPC, Performance, Jito/MEV, Other, All)generate_dashboard
Generates a Grafana dashboard JSON for selected metrics.
category
: Category to generate dashboard fordashboard_name
: Name for the generated dashboardsearch_rust_code
Searches for metric definitions in the Solana Rust codebase.
metric_name
: Name of the metric to search forThe server organizes metrics into the following categories based on Solana's architecture:
# Development mode
npm run dev
# Build only
npm run build
# Start server
npm start
This server is designed for Solana metrics analysis. For questions or improvements, please refer to the Solana metrics documentation and codebase.
Work on dataset metadata with MLCommons Croissant validation and creation.
An example of a remote MCP server deployable on Cloudflare Workers without authentication.
A universal control plane for managing MCP servers and providing intelligent tool discovery for AI agents.
A starter template for building Model Context Protocol (MCP) servers, designed for UI libraries and component registries.
A Ruby gem for integrating Large Language Models (LLMs) via the Model Context Protocol (MCP) into development workflows.
Analyzes Unreal Engine source code to provide context for AI assistants.
Access financial data like stock prices, currency info, and insider trading data using the Synth Finance API.
A tool for managing Supervisord processes, integrated with AI agents via the Model Context Protocol (MCP). It offers standardized process control, real-time monitoring, and robust operations.
Automatically generates documentation for code repositories by analyzing directory structures and code files using the OpenRouter API.
Access DevRev's APIs to manage work items, parts, search, and user information.