mcp-server-helius 0.1.1
Install from the command line:
Learn more about npm packages
$ npm install @dcspark/mcp-server-helius@0.1.1
Install via package.json:
"@dcspark/mcp-server-helius": "0.1.1"
About this version
This repository contains a Model Context Protocol (MCP) server that provides Claude with access to Solana blockchain data via the Helius API. The server enables Claude to perform operations like checking wallet balances and getting the current block height on the Solana blockchain.
The MCP server exposes several tools to Claude:
-
helius_get_balance
: Get the balance of a Solana wallet address -
helius_get_block_height
: Get the current block height of the Solana blockchain
- Node.js (v16 or higher)
- A Helius API key (get one at https://dev.helius.xyz/)
- Claude Desktop application
-
Clone this repository:
git clone https://github.com/dcSpark/mcp-server-helius.git cd mcp-server-helius
-
Install dependencies:
npm ci
-
Build the project:
npm run build
To configure Claude Desktop to use this MCP server:
-
Open Claude Desktop
-
Navigate to the Claude Desktop configuration file:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json
- Windows:
%APPDATA%\Claude\claude_desktop_config.json
- Linux:
~/.config/Claude/claude_desktop_config.json
- macOS:
-
Add the MCP server configuration:
{
"mcpServers": {
"mcp-server-helius": {
"command": "node",
"args": [
"/path/to/your/mcp-server-helius/build/index.js"
],
"env": {
"HELIUS_API_KEY": "your-helius-api-key"
}
}
}
}
HELIUS_API_KEY=your-helius-api-key node build/index.js
Once configured, restart Claude Desktop. Claude will now have access to the Solana blockchain tools. You can ask Claude to:
-
Check a wallet balance:
What's the balance of the Solana wallet address 5YNmS1R9nNSCDzb5a7mMJ1dwK9uHeAAF4CmPEwKgVWr8?
-
Get the current block height:
What's the current block height on Solana?
Claude will use the MCP server to fetch this information directly from the Solana blockchain via Helius.
To add new tools to the MCP server:
- Define the tool in
src/tools.ts
- Create a handler function in the appropriate handler file
- Add the handler to the
handlers
object insrc/tools.ts
npm run build
MIT