Barzkit — Self Custody Ai Agent Wallets
LocalAbout Barzkit — Self Custody Ai Agent Wallets
@barzkit/mcp is an MCP server for operating self-custody ERC-4337 smart-account wallets through AI clients. It covers transfers, token operations, atomic batches, wallet controls, and paid URL fetching.
Key features
- 01Create ERC-4337 smart accounts
- 02Send ETH and ERC-20 tokens
- 03Check balances and swap tokens
- 04Deposit tokens into Aave V3
- 05Batch transactions atomically
- 06Freeze or unfreeze wallets
Use cases
- 01Initialize a wallet on a supported network
- 02Transfer tokens or review balances
- 03Swap tokens or deposit into Aave V3
- 04Freeze a wallet or fetch a URL with payment
MCP support
Exposes wallet creation and operation tools to MCP-compatible clients, including Claude Desktop, Cursor, Windsurf, and VS Code Copilot. The wallet must be initialized with create_wallet before other tools are used.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
Tools
9Saved tool list · updated 3w ago
| Parameter | Type | Required | Description |
|---|---|---|---|
| chain | enum | Yes | Blockchain networksepolia | base-sepolia | base |
| ownerKey | string | Yes | Owner private key (0x...) |
| pimlicoApiKey | string | Yes | Pimlico bundler API key |
| gasless | boolean | No | Enable gasless transactions (default: true) |
Details
From the project README@barzkit/mcp
MCP Server for self-custody AI agent wallets. Works with Claude Desktop, Cursor, Windsurf, VS Code Copilot, and any MCP-compatible client.
Setup
Claude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"barzkit": {
"command": "npx",
"args": ["@barzkit/mcp"]
}
}
}
Cursor
Add to .cursor/mcp.json in your project root:
{
"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
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
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.