Skip to main content
Glama

HashPilot

npm License Node

The Hedera developer toolkit for AI coding assistants. An MCP server that lets Claude, Cursor, VS Code, Windsurf and Gemini CLI build on Hedera. It creates accounts, tokens and topics, deploys and verifies contracts, queries the Mirror Node, and answers from the Hedera docs, SDK examples and specifications.

"Create an NFT collection with a 5% royalty on testnet"
"Scaffold a Hardhat project, deploy it, and verify the contract"
"Why did my last transaction fail?"
"Show me a Go example that submits a message to a topic"

Quick start

Add HashPilot to your editor's MCP config:

{
  "mcpServers": {
    "hashpilot": {
      "command": "npx",
      "args": ["-y", "hashpilot"],
      "env": {
        "HEDERA_NETWORK": "testnet",
        "HEDERA_OPERATOR_ID": "0.0.12345",
        "HEDERA_OPERATOR_KEY": "302e…"
      }
    }
  }
}

That's it. Get a free testnet account at portal.hedera.com.

Editor

Config file

Claude Desktop

~/Library/Application Support/Claude/claude_desktop_config.json (macOS) · %APPDATA%\Claude\claude_desktop_config.json (Windows)

Cursor

~/.cursor/mcp.json

Windsurf

~/.codeium/windsurf/mcp_config.json

Gemini CLI

~/.gemini/settings.json

VS Code

.vscode/mcp.json. Use "servers" instead of "mcpServers", and add "type": "stdio"

No operator? Mirror Node queries, network info and documentation work without one. Only transactions need a key.

Related MCP server: Flow MCP Server

What's inside

32 tools, grouped by what you're doing:

Area

Tools

Highlights

Accounts & HBAR

account_create account_balance account_info transfer_hbar

ECDSA or ED25519 keys, auto-associations, staking

Tokens (HTS)

token_manage

Fungible and NFT, custom fees (fixed, fractional, royalty), finite supply, threshold keys. Plus mint, burn, transfer, freeze, KYC, wipe, pause

Consensus (HCS)

hcs_topic hcs_message

Topics with admin and submit keys, auto-chunked messages, queries by sequence or time

Mirror Node

mirror_query mirror_query_account

32 free read-only resources: transactions, tokens, NFTs, topics, contract state, logs and traces, schedules, blocks, staking, exchange rate

GraphQL

graphql

Query indexed Mirror Node data with GraphQL through Hgraph: explore the schema, generate and validate queries, run them

Smart contracts

hardhat_project hardhat_contract foundry_project foundry_contract deploy_contract

Scaffold, compile, test and deploy with your project's own Hardhat or Foundry

Verification

verify_contract

Sourcify v2, shown on HashScan (mainnet and testnet)

EVM / JSON-RPC

rpc_call rpc_call_contract rpc_deploy_contract rpc_execute_contract

Any relay method (eth_call, eth_getLogs, …), and free read-only calls

Stablecoins

stablecoin_manage

Hedera Stablecoin Studio: 18 operations with roles, KYC, freeze, cash-in and Proof-of-Reserve

Docs & code

docs_search docs_ask docs_get_example code_generate

Answers and code examples from Hedera's docs, SDKs and specifications

Workflow

error_explain addressbook_manage state_manage deployment_history network_switch health_check

Status codes explained, account aliases, backups, deploy history

Full parameter reference: docs/tools.mdx.

Documentation index

The docs tools search a hosted index of 69 Hedera sources (about 11,000 sections):

  • docs.hedera.com and all HIPs

  • the HCS standards

  • the protobuf service definitions

  • SDK examples in JavaScript, Java, Go, Python and Rust

  • the official Solidity contracts

  • Solo, the Hiero CLI, the Mirror Node, the JSON-RPC relay, the Agent Kit and Stablecoin Studio

Questions that name a standard, such as "what does HIP-904 change?", are answered from that document. Generated code flags any API name the docs don't confirm.

