npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@mseep/stellar-mcp

v0.0.8

Published

A Stellar MCP to interact with Horizon API and Smart Contracts

Readme

🌟 Stellar MCP

A Model Context Protocol server that provides Stellar blockchain interaction capabilities. This server enables LLMs to interact with both Stellar Classic and Soroban smart contracts, manage accounts, and perform various blockchain operations.

🧩 Components

🛠️ Tools

💫 Stellar Classic Operations

  • stellar_create_account

    • Create a new Stellar account
  • stellar_balance

    • Get the balance of a Stellar account
    • Input: account (string): The public key of the account to check balance
  • stellar_payment

    • Send a payment to another account
    • Inputs:
      • destination (string, required): The destination account public key
      • amount (string, required): The amount to send
      • secretKey (string, required): The secret key of the source account
      • asset (object, optional): Custom asset details
        • code (string): The asset code
        • issuer (string): The asset issuer public key
  • stellar_transactions

    • Get transaction history for an account
    • Input: account (string): The account public key to get transactions for
  • stellar_create_asset

    • Create a new asset on the Stellar network
    • Inputs:
      • code (string, required): The asset code
      • issuerSecretKey (string, required): The secret key of the issuing account
      • distributorSecretKey (string, required): The secret key of the distributing account
      • totalSupply (string, required): The total supply of the asset
  • stellar_change_trust

    • Change trustline for an asset
    • Inputs:
      • asset (object, required):
        • code (string, required): The asset code
        • issuer (string, required): The asset issuer public key
      • limit (string, required): The trust limit
      • secretKey (string, required): The secret key of the account changing trust
  • stellar_create_claimable_balance

    • Create a claimable balance that can be claimed by specified accounts under certain conditions
    • Inputs:
      • asset (object, optional): Custom asset details. If not provided, uses native XLM
        • code (string): The asset code (e.g., "USD", "EUR")
        • issuer (string): The asset issuer public key
      • amount (string, required): Amount to lock in the claimable balance
      • claimants (array, required): List of accounts that can claim this balance
        • destination (string): Public key of the account that can claim
        • predicate (object): Conditions for claiming
          • type (string): One of: "UNCONDITIONAL", "BEFORE_RELATIVE_TIME", "BEFORE_ABSOLUTE_TIME", "NOT", "AND", "OR"
          • value (number or array): For time predicates: seconds/timestamp, for compound predicates: array of predicates
      • secretKey (string, required): Secret key of the account creating the balance
  • stellar_claim_claimable_balance

    • Claim a claimable balance using its ID
    • Inputs:
      • balanceId (string, required): ID of the claimable balance to claim (returned from createClaimableBalance)
      • secretKey (string, required): Secret key of the claiming account (must be one of the claimants)
  • stellar_fund_account

    • Fund a test account using the Friendbot (testnet only)
    • Input: publicKey (string): The public key of the account to fund

📝 Soroban Smart Contract Operations

  • soroban_build_and_optimize
    • Build and optimize Soroban smart contracts
    • Inputs:
      • contractPath (string, optional): The path to the contract directory. Defaults to current working directory
    • Outputs:
      • Build logs and compilation status
      • List of optimized WASM files
      • Optimization results for each contract
    • Features:
      • Automatically builds contracts using stellar contract build
      • Finds all WASM files in the target directory
      • Optimizes each WASM file using stellar contract optimize
      • Provides detailed logs of the entire process

⭐ Key Features

  • 👤 Account management (creation, funding, balance checking)
  • 🪙 Asset operations (creation, trustlines)
  • 💸 Payment processing
  • 📝 Transaction history retrieval
  • 📱 Smart contract deployment and interaction
  • 🌐 Support for both Stellar Classic and Soroban

⚙️ Configuration

🔑 Environment Variables

Create a .env file with the following configuration:

STELLAR_SERVER_URL=

🔧 Configuration to use Stellar MCP Server

Here's the configuration to use the Stellar MCP server on Cursor, Windsurf, Claude Desktop:

💻 Local

{
    "mcpServers": {
      "stellar-mcp": {
        "command": "node",
        "args": ["your/path/stellar-mcp/dist/index.js"]
    }
  }
}

📦 NPX

{
    "mcpServers": {
      "stellar-mcp": {
        "command": "npx",
        "args": ["-y", "stellar-mcp"]
    }
  }
}

🐳 Docker

{
  "mcpServers": {
    "stellar": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "--init",
        "-e",
        "STELLAR_SERVER_URL=<STELLAR_URL_VALUE>",
        "stellar-mcp"
      ]
    }
  }
}

📥 Installation

npm install

🔨 Build

npm run build

🚀 Run

Development:

npm run start:dev

Production:

npm run start:prod

📚 Basic Example Usage

[Video TBD]

🔍 Debugging with MCP Inspector

To debug the Stellar MCP server and monitor all interactions between the LLM and the Stellar network, you can use the MCP Inspector. This tool provides a real-time view of all requests and responses.

Running with MCP Inspector

Use the following command to start the server with the inspector:

npm run start:prod
npx @modelcontextprotocol/inspector node <your/path>/stellar-mcp npm run start:prod

This will start the MCP Inspector on port 9229. You can then open your browser and navigate to:

http://localhost:5173

The inspector will show you:

  • All incoming requests from the LLM
  • Outgoing responses and errors
  • Real-time Stellar network interactions
  • Detailed transaction information

This is particularly useful when:

  • Debugging Stellar interactions
  • Monitoring transaction flows
  • Troubleshooting failed operations
  • Understanding the sequence of API calls

📄 License

This MCP server is licensed under the MIT License. This means you are free to use, modify, and distribute the software, subject to the terms and conditions of the MIT License. For more details, please see the LICENSE file in the project repository.