Skip to main content
Glama

Stellar Pilot — MCP Server for Stellar

NPM Version

Stellar Pilot bridges natural language and the Stellar blockchain. It's an MCP server that translates what you want to do into the exact CLI commands needed to do it.

Stop fighting with Stellar CLI syntax. The Stellar CLI has:

  • 10+ main commands (contract, keys, tx, network...)

  • 70+ subcommands with unique syntax

  • Hundreds of flags and parameters to remember

Stellar Pilot lets you skip all that. Just say what you need:

  • "create a new account" instead of stellar keys generate --network testnet --fund

  • "deploy my contract" instead of stellar contract deploy --wasm path --source account --network...

  • "send 100 XLM to Bob" instead of stellar tx new payment --destination G... --amount...

It translates natural language to proper CLI commands through MCP (Model Context Protocol), working seamlessly in AI assistants and IDEs.

šŸš€ Features

  • 73+ CLI Tools: Complete integration with the official Stellar CLI

  • Smart Contract Operations: Deploy, invoke, build, and optimize Soroban contracts

  • Transaction Management: Send payments, create accounts, manage trustlines, DEX trading

  • Identity & Key Management: Generate keys, manage accounts, fund testnet accounts

  • Network Configuration: Switch between testnet, mainnet, futurenet, and local networks

  • Type-Safe Interface: Full TypeScript support with schema validation

Related MCP server: adila-mcp

šŸ“‹ Prerequisites

šŸ“¦ Installation

npm install -g stellarpilot

āš™ļø Configuration

Add to your MCP settings:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

  • Windows: %APPDATA%/Claude/claude_desktop_config.json

{
  "mcpServers": {
    "stellarpilot": {
      "command": "stellar-pilot"
    }
  }
}

Successful Configuration: Once properly configured, you'll see StellarPilot with 73 tools enabled in your MCP Tools panel:

MCP Tools Panel

šŸŽÆ Basic Usage Examples

Once configured, you can use natural language to interact with Stellar:

Account Management

"Generate a new account called alice"
"Fund alice's account on testnet"
"Show me alice's public key"
"Switch to using alice as default"

Example: Creating a New Account

Creating a Stellar Account

StellarPilot automatically:

  • Generates a new keypair with secure seed phrase

  • Funds the account on testnet

  • Stores credentials securely in local configuration

  • Lists all your accounts with their details

Payments

"Send 100 XLM from alice to GDEXAMPLE..."
"Create a trustline for USDC:GCKFBEIYTKP..."
"Send 50 USDC from alice to bob"

Smart Contracts

"Deploy my contract from ./contract.wasm"
"Call the hello function on contract C123..."
"Build the contract in ./my-project"

Network Operations

"Switch to testnet"
"Check network health"
"Add a custom network called mynet"

šŸ› ļø Available Tools

StellarPilot provides 73+ tools organized into these categories:

  • Contract Operations (15 tools): Deploy, invoke, build, optimize contracts

  • Transaction Management (16 tools): Payments, trustlines, DEX operations

  • Key Management (8 tools): Generate, add, fund, manage identities

  • Network Configuration (7 tools): Add networks, check health, switch networks

  • Ledger Operations (2 tools): Get ledger info, fetch latest ledger

  • Events (1 tool): Watch contract events

  • XDR Operations (7 tools): Encode, decode, sign, verify XDR

  • Cache Management (4 tools): Clean, list, manage transaction cache

  • Development Tools (13+ tools): Doctor, completion, version, plugins, etc.

šŸ”§ Development

Project Structure

stellarpilot/
ā”œā”€ā”€ src/
│   ā”œā”€ā”€ index.ts              # Main MCP server
│   ā”œā”€ā”€ modules/
│   │   └── cli/              # Stellar CLI integration
│   │       ā”œā”€ā”€ tools/        # Tool definitions
│   │       ā”œā”€ā”€ handlers/     # Command handlers
│   │       └── types/        # TypeScript types
│   └── types/                # Shared types
ā”œā”€ā”€ build/                    # Compiled output
ā”œā”€ā”€ package.json
└── tsconfig.json

Building from Source

# Install dependencies
npm install

# Development mode (watch for changes)
npm run dev

# Production build
npm run build

# Start the server
npm start

🚨 Troubleshooting

Common Issues

  1. "stellar command not found"

  2. "stellar-pilot command not found"

    • For global install: npm install -g stellarpilot

    • For local build: Use absolute path in MCP config

  3. "Permission denied"

    • Check file permissions: chmod +x build/index.js

    • For global install: May need sudo npm install -g stellarpilot

  4. "Tools not loading in Claude"

    • Restart your IDE or IDE plugin after config changes

    • Be sure you are using the correct config syntax

    • Verify file paths are absolute

🌟 Roadmap

  • Phase 1: CLI Integration (Complete)

  • Phase 2: Enhanced Error Handling & Validation

  • Phase 3: Horizon API Integration

  • Phase 4: Direct SDK Integration

  • Phase 5: Documentation RAG System

Available Tools

73 tools
stellar_cache_actionlog_listC

List cached actions like transactions and simulations (experimental feature)