Set OPENAI_API_KEY for this full index, written answers and code generation. Without a key, the docs tools answer from Hedera's official documentation search instead, which is free and needs no key.

HashPilot and Hedera's official MCP servers

Hedera's own MCP servers are built for transacting and for reading the docs. HashPilot is built for the part they don't cover, which is developing and shipping on Hedera. They can be used together.

HashPilot

Agent Kit MCP

Hosted Network MCP

Docs MCP

Built for

Developers building on Hedera

Agents that transact

Transacting from a chat, via your wallet

Reading the docs

Networks

mainnet, testnet, previewnet, local

mainnet, testnet

testnet only

–

Accounts, HBAR, tokens, topics

✅

✅

✅

–

Mirror Node queries

32 resources

10 query tools

subset of the Agent Kit's

–

GraphQL (via Hgraph)

✅

–

–

–

Hardhat and Foundry projects

✅

–

–

–

Contract verification

✅ Sourcify

–

–

–

Raw JSON-RPC access

✅

–

–

–

Stablecoin Studio

✅

–

–

–

Error explanations

✅

–

–

–

Documentation

Docs, HIPs, HCS standards, protobufs, SDK examples in 5 languages; written answers and code generation

–

–

Docs and HIPs, returned as raw text; no key needed

Allowances, airdrops, scheduled transactions

not yet

✅

allowances

–

Wallet approval (no key on the server)

not yet

✅

✅

–

Agent Kit columns list its core plugins only. Third-party plugins add more.

Configuration

Variable

Needed for

Notes

HEDERA_NETWORK

choosing a network

testnet (default), mainnet, previewnet or local

HEDERA_OPERATOR_ID

transactions

Your account, e.g. 0.0.12345

HEDERA_OPERATOR_KEY

transactions

DER or raw hex. Raw hex is read as ECDSA, and the key is checked against the account on startup

HEDERA_OPERATOR_KEY_TYPE

ED25519 raw hex keys

ecdsa (default) or ed25519

OPENAI_API_KEY

full docs index

Optional; see Documentation index

JSON_RPC_RELAY_URL

production EVM calls

The default relay (Hashio) is rate-limited

MIRROR_NODE_URL

custom Mirror Node

Defaults to Hedera's public Mirror Node

HGRAPH_API_KEY

GraphQL

Free key at app.hgraph.com. GRAPHQL_ENDPOINT points to a different GraphQL endpoint

HASHPILOT_DATA_DIR

custom data location

Address book, backups and history. Default ~/.hedera-mcp

CHROMA_URL, CHROMA_AUTH_TOKEN

self-hosted docs index

Self-hosting guide

STABLECOIN_FACTORY_ADDRESS, STABLECOIN_RESOLVER_ADDRESS

stablecoins off testnet

Only testnet addresses are built in

Smart contract tools also need Hardhat or Foundry in the project. Node.js 20 or newer is required.

Safety

  • Start on testnet. Your operator key lives in the MCP config, and HashPilot signs with it without asking.

  • Know what costs HBAR. Queries, docs and verification are free. Creating, transferring, minting and deploying are paid transactions. See best practices.

  • Compile generated code before relying on it. Unconfirmed API names are flagged, but not every mistake can be caught.

Development

npm install
npm run build && npm test      # unit tests, no network needed
npm run test:mcp               # drives the built server as a real MCP client
npm run smoke                  # read-only checks against HEDERA_NETWORK

Changes are listed in CHANGELOG.md. Maintenance notes and verification details are in MAINTENANCE.md.

License

Apache-2.0

Available Tools

30 tools
account_balanceA

Query HBAR and token balances for any Hedera account.

RETURNS: HBAR balance in ℏ format, list of all associated token balances FREE: No transaction fee (Mirror Node query)

USE FOR: Checking account balances, monitoring funds, verifying token holdings.

Inputs: accountId (required).

account_createA

Create a new Hedera account with customizable parameters.

