MCP Agentic Wallet — open-source session management for x402

io.github.MCPVOTPublished by GitHub account MCPVOTv1.0.1Updated Oct 24, 2026

Open-source EIP-2612 Permit-based wallet sessions for AI agents using MCP.

The publisher's own server: agentic.no

VerifiedSTDIODesktop onlyFinanceDeveloper Tools

Overview

AI-generated overview

Open-source reference implementation of EIP-2612 Permit-based wallet sessions that lets AI agents pay for MCP tool calls with USDC on Base.

What you can do
Verify EIP-712 permit signatures on-chain and create session tokens for a connected crypto wallet, with allowance, deadline and rate limits and session revocation. Consume session budget per tool call and settle each call on-chain via transferFrom to a treasury address. Submit permit transactions to the USDC contract and check on-chain USDC allowances for an owner-spender pair. Provide a framework-agnostic core library and a Next.js reference server with a wallet authorization page.
When to use it
Use it when building or running a paid MCP server that should charge agents per tool call in USDC on Base without API keys or recurring subscriptions, or when you want a reference for x402-style session-token payment flows.
Requirements
Runs as a local process (stdio) and is desktop only. The reference server is cloned from source and needs Node.js with npm, plus a Base Mainnet RPC endpoint. Required environment variables: TREASURY_ADDRESS, HOT_WALLET_PRIVATE_KEY and NEXT_PUBLIC_TREASURY_ADDRESS; BASE_RPC_URL is optional. A human must connect a crypto wallet and sign a permit.
Before you install
Requires a hot wallet private key (HOT_WALLET_PRIVATE_KEY) that controls real funds and pays gas; never commit it. Sessions authorize on-chain USDC spending from the human's wallet, capped at $100 per session by default, and each tool call settles real money to the treasury. Sessions are suspended after failed settlements. Review the threat model before production use.

Installation

In SourceWeft

  1. Open MCP Agentic Wallet — open-source session management for x402 in the dashboard and add it to a workspace.
  2. Enable the server for the chats that should use its tools.

Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.

Other MCP clients

Follow the launch instructions in the repository.

README

MCP Agentic Wallet

Open-source EIP-2612 Permit-based wallet sessions for AI agents. The reference implementation for paid MCP servers — verify signatures, manage sessions, settle on-chain. No API keys. No recurring charges.

[License: MIT] [TypeScript] [viem] [Base] [MCP]

What This Is

A human connects their crypto wallet, signs a one-time EIP-2612 Permit (gasless — no transaction fee), and receives a session token. AI agents use this token in MCP requests to pay for tool calls with USDC on Base. The server settles each call on-chain via transferFrom.

No API keys. No recurring charges. No per-call wallet signatures. The permit is the policy.

This is the reference implementation used by mcpvot.xyz — an x402 payment facilitator for MCP servers. The open-source core (@mcp-agentic-wallet/core) is framework-agnostic and works with any MCP server or Next.js app.

Quick Start

1. Install the core library

bash
npm install @mcp-agentic-wallet/core viem

2. Use in your MCP server

typescript
import { InMemoryStore, settleCall } from '@mcp-agentic-wallet/core';
const store = new InMemoryStore();
// In your MCP tool handler:const token = req.headers.get('Session-Token');const session = store.getSession(token);if (!session) return new Response('Payment required', { status: 402 });
// Consume budget ($0.005 = 5000 atomic USDC units)const result = store.consumeBudget(token, 5000n);if (!result.ok) return new Response('Insufficient budget', { status: 402 });
// Settle on-chainawait settleCall(session.humanAddress, 5000n, {  treasuryAddress: process.env.TREASURY_ADDRESS!,  hotWalletKey: process.env.HOT_WALLET_PRIVATE_KEY,});
return Response.json({ result: 'your data' });

3. Run the reference server

bash
git clone https://github.com/MCPVOT/mcp-agentic-wallet.gitcd mcp-agentic-walletnpm installcp .env.example .env.local  # Configure your treasury + hot wallet keynpm run dev

