Skip to main content
ClaudeWave

GenesisPay JavaScript SDKs and MCP server: x402 payments in USDC on Base for sellers and AI agents (@genesis-tech/genesispay-*)

MCP ServersOfficial Registry1 stars0 forks● TypeScriptMITUpdated today
ClaudeWave Trust Score
95/100
✓ Verified
Passed
  • ✓Open-source license (MIT)
  • ✓Actively maintained (<30d)
  • ✓Clear description
  • ✓Topics declared
  • ✓Documented (README)
Last scanned: 10/6/2026
Install in Claude Code / Claude Desktop
Method: NPX · @genesis-tech/genesispay-mcp
Claude Code CLI
claude mcp add genesispay-js -- npx -y @genesis-tech/genesispay-mcp
claude_desktop_config.json (Claude Desktop)
{
  "mcpServers": {
    "genesispay-js": {
      "command": "npx",
      "args": ["-y", "@genesis-tech/genesispay-mcp"],
      "env": {
        "GENESISPAY_AGENT_KEY": "<genesispay_agent_key>",
        "GENESISPAY_BASE_URL": "<genesispay_base_url>"
      }
    }
  }
}
1. Run the command above in your terminal (Claude Code), or paste the JSON config into claude_desktop_config.json (Claude Desktop).
2. Replace any <placeholder> values with your API keys or paths.
3. Restart Claude. The MCP server and its tools appear automatically.
Detected environment variables
GENESISPAY_AGENT_KEYGENESISPAY_BASE_URL
Use cases

MCP Servers overview

# genesispay-js

