CLI, API, or MCP? Pick the right way to use Soda for the job

CLI, API, or MCP? Pick the right way to use Soda for the job

CLI, API, or MCP? Pick the right way to use Soda for the job

Santiago Viquez

Santiago Viquez

Santiago Viquez

DevRel at Soda

DevRel at Soda

Table of Contents

Soda AI now provides three interfaces for bringing data quality into your existing tools and workflows: CLI, API, and MCP. Each fits a different kind of work, whether youโ€™re running checks in a pipeline, building an integration, or asking an AI assistant to investigate a failure.

So which one do you start with? That depends on the task, and you can combine them as your needs grow.

Key takeaways

Soda provides three interfaces that can work with the same data contract definition.
CLI: automate checks inside a pipeline or schedule.
API: build data quality into your own software, dashboards, or workflows.
MCP: describe the job in plain language and let an AI assistant carry it out.

Soda CLI: automate checks in your pipeline

With the Soda CLI, you can run contract verification from your terminal, a scheduled job, or a pipeline. Each run returns check results and an exit code, so your pipeline has a signal it can act on.

That makes the CLI useful for several everyday engineering tasks:

  1. Stop promotion when verification fails. Run verification before promoting data, and configure the pipeline to stop on a non-zero exit code.

  2. Evaluate defined checks without model judgment. CLI verification applies the contractโ€™s checks. Results also depend on configuration and time-dependent conditions such as freshness.

  3. Catch problems before deployment. Verify a contract against a dev or staging database during a pull request to catch schema changes before they reach production.

  4. Treat data quality as code. Keep YAML contracts alongside your pipeline code, review changes in pull requests, and run verification in CI.

Diagram of the Soda CLI as a pipeline gate: the pipeline runs sodacli contract verify, the check scan runs on a Soda Runner, and exit code 1 comes back. A table maps exit codes 0 to 3 to publish, hold, retry or check credentials.

โ†— Four exit codes tell a failed check apart from a failed run or a login problem, so your pipeline can respond to each one differently.

Get started with the Soda CLI

After installation, the example below assumes you have:

  • A Snowflake configuration file at ./snowflake.yml.

  • A local orders contract at contracts/orders.yml.

The onboarding step generates contracts in Soda Cloud; it does not create that local file.

# Authenticate (prompts for host, API key ID and secret)
sodacli auth login
# Connect, monitor, and generate contracts - all in one command
sodacli datasource onboard ./snowflake.yml --monitoring --contracts copilot
# Verify a contract - the same command your CI/CD runs
sodacli contract verify contracts/orders.yml
# Check results across all datasets
sodacli results list --status "failing"

In CI, use sodacli auth login --no-interactive, with the API key ID and secret supplied from your pipelineโ€™s secrets. Add --no-interactive to the verification command too.

The CLIโ€™s job ends at the signal your pipeline acts on. When your own software needs the results, Sodaโ€™s APIs take over.

Soda API: build data quality into your own software

Sodaโ€™s APIs let your applications, scripts and workflows work with Soda directly. There are three, and the one you use depends on what youโ€™re building:

  • Python: you run it. Your Python code runs a contract verification and gets the result back, so a script or orchestrator can decide what happens next.

  • REST: you ask Soda. Your app requests check results from Soda Cloud whenever it needs them, for example to show a datasetโ€™s health in a dashboard.

  • Webhooks: Soda tells you. You give Soda a URL, and when a check fails, Soda sends the alert there straight away, so your app or incident tool can react.

Diagram of Soda's three APIs: Python code verifies a contract and prints result.is_ok, an app calls GET /api/v1/checks for check results, and Soda Cloud sends check alerts to your webhook endpoint.

Get started with webhooks

You can connect Soda check alerts to a workflow your team already uses. Youโ€™ll need a Soda license and Organization Settings permissions.

  1. Choose where alerts should go. Prepare an endpoint that can receive Sodaโ€™s webhook payload, either in your own application or through an integration service that routes it to your incident management tool.

  2. Configure the webhook in Soda Cloud. Go to Organization Settings โ†’ Integrations โ†’ Add Integration, then choose Webhook. Add a name and the receiving URL. You can also add a secret to sign the payload and use simulated events to test your setup.

  3. Connect it to a notification rule. Select the Alert Notifications scope, then add the webhook as a recipient in an active notification rule.

