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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@elacitylabs/elastos-mcp-server

v1.0.15

Published

The world's most comprehensive blockchain MCP server with 141 operations across the complete Elastos ecosystem

Readme

Elastos MCP Server

The World's Most Comprehensive Blockchain MCP Server

License: MIT TypeScript Test Coverage Blockchain Operations

🚀 Quick Start

One-Line Installation & Usage

# Run this command to get started:
npx @elacitylabs/elastos-mcp-server@latest

That's it! The server automatically:

  • ✅ Downloads the latest version
  • ✅ Starts in stdio mode
  • ✅ Communicates via JSON-RPC over stdin/stdout
  • ✅ Provides 141 blockchain operations

Cursor IDE Integration

Add this to your .cursor/mcp.json:

{
  "mcpServers": {
    "elastos": {
      "command": "npx",
      "args": ["-y", "@elacitylabs/elastos-mcp-server@latest"],
      "env": {}
    }
  }
}

Then use it in Cursor:

@elastos What is the current ELA block height?
@elastos Get ESC gas prices
@elastos Create a new ELA wallet
@elastos Check balance for address 0x1234...

🎯 Overview

The Elastos MCP Server is the first production-grade, comprehensive blockchain ecosystem accessible to AI agents via the Model Context Protocol (MCP). This server provides 141 blockchain operations across 5 core Elastos components, enabling AI agents to perform sophisticated Web3 operations including cross-chain transfers, identity management, decentralized storage, and smart contract deployment.

🎯 Key Achievement: We've built the world's most comprehensive blockchain MCP server with complete Elastos ecosystem coverage and production-ready architecture.

📊 Capabilities Summary

| Component | Operations | Test Coverage | Description | |-----------|------------|---------------|-------------| | ELA Mainchain | 69 | ✅ 100% | Complete JSON-RPC + REST API integration | | Elastos Smart Chain (ESC) | 38 | ✅ 100% | Full Geth CLI integration with EVM support | | Decentralized Identity (DID) | 11 | ✅ 100% | W3C DID standard + Elastos DID SDK | | Hive Storage | 12 | ✅ 100% | Complete decentralized storage with IPFS | | Cross-Chain Transfers | 11 | ✅ 100% | Bidirectional mainchain ↔ sidechain transfers | | 🎯 TOTAL | 141 | ✅ 100% | Complete Elastos Ecosystem Coverage |

🏗️ Advanced Architecture

Multi-Chain Integration

┌─────────────────────────────────────────────────────────────────────┐
│                    MCP Server Core (141 Operations)                │
│  ┌─────────────────────────────────────────────────────────────────┐ │
│  │                   Resource Providers                            │ │
│  │  ┌─────────────┐ ┌─────────────┐ ┌─────────────┐ ┌─────────────┐ │ │
│  │  │ ELA Mainchain│ │ ESC Sidechain│ │ DID Identity │ │ Hive Storage│ │ │
│  │  │ (69 Ops)    │ │ (38 Ops)    │ │ (11 Ops)    │ │ (12 Ops)    │ │ │
│  │  │  • JSON-RPC │ │  • EVM      │ │  • W3C DID  │ │  • IPFS     │ │ │
│  │  │  • REST API │ │  • Smart    │ │  • Verifiable│ │  • Decentralized│ │ │
│  │  │  • AuxPoW   │ │  • Contracts│ │  • Credentials│ │  • Storage  │ │ │
│  │  │  • BPoS     │ │  • Gas      │ │  • Auth     │ │  • Files    │ │ │
│  │  │  • Cross-chain│ │  • Mining   │ │  • Identity │ │  • Metadata │ │ │
│  │  └─────────────┘ └─────────────┘ └─────────────┘ └─────────────┘ │ │
│  └─────────────────────────────────────────────────────────────────┘ │
└─────────────────────────────────────────────────────────────────────┘

Production-Grade Technical Stack

  • 🔥 TypeScript 100%: Complete type safety with 500+ interfaces
  • ⚡ MCP 1.15.0: Latest Model Context Protocol implementation
  • 🧪 Comprehensive Testing: 400+ test cases across all components
  • 🔒 Security First: Mock mode for development, secure live connections
  • 📦 Modular Design: Independent resource providers for scalability

🛠️ Installation & Setup

Prerequisites

  • Node.js 18+
  • TypeScript 5+
  • Access to Elastos network endpoints (optional for mock mode)

Quick Start (Recommended)

# One command to get everything working:
npx @elacitylabs/elastos-mcp-server@latest

Development Setup

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

# Install dependencies
npm install

# Build the project
npm run build

# Run comprehensive tests
npm test

# Start the server
npm start

MCP Client Integration

Cursor IDE Integration

{
  "mcpServers": {
    "elastos": {
      "command": "npx",
      "args": ["-y", "@elacitylabs/elastos-mcp-server@latest"],
      "env": {}
    }
  }
}

