Requirements
- Node.js 20 or newer (
node --version) - A Hedera account on the network you want to use. Testnet accounts are free at portal.hedera.com
- An OpenAI API key, only if you want the documentation and code generation tools (
docs_search,docs_ask,docs_get_example,code_generate) - Foundry and/or Hardhat on your machine, only for the smart contract tools
Install HashPilot
Option 1: Global Installation (Recommended)
Option 2: Use with npx (No Installation)
You can run HashPilot directly with npx - no global installation required:When using npx in your MCP configuration, use
npx -y hashpilot to auto-confirm the install prompt.Environment Variables
HashPilot reads its configuration from theenv block of your MCP server entry. Only the first three are required.
JSON_RPC_RELAY_URL and MIRROR_NODE_URL only apply to the network named in HEDERA_NETWORK. If you switch networks at runtime with network_switch, the other networks use the public Hedera endpoints.Getting a Hedera Account
- Visit portal.hedera.com
- Create a free account
- Navigate to the Testnet tab
- Copy your Account ID (e.g.,
0.0.12345) - Copy your Private Key. Both the DER-encoded and the raw hex form shown in the portal work; portal keys are ECDSA
Editor Configuration
Choose your AI editor below for specific setup instructions. All of them use the samemcpServers entry; only the file location differs.
- Claude Desktop
- Cursor
- Windsurf
- Gemini CLI
- VS Code
Claude Desktop
Config file location:- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json - Linux:
~/.config/Claude/claude_desktop_config.json
- Create or edit the config file at the location above
- Add the configuration with your credentials
- Restart Claude Desktop
- Test by asking: “Use the health_check tool”
Using Global Installation
If you installed HashPilot globally, you can usehashpilot directly instead of npx:
Verify Installation
After configuring your editor, test that HashPilot is working:- Ask your AI assistant: “Run the health_check tool”
- You should see the version, the tool count and your operator account
On startup HashPilot looks up your operator account on the Mirror Node and checks that
HEDERA_OPERATOR_KEY really belongs to it. If the key does not match, the server refuses to start and the error names both keys. See Troubleshooting.Next Steps
Tutorials
End-to-end walkthroughs from first account to verified contract
Tool Reference
All 32 tools with their operations and parameters
Best Practices
Keys, networks, RPC providers, costs
Features
Learn what HashPilot can do