Soda Cloud's Edit Notification Rule dialog applied to all checks, with a webhook named orders-alerts selected as the recipient for warn and fail alerts.

โ†— In the notification rule, pick your webhook as the recipient.

Once a check result triggers that rule, Soda sends the alert payload to your endpoint. Your integration decides what happens next, such as opening a ticket or notifying the responsible team, so they can respond through their existing workflow.

For configuration details and payload examples, see the Webhook API documentation.

With the APIs, you write the logic that acts on Sodaโ€™s results. MCP hands that work to an AI assistant.

Soda MCP: let an AI agent run the job

With Soda MCP, you can describe a data quality task to an AI assistant and let it select the available tools to carry it out. Thatโ€™s useful when you want to investigate failed checks or get help drafting contracts.

This connection uses the Model Context Protocol, or MCP, a standard for connecting assistants to external tools. Sodaโ€™s MCP server connects your assistant to Soda Cloud: sign in with your Soda Cloud account, or run the server locally if you need control over it.

What you can ask

Once youโ€™ve connected Sodaโ€™s MCP server to a compatible client such as Claude, Codex or Cursor, you can ask questions like these:

  • โ€œAre the orders and revenue tables behind my sales dashboard healthy right now?โ€

  • โ€œWhich checks on orders failed last night, and what changed in the code?โ€

  • โ€œDraft quality contracts for these five new tables.โ€

Animation of an AI assistant asked which checks on orders failed last night and what changed in the code. It calls Soda MCP and GitHub MCP, then lists two failed checks and the last commit to the orders model.

โ†— The assistant can combine Soda MCP with other MCP servers you connect, here GitHubโ€™s.

Agents can also use CLI commands or APIs. MCP provides a standard interface for exposing Soda tools to compatible assistants. Your client or orchestration system can use it for scheduled and background work.

When you connect an AI assistant, configure its approval settings for changes and scans. Tool responses become available to that client, so review its data-handling terms and the permissions of any other connected tools. Soda AIโ€™s data-sharing settings do not govern those other tools.

Your assistant can create or update contracts through MCP without using Contract Autopilot. Autopilot is a separate generation workflow, available in preview on request for datasets without a contract. Its contracts publish when their scan succeeds, so review them before using them to gate a pipeline.

Not everyone works in an MCP client. Stewards and data leaders who want plain-language answers can use Soda AIโ€™s chat interface inside Soda Cloud.

How to choose: a 30-second decision

Ask: What is driving the job, and how often?


CLI
API
MCP
Who drives
You, at the terminal or in CI
Your code; with webhooks, Soda
A person or AI agent, in plain language
How often
Every load, deploy or scheduled run
Whenever your software needs results, or Soda has an alert
When a question comes up, like which checks failed last night
AI judgment involved
None in verification; optional when drafting contracts (--contracts copilot)
None in verification; your code decides what to do with the results
The assistant selects tools; action approvals depend on client settings
Output
Pass or fail, plus an exit code
Result objects, JSON and webhook events
A plain-language answer
Best for
Data engineers, platform leads
Engineers, analytics engineers
Engineers already working in an AI assistant; stewards and data leaders can use Soda AIโ€™s chat in Soda Cloud

Before you get started

  • CLI and REST API: A Soda Cloud account and an API key.

  • Webhooks: A Soda license and configured notification rules for check alerts.

  • MCP: An MCP-compatible client and a Soda Cloud account. Connect remotely by signing in, with nothing to install and no API key, or run the server locally: install it from Sodaโ€™s private package index (Team and Enterprise plans) and authenticate with an API key. Basic MCP operations do not require Soda AI enablement.

Optional AI drafting: The CLIโ€™s --contracts copilot option uses Contract Copilot, part of Soda AI on the Team plan and up, enabled by an admin. Contract Autopilot requires separate enablement.

