Barzkit — Self Custody Ai Agent Wallets

by barzkit

318 downloads
Not rated
GitHub

About

Self-custody AI agent wallets with passkeys, gasless transactions & programmable permissions (ERC-4337)

Details

Author
barzkit
Downloads
318
Categories
AI

- Create ERC-4337 smart accounts on Sepolia, Base Sepolia, or Base
- Send ETH or ERC-20 tokens to any address
- Check wallet balances for ETH or specific tokens
- Swap tokens via Uniswap V3
- Lend tokens into Aave V3 lending pools
- Emergency freeze and unfreeze wallet operations

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name Barzkit — Self Custody Ai Agent Wallets
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

Add a barzkit entry to your client’s MCP configuration file using npx @barzkit/mcp. After configuration, ask the AI assistant wallet‑related natural language commands. The create_wallet tool must be run first; afterward all other tools become available.

create_wallet

Create a new self-custody AI agent wallet (ERC-4337 smart account). Must be called before any other tool.

send_transaction

Send ETH or ERC-20 tokens from the agent wallet to a recipient address.

check_balance

Check the agent wallet balance for ETH or a specific ERC-20 token.

swap_tokens

Swap tokens on Uniswap V3 via the agent wallet. Supports ETH, USDC, WETH, DAI.

lend_tokens

Deposit tokens into Aave V3 lending pool via the agent wallet.

batch_transactions

Execute multiple transactions atomically in a single UserOperation. One signature, one gas fee.

freeze_wallet

Emergency freeze the agent wallet. Kill switch — immediately stops all transactions.

unfreeze_wallet

Unfreeze the agent wallet to resume normal operations.

fetch_with_payment

Fetch a URL with automatic x402 payment if the server returns HTTP 402. Handles machine-to-machine payments.

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "barzkit \u2014 self custody ai agent wallets": {
            "barzkit": {
                "command": "npx",
                "args": [
                    "@barzkit/mcp"
                ],
                "env": {
                    "BARZ_OWNER_KEY": "0xYOUR_PRIVATE_KEY",
                    "PIMLICO_API_KEY": "pim_YOUR_KEY",
                    "BARZ_CHAIN": "sepolia"
                }
            }
        }
    }
}

McpServers

{
    "barzkit": {
        "command": "npx",
        "args": [
            "@barzkit/mcp"
        ],
        "env": {
            "BARZ_OWNER_KEY": "0xYOUR_PRIVATE_KEY",
            "PIMLICO_API_KEY": "pim_YOUR_KEY",
            "BARZ_CHAIN": "sepolia"
        }
    }
}

@barzkit/mcp

MCP Server for self-custody AI agent wallets. Works with Claude Desktop, Cursor, Windsurf, VS Code Copilot, and any MCP-compatible client. npm

Setup

Claude Desktop

Add to ~/Library/Application Support/Claude/claude_desktop_config.json: ``json { "mcpServers": { "barzkit": { "command": "npx", "args": ["@barzkit/mcp"] } } } `

Cursor

Add to
.cursor/mcp.json in your project root: `json { "mcpServers": { "barzkit": { "command": "npx", "args": ["@barzkit/mcp"] } } } `

Windsurf / VS Code Copilot

Same format — add to your MCP configuration file.

Tools

| Tool | Description | |------|-------------| |
create_wallet | Create a new ERC-4337 smart account on Sepolia, Base Sepolia, or Base | | send_transaction | Send ETH or ERC-20 tokens to a recipient address | | check_balance | Check wallet balance for ETH or specific token | | swap_tokens | Swap tokens on Uniswap V3 | | lend_tokens | Deposit tokens into Aave V3 lending pool | | batch_transactions | Execute multiple transactions atomically in one UserOperation | | freeze_wallet | Emergency freeze — kill switch | | unfreeze_wallet | Resume normal wallet operations | | fetch_with_payment | Fetch URL with automatic x402 payment |

Usage

Once configured, ask your AI assistant: - "Create a wallet on Sepolia with my key 0x... and Pimlico key pim_..." - "Send 0.01 ETH to 0xABC..." - "What's my wallet balance?" - "Swap 0.1 ETH for USDC" - "Freeze my wallet immediately" The
create_wallet tool must be called first to initialize the wallet before using any other tool.

Programmatic Usage

`typescript import { createBarzMcpServer } from '@barzkit/mcp' import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js' const server = createBarzMcpServer() const transport = new StdioServerTransport() await server.connect(transport) ``

Prerequisites

- Node.js >= 18 - Pimlico API key (free tier: 100 UserOps/day) - Owner private key

License

MIT
No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.