CREATES: New account with auto-generated ECDSA key pair (or use provided public key) FUNDS: Initial HBAR balance from operator account RETURNS: Account ID, private key, public key, transaction ID

USE FOR: Creating new accounts for testing, development, or production workflows. COSTS: Network fee + initial balance (minimum 1 HBAR recommended)

Inputs: initialBalance, memo, publicKey.

account_infoA

Get comprehensive Hedera account information.

RETURNS: Balance, EVM address, public key, memo, auto-renew period, expiration FREE: No transaction fee (Mirror Node query)

USE FOR: Account inspection, EVM address lookup, key verification, expiration monitoring.

Inputs: accountId (required).

addressbook_manageA

Manage Hedera account address book for multi-account workflows.

OPERATIONS:

  • add: Add account to address book (reference only, no private key)

  • import: Import account WITH private key for transaction signing

  • list: Show all saved accounts with aliases and metadata

  • update: Update account nickname

  • remove: Remove account from address book

USE THIS FOR: Managing multiple accounts, organizing workflows, quick account reference.

Inputs: operation (required), accountId, alias, nickname, +1 more.

code_generateA

Generate context-aware Hedera SDK code from natural language.

CREATES: Complete, runnable code with imports, error handling, best practices LANGUAGES: JavaScript, TypeScript, Java, Python, Go, Solidity STYLES: minimal (core logic), complete (with setup), production (full best practices)

USE FOR: Creating new implementations, generating boilerplate, scaffolding projects.

Inputs: description (required), language, style, includeImports, +1 more.

deploy_contractA

Deploy smart contract to Hedera with unified interface.

AUTO-DETECTS: Hardhat or Foundry project framework SUPPORTS: Constructor arguments, gas limits, auto-verification TRACKS: Deployment history with metadata

USE FOR: Production contract deployment, automated workflows, verified deployments.

Inputs: contractName (required), network (required), constructorArgs, verify, +1 more.

deployment_historyB

View deployment history with filtering and export.

FILTERS: By network, contract name, status EXPORTS: JSON, CSV, or Markdown format

USE FOR: Tracking deployments, auditing, documentation.

Inputs: network, contractName, limit, exportFormat.

docs_askA

Answer ANY knowledge question about Hedera using RAG.

HANDLES: Conceptual (what is X?), how-to (how do I?), comparison (X vs Y), troubleshooting, best practices, architecture, security RETURNS: Comprehensive answer with code examples and source citations EXPERTISE: Adjustable for beginner/intermediate/advanced levels

USE FOR: Learning Hedera concepts, getting implementation guidance, understanding best practices. THIS IS YOUR PRIMARY TOOL FOR HEDERA KNOWLEDGE QUESTIONS.

Inputs: question (required), expertiseLevel, includeCodeExamples, language.

docs_get_exampleA

Find working code examples for Hedera functionality.

SEARCHES: SDK examples, tutorials, implementation patterns RETURNS: Annotated code with explanations and source references LANGUAGES: JavaScript, TypeScript, Java, Python, Go, Rust, Solidity

USE FOR: Getting implementation code, learning patterns, finding SDK usage.

Inputs: description (required), language, complexity, limit.

error_explainA

Explain Hedera error codes and provide debugging guidance.

USE FOR:

  • Understanding cryptic Hedera error codes (e.g., INSUFFICIENT_PAYER_BALANCE)

  • Getting step-by-step solutions for common errors

  • Finding related errors and security recommendations

EXAMPLES:

  • "What does INSUFFICIENT_PAYER_BALANCE mean?"

  • "Explain TOKEN_NOT_ASSOCIATED_TO_ACCOUNT error"

  • "I got CONTRACT_REVERT_EXECUTED - what's wrong?"

  • "List all token-related errors"

Inputs: errorCode, errorMessage, category, search.

foundry_contractA

Manage Foundry contract testing, deployment, and interaction.