Whichever interface you choose, use credentials and permissions that match the work it needs to do. Decide which changes or scans require review, then build those controls into your scripts, applications, or deployment process.

How CLI, API, and MCP work together

All three interfaces can use the same data contract definition, so you donโ€™t keep a separate set of checks for each workflow. The contract is the agreement between a datasetโ€™s producers and consumers: the schema and checks that verify it. Its YAML definition can be version-controlled alongside your code.

Our AI for data quality guide explains how AI-assisted authoring and agentic workflows fit around those contracts.

Take an orders dataset. The CLI verifies its contract before promotion, with the pipeline configured to stop on a failed check or execution error.

If verification fails, an engineer can use MCP to investigate the published results. Meanwhile, an API integration can bring those results into the teamโ€™s dashboard, so everyone can see the datasetโ€™s status.

Diagram of one shared orders contract: data engineering verifies before publishing with the CLI and investigates failed checks with MCP; data governance inspects contract expectations with MCP and reviews results in a dashboard through the API.

To make this work, keep local and published contract versions aligned, and publish the verification results that other workflows need to retrieve from Soda Cloud.

Start with the interface that fits the job

Start with the task you need to complete:

For fully local contract verification, use Soda Core, Sodaโ€™s source-available data contracts engine.

Frequently Asked Questions

Soda AI now provides three interfaces for bringing data quality into your existing tools and workflows: CLI, API, and MCP. Each fits a different kind of work, whether youโ€™re running checks in a pipeline, building an integration, or asking an AI assistant to investigate a failure.

So which one do you start with? That depends on the task, and you can combine them as your needs grow.

Key takeaways

Soda provides three interfaces that can work with the same data contract definition.
CLI: automate checks inside a pipeline or schedule.
API: build data quality into your own software, dashboards, or workflows.
MCP: describe the job in plain language and let an AI assistant carry it out.

Soda CLI: automate checks in your pipeline

With the Soda CLI, you can run contract verification from your terminal, a scheduled job, or a pipeline. Each run returns check results and an exit code, so your pipeline has a signal it can act on.

That makes the CLI useful for several everyday engineering tasks:

  1. Stop promotion when verification fails. Run verification before promoting data, and configure the pipeline to stop on a non-zero exit code.

  2. Evaluate defined checks without model judgment. CLI verification applies the contractโ€™s checks. Results also depend on configuration and time-dependent conditions such as freshness.

  3. Catch problems before deployment. Verify a contract against a dev or staging database during a pull request to catch schema changes before they reach production.

  4. Treat data quality as code. Keep YAML contracts alongside your pipeline code, review changes in pull requests, and run verification in CI.

Diagram of the Soda CLI as a pipeline gate: the pipeline runs sodacli contract verify, the check scan runs on a Soda Runner, and exit code 1 comes back. A table maps exit codes 0 to 3 to publish, hold, retry or check credentials.

โ†— Four exit codes tell a failed check apart from a failed run or a login problem, so your pipeline can respond to each one differently.

Get started with the Soda CLI

After installation, the example below assumes you have:

  • A Snowflake configuration file at ./snowflake.yml.

  • A local orders contract at contracts/orders.yml.

The onboarding step generates contracts in Soda Cloud; it does not create that local file.

# Authenticate (prompts for host, API key ID and secret)
sodacli auth login
# Connect, monitor, and generate contracts - all in one command
sodacli datasource onboard ./snowflake.yml --monitoring --contracts copilot
# Verify a contract - the same command your CI/CD runs
sodacli contract verify contracts/orders.yml
# Check results across all datasets
sodacli results list --status "failing"

In CI, use sodacli auth login --no-interactive, with the API key ID and secret supplied from your pipelineโ€™s secrets. Add --no-interactive to the verification command too.

The CLIโ€™s job ends at the signal your pipeline acts on. When your own software needs the results, Sodaโ€™s APIs take over.

Soda API: build data quality into your own software

