@elacitylabs/elastos-mcp-server
v1.0.15
Published
The world's most comprehensive blockchain MCP server with 141 operations across the complete Elastos ecosystem
Maintainers
Readme
Elastos MCP Server
The World's Most Comprehensive Blockchain MCP Server
🚀 Quick Start
One-Line Installation & Usage
# Run this command to get started:
npx @elacitylabs/elastos-mcp-server@latestThat'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@latestDevelopment 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 startMCP 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:crosschainTest 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 pricesWallet 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 accountSmart 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
- Documentation: https://elastos.net/mcp-integration
- Issues: GitHub Issues
- Discord: Elastos Community
- Email: [email protected]
🎉 Ready to build the future of Web3? Start with npx @elacitylabs/elastos-mcp-server@latest!
