Skip to content

Install for OpenClaw

Terminal window
openclaw mcp add persql \
--url https://mcp.persql.com/mcp \
--transport streamable-http \
--auth oauth

The 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"
}
}
}
}

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:

Terminal window
npm i -g @persql/cli
persql login
persql db query <database> "select 1"

Pair it with the persql Agent Skill to teach the agent the per-task-database workflow.

About sixty SQL-shaped tools over MCP, or the full persql command set over the CLI. The MCP catalog is in the MCP reference.