Sodaโ€™s APIs let your applications, scripts and workflows work with Soda directly. There are three, and the one you use depends on what youโ€™re building:

  • Python: you run it. Your Python code runs a contract verification and gets the result back, so a script or orchestrator can decide what happens next.

  • REST: you ask Soda. Your app requests check results from Soda Cloud whenever it needs them, for example to show a datasetโ€™s health in a dashboard.

  • Webhooks: Soda tells you. You give Soda a URL, and when a check fails, Soda sends the alert there straight away, so your app or incident tool can react.

Diagram of Soda's three APIs: Python code verifies a contract and prints result.is_ok, an app calls GET /api/v1/checks for check results, and Soda Cloud sends check alerts to your webhook endpoint.

Get started with webhooks

You can connect Soda check alerts to a workflow your team already uses. Youโ€™ll need a Soda license and Organization Settings permissions.

  1. Choose where alerts should go. Prepare an endpoint that can receive Sodaโ€™s webhook payload, either in your own application or through an integration service that routes it to your incident management tool.

  2. Configure the webhook in Soda Cloud. Go to Organization Settings โ†’ Integrations โ†’ Add Integration, then choose Webhook. Add a name and the receiving URL. You can also add a secret to sign the payload and use simulated events to test your setup.

  3. Connect it to a notification rule. Select the Alert Notifications scope, then add the webhook as a recipient in an active notification rule.

Soda Cloud's Edit Notification Rule dialog applied to all checks, with a webhook named orders-alerts selected as the recipient for warn and fail alerts.

โ†— In the notification rule, pick your webhook as the recipient.

Once a check result triggers that rule, Soda sends the alert payload to your endpoint. Your integration decides what happens next, such as opening a ticket or notifying the responsible team, so they can respond through their existing workflow.

For configuration details and payload examples, see the Webhook API documentation.

With the APIs, you write the logic that acts on Sodaโ€™s results. MCP hands that work to an AI assistant.

Soda MCP: let an AI agent run the job

With Soda MCP, you can describe a data quality task to an AI assistant and let it select the available tools to carry it out. Thatโ€™s useful when you want to investigate failed checks or get help drafting contracts.

This connection uses the Model Context Protocol, or MCP, a standard for connecting assistants to external tools. Sodaโ€™s MCP server connects your assistant to Soda Cloud: sign in with your Soda Cloud account, or run the server locally if you need control over it.

What you can ask

Once youโ€™ve connected Sodaโ€™s MCP server to a compatible client such as Claude, Codex or Cursor, you can ask questions like these:

  • โ€œAre the orders and revenue tables behind my sales dashboard healthy right now?โ€

  • โ€œWhich checks on orders failed last night, and what changed in the code?โ€

  • โ€œDraft quality contracts for these five new tables.โ€

Animation of an AI assistant asked which checks on orders failed last night and what changed in the code. It calls Soda MCP and GitHub MCP, then lists two failed checks and the last commit to the orders model.

โ†— The assistant can combine Soda MCP with other MCP servers you connect, here GitHubโ€™s.

Agents can also use CLI commands or APIs. MCP provides a standard interface for exposing Soda tools to compatible assistants. Your client or orchestration system can use it for scheduled and background work.

When you connect an AI assistant, configure its approval settings for changes and scans. Tool responses become available to that client, so review its data-handling terms and the permissions of any other connected tools. Soda AIโ€™s data-sharing settings do not govern those other tools.

Your assistant can create or update contracts through MCP without using Contract Autopilot. Autopilot is a separate generation workflow, available in preview on request for datasets without a contract. Its contracts publish when their scan succeeds, so review them before using them to gate a pipeline.

Not everyone works in an MCP client. Stewards and data leaders who want plain-language answers can use Soda AIโ€™s chat interface inside Soda Cloud.

How to choose: a 30-second decision

Ask: What is driving the job, and how often?