JavaScript/TypeScript SDKs for [GenesisPay](https://genesispay.finance) — stablecoin
payments over HTTP 402 (x402) that work for both humans and AI agents. USDC on
Base; every amount is integer minor units, never floats.

| Package | What it does |
| --- | --- |
| [`@genesis-tech/genesispay-seller`](packages/seller-sdk) | Framework-agnostic payment gate: wrap any Fetch-API handler (Next.js, Hono, Bun) and it becomes a paid x402 endpoint. |
| [`@genesis-tech/genesispay-agent`](packages/agent-sdk) | Agent-side client: pay x402-gated URLs (GET, or POST with an exact JSON body) from a policy-guarded agent wallet, discover payable services and shops, handle human approvals. |
| [`@genesis-tech/genesispay-mcp`](packages/mcp-server) | MCP stdio server (`npx @genesis-tech/genesispay-mcp`) exposing `genesispay_discover` / `genesispay_shops` / `genesispay_quote` / `genesispay_shipping_profile` / `genesispay_pay` / `genesispay_payment_status` / `genesispay_account` and more (16 tools, plus an MCP App product card) to Claude and other MCP clients. |
| [`@genesis-tech/genesispay-protocol`](packages/protocol) | Pure x402 V2 types, header codecs, validators, and EIP-3009 typed-data helpers. Zero I/O. |

## Sell: gate an endpoint

```ts
import { createPaymentGate, genesisPaySettlement } from "@genesis-tech/genesispay-seller";

const gate = createPaymentGate({
  amountUsdc: "0.10",
  payTo: "0xYourWallet",
  description: "Premium market data",
  network: "base-sepolia",
});

export const GET = gate.wrap(async () => Response.json({ data: "…" }), {
  verifySettlement: genesisPaySettlement({
    facilitatorBaseUrl: "https://your-genesispay-instance.example",
    apiKey: process.env.GENESISPAY_SELLER_KEY!, // gp_sk_...
  }),
});
```

## Buy: pay from an agent

```ts
import { GenesisPayAgent } from "@genesis-tech/genesispay-agent";

const agent = new GenesisPayAgent(); // env: GENESISPAY_AGENT_KEY, GENESISPAY_BASE_URL

const [service] = await agent.discover("weather api");
// Persist the key with your order before the first call, then reuse it on retries.
const result = await agent.pay(service.resourceUrl, { idempotencyKey: "saved-order-42", maxAmountUsdc: "0.50" });

if (result.settled) if (result.response) console.log(result.json()); // Replay has no captured resource body.
else console.log("Needs human approval:", result.approvalUrl);
```

Spending caps, allowlists, and approvals are enforced server-side by GenesisPay —
the agent key never holds a raw private key.

## Give your AI agent the tools

```bash
claude mcp add genesispay \
  --env GENESISPAY_AGENT_KEY=gp_ag_your_key \
  --env GENESISPAY_BASE_URL=https://your-genesispay-instance.example \
  -- npx -y @genesis-tech/genesispay-mcp
```

See [`GenesisTechAT/genesispay-agent-skill`](https://github.com/GenesisTechAT/genesispay-agent-skill)
for the full agent skill (discovery-then-pay pattern, approval handling) and
config snippets for other MCP clients.

## Development

```bash
npm ci
npm run build   # tsc -b, dependency order
npm test        # vitest, tests run from package sources
```

Node >= 20.9. Each package builds to `dist/` with `tsc`; tests are colocated
(`src/*.test.ts`).

This repository is a read-only publish mirror — development happens in the
main GenesisPay repository and is synced here. Issues and PRs are welcome and are
folded back upstream.

## Releasing

1. Bump versions in `packages/*/package.json`.
2. Confirm npm Trusted Publishing authorizes `.github/workflows/publish.yml`
   for every package. The workflow uses GitHub OIDC (`id-token: write`); it does
   not read an `NPM_TOKEN` secret.
3. Tag the reviewed snapshot and push that tag.
4. The [publish workflow](.github/workflows/publish.yml) builds, tests, verifies
   pack manifests, and publishes only package versions absent from npm.

## License

[MIT](LICENSE) © GenesisTech
ai-agentsbasemcpmcp-servermodel-context-protocolpaymentsusdcx402

What people ask about genesispay-js

What is GenesisTechAT/genesispay-js?

+

GenesisTechAT/genesispay-js is mcp servers for the Claude AI ecosystem. GenesisPay JavaScript SDKs and MCP server: x402 payments in USDC on Base for sellers and AI agents (@genesis-tech/genesispay-*) It has 1 GitHub stars and its last recorded update is dated 2026-10-05.

How do I install genesispay-js?

+

You can install genesispay-js by cloning the repository (https://github.com/GenesisTechAT/genesispay-js) or following the README instructions on GitHub. ClaudeWave also provides quick install blocks on this page.

Is GenesisTechAT/genesispay-js safe to use?

+

Our security agent has analyzed GenesisTechAT/genesispay-js and assigned a Trust Score of 95/100 (tier: Verified). See the full breakdown of passed checks and flags on this page.

Who maintains GenesisTechAT/genesispay-js?

+

GenesisTechAT/genesispay-js is maintained by GenesisTechAT. The last recorded GitHub activity is dated 2026-10-05, with 0 open issues.

Are there alternatives to genesispay-js?

+

Yes. On ClaudeWave you can browse similar mcp servers at /categories/mcp, sorted by popularity or recent activity.

Deploy genesispay-js to your cloud

Ship this repo to production in minutes. Each platform spins up its own environment with editable env vars.

Maintain this repo? Add a badge to your README

Drop the badge into your GitHub README to show it's tracked on ClaudeWave. Each badge links back to this page and reflects the live Trust Score.

Featured on ClaudeWave: GenesisTechAT/genesispay-js
[![Featured on ClaudeWave](https://claudewave.com/api/badge/genesistechat-genesispay-js)](https://claudewave.com/repo/genesistechat-genesispay-js)
<a href="https://claudewave.com/repo/genesistechat-genesispay-js"><img src="https://claudewave.com/api/badge/genesistechat-genesispay-js" alt="Featured on ClaudeWave: GenesisTechAT/genesispay-js" width="320" height="64" /></a>

More MCP Servers

genesispay-js alternatives