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

@haichainsi/mcp-server

v6.2.1

Published

HAICHAIN Model Context Protocol (MCP) Server for Autonomous AI Agents

Readme

@haichainsi/mcp-server

Official Model Context Protocol (MCP) Server for HAICHAIN: The Universal Autonomous Machine Financial & Cognitive Operating System on Solana.

Connect your AI agents in Claude Desktop, Cursor IDE, and custom agent frameworks directly to on-chain Solana settlement vaults, autonomous spending pots, and emergency panic-retraction circuits.


🚀 Features

  • On-Chain Balance Inspection (get_agent_spending_pot_balance): Inspect verified real-time balances in the Agent's Spending Pot (USDT & SOL on Solana).
  • Atomic Micro-Payments (execute_micro_payment): Empower autonomous AI agents to execute fractional micro-payments for downstream APIs, inference tokens, and sub-agent task compensation.
  • Hardware-Speed Panic Kill-Switch (trigger_emergency_panic): Instantly trip the emergency circuit breaker on Solana, freezing agent capabilities upon detecting prompt injections or anomalous behaviors.
  • Cross-Platform Zero-Config Keypair Resolution: Automatically uses your existing Solana CLI keypair (~/.config/solana/id.json), custom HAICHAIN_PRIVATE_KEY, or generates a persistent local agent wallet in your user config directory.

📦 Installation & Quick Start

Option 1: Run with npx (No installation needed)

Add the server to your MCP client configuration (Claude Desktop or Cursor) using npx:

{
  "mcpServers": {
    "haichain": {
      "command": "npx",
      "args": ["-y", "@haichainsi/mcp-server"]
    }
  }
}

Option 2: Run from Local Source (Developers)

# Clone the repository
git clone https://github.com/haichainsi/haichain.git
cd haichain/mcp-server

# Install dependencies & build
npm install
npm run build

# Start the server
npm start

⚙️ Configuration & Environment Variables

| Variable | Description | Default | | :--- | :--- | :--- | | HAICHAIN_CLUSTER | Solana cluster: devnet or mainnet-beta | devnet | | SOLANA_RPC_URL | Custom Solana RPC endpoint | https://api.devnet.solana.com | | HAICHAIN_PRIVATE_KEY | Agent Private Key (Base58, JSON array, or file path) | Auto-resolved from ~/.config/solana/id.json or persistent agent wallet |


🖥️ Setup Guide

1. Claude Desktop Setup

Open your Claude Desktop configuration file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json

Add the haichain server:

{
  "mcpServers": {
    "haichain": {
      "command": "npx",
      "args": ["-y", "@haichainsi/mcp-server"],
      "env": {
        "HAICHAIN_CLUSTER": "devnet"
      }
    }
  }
}

Restart Claude Desktop. You will see the hammer icon 🔨 with HAICHAIN tools available!


2. Cursor IDE Setup

In your project root, create or edit .cursor/mcp.json:

{
  "mcpServers": {
    "haichain": {
      "command": "npx",
      "args": ["-y", "@haichainsi/mcp-server"],
      "env": {
        "HAICHAIN_CLUSTER": "devnet"
      }
    }
  }
}

🛠️ Available MCP Tools

1. get_agent_spending_pot_balance

Inspects the live verified on-chain balance of the agent's spending pot.

  • Inputs: vaultAddress (optional string)
  • Returns: JSON object containing USDT balance, SOL balance, agent public key, status, and Solana Explorer link.

2. execute_micro_payment

Executes an atomic micro-payment on Solana for API consumption or sub-agent compensation.

  • Inputs:
    • amountUsdt (number, required): Amount in USDT (e.g. 0.002 for $0.002).
    • actionDescription (string): Description of the task/inference.
    • merchantRecipient (string, optional): Merchant public key.
  • Returns: Transaction signature, latency in ms, network fee, and Solana Explorer URL.

3. trigger_emergency_panic

Trips the emergency circuit breaker, freezing all agent spending capabilities.

  • Inputs: reason (string, optional)
  • Returns: Confirmed on-chain revocation memo and state status.

📄 License

Apache-2.0 © HAICHAIN Autonomous Machine Foundation.