CLI
API
MCP
Who drives
You, at the terminal or in CI
Your code; with webhooks, Soda
A person or AI agent, in plain language
How often
Every load, deploy or scheduled run
Whenever your software needs results, or Soda has an alert
When a question comes up, like which checks failed last night
AI judgment involved
None in verification; optional when drafting contracts (--contracts copilot)
None in verification; your code decides what to do with the results
The assistant selects tools; action approvals depend on client settings
Output
Pass or fail, plus an exit code
Result objects, JSON and webhook events
A plain-language answer
Best for
Data engineers, platform leads
Engineers, analytics engineers
Engineers already working in an AI assistant; stewards and data leaders can use Soda AIโ€™s chat in Soda Cloud

Before you get started

  • CLI and REST API: A Soda Cloud account and an API key.

  • Webhooks: A Soda license and configured notification rules for check alerts.

  • MCP: An MCP-compatible client and a Soda Cloud account. Connect remotely by signing in, with nothing to install and no API key, or run the server locally: install it from Sodaโ€™s private package index (Team and Enterprise plans) and authenticate with an API key. Basic MCP operations do not require Soda AI enablement.

Optional AI drafting: The CLIโ€™s --contracts copilot option uses Contract Copilot, part of Soda AI on the Team plan and up, enabled by an admin. Contract Autopilot requires separate enablement.

Whichever interface you choose, use credentials and permissions that match the work it needs to do. Decide which changes or scans require review, then build those controls into your scripts, applications, or deployment process.

How CLI, API, and MCP work together

All three interfaces can use the same data contract definition, so you donโ€™t keep a separate set of checks for each workflow. The contract is the agreement between a datasetโ€™s producers and consumers: the schema and checks that verify it. Its YAML definition can be version-controlled alongside your code.

Our AI for data quality guide explains how AI-assisted authoring and agentic workflows fit around those contracts.

Take an orders dataset. The CLI verifies its contract before promotion, with the pipeline configured to stop on a failed check or execution error.

If verification fails, an engineer can use MCP to investigate the published results. Meanwhile, an API integration can bring those results into the teamโ€™s dashboard, so everyone can see the datasetโ€™s status.

Diagram of one shared orders contract: data engineering verifies before publishing with the CLI and investigates failed checks with MCP; data governance inspects contract expectations with MCP and reviews results in a dashboard through the API.

To make this work, keep local and published contract versions aligned, and publish the verification results that other workflows need to retrieve from Soda Cloud.

Start with the interface that fits the job

Start with the task you need to complete:

For fully local contract verification, use Soda Core, Sodaโ€™s source-available data contracts engine.

Frequently Asked Questions

Soda AI now provides three interfaces for bringing data quality into your existing tools and workflows: CLI, API, and MCP. Each fits a different kind of work, whether youโ€™re running checks in a pipeline, building an integration, or asking an AI assistant to investigate a failure.

So which one do you start with? That depends on the task, and you can combine them as your needs grow.

Key takeaways

Soda provides three interfaces that can work with the same data contract definition.
CLI: automate checks inside a pipeline or schedule.
API: build data quality into your own software, dashboards, or workflows.
MCP: describe the job in plain language and let an AI assistant carry it out.

Soda CLI: automate checks in your pipeline

With the Soda CLI, you can run contract verification from your terminal, a scheduled job, or a pipeline. Each run returns check results and an exit code, so your pipeline has a signal it can act on.

That makes the CLI useful for several everyday engineering tasks:

  1. Stop promotion when verification fails. Run verification before promoting data, and configure the pipeline to stop on a non-zero exit code.

  2. Evaluate defined checks without model judgment. CLI verification applies the contractโ€™s checks. Results also depend on configuration and time-dependent conditions such as freshness.

  3. Catch problems before deployment. Verify a contract against a dev or staging database during a pull request to catch schema changes before they reach production.

  4. Treat data quality as code. Keep YAML contracts alongside your pipeline code, review changes in pull requests, and run verification in CI.

Diagram of the Soda CLI as a pipeline gate: the pipeline runs sodacli contract verify, the check scan runs on a Soda Runner, and exit code 1 comes back. A table maps exit codes 0 to 3 to publish, hold, retry or check credentials.