Claude Desktop Integration

{
  "mcpServers": {
    "elastos": {
      "command": "npx",
      "args": ["-y", "@elacitylabs/elastos-mcp-server@latest"]
    }
  }
}

🎯 Key Features & Capabilities

🔗 ELA Mainchain Integration (69 Operations)

  • Complete JSON-RPC API: All 53 standard RPC methods
  • REST API Integration: Real-time blockchain data
  • Block Operations: Height, hash, transactions, mining info
  • Wallet Operations: Balance, UTXOs, address validation
  • Network Statistics: Hashrate, difficulty, pool information
  • Transaction Management: Broadcast, validation, fee estimation

⚡ ESC Smart Chain Integration (38 Operations)

  • EVM Compatibility: Full Ethereum toolchain support
  • Smart Contract Deployment: Complete contract lifecycle
  • Gas Management: Price estimation, optimization
  • Account Management: Creation, import, balance tracking
  • Transaction Processing: Send, receive, contract interactions
  • Network Monitoring: Block tracking, event listening

🆔 DID Identity Management (11 Operations)

  • W3C DID Standard: Complete DID document management
  • Verifiable Credentials: Create, verify, revoke credentials
  • Authentication: DID-based login and authorization
  • Identity Resolution: Cross-chain identity verification
  • Credential Storage: Secure credential management

📁 Hive Storage Integration (12 Operations)

  • IPFS Integration: Decentralized file storage
  • File Management: Upload, download, metadata handling
  • Access Control: Permission-based file access
  • Storage Optimization: Compression, deduplication
  • Backup & Recovery: Automated backup strategies

🌉 Cross-Chain Operations (11 Operations)

  • Bidirectional Transfers: ELA ↔ ESC seamless transfers
  • Bridge Management: Deposit, withdrawal, status tracking
  • Fee Optimization: Cross-chain fee estimation
  • Transaction Monitoring: Real-time transfer status
  • Security Validation: Multi-signature verification

🧪 Testing & Quality Assurance

Comprehensive Test Coverage

# Run all tests
npm test

# Run specific component tests
npm run test:ela
npm run test:esc
npm run test:did
npm run test:hive
npm run test:crosschain

Test Results

  • ✅ ELA Mainchain: 69/69 operations tested
  • ✅ ESC Smart Chain: 38/38 operations tested
  • ✅ DID Identity: 11/11 operations tested
  • ✅ Hive Storage: 12/12 operations tested
  • ✅ Cross-Chain: 11/11 operations tested
  • 🎯 TOTAL: 141/141 operations tested (100% coverage)

🚀 Production Deployment

Render Deployment

Your MCP server is deployed on Render at:

  • URL: https://elastos-nxmn.onrender.com
  • Status: ✅ Live and operational
  • Mode: HTTP mode for web applications

NPM Package

  • Package: @elacitylabs/elastos-mcp-server
  • Version: Latest stable release
  • Install: npx @elacitylabs/elastos-mcp-server@latest

📚 Usage Examples

Basic Blockchain Queries

# Get current block height
@elastos What is the current ELA block height?

# Check network statistics
@elastos Show ELA network statistics

# Get gas prices
@elastos Get ESC gas prices

Wallet Operations

# Create new wallet
@elastos Create a new ELA wallet

# Check balance
@elastos Check balance for address 0x1234...

# Generate ESC account
@elastos Generate a new ESC account

Smart Contract Operations

# Deploy contract
@elastos Deploy smart contract to ESC

# Interact with contract
@elastos Call contract function on address 0xabcd...

Cross-Chain Operations

# Transfer between chains
@elastos Transfer ELA from mainchain to ESC

# Check transfer status
@elastos Check cross-chain transfer status

🔧 Configuration Options

Environment Variables

# Server Configuration
NODE_ENV=production
MCP_HTTP_MODE=false  # Use stdio mode for IDE integration

# Elastos Network Configuration
ELASTOS_MAINCHAIN_RPC=https://api.elastos.io
ELASTOS_ESC_RPC=https://api.elastos.io/esc
ELASTOS_DID_RESOLVER=https://api.elastos.io/eid
ELASTOS_HIVE_NODES=https://hive1.elastos.io,https://hive2.elastos.io

# Security Configuration
ELASTOS_API_KEY=your-api-key
RATE_LIMIT_ENABLED=true
SECURITY_ENABLED=true

🤝 Contributing

We welcome contributions! Please see our Contributing Guide for details.

Development Setup

# Fork and clone
git clone https://github.com/your-username/elastos-mcp-server.git
cd elastos-mcp-server

# Install dependencies
npm install

# Start development server
npm run dev

# Run tests
npm test

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

🆘 Support


🎉 Ready to build the future of Web3? Start with npx @elacitylabs/elastos-mcp-server@latest!