MCP Wrapper is a powerful tool that automatically converts Solidity ABI into an MCP (Model Context Protocol) Server, streamlining blockchain development workflows. By eliminating the need for custom MCP code or server management, developers can instantly interact with smart contracts through a ready-to-use MCP Server URL.
- Automated Solidity ABI Conversion: Transform smart contract ABIs into fully functional MCP Servers with minimal setup
- Comprehensive Smart Contract Integration:
- Read Operations: Full support for
viewandpurefunctions - Write Operations: Secure transaction handling with a three-step process:
- Transaction data construction
- Local transaction signing (private keys never leave your machine)
- Network transaction broadcasting
- Read Operations: Full support for
- Developer-Friendly: Simple setup process with clear documentation
- Secure Design: Private keys are never handled by the server
- Node.js (v14 or higher)
- npm or pnpm package manager
- Valid invite code (required for server creation)
- Clone the repository:
git clone <repository-url>
cd mcp-wrapper- Install dependencies:
npm install
# or
pnpm install- Configure environment variables:
cp .env.example .env
# Edit .env with your configurationStart the development server:
npm run devFor production deployment to Cloudflare Workers:
# Set up your environment variables in .env file
npm run deployThis will:
- Read KV namespace IDs from environment variables
- Update wrangler.jsonc with these values
- Update .dev.vars file with all environment variables for local development
- Deploy the application to Cloudflare Workers
For local production testing:
npm start- Visit MCP Wrapper
- Provide required information:
- Invite code
- Server name
- Chain RPC URL
- Smart contract ABI
- Click "Create Server" to receive your MCP Server URL
generateInviteCodes.js: Generate new invite codesgenerateSignedTx.js: Create signed transactionssendSignedTx.js: Broadcast signed transactionsdeploy.js: Deploy script that updates wrangler.jsonc with KV namespace IDs from environment variables
Key configuration files:
.env: Environment variablesrpcConfig.js: RPC endpoint configurationconfig.js: General application settings
Run the test suite:
npm testContributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.