โ†— Four exit codes tell a failed check apart from a failed run or a login problem, so your pipeline can respond to each one differently.

Get started with the Soda CLI

After installation, the example below assumes you have:

  • A Snowflake configuration file at ./snowflake.yml.

  • A local orders contract at contracts/orders.yml.

The onboarding step generates contracts in Soda Cloud; it does not create that local file.

# Authenticate (prompts for host, API key ID and secret)
sodacli auth login
# Connect, monitor, and generate contracts - all in one command
sodacli datasource onboard ./snowflake.yml --monitoring --contracts copilot
# Verify a contract - the same command your CI/CD runs
sodacli contract verify contracts/orders.yml
# Check results across all datasets
sodacli results list --status "failing"

In CI, use sodacli auth login --no-interactive, with the API key ID and secret supplied from your pipelineโ€™s secrets. Add --no-interactive to the verification command too.

The CLIโ€™s job ends at the signal your pipeline acts on. When your own software needs the results, Sodaโ€™s APIs take over.

Soda API: build data quality into your own software

Sodaโ€™s APIs let your applications, scripts and workflows work with Soda directly. There are three, and the one you use depends on what youโ€™re building:

  • Python: you run it. Your Python code runs a contract verification and gets the result back, so a script or orchestrator can decide what happens next.

  • REST: you ask Soda. Your app requests check results from Soda Cloud whenever it needs them, for example to show a datasetโ€™s health in a dashboard.

  • Webhooks: Soda tells you. You give Soda a URL, and when a check fails, Soda sends the alert there straight away, so your app or incident tool can react.

Diagram of Soda's three APIs: Python code verifies a contract and prints result.is_ok, an app calls GET /api/v1/checks for check results, and Soda Cloud sends check alerts to your webhook endpoint.

Get started with webhooks

You can connect Soda check alerts to a workflow your team already uses. Youโ€™ll need a Soda license and Organization Settings permissions.

  1. Choose where alerts should go. Prepare an endpoint that can receive Sodaโ€™s webhook payload, either in your own application or through an integration service that routes it to your incident management tool.

  2. Configure the webhook in Soda Cloud. Go to Organization Settings โ†’ Integrations โ†’ Add Integration, then choose Webhook. Add a name and the receiving URL. You can also add a secret to sign the payload and use simulated events to test your setup.

  3. Connect it to a notification rule. Select the Alert Notifications scope, then add the webhook as a recipient in an active notification rule.

Soda Cloud's Edit Notification Rule dialog applied to all checks, with a webhook named orders-alerts selected as the recipient for warn and fail alerts.

โ†— In the notification rule, pick your webhook as the recipient.

Once a check result triggers that rule, Soda sends the alert payload to your endpoint. Your integration decides what happens next, such as opening a ticket or notifying the responsible team, so they can respond through their existing workflow.

For configuration details and payload examples, see the Webhook API documentation.

With the APIs, you write the logic that acts on Sodaโ€™s results. MCP hands that work to an AI assistant.

Soda MCP: let an AI agent run the job

With Soda MCP, you can describe a data quality task to an AI assistant and let it select the available tools to carry it out. Thatโ€™s useful when you want to investigate failed checks or get help drafting contracts.

This connection uses the Model Context Protocol, or MCP, a standard for connecting assistants to external tools. Sodaโ€™s MCP server connects your assistant to Soda Cloud: sign in with your Soda Cloud account, or run the server locally if you need control over it.

What you can ask

Once youโ€™ve connected Sodaโ€™s MCP server to a compatible client such as Claude, Codex or Cursor, you can ask questions like these:

  • โ€œAre the orders and revenue tables behind my sales dashboard healthy right now?โ€

  • โ€œWhich checks on orders failed last night, and what changed in the code?โ€

  • โ€œDraft quality contracts for these five new tables.โ€

Animation of an AI assistant asked which checks on orders failed last night and what changed in the code. It calls Soda MCP and GitHub MCP, then lists two failed checks and the last commit to the orders model.

โ†— The assistant can combine Soda MCP with other MCP servers you connect, here GitHubโ€™s.

