Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Run locally

Run Soda MCP locally with your Soda Cloud API keys.

Run Soda MCP locally if you need control over the MCP server and its security configuration. For the recommended setup without Python, package installation, or API keys, connect remotely.

The server runs as a local stdio MCP process. Your AI client starts soda-mcp, passes Soda Cloud credentials through environment variables, and then calls Soda tools through the MCP protocol. On startup, soda-mcp authenticates with Soda Cloud and loads organization context so the client can use the exposed tools against the correct tenant.

Follow the instructions in this section to install the Soda MCP server for your host client.

Requirements

  • Python 3.10+

  • uv python package on PATH

  • A Soda Cloud API key ID and secret

  • A Soda Cloud host URL

If you don't have API keys already you can create them following the instructions here.

Set the runtime environment variables before starting the server. Use cloud.soda.io for EU or cloud.us.soda.io for US; the examples below use EU:

export SODA_CLOUD_HOST="cloud.soda.io"
export SODA_API_KEY_ID="your-key-id"
export SODA_API_KEY_SECRET="your-key-secret"

Note: If you are using Windows without WSL you will need to modify the commands to work with either the Windows command prompt:

set SODA_CLOUD_HOST=cloud.soda.io
set SODA_API_KEY_ID=your-key-id
set SODA_API_KEY_SECRET=your-key-secret

or Windows Powershell:

You will also need to modify the commands of the following sections as is appropriate.

Install from Soda's private PyPI

Stable releases are published to Soda's private PyPI indexes for Team and Enterprise customers. Choose the private index that matches your license and region, then set UV_INDEX using the same Soda API key credentials:

License
Region
Index URL

Team

EU

https://team.pypi.cloud.soda.io

Team

US

https://team.pypi.us.soda.io

Enterprise

EU

https://enterprise.pypi.cloud.soda.io

Enterprise

US

https://enterprise.pypi.us.soda.io

Pick the appropriate command below according to your plan and region. Note that this command depends on the Soda API key environment variables mentioned above in order to execute successfully.

Pick the proper one according to your plan and region:

Smoke-test that uvx can resolve and start the package. Stop the server with Ctrl-C after startup:

If everything is set up correctly you will see the following output:

Configure an MCP client

Configure your MCP client to start soda-mcp over stdio and pass the required environment variables to the child process.

Before adding a connection, inspect your client's existing Soda registrations. Reuse a suitable connection; do not silently replace one or leave duplicate active connections. Preserve unrelated settings when editing configuration.

For Claude Code:

For OpenCode, add a local MCP server entry to your user-scope opencode.jsonc:

For a generic stdio MCP client:

Verify the server

After configuring the client, confirm that soda-mcp appears in the client's MCP server list and is connected. Then invoke a low-cost read tool such as list_attributes.

A successful response confirms that:

  • The MCP client can start the server.

  • Soda Cloud credentials are reaching the server.

  • Authentication succeeds against the configured Soda Cloud tenant.

  • The client can see and call the registered Soda tools.

Troubleshooting

  • If uvx cannot resolve soda-mcp, confirm UV_INDEX is set in the MCP client's environment and points at the correct private index.

  • If private PyPI returns 401 or 403, confirm the API key ID and secret are valid for the selected Team or Enterprise index.

  • If startup fails with missing credential errors, confirm the MCP client passes SODA_API_KEY_ID, SODA_API_KEY_SECRET, and SODA_CLOUD_HOST .

  • If Soda Cloud authentication fails, confirm the API key belongs to the same tenant as the configured host or URL.

  • If the client does not show any tools, refresh or restart the MCP client so it reconnects and reloads tool descriptions.

For available tools and usage guidance, see MCP tools and Soda MCP.


You are not logged in to Soda and are viewing the default public documentation. Learn more about Licensing & documentation access.

Last updated

Was this helpful?