The Hubble AI for Solana is an analytics tool that allows you to query Solana blockchain data using natural language and generate visualizations. It integrates with AI assistants to provide real-time blockchain insights through a simple interface.
To add Hubble to your environment, you'll need to include it in your configuration file:
{
"mcpServers": {
"hubble-tool": {
"command": "npx",
"args": ["-y", "hubble-mcp-tool"],
"env": {
"HUBBLE_API_KEY": "your_api_key"
}
}
}
}
Make sure to replace "your_api_key"
with your actual Hubble API key.
You can access Solana blockchain data by using natural language queries. Here are some examples of what you can ask:
Try these example queries to get started:
"Show me the latest blockchain transactions"
"What is the current token price?"
"Who are the top token holders?"
Hubble can generate various charts to help you visualize blockchain data:
Use these queries to generate visual representations of data:
"Generate a chart of transaction volume for the last week"
"Create a line chart of price trends for the past month"
"Show a pie chart of top transactions by value"
When setting up Hubble in your configuration, you can customize the following parameters:
npx
)-y
and hubble-mcp-tool
)HUBBLE_API_KEY
To add this MCP server to Claude Code, run this command in your terminal:
claude mcp add-json "hubble-tool" '{"command":"npx","args":["-y","hubble-mcp-tool"],"env":{"HUBBLE_API_KEY":"your_api_key"}}'
See the official Claude Code MCP documentation for more details.
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"hubble-tool": {
"command": "npx",
"args": [
"-y",
"hubble-mcp-tool"
],
"env": {
"HUBBLE_API_KEY": "your_api_key"
}
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.
To add this MCP server to Claude Desktop:
1. Find your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
~/.config/Claude/claude_desktop_config.json
2. Add this to your configuration file:
{
"mcpServers": {
"hubble-tool": {
"command": "npx",
"args": [
"-y",
"hubble-mcp-tool"
],
"env": {
"HUBBLE_API_KEY": "your_api_key"
}
}
}
}
3. Restart Claude Desktop for the changes to take effect