Agents can also use CLI commands or APIs. MCP provides a standard interface for exposing Soda tools to compatible assistants. Your client or orchestration system can use it for scheduled and background work.

When you connect an AI assistant, configure its approval settings for changes and scans. Tool responses become available to that client, so review its data-handling terms and the permissions of any other connected tools. Soda AIโ€™s data-sharing settings do not govern those other tools.

Your assistant can create or update contracts through MCP without using Contract Autopilot. Autopilot is a separate generation workflow, available in preview on request for datasets without a contract. Its contracts publish when their scan succeeds, so review them before using them to gate a pipeline.

Not everyone works in an MCP client. Stewards and data leaders who want plain-language answers can use Soda AIโ€™s chat interface inside Soda Cloud.

How to choose: a 30-second decision

Ask: What is driving the job, and how often?


CLI
API
MCP
Who drives
You, at the terminal or in CI
Your code; with webhooks, Soda
A person or AI agent, in plain language
How often
Every load, deploy or scheduled run
Whenever your software needs results, or Soda has an alert
When a question comes up, like which checks failed last night
AI judgment involved
None in verification; optional when drafting contracts (--contracts copilot)
None in verification; your code decides what to do with the results
The assistant selects tools; action approvals depend on client settings
Output
Pass or fail, plus an exit code
Result objects, JSON and webhook events
A plain-language answer
Best for
Data engineers, platform leads
Engineers, analytics engineers
Engineers already working in an AI assistant; stewards and data leaders can use Soda AIโ€™s chat in Soda Cloud

Before you get started

  • CLI and REST API: A Soda Cloud account and an API key.

  • Webhooks: A Soda license and configured notification rules for check alerts.

  • MCP: An MCP-compatible client and a Soda Cloud account. Connect remotely by signing in, with nothing to install and no API key, or run the server locally: install it from Sodaโ€™s private package index (Team and Enterprise plans) and authenticate with an API key. Basic MCP operations do not require Soda AI enablement.

Optional AI drafting: The CLIโ€™s --contracts copilot option uses Contract Copilot, part of Soda AI on the Team plan and up, enabled by an admin. Contract Autopilot requires separate enablement.

Whichever interface you choose, use credentials and permissions that match the work it needs to do. Decide which changes or scans require review, then build those controls into your scripts, applications, or deployment process.

How CLI, API, and MCP work together

All three interfaces can use the same data contract definition, so you donโ€™t keep a separate set of checks for each workflow. The contract is the agreement between a datasetโ€™s producers and consumers: the schema and checks that verify it. Its YAML definition can be version-controlled alongside your code.

Our AI for data quality guide explains how AI-assisted authoring and agentic workflows fit around those contracts.

Take an orders dataset. The CLI verifies its contract before promotion, with the pipeline configured to stop on a failed check or execution error.

If verification fails, an engineer can use MCP to investigate the published results. Meanwhile, an API integration can bring those results into the teamโ€™s dashboard, so everyone can see the datasetโ€™s status.

Diagram of one shared orders contract: data engineering verifies before publishing with the CLI and investigates failed checks with MCP; data governance inspects contract expectations with MCP and reviews results in a dashboard through the API.

To make this work, keep local and published contract versions aligned, and publish the verification results that other workflows need to retrieve from Soda Cloud.

Start with the interface that fits the job

Start with the task you need to complete:

For fully local contract verification, use Soda Core, Sodaโ€™s source-available data contracts engine.

Frequently Asked Questions

When should I use the Soda CLI vs the API?

Use the CLI to run defined checks on a schedule or in CI. Use the API when Soda needs to integrate with your own software, a dashboard, or an automated workflow.

What is the Soda MCP server?

soda-mcp connects compatible AI assistants to Soda Cloud tools for inspecting and managing datasets, checks, contracts, and other quality resources. Connect to it remotely by signing in with your Soda Cloud account, with no server to install and no API key, or run it locally with an API key (Team and Enterprise plans) if you need control over the server. Soda MCP is available to Soda v4 users.

