Observed since 20 Oct, 17:51 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
0xgasless-mcp
MCP server for 0xGasless smart accounts with gasless blockchain operations. Directly connects to Claude Desktop
🔗 Seamless Blockchain Integration for Claude AI
Execute gasless transactions, swaps, and transfers directly from your Claude conversations
🚀 Quick Start • 📖 Documentation • 🛠️ Development • 🤝 Contributing
The 0xGasless MCP Server is a powerful Model Context Protocol server that bridges Claude AI with blockchain networks. Built on ERC-4337 Account Abstraction, it enables gasless blockchain operations through natural language conversations.
| Tool | Description | Example Usage |
|---|---|---|
🏠 get-address | Retrieve your smart account address | "What's my wallet address?" |
💰 get-balance | Check token balances (ERC20 support) | "Show my USDC balance" |
📤 transfer-token | Send tokens gaslessly | "Send 10 USDT to alice.eth" |
🔄 swap-tokens | Exchange tokens without gas | "Swap 100 USDT for USDC" |
🎯 buy-openrouter-credits | Purchase AI credits with USDC | "Buy $25 OpenRouter credits" |
Choose your preferred installation method:
# Global installation (recommended)
npm install -g 0xgasless-mcp
# Or use directly with npx
npx 0xgasless-mcp
0xgasless-mcp configure
This interactive command will:
Create a .env file with your configuration:
# 🔑 Required Configuration
PRIVATE_KEY=0x... # Your wallet private key
RPC_URL=https://... # Blockchain RPC endpoint
API_KEY=your_0xgasless_api_key # From dashboard.0xgasless.com
CHAIN_ID=56 # Target blockchain (see table below)
# 🎯 Optional Configuration
OPENROUTER_API_KEY=your_key # For AI credit purchases
| 🌍 Network | 🆔 Chain ID | 💎 Native Token | 🔗 RPC Endpoint |
|---|---|---|---|
| 🟡 BSC | 56 | BNB | https://bsc-dataseed.binance.org/ |
| 🔵 Base | 8453 | ETH | https://mainnet.base.org |
| ⚫ Ethereum | 1 | ETH | https://eth.llamarpc.com |
| 🟣 Polygon | 137 | MATIC | https://polygon-rpc.com |
| 🔴 Avalanche | 43114 | AVAX | https://api.avax.network/ext/bc/C/rpc |
| 🔵 Fantom | 250 | FTM | https://rpc.ftm.tools |
| 🌙 Moonbeam | 1284 | GLMR | https://rpc.api.moonbeam.network |
| 🟢 Metis | 1088 | METIS | https://andromeda.metis.io/?owner=1088 |
The easiest way to integrate with Claude Desktop:
0xgasless-mcp configure
Add to your Claude Desktop configuration file:
📍 Configuration Locations:
~/Library/Application Support/Claude/claude_desktop_config.json%APPDATA%\Claude\claude_desktop_config.json~/.config/Claude/claude_desktop_config.json{
"mcpServers": {
"0xgasless": {
"command": "npx",
"args": ["0xgasless-mcp-server"],
"env": {
"PRIVATE_KEY": "0x...",
"RPC_URL": "https://...",
"API_KEY": "your_0xgasless_api_key",
"CHAIN_ID": "56",
"OPENROUTER_API_KEY": "your_openrouter_key"
}
}
}
}
Once configured, interact with blockchain using natural language:
💬 "What's my wallet balance?"
💬 "Check my USDC balance on BSC"
💬 "Show all my token balances"
💬 "Send 10 USDT to 0x742d35Cc6634C0532925a3b8D4C9db96590b5c8e"
💬 "Transfer 0.1 BNB to alice.eth"
💬 "Send 50 USDC to my friend's wallet"
💬 "Swap 100 USDT for USDC"
💬 "Exchange 0.5 BNB to WETH"
💬 "Convert 1000 BUSD to BNB"
💬 "Buy $10 worth of OpenRouter credits"
💬 "Purchase $25 OpenRouter credits with USDC"
# Clone the repository
git clone https://github.com/achiit/0xgasless-mcp-server.git
cd 0xgasless-mcp-server
# Install dependencies
npm install
# Build the project
npm run build
# Development mode with hot reload
npm run dev
# Start the server
npm start
src/
├── 🎯 main.ts # Core MCP server implementation
├── 🚀 index.ts # CLI entry point & configuration
├── 📋 version.ts # Version management
└── 📝 types/ # TypeScript definitions
Solution:
Solution:
Solution:
Solution:
Enable detailed logging for troubleshooting:
DEBUG=1 0xgasless-mcp-server
We welcome contributions! Here's how to get started:
git checkout -b feature/amazing-featuregit commit -m 'Add amazing feature'git push origin feature/amazing-featureThis project is licensed under the MIT License - see the LICENSE file for details.
Special thanks to the amazing teams and projects that make this possible:
Download counts and popularity will appear here as the collector receives them.
| Package / target | Requirement | Relationship |
|---|---|---|
@0xgasless/agentkitEnvironment{
"local_name": "@0xgasless/agentkit",
"alias": false,
"peer_metadata": null
} | ^0.0.9 | runtime |
@0xgasless/smart-accountEnvironment{
"local_name": "@0xgasless/smart-account",
"alias": false,
"peer_metadata": null
} | ^0.0.13 | runtime |
@modelcontextprotocol/sdkEnvironment{
"local_name": "@modelcontextprotocol/sdk",
"alias": false,
"peer_metadata": null
} | ^0.6.0 | runtime |
dotenvEnvironment{
"local_name": "dotenv",
"alias": false,
"peer_metadata": null
} | ^16.4.5 | runtime |
viemEnvironment{
"local_name": "viem",
"alias": false,
"peer_metadata": null
} | ^2.22.17 | runtime |
tslibEnvironment{
"local_name": "tslib",
"alias": false,
"peer_metadata": null
} | ^2.8.1 | runtime |
zodEnvironment{
"local_name": "zod",
"alias": false,
"peer_metadata": null
} | ^3.23.8 | runtime |
@types/nodeEnvironment{
"local_name": "@types/node",
"alias": false,
"peer_metadata": null
} | ^20.0.0 | development |
typescriptEnvironment{
"local_name": "typescript",
"alias": false,
"peer_metadata": null
} | ^5.0.0 | development |
eslintEnvironment{
"local_name": "eslint",
"alias": false,
"peer_metadata": null
} | ^8.0.0 | development |
@typescript-eslint/eslint-pluginEnvironment{
"local_name": "@typescript-eslint/eslint-plugin",
"alias": false,
"peer_metadata": null
} | ^6.0.0 | development |
@typescript-eslint/parserEnvironment{
"local_name": "@typescript-eslint/parser",
"alias": false,
"peer_metadata": null
} | ^6.0.0 | development |
prettierEnvironment{
"local_name": "prettier",
"alias": false,
"peer_metadata": null
} | ^3.0.0 | development |
nodeEnvironment{
"local_name": "node",
"alias": false,
"peer_metadata": null
} | >=18.0.0 | peer |
Source distribution
{
"integrity": "sha512-HuxxLJAMkg6Rim/14PMmB6oCPDqHVb01ICHW8NJhFyylTU0sNwbo7g2UPu+Kcf6kXxVNLjTcRjBFZjF+aHgXzw==",
"shasum": "30e998119f9371a6b4215b917e521b0906769199",
"tarball": "https://registry.npmjs.org/0xgasless-mcp/-/0xgasless-mcp-1.0.5.tgz",
"fileCount": 15,
"unpackedSize": 47511,
"signatures": [
{
"keyid": "SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U",
"sig": "MEUCIQCTV2chjzsGaf7jf1E+MnIIFgh9KxQ0DfXBxvszQz/sNgIgQXwxp/sMMTI1NYRdAbnOt+IoDmPvZ8A91lJ3ZtX+eFo="
}
]
}Shared repository data · GitHub
Observed since 20 Oct, 17:51 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package_version:956ff5924e4f6a8057d94dea5205ccda262ddfe2ece30b136944e74240c6372e