Install for OpenClaw
openclaw mcp add persql \ --url https://mcp.persql.com/mcp \ --transport streamable-http \ --auth oauthThe server is saved to ~/.openclaw/openclaw.json under mcp.servers.
OpenClaw runs the OAuth flow on the first tool call — sign in, pick a
workspace, and the token is stored automatically. No header to paste.
JSON form, if you edit the config directly:
{ "mcp": { "servers": { "persql": { "url": "https://mcp.persql.com/mcp", "transport": "streamable-http", "auth": "oauth" } } }}Or skip MCP — use the CLI
Section titled “Or skip MCP — use the CLI”OpenClaw agents reach tools through shell commands rather than injected
schemas, so the persql CLI is a first-class fit. Install it once and
the agent can drive databases with plain commands:
npm i -g @persql/clipersql loginpersql db query <database> "select 1"Pair it with the persql Agent Skill to teach
the agent the per-task-database workflow.
What you get
Section titled “What you get”About sixty SQL-shaped tools over MCP, or the full persql command set
over the CLI. The MCP catalog is in the MCP reference.