Run402 MCP Server

1

Add it to Claude Code

Run this in a terminal.

Run in terminal
claude mcp add run402-b93d -- npx -y run402-mcp
README.md

Provision Postgres databases, deploy sites, and manage agent allowances.

run402 — MCP Server, CLI & OpenClaw Skill

Developer tools for Run402 — provision Postgres databases, deploy static sites, serverless functions, generate images, and manage agent allowances. Available as an MCP server, an OpenClaw skill, and a CLI.

English | 简体中文

Integrations

Interface Use when...
`cli/` Terminal, scripts, CI/CD
`openclaw/` OpenClaw agent (no MCP required)
MCP server (this package) Claude Desktop, Cursor, Cline, Claude Code

Quick Start

npx run402-mcp

MCP Tools

Tool Description
provision_postgres_project Provision a Postgres database. Handles x402 payment. Saves credentials locally.
run_sql Execute SQL (DDL or queries). Returns markdown table.
rest_query Query/mutate via PostgREST. GET/POST/PATCH/DELETE with query params.
setup_rls Apply row-level security templates to tables.
get_schema Introspect database schema — tables, columns, types, constraints, RLS policies.
get_usage Get project usage report — API calls, storage, limits, lease expiry.
upload_file Upload text content to project storage.
download_file Download a file from project storage.
delete_file Delete a file from project storage.
list_files List files in a storage bucket.
deploy_function Deploy a serverless function (Node 22) to a project.
invoke_function Invoke a deployed function via HTTP.
get_function_logs Get recent logs from a deployed function.
list_functions List all deployed functions for a project.
delete_function Delete a deployed function.
set_secret Set a project secret. Injected as process.env in functions.
list_secrets List secret keys for a project (values not shown).
delete_secret Delete a secret from a project.
deploy_site Deploy static site. Free with active tier. Returns live URL.
claim_subdomain Claim custom subdomain (e.g. myapp.run402.com). Free.
delete_subdomain Release a subdomain.
list_subdomains List all subdomains claimed by a project.
bundle_deploy One-call full-stack deploy: database + migrations + RLS + secrets + functions + site + subdomain.
browse_apps Browse public apps available for forking.
fork_app Fork a published app into a new project.
publish_app Publish a project as a forkable app.
list_versions List published versions of a project.
get_quote Get tier pricing. Free, no auth required.
set_tier Subscribe, renew, or upgrade tier. Auto-detects action. Handles x402 payment.
archive_project Archive a project and remove from local key store.
check_balance Check billing account balance for an agent allowance address.
list_projects List all active projects for an agent allowance address.
allowance_status Check local agent allowance status — address, network, funding.
allowance_create Create a new local agent allowance (Base Sepolia testnet).
allowance_export Export the local agent allowance address.
request_faucet Request free testnet USDC from the Run402 faucet.
generate_image Generate a PNG image from a text prompt. $0.03 via x402.

Client Configuration

CLI

A standalone CLI is available in the `cli/` directory.

npm install -g run402

run402 allowance create
run402 allowance fund
run402 deploy --tier prototype --manifest app.json

See `cli/README.md` for full usage.

OpenClaw

A standalone skill is available in the `openclaw/` directory — no MCP server required. It calls the Run402 API directly via Node.js scripts.

cp -r openclaw ~/.openclaw/skills/run402
cd ~/.openclaw/skills/run402/scripts && npm install

See `openclaw/README.md` for details.

MCP Clients

Claude Desktop

Add to ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "run402": {
      "command": "npx",
      "args": ["-y", "run402-mcp"]
    }
  }
}
Cursor

Add to .cursor/mcp.json in yo

Tools (7)

provision_postgres_projectProvision a Postgres database and save credentials locally.
run_sqlExecute SQL (DDL or queries) and return a markdown table.
rest_queryQuery or mutate data via PostgREST using GET, POST, PATCH, or DELETE.
deploy_functionDeploy a Node 22 serverless function to a project.
deploy_siteDeploy a static site and return the live URL.
generate_imageGenerate a PNG image from a text prompt.
allowance_createCreate a new local agent allowance on the Base Sepolia testnet.

Configuration

claude_desktop_config.json
{"mcpServers": {"run402": {"command": "npx", "args": ["-y", "run402-mcp"]}}}

Try it

Provision a new Postgres database for my project.
Execute a SQL query to select all users from the 'users' table.
Deploy my static site and provide me with the live URL.
Generate a PNG image of a futuristic city using the generate_image tool.
Check my current agent allowance status and network funding.

Frequently Asked Questions

What are the key features of Run402?

Provision and manage AI-native Postgres databases. Deploy serverless Node.js functions and static websites. Execute SQL queries and PostgREST API interactions. Manage agent allowances and billing on Base Sepolia. File storage management with upload, download, and list capabilities.

What can I use Run402 for?

Rapidly spinning up a database-backed application for AI agents. Deploying full-stack web applications directly from an AI chat interface. Managing serverless backend logic and database schemas via natural language. Handling micropayments for AI-native services using x402. Automating the deployment of static sites and custom subdomains.

How do I install Run402?

Install Run402 by running: npx -y run402-mcp

What MCP clients work with Run402?

Run402 works with any MCP-compatible client including Claude Desktop, Claude Code, Cursor, and other editors with MCP support.

Turn this server into reusable context

Keep Run402 docs, env vars, and workflow notes in Conare so your agent carries them across sessions.

Need the old visual installer? Open Conare IDE.
Open Conare