Native MCP
curral v0.9.0 supports the Model Context Protocol (MCP). Choose a remote HTTP connection or run the binary as a local stdio bridge. Both expose schema discovery, semantic context, dry runs and queries under your access rules.
Remote Streamable HTTP
Section titled “Remote Streamable HTTP”Add --mcp to your server command:
curral serve --catalog catalog.yaml --users users.yaml --policy policy.rego --mcpConfigure your MCP client with the URL https://curral.example.com/mcp
and its authentication settings. The endpoint accepts POST /mcp; it is
not a legacy SSE endpoint. Use the same Basic credentials, API key or OIDC
Bearer token as the HTTP API. The endpoint is off
by default and is advertised in GET / when enabled and discovery is on.
Requests use the same lockouts, policy, row filters, column masks, limits
and audit log as /v1/*. Delegating services send
X-Curral-Execution-Context as described in execution delegation.
Local stdio bridge
Section titled “Local stdio bridge”Install the v0.9.0 binary on the machine running your MCP client. Configure
credentials in your own terminal using the agent skill login,
or supply CURRAL_URL and CURRAL_TOKEN (or CURRAL_USER and
CURRAL_PASSWORD) to the bridge process. Keep secrets out of the conversation.
For clients using an mcpServers configuration:
{ "mcpServers": { "curral": { "command": "curral", "args": ["mcp", "--url", "https://curral.example.com"] } }}Use an absolute path for command if the app cannot find curral on its
PATH. The bridge reads ~/.config/curral/credentials (or CURRAL_CONFIG)
and accepts --ca / CURRAL_CA for a private CA. It forwards calls to the
HTTP API, so the remote server does not need --mcp enabled.
Available tools
Section titled “Available tools”| Tool | Purpose |
|---|---|
curral_capabilities |
Inspect the caller identity, supported formats and document availability |
curral_schema |
Discover readable objects; filter by database, schema or table |
curral_dry_run |
Check SQL and see the decision, protections and limits without executing |
curral_query |
Run SQL and return JSON results |
curral_search_docs |
Search semantic documents with q and optional table/schema filters |
curral_get_doc |
Read a semantic document by id |
The document tools are offered when semantic documents are enabled with
--docs-dir. Query tools accept sql, params, database and max_rows.
The query result format is JSON; use the HTTP API for Arrow or Parquet exports.
A useful sequence is capabilities → schema → search documents → dry run → query. The agent skill remains available for agents that use shell commands and for semantic document writes.