home / mcp / 0xgasless mcp server

0xGasless MCP Server

Provides gasless blockchain actions via Claude AI across multiple networks using ERC-4337 account abstraction.

Installation
Add the following to your MCP client configuration file.

Configuration

View docs
{
  "mcpServers": {
    "0xgasless-mcp": {
      "command": "npx",
      "args": [
        "0xgasless-mcp-server"
      ],
      "env": {
        "API_KEY": "your_0xgasless_api_key",
        "RPC_URL": "https://...",
        "CHAIN_ID": "43114",
        "PRIVATE_KEY": "0x...",
        "SXT_API_KEY": "your_space_&_time_api_key",
        "OPENROUTER_API_KEY": "your_openrouter_key"
      }
    }
  }
}

You deploy the 0xGasless MCP Server to connect Claude AI with multiple blockchains, enabling gasless transactions and token operations directly from conversations. It provides a streamlined, secure way to interact with blockchain networks without holding native tokens, across several networks and with instant setup options.

How to use

Interact with your Claude conversations to perform gasless blockchain actions. You can retrieve your smart account address, check token balances, transfer tokens, swap assets, bridge tokens across chains, and purchase AI credits for OpenRouter-empowered features. Use natural language prompts to trigger these actions, for example asking for your wallet balance, initiating a token transfer, or swapping assets.

How to install

Prerequisites: you need Node.js installed on your system. You will also use npm or npx to install and run the MCP server locally.

# Global installation (recommended)
npm install -g 0xgasless/mcp

Additional setup and usage notes

Configuration involves supplying your blockchain connection details and API keys. You can use an automatic setup flow or a manual environment file. The automatic flow configures your environment and Claude Desktop integration with a single command. The manual flow requires you to create a .env file with required and optional settings.

0xgasless-mcp configure

Manual environment configuration

Create a .env file with the required configuration to enable gasless operations on your target network.

# πŸ”‘ 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=43114                      # Target blockchain (see supported networks)
SXT_API_KEY=                        # Space & Time Api Key

# 🎯 Optional Configuration
OPENROUTER_API_KEY=your_key         # For AI credit purchases

Claude Desktop integration

You can automatically configure Claude Desktop to work with your MCP server, or you can manually add the MCP server configuration to Claude’s settings.

0xgasless-mcp configure

Available tools

get-address

Retrieve your smart account address

get-balance

Check token balances (ERC20 support)

transfer-token

Send tokens gaslessly

swap-tokens

Exchange tokens without gas

buy-openrouter-credits

Purchase AI credits with USDC

bridge-tokens

Bridge tokens across chains using deBridge

sxt-query-data

Query blockchain data using Space and Time