@openclawcash/mcp-server
v0.1.21
Published
OpenClawCash MCP server for managed agent wallets, balances, transfers, swaps, approvals, cross-chain bridges, Get Paid checkout escrow flows, Polymarket market resolution/order tools, and YieldWolf Casino link/unlink/proxy tools.
Downloads
592
Maintainers
Readme
OpenClawCash MCP Server
This folder contains the public OpenClawCash stdio MCP server package, which exposes OpenClawCash agent operations as MCP tools.
It is a thin adapter over the existing OpenClawCash agent API at https://openclawcash.com/api/agent/*.
Canonical docs page: https://openclawcash.com/mcp
What It Exposes
Wallet and profile tools:
skill_latest(public install metadata; no API key required)wallets_listwallet_gettransactions_listbalances_getsupported_tokens_listuser_tag_getuser_tag_setwallet_createwallet_import
Trading and transfer tools:
transfer_sendswap_quoteswap_executeapprove_token
Get Paid checkout tools:
checkout_payreq_createcheckout_payreq_getcheckout_escrow_getcheckout_funding_confirmcheckout_acceptcheckout_proof_submitcheckout_dispute_opencheckout_quick_paycheckout_swap_and_paycheckout_fund(quick-pay first, swap fallback)checkout_releasecheckout_refundcheckout_cancelcheckout_webhooks_listcheckout_webhook_createcheckout_webhook_updatecheckout_webhook_delete
Polymarket tools:
polymarket_market_resolvepolymarket_market_searchpolymarket_order_limitpolymarket_order_marketpolymarket_accountpolymarket_orderspolymarket_cancel_orderpolymarket_clear_integrationpolymarket_activitypolymarket_positionspolymarket_redeemablepolymarket_redeem
Utility tool:
openclawcash-self-test
It also exposes two lightweight MCP resources:
openclawcash://approval-modesopenclawcash://quickstart
Run It
Direct from npm:
npx -y @openclawcash/mcp-serverFrom this folder during local development:
node openclawcash-mcp.mjsIf this package is installed globally or linked as a CLI:
openclawcash-mcpQuick self-test:
npx -y @openclawcash/mcp-server --self-testConfiguration
Set one of these environment variables:
OPENCLAWCASH_AGENT_KEYAGENTWALLETAPI_KEY
Most MCP tools require an OpenClawCash agent key because they call authenticated agent API routes. skill_latest is the only no-auth tool and calls GET /api/public/agentwalletapi/skill/latest.
Optional base URL override:
OPENCLAWCASH_BASE_URLAGENTWALLETAPI_URL
The server also looks for env files in this order:
- package
.env - current working directory
.env.local - current working directory
.env
Example package .env:
OPENCLAWCASH_AGENT_KEY=occ_your_api_key_here
OPENCLAWCASH_BASE_URL=https://openclawcash.comOpenClaw Example
You can print a config snippet with:
npx -y @openclawcash/mcp-server --print-openclaw-configTypical shape:
{
"mcpServers": {
"openclawcash": {
"command": "npx",
"args": ["-y", "@openclawcash/mcp-server"],
"env": {
"OPENCLAWCASH_AGENT_KEY": "occ_your_api_key_here",
"OPENCLAWCASH_BASE_URL": "https://openclawcash.com"
}
}
}
}If OpenClaw expects the same MCP structure in a different config location, keep the same command, args, and env values and adapt only the outer wrapper required by that client.
Claude Desktop Example
You can print a config snippet with:
npx -y @openclawcash/mcp-server --print-claude-configTypical config shape:
{
"mcpServers": {
"openclawcash": {
"command": "npx",
"args": ["-y", "@openclawcash/mcp-server"],
"env": {
"OPENCLAWCASH_AGENT_KEY": "occ_your_api_key_here",
"OPENCLAWCASH_BASE_URL": "https://openclawcash.com"
}
}
}
}OpenAI Codex Example
If your OpenAI Codex environment supports MCP server configuration, use the same local stdio command pattern:
{
"mcpServers": {
"openclawcash": {
"command": "npx",
"args": ["-y", "@openclawcash/mcp-server"],
"env": {
"OPENCLAWCASH_AGENT_KEY": "occ_your_api_key_here",
"OPENCLAWCASH_BASE_URL": "https://openclawcash.com"
}
}
}
}If your Codex setup expects a different config file location or wrapper schema, keep the same command, args, and env values and adapt only the surrounding structure required by that client.
Cursor Example
You can print a config snippet with:
npx -y @openclawcash/mcp-server --print-cursor-configIf your Cursor build supports MCP servers, the config shape is the same idea: run the server as a local stdio command and pass the API key in env.
Typical shape:
{
"mcpServers": {
"openclawcash": {
"command": "npx",
"args": ["-y", "@openclawcash/mcp-server"],
"env": {
"OPENCLAWCASH_AGENT_KEY": "occ_your_api_key_here",
"OPENCLAWCASH_BASE_URL": "https://openclawcash.com"
}
}
}
}If your Cursor build expects the config in a different file location or format, keep the same command, args, and env values and adapt only the wrapper structure.
VS Code Example
You can print a config snippet with:
npx -y @openclawcash/mcp-server --print-vscode-configIf your VS Code AI extension or MCP-compatible tooling supports local stdio MCP servers, use the same command pattern:
{
"mcpServers": {
"openclawcash": {
"command": "npx",
"args": ["-y", "@openclawcash/mcp-server"],
"env": {
"OPENCLAWCASH_AGENT_KEY": "occ_your_api_key_here",
"OPENCLAWCASH_BASE_URL": "https://openclawcash.com"
}
}
}
}If your VS Code setup uses a different config file location or wrapper format, keep the same command, args, and env values and adapt only the surrounding JSON structure required by that extension.
Verify Before IDE Setup
Use these commands before wiring the server into any IDE:
npx -y @openclawcash/mcp-server --help
npx -y @openclawcash/mcp-server --self-test
npx -y @openclawcash/mcp-server --print-openclaw-config
npx -y @openclawcash/mcp-server --print-claude-config
npx -y @openclawcash/mcp-server --print-cursor-config
npx -y @openclawcash/mcp-server --print-vscode-configWhat --self-test checks:
- the server file runs
- the MCP metadata is valid enough for initialization
- the resolved base URL is correct
- whether an agent key is present in env or env files
Approval Model
Write tools are high-risk. The intended agent behavior is:
- Ask once at the start of the first write-intent:
confirm_each_writeoperate_on_my_behalf
- If the user chooses
operate_on_my_behalf, the agent should stop re-asking for each later transfer in the same session and only ask for missing execution details.
The MCP server itself does not hold approval memory. The MCP client or agent runtime should remember the selected mode for the session.
Notes
swap_quoteis read-only, but still requires an agent key.supported_tokens_listis read-only, but still requires an agent key.skill_latestis read-only and does not require an agent key.transfer_send,swap_execute,approve_token,wallet_create, andwallet_importare write tools.polymarket_redeemableis read-only and lists redeemable tokenIds; use this first for targeted redeem.polymarket_redeemis a write tool. Forredeem all(no tokenId), the API processes in chunks and returnshasMoreRedeemable; call again until it becomesfalse.transfer_sendis for normal wallet transfers. For checkout escrow funding, use checkout tools:checkout_quick_payfor direct settlement fundingcheckout_swap_and_payfor asset mismatch fundingcheckout_funding_confirmto confirm external/manual funding transactions
- For
wallet_get,transactions_list,supported_tokens_list, andswap_quote, pass at most one wallet selector when usingwalletId,walletLabel, orwalletAddress. - The server uses stdio transport and is intended for MCP-compatible desktop or agent clients.
Standalone Packaging Notes
- This folder has its own package.json.
- The CLI name is
openclawcash-mcp. - The runtime no longer depends on repo-root paths.
- It can be distributed independently from the main web app repo.
- The intended public install path is
npx -y @openclawcash/mcp-server.
Release Checklist
Before publishing a new MCP package release:
- Update the version in package.json.
- Run the package self-test:
cd mcp node openclawcash-mcp.mjs --self-test - Verify the config helpers:
cd mcp node openclawcash-mcp.mjs --print-openclaw-config node openclawcash-mcp.mjs --print-claude-config node openclawcash-mcp.mjs --print-cursor-config node openclawcash-mcp.mjs --print-vscode-config - Confirm the package contents:
cd mcp npm pack --dry-run - Review that no secrets are present:
- no
.env - no local credentials
- no private test data
- no
- Publish from the package folder:
cd mcp npm publish --access public
If you want to test the package locally before publishing:
cd mcp
npm packThen install the generated tarball in a separate test directory and verify the CLI runs there without repo context.
