• ESTIMATION
  • SUBMISSION
  • TRACKING
  • HUMAN

How to manage user operations with your AI

Connect Gelato Network to your agent to handle account abstraction tasks. Once connected, your AI manages the entire lifecycle of a UserOperation.

Ask AI about this page

Short answer

How can my AI handle ERC-4337 UserOperations?

Your AI uses the Gelato Network MCP to calculate gas costs, submit operations to the bundler, and monitor their execution status. You get full visibility into the lifecycle of every transaction through your chat interface.

The outcomes

What your AI delivers.

Every interaction with the Gelato Network MCP results in one of these four states.

ESTIMATION

Gas cost predictions

The AI calculates the gas required for a specific UserOperation. You get a clear number before you commit to any transaction.

SUBMISSION

On-chain execution

Your agent sends the UserOperation to the bundler. The AI handles the technical handoff so you don't have to.

TRACKING

Real-time status updates

The AI monitors the hash to see if the operation succeeded or failed. You receive the final confirmation directly in your chat.

HUMAN

Manual intervention

If a transaction fails or requires a signature change, the AI flags the issue. You decide how to fix the error or retry the operation.

The workflow

What your AI does when a request arrives.

The agent follows a specific sequence to ensure your account abstraction tasks are handled reliably.

  1. Calculate costs

    Before sending anything, the AI checks the gas requirements for the proposed UserOperation.

    bundler_estimate_user_operation_gas
  2. Execute the operation

    The agent pushes the UserOperation to the network for processing.

    bundler_send_user_operation
  3. Locate the operation

    The AI uses the transaction hash to find the specific UserOperation in the system.

    bundler_get_user_operation_by_hash
  4. Confirm completion

    The agent pulls the final receipt to verify the transaction was included in a block.

    bundler_get_user_operation_receipt

Try it

Copy these to start.

Use these prompts to trigger the Gelato Network tools.

Starting points

Swap the bracketed text with your actual transaction data or UserOperation hex strings.

Gelato Network Connector

You're all set. Choose your MCP client and follow the setup instructions.

Connector linkhttps://edge.vinkius.com/vk_preview_GEOLbnCleYGrUXwyjYCQIsNu6juUEnsytlCxzwcq/mcp

Claude Desktop

Follow the steps below to connect in seconds.

  1. 1In Claude Desktop, open Settings → Connectors.
  2. 2Click “Add custom connector” and paste the connector link above as the remote MCP server URL.
  3. 3Click Add and start a new chat — Gelato Network capabilities are ready to use.
Configuration · claude_desktop_config.jsonCopy
{
  "mcpServers": {
    "gelato-network-mcp": {
      "url": "https://edge.vinkius.com/vk_preview_GEOLbnCleYGrUXwyjYCQIsNu6juUEnsytlCxzwcq/mcp"
    }
  }
}
Copy into chat04
  • Estimate the gas for this UserOperation: [insert hex]

  • Submit this UserOperation to the bundler: [insert hex]

  • Check the status of UserOperation hash: [insert hash]

  • Get the receipt for the operation with hash: [insert hash]

  • Claude
  • ChatGPT
  • Cursor
  • VS Code
  • Windsurf
  • Claude Code
  • JetBrains
  • Cline

Start here

Connect Gelato Network once, then ask.

One click connects this MCP to your client. Your credentials stay encrypted, and you can start managing operations immediately.

Connect Gelato Network to your AI

FAQ

How the Gelato Network MCP behaves

  • 01

    Can my AI sign the UserOperation for me?

    No. The AI can prepare and submit the operation, but you must provide the valid signature for the UserOperation.

  • 02

    Can the AI change the gas limit after I approve it?

    No. The AI only estimates the gas using the provided data. If the gas changes on-chain, you will need to run a new estimation.

  • 03

    How does the AI know if a transaction failed?

    The AI uses the receipt tool to check the execution status and reports the specific error if the operation failed.

  • 04

    Can the AI deploy new smart contract wallets?

    No. This MCP is specifically for managing and tracking UserOperations, not for contract deployment.

  • 05

    Does the AI store my private keys?

    No. The AI only interacts with the data you provide to the tools. It has no access to your wallet or private keys.

  • More questions about Gelato Network? See everything the Gelato Network Connector can do

Connect Gelato Network to Claude, Cursor, ChatGPT & more