OPERATIONS:

  • test: Run Forge tests with fuzzing and gas reports

  • create: Deploy single contract via forge create

  • script: Execute Solidity deployment script

  • call: Call read-only function via cast (FREE)

  • send: Send state-changing transaction via cast

  • anvil_start: Start local Anvil node (can fork from network)

  • anvil_stop: Stop Anvil local node

AUTO-RESOLUTION: privateKey and rpcUrl are OPTIONAL - if not provided, automatically uses MCP operator account configuration.

USE FOR: Testing, deployment, gas analysis, and local development.

Inputs: operation (required), directory, matchTest, matchContract, +15 more.

foundry_projectA

Manage Foundry project lifecycle operations.

OPERATIONS:

  • init: Initialize new Foundry project with templates

  • install: Install git submodule dependency (e.g., forge-std)

  • update: Update all dependencies

  • remove: Remove a dependency

  • clean: Clean build artifacts

  • build: Compile contracts with optimization options

  • fmt: Format Solidity code

  • inspect: Inspect contract artifacts (ABI, bytecode, storage-layout)

  • get_artifacts: Retrieve compiled artifacts

  • snapshot: Create gas usage snapshot for optimization

USE FOR: Project setup, dependencies, compilation, and gas optimization.

Inputs: operation (required), directory, template, dependency, +5 more.

hardhat_contractA

Manage Hardhat contract deployment and interaction.

OPERATIONS:

  • deploy: Execute deployment script on target network

  • deploy_ignition: Deploy using Hardhat Ignition (declarative)

  • verify: Get contract verification metadata for HashScan

  • call: Call read-only contract function (FREE)

  • execute: Execute state-changing contract transaction

AUTO-RESOLUTION: Deployment automatically uses MCP operator account credentials. No need to set TESTNET_PRIVATE_KEY manually.

USE FOR: Contract deployment, verification, and interaction.

Inputs: operation (required), directory, script, module, +9 more.

hardhat_projectB

Manage Hardhat project lifecycle operations.

OPERATIONS:

  • init: Initialize new Hardhat project with Hedera configuration

  • compile: Compile Solidity contracts (with force option)

  • test: Run Mocha/Chai tests with filtering

  • clean: Clean artifacts and cache

  • flatten: Flatten contracts for verification

  • get_artifacts: Retrieve compiled ABI and bytecode

  • get_accounts: List available accounts with balances

  • config_network: Generate Hedera network config snippet

  • run_task: Execute custom Hardhat task

  • list_tasks: List all available tasks

USE FOR: Project setup, compilation, testing, and configuration management.

Inputs: operation (required), directory, networks, solidity, +9 more.

hcs_messageA

Hedera Consensus Service (HCS) message operations.

OPERATIONS:

  • submit: Submit message to topic (auto-chunks if >1KB)

  • query: Query historical messages with filtering (FREE via Mirror Node)

USE THIS FOR: Publishing messages, retrieving consensus-ordered data, auditable logs.

Inputs: operation (required), topicId (required), message, limit, +2 more.

hcs_topicB

Hedera Consensus Service (HCS) topic management.

OPERATIONS:

  • create: Create new public or private topic with configurable keys

  • update: Update topic memo or auto-renew period

  • subscribe: Subscribe to real-time topic messages

USE THIS FOR: Creating consensus topics, configuring topic settings, real-time message streams.

Inputs: operation (required), topicId, memo, adminKey, +3 more.

health_checkA

Check HashPilot MCP server health and status. Returns version, tool count, and optimization level.

Inputs: verbose.

mirror_query_accountA

Query comprehensive account data from Hedera Mirror Node REST API.

RETURNS: Balance, EVM address, creation time, keys, memo, transactions (optional) FREE: No transaction fees (REST API query)

USE FOR: Account inspection, transaction history, state verification.

Inputs: accountId (required), includeTransactions, transactionLimit.

network_infoA

Get current Hedera network configuration.

RETURNS: Network name, Mirror Node URL, JSON-RPC Relay endpoint USE FOR: Verifying active network, getting endpoint URLs, network status.

