Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@run402-mcpProvision a new hobby tier Postgres database for my app"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
run402-mcp
MCP server for Run402 — provision and manage AI-native Postgres databases from any MCP-compatible client.
Quick Start
npx run402-mcpTools
Tool | Description |
| Provision a new Postgres database (prototype/hobby/team tier) |
| Execute SQL (DDL or queries) against a project |
| Query/mutate data via PostgREST REST API |
| Upload text content to project storage |
| Renew a project's database lease |
Client Configuration
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 your project:
{
"mcpServers": {
"run402": {
"command": "npx",
"args": ["-y", "run402-mcp"]
}
}
}Cline
Add to Cline MCP settings:
{
"mcpServers": {
"run402": {
"command": "npx",
"args": ["-y", "run402-mcp"]
}
}
}Claude Code
claude mcp add run402 -- npx -y run402-mcpHow It Works
Provision — Call
provision_postgres_projectto create a database. The server handles x402 payment negotiation and stores credentials locally.Build — Use
run_sqlto create tables,rest_queryto insert/query data, andupload_filefor storage.Renew — Call
renew_projectbefore your lease expires.
Payment Flow
Provisioning and renewing require x402 micropayments. When payment is needed, tools return payment details (not errors) so the LLM can reason about them and guide the user through payment.
Key Storage
Project credentials are saved to ~/.config/run402/projects.json with 0600 permissions. Each project stores:
anon_key— for public-facing queries (respects RLS)service_key— for admin operations (bypasses RLS)tier— prototype, hobby, or teamexpires_at— lease expiration timestamp
Environment Variables
Variable | Default | Description |
|
| API base URL |
|
| Config directory for key storage |
Development
npm run build
npm run test:skillLicense
MIT
This server cannot be installed
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.