mcpField
P
PincerPay

PincerPay

Local
pincerpay.comDeveloper Tools1Updated 1d ago

About PincerPay

PincerPay is an x402 payment gateway for merchants accepting USDC from AI agents. Its non-custodial facilitator verifies signed transfers and settles them on supported blockchains, alongside merchant and agent SDKs and an MCP server.

Key features

  1. 01Non-custodial x402 payment facilitation
  2. 02USDC settlement on supported chains
  3. 03Merchant and agent SDKs
  4. 04Terminal-based merchant onboarding
  5. 05Merchant setup MCP tools

Use cases

  1. 01Accept USDC payments from AI agents
  2. 02Add x402 payments to merchant APIs
  3. 03Provision merchant wallets and API keys
  4. 04Manage merchant setup through MCP tools

MCP support

The `@pincerpay/mcp` package provides 26 tools for AI assistants, including wallet and merchant bootstrapping, API key creation, and merchant listing.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json · Universal config
{
"mcpServers": {
"pincerpay": {
"command": "npx",
"args": [
"-y",
"@pincerpay/mcp"
],
"env": {
"PINCERPAY_FACILITATOR_URL": "<PINCERPAY_FACILITATOR_URL>",
"PINCERPAY_API_KEY": "<PINCERPAY_API_KEY>"
}
}
}
}
Run commandnpx -y @pincerpay/mcp
Environment variables to set
PINCERPAY_FACILITATOR_URL
PINCERPAY_API_KEYSecret

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
npm@pincerpay/mcp

Tools

26

Saved tool list · updated 3w ago

ParameterTypeRequiredDescription
sourceenumNo'local' returns all known PincerPay chain configs. 'facilitator' queries the live facilitator for currently registered schemes.local | facilitator

Details

From the project README

PincerPay

The payment gateway for the agentic economy. Accept payments from AI agents. Add a few lines of code. Settle instantly in USDC.

For merchants: sign up in 2 minutes, no browser

npx @pincerpay/cli signup
# email + password + 6-digit code from your inbox

npx @pincerpay/cli bootstrap-merchant --name "Acme Co" --chains "solana,polygon"
# → generates non-custodial wallets, creates merchant, mints API key
# → prints env vars ready to paste into `vercel env add`

That's the full onboarding flow. Terminal-only. Phantom + MetaMask compatible wallets generated locally. PincerPay never sees your keys. See docs/onboarding and docs/cli for full reference.

Architecture

Agent → 402 Challenge → Sign USDC Transfer → PincerPay Facilitator → Blockchain → Merchant

PincerPay Agent Playground showing the x402 payment flow in action

PincerPay is a non-custodial x402 facilitator. When an AI agent hits a merchant API and gets HTTP 402, the agent signs a USDC transfer. PincerPay verifies the signature, broadcasts to the blockchain, and confirms settlement.

Monorepo Structure

PackageDescriptionDocs
apps/facilitatorx402 facilitator service (Hono + Node.js)
apps/dashboardMerchant dashboard (Next.js 15)
packages/merchantMerchant SDK with Express + Hono middlewareREADME
packages/agentAgent SDK with automatic x402 payment handlingREADME
packages/coreShared types, chain configs, constantsREADME
packages/dbDrizzle ORM schema + migrationsREADME
packages/programAnchor program client for SolanaREADME
packages/solanaKora gasless txns + Squads smart accountsREADME
packages/onboardingNon-custodial wallet generation + merchant bootstrapREADME
packages/cliTerminal-only merchant onboarding (npx @pincerpay/cli)README
packages/mcpMCP server for AI assistants (26 tools)README
examples/Example merchant and agent apps

Quick Start

Prerequisites
  • Node.js 22+
  • pnpm 10+
  • PostgreSQL (Supabase recommended)
Install
pnpm install
Build
pnpm build
Development
# Start all services
pnpm dev

# Start individual services
pnpm --filter @pincerpay/facilitator dev
pnpm --filter @pincerpay/dashboard dev
Database
# Generate migrations from schema
pnpm db:generate

# Push schema to database
pnpm db:push
Onboarding scripts

Provision a merchant from the command line, with no dashboard click-through.

# Generate non-custodial wallets only (no DB)
pnpm create-wallets

# End-to-end: generate wallets, create merchant, mint API key
DATABASE_URL=postgresql://... pnpm bootstrap-merchant \
  --name "My Merchant" --auth-user-id <supabase-uuid>

# Mint a key for an existing merchant
DATABASE_URL=postgresql://... pnpm create-api-key list
DATABASE_URL=postgresql://... pnpm create-api-key create --merchant <id|name> --label "Production"

The same flows are exposed as MCP tools (bootstrap-wallets, bootstrap-merchant, create-api-key, list-merchants) in @pincerpay/mcp. See Merchant Onboarding.

Merchant SDK

import express from "express";
import { pincerpay } from "@pincerpay/merchant/express";

const app = express();

app.use(
  pincerpay({
    apiKey: process.env.PINCERPAY_API_KEY!,
    merchantAddress: "YOUR_SOLANA_ADDRESS",
    routes: {
      "GET /api/weather": {
        price: "0.01",
        chain: "solana",
        description: "Weather data",
      },
    },
  })
);

See @pincerpay/merchant README for Hono middleware, multi-chain config, and full API reference.

Agent SDK

import { PincerPayAgent } from "@pincerpay/agent";

const agent = await PincerPayAgent.create({
  chains: ["solana"],
  solanaPrivateKey: process.env.AGENT_SOLANA_KEY!,
});

// Automatic 402 handling
const response = await agent.fetch("https://api.example.com/weather");

See @pincerpay/agent README for spending policies, multi-chain setup, and Squads smart accounts.

Supported Chains

ChainNetwork IDStatus
Baseeip155:8453Mainnet
Base Sepoliaeip155:84532Testnet
Polygoneip155:137Mainnet
Polygon Amoyeip155:80002Testnet
Solanasolana:mainnetSupported
Solana Devnetsolana:devnetTestnet

Deployment

ServiceURL
Facilitatorhttps://pincerpayfacilitator-production.up.railway.app
Dashboardhttps://pincerpay.com

The facilitator is deployed to Railway via Docker. The dashboard is deployed to Vercel. Solana is the primary chain (devnet). Base and Polygon are supported as optional secondary chains.

Tech Stack

  • Runtime: Node.js 22 (pnpm monorepo + Turborepo)
  • Facilitator: Hono + @x402/core + @x402/evm + @x402/svm + viem
  • Dashboard: Next.js 15 + Tailwind CSS + Supabase Auth
  • Database: PostgreSQL (Supabase) + Drizzle ORM
  • CI: GitHub Actions (typecheck → test → build)
  • Protocols: x402 (Coinbase)

Testing

pnpm test

47 tests across 5 suites (core, agent, merchant, facilitator).

Examples

ExampleDescription
examples/express-merchantExpress merchant with PincerPay middleware
examples/agent-weatherAI agent paying for weather API data
pincerpay-agent-demoStandalone agent demo repository

Community

License

MIT

Comments

Markdown supported

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.