Inputs: no named parameters.

network_switchA

Switch between Hedera networks seamlessly.

NETWORKS: mainnet (production), testnet (testing), previewnet (preview), local (development) UPDATES: All SDK connections, Mirror Node URLs, RPC endpoints automatically

USE FOR: Multi-network development, testing across environments, production deployment.

Inputs: network (required).

rpc_callA

Execute ANY JSON-RPC method on Hedera's JSON-RPC Relay.

SUPPORTS: 55+ methods including eth_*, web3_*, net_*, debug_* EXAMPLES: eth_blockNumber, eth_getBalance, eth_call, eth_getLogs, eth_sendRawTransaction DECODES: Results automatically converted to human-readable format

USE FOR: EVM-compatible operations, blockchain state queries, transaction submission.

Inputs: method (required), params, network.

rpc_call_contractA

Call read-only smart contract function via eth_call (FREE - no gas cost).

EXECUTES: View/pure function on deployed contract DECODES: Return values using provided ABI FREE: No transaction fee, no state changes

USE FOR: Reading contract state, querying balances, checking conditions.

Inputs: contractAddress (required), abi (required), functionName (required), args.

rpc_deploy_contractA

Deploy smart contract to Hedera via JSON-RPC.

HANDLES: Bytecode deployment, constructor encoding, gas estimation, receipt polling RETURNS: Contract address, transaction hash, deployment details COSTS: Gas fees for contract creation AUTO-KEY: privateKey is OPTIONAL - automatically uses MCP operator account if not provided

USE FOR: Deploying Solidity contracts to Hedera EVM.

Inputs: bytecode (required), abi, constructorArgs, privateKey.

rpc_execute_contractA

Execute state-changing contract function via eth_sendRawTransaction.

EXECUTES: Transaction that modifies contract state HANDLES: Function encoding, signing, gas estimation, receipt polling COSTS: Gas fees for execution RETURNS: Transaction hash, receipt, decoded logs AUTO-KEY: privateKey is OPTIONAL - automatically uses MCP operator account if not provided

USE FOR: Token transfers, contract interactions, state modifications.

Inputs: contractAddress (required), abi (required), functionName (required), args, +2 more.

stablecoin_manageA

Enterprise-grade stablecoin management via Hedera Stablecoin Studio.

OPERATIONS:

  • create: Create compliant stablecoin with role-based controls

  • info: Get stablecoin details (supply, treasury, pause status)

  • balance: Check account balance for stablecoin

  • cashin: Mint tokens to account (controlled by CASHIN role)

  • burn: Burn tokens from treasury (controlled by BURN role)

  • wipe: Remove tokens from any account (controlled by WIPE role)

  • rescue: Rescue tokens from proxy contract treasury

  • rescue_hbar: Rescue HBAR from proxy contract

  • freeze/unfreeze: Control account transfer ability

  • pause/unpause: Halt/resume all token operations globally

  • kyc_grant/kyc_revoke: Manage KYC compliance status

  • role_grant/role_revoke/role_check: Manage role assignments

  • delete: Permanently delete stablecoin (DANGER)

FEATURES:

  • Role-based access control (CASHIN, BURN, WIPE, RESCUE, PAUSE, FREEZE, KYC, DELETE)

  • Native KYC/AML compliance

  • Proof-of-Reserve support

  • Proxy contract architecture (upgradable)

  • Cash-in allowances for controlled minting

AUTO-CONFIG: Uses MCP operator account for SDK authentication.

USE FOR: Institutional stablecoin issuance, compliance workflows, token lifecycle management.

Inputs: operation (required), stablecoinId, targetAccount, amount, +23 more.

state_manageA

Manage HashPilot MCP server state through backup/restore/export operations.

OPERATIONS:

  • backup: Create timestamped backup (excludes private keys by default for security)

  • restore: Restore state from backup file (can merge or replace)

  • export: Export state to JSON for inspection or sharing

