Skip to main content
Connect an MCP client to a local Chowder MCP server. The client launches a local chowder mcp process that exposes a query tool.

Configure your client

Follow Installation to set up Chowder, then check the command:
Add Chowder to an MCP client that supports stdio servers. For clients that use an mcpServers configuration object:
If your client cannot find chowder on its PATH, replace command with the absolute path to the executable. This is especially useful for desktop clients and source or virtual-environment installations. The client starts the server and communicates over stdin and stdout. Let the client manage the process.

Choose a working directory

Set an explicit working directory so relative data paths resolve consistently:
Replace the example paths with your executable and project directory. Relative source paths and the relative cache directory resolve from /path/to/project. Without --directory (or -C), the server uses the working directory supplied by the client.
The server executes SQL with the process’s filesystem access and credentials. --directory sets path resolution; it does not restrict access to that directory. Queries can have side effects, including creating session views and contacting remote sources or AI compute. Connect clients you trust to use those permissions.

Run a query

Ask your agent to use Chowder’s query tool with these arguments:
The tool returns this structured result, also available as JSON text:
Each row is an array in schema order. row_count counts returned rows. truncated indicates whether more rows exist. For a multimodal task, ask your agent to read the first five pages of a document with this SQL:
You can use the same multimodal table functions, inference, and embeddings as other Chowder queries. Local AI processing may download model artifacts on first use.

Bound results and query work

The server also caps each tool result at 1 MiB. Results can be truncated before reaching max_rows when values are large. If a schema or single row cannot fit, the tool returns an error. Select fewer columns or smaller values, especially when querying binary media columns. max_rows limits returned output, not SQL execution cost. Add SQL LIMIT and appropriate filters, and project only the columns you need. Increasing max_rows does not remove the byte cap. Binary values use base64 strings. Nested structs and lists retain their structure. Dates, times, timestamps, decimals, and non-finite floats use strings; durations use ISO 8601 strings.

Reuse the session

The server creates an engine on the first query and reuses it until the process exits. Session views persist across tool calls until the server exits. Restarting the server creates a new session. The server runs queries one at a time. A query error is returned as a tool error. Cancelling a request interrupts its execution; later requests can reuse the session. The server closes the engine when it exits.

Use remote AI compute

The server uses local AI compute by default. To use remote AI compute, configure the environment passed to the server process before its first query:
  • Set CHOWDER_REMOTE=1 to opt in.
  • Set CHOWDER_API_TOKEN to your client credential.
  • Set CHOWDER_API_URL to the endpoint from your Cloud dashboard or self-hosted server operator.
A URL and token alone do not enable remote compute. Restart the server after changing its compute configuration. SQL planning and relational execution stay in the MCP process, including when AI compute runs remotely. See Connect to remote AI compute for connection settings and Chowder Cloud for managed compute onboarding. For terminal queries and exports, see CLI.