Inputs: long, configDir.

stellar_cache_actionlog_readC

Read cached action details by ID (experimental feature)

Inputs: id (required).

stellar_cache_cleanB

Delete the cache, removing all cached data including transaction history and contract specs

Inputs: no named parameters.

stellar_cache_pathA

Show the location of the cache directory

Inputs: no named parameters.

stellar_completionC

Print shell completion code for the specified shell

Inputs: shell (required).

stellar_config_dirB

Show the global configuration directory location and contents

Inputs: configDir.

stellar_config_migrateC

Migrate the local configuration to the global directory

Inputs: configDir.

stellar_container_logsB

Get logs from a running network container

Inputs: name, dockerHost.

stellar_container_startB

Start a container running a Stellar node, RPC, API, and friendbot (faucet)

Inputs: name, limits, network, dockerHost, +3 more.

stellar_container_stopB

Stop a network container started with stellar container start

Inputs: name, dockerHost.

stellar_contract_aliasC

Manage contract aliases for easier reference

Inputs: action (required), alias, network, overwrite, +1 more.

stellar_contract_asset_deployB

Deploy a Stellar Asset Contract for wrapping classic assets

Inputs: asset (required), network (required), source_account (required), fee, +2 more.

stellar_contract_bindingsC

Generate client bindings for a contract in various languages

Inputs: language (required), wasm, network, overwrite, +3 more.

stellar_contract_buildC

Build a Soroban contract from Rust source code

Inputs: meta, out_dir, package, profile, +5 more.

stellar_contract_deployC

Deploy a Soroban smart contract to Stellar network

Inputs: network (required), source_account (required), fee, salt, +6 more.

stellar_contract_extendC

Extend the time-to-live of contract data entries

Inputs: network (required), source_account (required), ledgers_to_extend (required), fee, +6 more.

stellar_contract_fetchC

Fetch a contract's WASM binary from the network

Inputs: network (required), contract_id (required), out_file.

stellar_contract_idC

Generate contract IDs for assets or WASM contracts

Inputs: id_type (required), network (required), salt, asset, +1 more.

stellar_contract_infoC

Get information about a contract (interface, metadata, etc.)

Inputs: info_type (required), wasm, output, network, +2 more.

stellar_contract_initC

Initialize a new Soroban contract project

Inputs: project_path (required), name, overwrite.

stellar_contract_invokeB

Invoke a function on a deployed Soroban contract

Inputs: network (required), contract_id (required), function_name (required), source_account (required), +4 more.

stellar_contract_optimizeC

Optimize WASM files for deployment

Inputs: wasm_paths (required), wasm_out.

stellar_contract_readD

Read contract data entries

Inputs: network (required), key, output, key_xdr, +2 more.

stellar_contract_restoreC

Restore evicted contract data entries

Inputs: network (required), source_account (required), fee, key, +6 more.

stellar_contract_uploadB

Upload a WASM file to the ledger without creating a contract instance

Inputs: wasm (required), network (required), source_account (required), fee, +2 more.

stellar_doctorC

Diagnose and troubleshoot CLI and network issues, checking for common problems

Inputs: configDir.

stellar_envB

Print environment variables in .env format or get specific variable value

Inputs: name, configDir.

stellar_events_watchC

Watch the network for contract events

Inputs: count, cursor, output, rpcUrl, +8 more.

stellar_fee_statsB

Fetch network fee statistics for transaction planning and cost estimation

Inputs: output, rpcUrl, network, rpcHeaders, +1 more.

stellar_keys_addC

Add a new identity (keypair, ledger, OS specific secure store)

Inputs: name (required), configDir, publicKey, secretKey, +2 more.

stellar_keys_fundB

Fund an identity on a test network

Inputs: name, hdPath, rpcUrl, network, +3 more.

stellar_keys_generateC

Generate a new identity using a 24-word seed phrase

Inputs: name (required), fund, seed, hdPath, +7 more.

stellar_keys_listC

List identities

Inputs: long, configDir.

stellar_keys_public_keyC

Given an identity return its address (public key)

Inputs: name, hdPath, configDir.

stellar_keys_removeC

Remove an identity

Inputs: name (required), configDir.

stellar_keys_secretC

Output an identity's secret key

Inputs: name, hdPath, phrase, configDir.

stellar_keys_useC

Set the default identity for all commands

Inputs: name (required), configDir.

stellar_ledger_fetchB

Fetch specific ledger information by sequence number

Inputs: sequence (required), limit, output, rpcUrl, +4 more.

stellar_ledger_latestC

Get the latest ledger sequence and information from the network

Inputs: output, rpcUrl, network, rpcHeaders, +1 more.

stellar_network_addC

Add a new network configuration

Inputs: name (required), rpcUrl (required), networkPassphrase (required), configDir, +1 more.

stellar_network_healthC

Check the health of the configured RPC

Inputs: output, rpcUrl, network, configDir, +2 more.

stellar_network_infoC

Get detailed information about the network

Inputs: output, rpcUrl, network, configDir, +2 more.

stellar_network_listC

List configured networks

Inputs: long, configDir.