USE THIS FOR: State persistence, migration, disaster recovery, debugging.

Inputs: operation (required), includePrivateKeys, outputPath, backupPath, +2 more.

token_manageA

Comprehensive Hedera Token Service (HTS) management. Execute ANY token operation through a single unified interface.

OPERATIONS:

  • create: Create new fungible token with custom fees, keys, and supply controls

  • associate: Associate token with account (required before receiving tokens)

  • transfer: Transfer tokens between accounts

  • mint: Mint additional tokens (requires supply key)

  • burn: Burn tokens from treasury

  • freeze/unfreeze: Control account's ability to transfer specific token

  • kyc_grant/kyc_revoke: Manage KYC status for regulated tokens

  • wipe: Remove tokens from account (requires wipe key)

  • pause/unpause: Halt/resume all token operations globally

USE THIS FOR: All token lifecycle management, compliance operations, supply control, and transfer operations.

REQUIRES: Operator account with appropriate keys (admin/supply/freeze/kyc/wipe/pause) based on operation.

Inputs: operation (required), tokenId, accountId, amount, +13 more.

transfer_hbarA

Transfer HBAR between Hedera accounts.

EXECUTES: CryptoTransfer transaction from source to destination REQUIRES: Operator account must be source OR have signing authority COSTS: Standard network transaction fee

USE FOR: Funding accounts, payments, moving HBAR between wallets.

Inputs: from (required), to (required), amount (required).

verify_contractA

Verify smart contract on HashScan block explorer.

METHODS: Direct source upload, Hardhat build-info, Foundry artifacts RETURNS: Verification status and HashScan URL

USE FOR: Contract transparency, code verification, public auditability.

Inputs: address (required), network (required), contractName (required), filePath (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.6/5.0

    Scored across 30 tools

    Disambiguation3/5

    The tool set has clear distinct purposes for most tools, but there is significant overlap in some areas. For example, 'deploy_contract', 'rpc_deploy_contract', 'hardhat_contract', and 'foundry_contract' all handle contract deployment with different frameworks, which could confuse an agent about which to use. Similarly, 'docs_ask', 'docs_get_example', and 'docs_search' all serve documentation purposes but have overlapping use cases. Descriptions help differentiate them, but the boundaries are not always clear.

    Naming Consistency4/5

    Most tools follow a consistent verb_noun pattern (e.g., 'account_balance', 'token_manage', 'network_switch'), which is predictable and readable. However, there are minor deviations like 'health_check' (noun_verb) and 'foundry_contract' (adjective_noun) that break the pattern slightly. Overall, the naming is largely consistent with only a few inconsistencies that do not severely impact usability.

    Tool Count2/5

    With 30 tools, the count feels excessive for a single server, leading to potential confusion and overlap. While Hedera is a broad domain, the server includes tools for documentation, code generation, project management, and multiple deployment frameworks, which could be better scoped into separate servers. This many tools may overwhelm agents and increase the risk of misselection due to the high number of similar functionalities.

    Completeness5/5

    The tool surface is highly complete for the Hedera domain, covering account management, token operations, smart contract deployment (across multiple frameworks), consensus services, network operations, and documentation. It includes CRUD/lifecycle coverage for key resources like accounts, tokens, and contracts, with no obvious gaps. Tools like 'stablecoin_manage' and 'hcs_topic' provide specialized functionalities that enhance coverage, making the set well-rounded for agent workflows.

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      A Model Context Protocol server that enables AI models to interact with the Solana blockchain, providing RPC methods, wallet management, DeFi trading capabilities, and Helius API integration for enhanced Solana development.
      5
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      A Model Context Protocol server that enables AI assistants to access Flow blockchain data and perform operations such as checking balances, resolving domains, executing scripts, and submitting transactions.
      1
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      A Model Context Protocol server that provides onchain tools for AI applications to interact with the Hashkey Network, enabling cryptocurrency transfers, smart contract deployment, and blockchain interactions.
      13 npm
      2
      MIT