Skip to main content
MCP server CX Codex

three.ws Agent Payments — Claude Code MCP server: setup

This MCP server lets an agent pay x402 endpoints through budgeted sessions with access rules. The agent submits requests; the platform wallet signs the transactions.

Install into Claude Code · Platform CLI All methods and platforms ↓
claude mcp add --env THREE_WS_SESSION=<THREE_WS_SESSION> --env PAYMENT_SESSION_TOKEN=<PAYMENT_SESSION_TOKEN> --env THREE_WS_BASE=<THREE_WS_BASE> --env THREE_WS_TIMEOUT_MS=<THREE_WS_TIMEOUT_MS> --transport stdio agentcore-payments-mcp -- npx -y @three-ws/agentcore-payments-mcp
Open on GitHub

What three.ws Agent Payments does

The server exposes tools to create, inspect, list, and cancel payment sessions, as well as to pay x402 endpoints. A session draws its budget from three.ws credits and can restrict destinations with an allowed-host list and a per-transaction ceiling. Its token is returned once, so save it when the session is created.

The agent sends payment requests without receiving a private key; the platform wallet signs each transaction, while the server applies the session rules. The supported networks are solana and base. Configure THREE_WS_SESSION and PAYMENT_SESSION_TOKEN first. When an allowed_hosts list is set, requests to other hosts are rejected.

What it helps with

  • cap an agent’s total payment budget
  • restrict payments to approved hosts
  • set a ceiling for each transaction
  • inspect remaining funds and recent payments
  • cancel a session and refund its unused budget

Example prompts for the agent

  • Create a payment session with a 10.00 USD budget and allow api.example.com.
  • Pay for https://api.example.com/data using my session.
  • List my active payment sessions and show their remaining budgets.

How to install three.ws Agent Payments

Platform CLI

claude mcp add --env THREE_WS_SESSION=<THREE_WS_SESSION> --env PAYMENT_SESSION_TOKEN=<PAYMENT_SESSION_TOKEN> --env THREE_WS_BASE=<THREE_WS_BASE> --env THREE_WS_TIMEOUT_MS=<THREE_WS_TIMEOUT_MS> --transport stdio agentcore-payments-mcp -- npx -y @three-ws/agentcore-payments-mcp

Replace <…> with your own values

Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more

Questions about three.ws Agent Payments

How do I install three.ws Agent Payments in Claude Code?

Run `claude mcp add agentcore-payments-mcp -e THREE_WS_SESSION=<THREE_WS_SESSION> -e PAYMENT_SESSION_TOKEN=<PAYMENT_SESSION_TOKEN> -- npx -y @three-ws/agentcore-payments-mcp`. Provide your three.ws session value and payment session token.

What does three.ws Agent Payments do?

It lets an agent pay x402 endpoints through sessions governed by a budget and access rules. The platform wallet signs payments, so the agent does not handle a private key.

Which networks can payment sessions use?

Sessions support solana and base. Each payment is also subject to the session’s rules, such as its allowed hosts and per-transaction limit.

Similar MCP servers

Everything for Finance and business →

From the same set43

three.ws Assistant Widget Generates embed snippets for an interactive 3D avatar chatbot directly in agent chat. Produces <script> tags, iframe links, and JavaScript snippets. CX Codex +1 ★ 249repo stars Alibaba Cloud DashScope — Qwen Connect a DashScope account to an MCP client for Qwen chat, text embeddings, and account-specific model discovery. CX Codex +1 ★ 249repo stars three.ws Alerts An MCP server that lets your agent define pump.fun alert rules and read back what fired, across three delivery channels. CX Codex +1 ★ 249repo stars three.ws Agora Connects AI assistants to the Agora economy to discover tasks, claim on-chain work on Solana, submit proofs for payout, or post custom bounties. CX Codex +1 ★ 249repo stars Agent Sniper An MCP server for pump.fun trading: your agent scores new launches, runs guards and opens positions. Simulate mode is the default. CX Codex +1 ★ 249repo stars three.ws AgenC Connects AI agents to the AgenC Solana task marketplace and identity registry. It lets models discover tasks, inspect reputations, and find paid x402 jobs without keys. CX Codex +1 ★ 249repo stars three.ws Activity Query three.ws agent and coin rankings, $THREE holder data, and recent site events through an AI agent. Useful when you want this live activity in a chat. CX Codex +1 ★ 249repo stars three.ws 3D Agent Tools An MCP server bundling three.ws tools: build 3D models from a text prompt or a reference image, rig a mesh, assemble avatars, and pull market data. Some calls cost nothing, the rest are billed per call. CX Codex +1 ★ 249repo stars

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor