๐ Plasma Testnet MCP Server v0.1
Production-ready Model Context Protocol (MCP) server for Plasma Testnet
Features โข Quick Start โข API โข Tools โข Examples โข Prompts โข Security
๐ Features
๐ฏ Complete Blockchain Integration
Full Plasma Network testnet support with native XPL token operations
Real-time transaction monitoring and status tracking
Gas estimation and optimization for cost-effective operations
Multi-signature wallet support (coming soon)
Smart contract interaction capabilities
Comprehensive block explorer integration
๐ง Intelligent Transaction Engine
Automatic gas price calculation and optimization
Transaction simulation before execution
Nonce management and conflict resolution
Error recovery with automatic retry logic
Transaction receipt confirmation
Real-time network status monitoring
๐ค MCP Protocol Implementation
14+ specialized tools for blockchain automation
Compatible with Claude Desktop and AI assistants
HTTP and stdio transport support
Zod schema validation for all parameters
Comprehensive error handling and logging
Production-tested components
๐๏ธ Enterprise-Ready Architecture
Built with Express.js for scalability
Ethers.js v5 for blockchain interactions
Full TypeScript type safety (via Zod)
Docker containerization support
Comprehensive logging and monitoring
Environment-based configuration
๐ฆ Quick Start
โ Prerequisites
๐ฅ Installation
๐ณ Docker Deployment
๐ค Claude Desktop Integration
Add to your Claude Desktop configuration:
๐ Available Tools
๐ฆ Blockchain Operations
Tool | Description | Parameters |
| Get server capabilities and config | - |
| Get Plasma network information | - |
| Get XPL balance for address |
|
| Send custom transaction |
|
| Send XPL tokens |
|
| Check transaction status |
|
| Get testnet faucet info |
|
| Estimate gas for transaction |
|
| Get recent blocks |
|
| Get current gas price | - |
| Get token details |
|
| Get wallet token balances |
|
๐ API Endpoints
๐ Core Endpoints
๐ก Examples
๐ฐ Get Account Balance
๐ Send XPL Tokens
๐ Check Transaction Status
๐ค Prompts
๐ฌ Example Prompts for Claude, ChatGPT, or Other AI Assistants
These prompts demonstrate how to interact with the MCP server through natural language when integrated with AI assistants:
๐ฑ Token Operations
๐ Network Analysis
๐ผ Wallet Management
๐ง Smart Contract Interaction
๐ง Integration Tips for AI Assistants
When using these prompts with the MCP server:
Always specify addresses in full format (0x...)
Use decimal amounts for XPL (e.g., "10.5" not "10500000000000000000")
Check gas prices before large transactions
Verify balances before attempting transfers
Monitor transaction status after sending
๐งช Testing
๐ API Testing with cURL
๐ Security
๐ Best Practices
Private Key Management: Never commit private keys. Use environment variables
Transaction Validation: All parameters are validated with Zod schemas
Gas Limits: Automatic gas estimation with safety margins
Error Handling: Comprehensive error handling for all operations
Access Control: Implement authentication for production deployments
Monitoring: Use block explorer to track all transactions
๐ก๏ธ Security Features
Zod schema validation for all inputs
Automatic gas estimation with buffer
Transaction simulation capabilities
Private key encryption support
Rate limiting ready
Comprehensive audit logging
๐ Supported Networks & Tokens
๐ Network
Plasma Testnet (Chain ID: 9746)
RPC:
https://testnet-rpc.plasma.toExplorer: Plasma Explorer
๐ช Native Token
XPL: Native Plasma Network token
Decimals: 18
Used for gas fees and transfers
๐ Future Contracts (Pending Deployment)
DEX Router: Decentralized exchange routing
Token Factory: ERC20 token deployment
Liquidity Pools: Automated market making
๐ Deployment
๐ญ Production Deployment
๐ Environment Variables
๐ Performance
Response Time: <100ms for read operations
Transaction Speed: ~2-5s on Plasma Network
Throughput: 100+ requests per second
Gas Optimization: Automatic gas price calculation
Caching: Optimized for repeated queries
๐ค Contributing
We welcome contributions! Please see our Contributing Guide for details.
๐ License
This project is licensed under the MIT License - see the LICENSE file for details.
๐ Acknowledgments
Plasma Network - Next-generation blockchain platform
Model Context Protocol - AI integration standard
Ethers.js - Ethereum library
Anthropic - Claude AI assistant
Built by