npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@grip-foundation/grip-mcp

v0.1.1

Published

Grip Pay MCP server — gives Claude (or any MCP-compatible agent) its own non-custodial USDC wallet on Base with human-in-the-loop approval.

Readme

Grip MCP

Give Claude (or any MCP-compatible agent) a non-custodial USDC wallet on Base — with human-in-the-loop approval on every payment.

What this is

@grip-foundation/grip-mcp is a Model Context Protocol server that exposes four tools to any MCP-aware client (Claude Desktop, Claude Code, Continue, etc.):

| Tool | What it does | Who approves | |---|---|---| | grip_wallet | Returns the agent's smart account address + USDC balance on Base. | — | | grip_create_payment | Stages a payment (off-chain). Returns an approval token. | — | | grip_settle_payment | Settles or rejects a staged payment. On approve, executes a real USDC transfer on Base mainnet. | Human, in chat | | grip_list_payments | Lists recent payments from the session. | — |

The agent never moves money without you. The flow is: agent stages → you confirm in chat → agent settles. There is no programmatic auto-approve.

Install

Option 1 — via npx (after first publish)

In ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):

{
  "mcpServers": {
    "grip": {
      "command": "npx",
      "args": ["-y", "@grip-foundation/grip-mcp"]
    }
  }
}

Option 2 — local clone

git clone https://github.com/grip-foundation/grip-mcp.git
cd grip-mcp
pnpm install
pnpm run build

Then point Claude Desktop at the built file:

{
  "mcpServers": {
    "grip": {
      "command": "node",
      "args": ["/absolute/path/to/grip-mcp/dist/server/index.js"]
    }
  }
}

Restart Claude Desktop after editing the config.

First run

The first time the server starts, it generates a brand-new EOA private key and stores it at ~/.grip-mcp/agent-key (mode 0600). This key controls the smart account.

In Claude, ask:

Show me my Grip wallet

Claude will call grip_wallet and reply with your smart account address, balance, and limits. Send USDC on Base to that address to fund.

Making a payment

Once funded, ask Claude something like:

Send 5 USDC to 0xba14744FfD57FA7d03b20D4c8BeDAaC301E865d1

Claude will:

  1. Call grip_create_payment to stage the payment off-chain.
  2. Show you the details (amount, recipient, memo) and ask for confirmation.
  3. Wait for your reply.
  4. If you say "approve" → call grip_settle_payment(token, "approve") → executes on Base.
  5. If you say "no" → call grip_settle_payment(token, "reject") → no on-chain action.

Tx hash + Basescan link are returned on settlement.

Configuration

| Env var | Default | What it does | |---|---|---| | GRIP_MCP_PRIVATE_KEY | (auto-generate) | Override the agent's signer private key. Useful for restoring a wallet across machines. | | GRIP_MCP_KEY_PATH | ~/.grip-mcp/agent-key | Where the auto-generated key is stored. | | GRIP_MCP_PER_TX_CAP | 100 | Maximum USDC per single payment. | | GRIP_MCP_DAILY_CAP | 500 | Maximum USDC across all payments per UTC day. |

Security model

  • Non-custodial. The Grip Foundation does not hold your keys, your USDC, or any record of your payments. Everything runs on your machine.
  • Managed paymaster, no signup. Gas is paid in USDC via the Pimlico paymaster routed through Grip's hosted proxy. You don't need a Pimlico account.
  • Human-in-the-loop is enforced by the protocol, not the model. grip_create_payment only stages. grip_settle_payment is a separate tool call. Most MCP clients (Claude Desktop included) prompt for human confirmation before executing tool calls — that's a second layer of gating.
  • Caps are enforced server-side. Even if the model attempts a payment over your per-tx or daily cap, the server refuses to stage it.

Architecture

Claude Desktop
     │ MCP (stdio)
     ▼
grip-mcp (this server)
     │ @grip-labs/sdk
     ▼
Grip-managed paymaster proxy → Pimlico bundler → Base mainnet
                                                       ▲
                                                  Coinbase Smart Wallet
                                                  (your smart account)

The smart account is a Coinbase Smart Wallet (ERC-4337) on Base. The first payment from a fresh wallet runs a one-time bootstrap UserOp that deploys the account and approves the paymaster for USDC reimbursement; subsequent UserOps are USDC-paid.

Known issues

First payment may need a retry. In @grip-labs/[email protected], the bootstrap UserOp (deploy + paymaster approve) and the actual transfer UserOp are submitted as two separate operations. There's a small race window where viem's internal getFactoryArgs() reads stale getCode from the public RPC after bootstrap has settled at the Pimlico bundler — viem then includes initCode in the second UserOp and the bundler rejects it with AA10 sender already constructed.

If your first payment fails with that error, simply ask the agent to retry. The retry succeeds because the on-chain state has propagated by then. Subsequent payments from the same wallet are clean — bootstrap runs at most once per wallet.

A fix is shipping in @grip-labs/[email protected] that consolidates bootstrap + first transfer into a single sponsored UserOp using executeBatch, eliminating the race by construction and saving ~30% gas on the first payment. grip-mcp will pick it up in 0.1.1.

License

MIT

Built by

Grip Foundation · open identity + payments rails for AI agents.