Open-source B2B and marketplace ecommerce; new stores include an MCP server for AI agents.
three.ws Agent Payments
Overview
Description from the maker (original English)
Governed x402 payment sessions: pay any endpoint with budget, allowlist & per-tx caps, no key.
PopNx MCP’s three pillars
These three are never merged into one score: opinions, measurements and popularity are different things.
- User voiceiNo reviews yetReviews open together with accounts in a later step
- Our basic checksi1 of 1 passedChecked from public information; code not scanned yet
- UsageiNot measured yet★ –
What you can do with it
We have not written a plain-language summary for this one yet. Below are the facts we read from the registry.
- Connection: Runs on your computer
- Transport: stdio
- Category: Online shops & payments
- You need to fill in: THREE_WS_SESSION, PAYMENT_SESSION_TOKEN
Install
Pick the AI app you use, then copy the settings.
Before you install
- Basic checks: 1 of 1 passed
- Runs on your computer with your user’s permissions (files, network, apps).
- You fill in yourself:
THREE_WS_SESSION,PAYMENT_SESSION_TOKEN,THREE_WS_BASE,THREE_WS_TIMEOUT_MS
Values marked secret are keys to your account. Never share them or paste them into a chat.
You need
- npmNode.js installed (for the npx command)
Which app do you use?
Pick your app above. We remember it, so next time the button says “Install in …”.
Open Claude Desktop → Settings → Developer → Edit Config, and paste this into claude_desktop_config.json
{
"mcpServers": {
"agentcore-payments": {
"command": "npx",
"args": [
"-y",
"@three-ws/agentcore-payments-mcp"
],
"env": {
"THREE_WS_SESSION": "your-value",
"PAYMENT_SESSION_TOKEN": "your-value",
"THREE_WS_BASE": "your-value",
"THREE_WS_TIMEOUT_MS": "your-value"
}
}
}
}Run this in your terminal
claude mcp add agentcore-payments --env THREE_WS_SESSION=your-value --env PAYMENT_SESSION_TOKEN=your-value --env THREE_WS_BASE=your-value --env THREE_WS_TIMEOUT_MS=your-value -- npx -y @three-ws/agentcore-payments-mcpFill in the empty values before running it.
Or copy the settings yourself
Paste into .cursor/mcp.json in your project, or ~/.cursor/mcp.json
{
"mcpServers": {
"agentcore-payments": {
"command": "npx",
"args": [
"-y",
"@three-ws/agentcore-payments-mcp"
],
"env": {
"THREE_WS_SESSION": "your-value",
"PAYMENT_SESSION_TOKEN": "your-value",
"THREE_WS_BASE": "your-value",
"THREE_WS_TIMEOUT_MS": "your-value"
}
}
}
}Your browser asks to open the app, then the app shows the settings and asks you to confirm. Key values are left empty for you to fill in.
Or copy the settings yourself
Paste into .vscode/mcp.json in your project
{
"servers": {
"agentcore-payments": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@three-ws/agentcore-payments-mcp"
],
"env": {
"THREE_WS_SESSION": "your-value",
"PAYMENT_SESSION_TOKEN": "your-value",
"THREE_WS_BASE": "your-value",
"THREE_WS_TIMEOUT_MS": "your-value"
}
}
}
}Your browser asks to open the app, then the app shows the settings and asks you to confirm. Key values are left empty for you to fill in.
This one runs on your computer, and ChatGPT can only connect to servers on the internet. Pick another app.
Your choice stays on this device in a cookie; no account needed.
Values you fill in
- Your three.ws session token (value of the `__Host-sid` cookie from a signed-in browser). Required for account management operations: create_payment_session, list_payment_sessions, check_payment_sessi…
- A payment session bearer token (starts with 'pss_') from create_payment_session. Used by the agent for pay_with_session calls when no inline token is passed. Treat like a spending card — it authorize…
THREE_WS_BASEenvBase URL of the three.ws API. Override only when self-hosting or targeting a preview deployment.THREE_WS_TIMEOUT_MSenvPer-request HTTP timeout in milliseconds. x402 payments involve on-chain settlement so this should be generous (default: 30000).
These settings are generated from the maker’s registry entry. If the README says otherwise, follow the README.
What it can do
Runs on your computer; the tool list appears in your AI app after you install it.
Basic checksi
We check information anyone can see; we have not read the code. Checks that do not apply are left out of the count. · Checked Nov 7, 2026
- ✓ Pass
Maker matches the repo
The registry name was verified with the GitHub account nirholas, which owns the repo
- … Not checked yet
Still maintained
We have not read this repo from GitHub yet
- … Not checked yet
Has a licence
We have not read this repo from GitHub yet
- – Not applicable
Endpoint responds
This one runs on your computer; there is no internet endpoint
- – Not applicable
Sign-in with OAuth
Runs on your computer and uses local settings instead
- … Not checked yet
No hidden instructions in tool descriptions
Runs on your computer; we can only read tool lists from internet endpoints
Compared with others in Online shops & paymentsi
- More stars than 0% of the other 1749 servers in this category
- Published to the registry more recently than 54% of the other 1749 servers in this category
- Basic checks equal to or better than 100% of the other 1749 servers in this category
Compared with every active server in this category in the registry. Stars count only when the publisher owns the repo.
Common questions
Is three.ws Agent Payments safe?
It passed 1 of 1 applicable basic checks. We have not read the code. Before adding a key or token, see what access the server asks for and use a key with only the permissions you need.
What keys or codes does it need?
You need to fill in: THREE_WS_SESSION, PAYMENT_SESSION_TOKEN
Does it run on my computer or in the cloud?
It runs on your computer. Your AI app starts it when needed, and data does not pass through the maker’s servers (unless it calls an online service itself).
Is it still maintained?
The GitHub repo last changed –, and the latest version (0.1.5) reached the registry 27 days ago.
Which apps can use it?
Apps that support MCP, such as Claude Desktop, Claude Code, Cursor and VS Code. You also need Node.js on your computer.
What can I use instead?
In the same category: Spree Commerce: open-source B2B and marketplace ecommerce, Stripe MCP, MCP Cn Commerce
Alternatives
Servers in the same category from other makers, sorted by stars.
Reading a card:★ GitHub starsiThree pillars: reviews · checks · usageiUpdated = latest version published to the registryi
Stripe MCP
Stripe’s official server lets AI view and manage customers, products, payments and invoices. Connect to Stripe’s cloud and sign in with OAuth.
MCP Cn Commerce
8 read-only MCP platform entries; support is operation-specific; merchant live acceptance pending
README from the maker
Open the README
Copied from the maker’s repo as written. PopNx MCP has not reviewed or endorsed it. HTML, images and scripts are removed. Links lead off this site.
@three-ws/agentcore-payments-mcp
MCP server for three.ws Agent Payment Sessions — govern agent x402 spending without exposing private keys.
Concept
The agent does not hold a wallet. It proposes spend. Governance enforces policy.
A Payment Session is a budget envelope you fund once from your three.ws credits. You hand an agent the session bearer token; the agent calls paid x402 endpoints through this server. The platform's wallet signs every transaction. The session's allowlist, per-transaction ceiling, and total budget are enforced atomically on the server — the agent can never overspend.
Quick start
# Configure
export THREE_WS_SESSION=" " export PAYMENT_SESSION_TOKEN="pss_ _ "
Run
npx @three-ws/agentcore-payments-mcp
MCP client config (~/.cursor/mcp.json, Claude Desktop, etc.):
{
"mcpServers": { "three-ws-payments": { "command": "npx", "args": ["-y", "@three-ws/agentcore-payments-mcp"], "env": { "THREE_WS_SESSION": " ", "PAYMENT_SESSION_TOKEN": "pss_..." } } } }
Environment variables
| Variable | Required | Description |
|---|---|---|
THREE_WS_SESSION | For session management tools | The value of your __Host-sid browser cookie (no __Host-sid= prefix; the server sends the cookie for you) for creating/listing/cancelling sessions |
PAYMENT_SESSION_TOKEN | For pay_with_session default | Bearer token returned when you created a session; passed as the default when no inline token is provided |
THREE_WS_BASE | No | Base URL (default: https://three.ws) |
THREE_WS_TIMEOUT_MS | No | Request timeout in ms (default: 30000) |
Tools
create_payment_session
Create a new session funded from your credits.
{
"budget_usd": 10.00, "label": "Research agent — June sprint", "expiry_seconds": 86400, "max_per_tx_usd": 0.50, "allowed_hosts": ["api.example.com", "data.provider.io"], "network": "solana" }
Returns { session, token }. The token is shown once — store it immediately.
pay_with_session
Pay an x402 endpoint using a session token. The platform wallet signs; your session's policy is enforced.
{
"url": "https://api.example.com/data", "method": "GET", "session_token": "pss_...", "idempotency_key": "run-42-fetch-data" }
Returns { ok, paid, result, payment, session } with the tx hash, explorer link, and updated budget.
If session_token is omitted, the PAYMENT_SESSION_TOKEN env var is used.
check_payment_session
Inspect a session's budget, status, and recent payments.
{ "session_id": "...", "include_executions": true }
list_payment_sessions
List all sessions for the authenticated user, with aggregate stats.
{ "status": "active", "limit": 20 }
cancel_payment_session
Cancel a session and refund the un-spent budget to your credits.
{ "session_id": "..." }
Network support
Session network | Platform payer | USDC contract |
|---|---|---|
solana (default) | X402_AGENT_SOLANA_SECRET_BASE58 | Solana mainnet USDC |
base | X402_EVM_AGENT_PRIVATE_KEY | Base mainnet USDC (0x8335…) |
Integrating with @three-ws/x402-mcp
The existing pay_and_call tool in @three-ws/x402-mcp now accepts session_token directly:
{
"url": "https://api.example.com/endpoint", "session_token": "pss_...", "confirm": true }
This routes the payment through /api/pay/execute instead of signing locally — the session's governance policy applies.
Examples
Runnable, no-payment examples live in examples/:
node examples/list-tools.mjs # every tool with its schema and safety annotations
node examples/plan-a-session.mjs # read live x402 prices, print the policy to authorize
Neither one holds a wallet, reads a credential, or calls pay_with_session, so nothing is signed and nothing is spent. plan-a-session.mjs is the habit worth copying: read what an endpoint actually charges before you decide what budget to authorize. See examples/README.md.
Session lifecycle
create (budget debited from credits)
└─ active → pay_with_session calls spend against budget ├─ exhausted (budget fully consumed) ├─ expired (TTL elapsed — cron refunds remaining budget) └─ cancelled (manual — remaining budget refunded immediately)
Programmatic use
The package entry point exports `TOOLS` (every tool definition: name, title, description, inputSchema, annotations, handler) and `buildServer()`, which returns a fully-registered McpServer with no transport attached. Importing is side-effect free and needs no credential, so you can mount these tools inside a host of your own or inspect the surface offline; a credential is only required when a handler actually runs.
// run with: THREE_WS_SESSION=<your __Host-sid value> node this-file.mjs
import { TOOLS, buildServer } from '@three-ws/agentcore-payments-mcp';
for (const tool of TOOLS) { const kind = tool.annotations.readOnlyHint ? 'read ' : 'write'; console.log(${kind} ${tool.name}); }
// A tool handler is a plain async function against the live API. const list = TOOLS.find((t) => t.name === 'list_payment_sessions'); console.log(await list.handler({ limit: 3 }));
// Or hand the whole registered server to your own MCP transport. buildServer();
Security properties
- No key exposure: the session token is a time-bounded, HMAC-signed grant. Compromising it lets an attacker spend up to the remaining budget at allowed hosts — nothing more.
- Atomic budget enforcement: concurrent payments use a SQL
UPDATE … WHERE remaining >= amount RETURNING— two simultaneous requests can never collectively overspend. - Allowlist: if
allowed_hostsis set, the governor rejects any request to a host not on the list before signing. - Per-transaction cap:
max_per_tx_usdprevents a single large payment draining the entire budget. - SSRF protection: all x402 target URLs are validated against a public-IP allowlist and DNS-resolved server-side before any payment is signed.