stellar_network_removeC

Remove a network configuration

Inputs: name (required), configDir.

stellar_network_settingsC

Fetch the network's config settings

Inputs: output, rpcUrl, network, internal, +3 more.

stellar_network_useB

Set the default network for all commands

Inputs: name (required), configDir.

stellar_plugin_listB

List installed plugins

Inputs: no named parameters.

stellar_snapshot_createC

Create a ledger snapshot using a history archive

Inputs: output (required), out, ledger, rpcUrl, +7 more.

stellar_tx_account_mergeC

Merge account balance into another account and remove source

Inputs: network (required), source_account (required), account_destination (required), fee, +1 more.

stellar_tx_change_trustC

Create, update, or delete a trustline for an asset

Inputs: line (required), network (required), source_account (required), fee, +2 more.

stellar_tx_create_accountC

Create and fund a new Stellar account

Inputs: network (required), destination (required), source_account (required), starting_balance (required), +2 more.

stellar_tx_decodeB

Decode transaction XDR to human-readable JSON

Inputs: tx_xdr (required), output_format.

stellar_tx_fetchB

Fetch a transaction from the network by hash

Inputs: network (required), tx_hash (required).

stellar_tx_hashC

Calculate the hash of a transaction envelope

Inputs: tx_xdr (required), network.

stellar_tx_manage_buy_offerC

Create, update, or delete a buy offer on the DEX

Inputs: price (required), buying (required), network (required), selling (required), +5 more.

stellar_tx_manage_dataC

Set, modify, or delete account data entries

Inputs: network (required), data_name (required), source_account (required), fee, +2 more.

stellar_tx_manage_sell_offerC

Create, update, or delete a sell offer on the DEX

Inputs: price (required), amount (required), buying (required), network (required), +5 more.

stellar_tx_path_paymentC

Send a payment using path finding for cross-asset transfers

Inputs: network (required), dest_asset (required), send_asset (required), destination (required), +9 more.

stellar_tx_paymentC

Create and send a payment transaction

Inputs: asset (required), amount (required), network (required), destination (required), +5 more.

stellar_tx_sendC

Send a signed transaction to the network

Inputs: tx_xdr (required), network (required).

stellar_tx_set_optionsC

Set account options like flags, signers, and home domain

Inputs: network (required), source_account (required), fee, set_flags, +10 more.

stellar_tx_signC

Sign a transaction envelope

Inputs: tx_xdr (required), hd_path, network, sign_with_key.

stellar_tx_simulateC

Simulate a transaction to predict results and costs

Inputs: tx_xdr (required), network (required), source_account.

stellar_tx_update_sequenceC

Update the sequence number on a transaction

Inputs: tx_xdr (required), network, source_account, sequence_number.

stellar_versionB

Print version information for the Stellar CLI

Inputs: onlyVersion, onlyVersionMajor.

stellar_xdr_compareC

Compare two XDR values

Inputs: left (required), type (required), right (required), channel, +1 more.

stellar_xdr_decodeB

Decode XDR data to human-readable format

Inputs: type (required), input, channel, inputFormat, +1 more.

stellar_xdr_encodeC

Encode JSON data to XDR format

Inputs: type (required), input, channel, inputFormat, +1 more.

stellar_xdr_generate_defaultC

Generate default XDR values for a type

Inputs: type (required), channel, outputFormat.

stellar_xdr_guessC

Guess the XDR type of given data

Inputs: input, channel, certainty, inputFormat.

stellar_xdr_types_listC

List all available XDR types

Inputs: output, channel.

stellar_xdr_types_schemaB

Get JSON schema for a specific XDR type

Inputs: type (required), output, channel.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    C2.9/5.0

    Scored across 73 tools

    Disambiguation4/5

    Most tools target distinct resource+action pairs (e.g., tx_payment vs tx_path_payment, contract_deploy vs contract_upload). A few boundaries are subtle, such as tx_send vs tx_payment and contract_read vs contract_fetch vs contract_info, but descriptions generally clarify them.

    Naming Consistency5/5

    All tools use snake_case with a consistent stellar_ prefix and domain_action hierarchy. Minor noun-vs-verb endings exist, but the pattern is highly predictable with no mixed conventions.

    Tool Count1/5

    73 tools is far beyond the typical 3-15 range and creates severe cognitive overload for an agent. While the underlying CLI has many commands, exposing all as separate tools is an extreme mismatch for a coherent MCP surface.

    Completeness5/5

    The surface covers identities, networks, transactions, contracts, XDR, cache, config, plugins, containers, ledgers, events, fees, and snapshots. This is comprehensive for the Stellar CLI domain with no obvious critical gaps.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      C
      maintenance
      Universal MCP server that wraps any CLI tool, enabling AI assistants to run commands via natural language.
      1
      MIT
    • F
      license
      Not graded
      quality
      C
      maintenance
      MCP server for the Steuerboard API, enabling interaction with Steuerboard services through natural language.
      25 npm
      1
      -
    • F
      license
      Not graded
      quality
      D
      maintenance
      MCP server for OpenAlgo, enabling algorithmic trading operations via natural language commands.
      3
      -