Visit http://localhost:3000/wallet to connect a wallet and authorize a session.

How It Works

Human                          Server                        Agent  │                              │                              │  │── connect wallet ──────────►│                              │  │── sign EIP-2612 Permit ───►│                              │  │   (gasless, 1-time)           │── verify signature ──────►│ (on-chain)  │                              │── submit permit() ────────►│ (on-chain, gas)  │                              │── create session ──────────┐│  │◄─ return session token ─────│◄───────────────────────────┘│  │                              │                              │  │                              │◄── Session-Token header ────│  │                              │── consume budget ───────────┐│  │                              │── transferFrom() ──────────►││ (on-chain, gas)  │                              │── return tool data ─────────┘│  │                              │◄──────────────────────────────│

Core Library (@mcp-agentic-wallet/core)

Class/FunctionDescription
InMemoryStoreSession store (in-memory, pluggable for KV/Redis)
verifyPermit()Verifies EIP-712 Permit signature on-chain via viem
settleCall()Executes transferFrom(human, treasury, amount) on Base
submitPermit()Submits the permit() transaction to USDC contract
checkAllowance()Reads on-chain USDC allowance for an owner→spender pair
checkRateLimit()Simple rate limiter (per-wallet)
toSessionInfo()Converts session to safe client-facing info (no permit signature)

Security

See SECURITY.md for the full threat model.

Key features:

  • EIP-712 signature verification — server verifies every permit signature on-chain before creating a session
  • Allowance cap — max $100 USDC per session (configurable)
  • Deadline cap — max 30 days
  • Rate limiting — 5 authorizations per wallet per hour
  • Session revocation — humans can revoke anytime
  • Settlement debt tracking — sessions suspended after 3 failed settlements
  • Spender verification — EIP-712 verification inherently checks spender === treasury

Documentation

Tech Stack

  • EIP-2612 (Permit) — gasless approval via typed data signature
  • EIP-712 — typed data signing and verification
  • USDC (FiatTokenV2) on Base Mainnet (chainId 8453)
  • viem — TypeScript Ethereum library
  • Next.js — reference server implementation
  • Model Context Protocol — MCP 2025-11-25 spec

Use Case: iRacing + Blockchain

MCPVOT uses this wallet to power on-chain sim-racing events:

  1. Host creates event — deploys an escrow smart contract on Base with entry fee + prize pool
  2. Drivers connect wallet — sign EIP-2612 Permit via this library, get a session token
  3. Drivers pay entry fee — transferFrom settles the entry to the escrow contract
  4. Race happens in iRacing — server polls iRacing Data API for finish order
  5. Smart contract auto-disburses — verified winners receive USDC/SOL from the prize pool

The iRacing MCP tools (get_race_results, lookup_driver, search_hosted_races) are available at mcpvot.xyz and use the same session-token flow for payment.

Configuration

Env VarRequiredDefaultDescription
TREASURY_ADDRESSYes—Address that receives USDC payments
HOT_WALLET_PRIVATE_KEYYes—EOA private key for gas (never commit to git!)
BASE_RPC_URLNohttps://mainnet.base.orgBase Mainnet RPC
NEXT_PUBLIC_TREASURY_ADDRESSYes—Treasury shown in wallet UI

License

MIT — see LICENSE

Source: README.md at commit 2c61473

Tools

0
SourceWeft has not started this package in its sandbox yet, so its tools are not known.

Version history

1
  1. v1.0.1LatestSep 16, 2026

Score

50% of the applicable checks met

How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.

  • Reached in the last 30 days25 pts

    Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.

  • Auth declared10 pts

    Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.

  • Tools listed15 pts

    Answer tools/list without a credential, or ship a package that starts in a sandbox without one.

  • DescriptionRequired15 pts
  • Logo10 pts
  • Documentation15 pts
  • License10 pts

Other Agentic integrations