GenesisPay JavaScript SDKs and MCP server: x402 payments in USDC on Base for sellers and AI agents (@genesis-tech/genesispay-*)
- ✓Open-source license (MIT)
- ✓Actively maintained (<30d)
- ✓Clear description
- ✓Topics declared
- ✓Documented (README)
claude mcp add genesispay-js -- npx -y @genesis-tech/genesispay-mcp{
"mcpServers": {
"genesispay-js": {
"command": "npx",
"args": ["-y", "@genesis-tech/genesispay-mcp"],
"env": {
"GENESISPAY_AGENT_KEY": "<genesispay_agent_key>",
"GENESISPAY_BASE_URL": "<genesispay_base_url>"
}
}
}
}GENESISPAY_AGENT_KEYGENESISPAY_BASE_URLMCP 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
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.
[](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
Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.
User-friendly AI Interface (Supports Ollama, OpenAI API, ...)
An open-source AI agent that brings the power of Gemini directly into your terminal.
Real-time global intelligence dashboard. AI-powered news aggregation, geopolitical monitoring, and infrastructure tracking in a unified situational awareness interface
🕷️ An adaptive Web Scraping framework that handles everything from a single request to a full-scale crawl! Don't be shy, join here: https://discord.gg/EMgGbDceNQ and follow here for daily tips and tricks: https://x.com/Scrapling_dev
The fastest path to AI-powered full stack observability, even for lean teams.