Does Soda AI read my raw data?

Not by default. Soda AI works from schemas, metadata and profiling metrics. Row-level values reach its model provider only if an admin turns on Send row-level data to Soda for Contract Autopilot, which shares up to 100 rows, or if you attach a file to a chat message. With an external assistant connected through MCP, tool responses become available to that client, so review its data-handling terms separately.

Trusted by the worldโ€™s leading enterprises

Real stories from companies using Soda to keep their data reliable, accurate, and ready for action.

At the end of the day, we donโ€™t want to be in there managing the checks, updating the checks, adding the checks. We just want to go and observe whatโ€™s happening, and thatโ€™s what Soda is enabling right now.

Sid Srivastava

Director of Data Governance, Quality and MLOps

Investing in data quality is key for cross-functional teams to make accurate, complete decisions with fewer risks and greater returns, using initiatives such as product thinking, data governance, and self-service platforms.

Mario Konschake

Director of Product-Data Platform

Soda has integrated seamlessly into our technology stack and given us the confidence to find, analyze, implement, and resolve data issues through a simple self-serve capability.

Sutaraj Dutta

Data Engineering Manager

Our goal was to deliver high-quality datasets in near real-time, ensuring dashboards reflect live data as it flows in. But beyond solving technical challenges, we wanted to spark a cultural shift - empowering the entire organization to make decisions grounded in accurate, timely data.

Gu Xie

Head of Data Engineering

4.4 of 5

Your data has problems.
Now they fix themselves.

Automated data quality, remediation, and management.

One platform, agents that do the work, you approve.

Trusted by

Trusted by the worldโ€™s leading enterprises

Real stories from companies using Soda to keep their data reliable, accurate, and ready for action.

At the end of the day, we donโ€™t want to be in there managing the checks, updating the checks, adding the checks. We just want to go and observe whatโ€™s happening, and thatโ€™s what Soda is enabling right now.

Sid Srivastava

Director of Data Governance, Quality and MLOps

Investing in data quality is key for cross-functional teams to make accurate, complete decisions with fewer risks and greater returns, using initiatives such as product thinking, data governance, and self-service platforms.

Mario Konschake

Director of Product-Data Platform

Soda has integrated seamlessly into our technology stack and given us the confidence to find, analyze, implement, and resolve data issues through a simple self-serve capability.

Sutaraj Dutta

Data Engineering Manager

Our goal was to deliver high-quality datasets in near real-time, ensuring dashboards reflect live data as it flows in. But beyond solving technical challenges, we wanted to spark a cultural shift - empowering the entire organization to make decisions grounded in accurate, timely data.

Gu Xie

Head of Data Engineering

4.4 of 5

Your data has problems.
Now they fix themselves.

Automated data quality, remediation, and management.

One platform, agents that do the work, you approve.

Trusted by

Trusted by the worldโ€™s leading enterprises

Real stories from companies using Soda to keep their data reliable, accurate, and ready for action.

At the end of the day, we donโ€™t want to be in there managing the checks, updating the checks, adding the checks. We just want to go and observe whatโ€™s happening, and thatโ€™s what Soda is enabling right now.

Sid Srivastava

Director of Data Governance, Quality and MLOps

Investing in data quality is key for cross-functional teams to make accurate, complete decisions with fewer risks and greater returns, using initiatives such as product thinking, data governance, and self-service platforms.

Mario Konschake

Director of Product-Data Platform

Soda has integrated seamlessly into our technology stack and given us the confidence to find, analyze, implement, and resolve data issues through a simple self-serve capability.

Sutaraj Dutta

Data Engineering Manager

Our goal was to deliver high-quality datasets in near real-time, ensuring dashboards reflect live data as it flows in. But beyond solving technical challenges, we wanted to spark a cultural shift - empowering the entire organization to make decisions grounded in accurate, timely data.

Gu Xie

Head of Data Engineering

4.4 of 5

Your data has problems.
Now they fix themselves.

Automated data quality, remediation, and management.

One platform, agents that do the work, you approve.

Trusted by