MCP, CDC… these days it seems as if there’s a new acronym emerging every five minutes.
So how do we break down these terms, and what do they mean for enterprise data architectures?
Start with MCP. Model Context Protocol (MCP) is an open protocol that standardizes how AI applications discover and interact with external tools and data sources.
It has quickly become the go-to answer to a hard question: how do you connect AI agents to enterprise systems?
MCP is often a good answer. But connecting an agent to a database doesn’t make the data current, and it doesn’t protect the system of record from the queries that follow. A standard interface to stale or unprotected data is still stale, unprotected data.
That’s where Change Data Capture (CDC), our second-favorite acronym, comes in. CDC is a method of continuously capturing database changes, typically by reading transaction logs, and delivering them to downstream systems. It keeps a copy of operational data current outside production, so agents can work with fresh records without querying the source directly.
MCP and CDC solve different halves of the same problem. Below, you’ll see what each does on its own, how a single database change travels from a production system to an agent’s response, where governance belongs along that path, and when you don’t need both.
Key Takeaways
- MCP standardizes how agents interact with connected systems, but it doesn’t control how fresh the underlying data is.
- CDC keeps downstream data current, so agents can query an up-to-date copy without repeatedly hitting production databases.
- In-stream processing can filter, mask, and enrich data before delivery, while access controls govern what agents can retrieve.
- MCP and CDC complement each other, but not every agent workload needs both.
Why AI Agents Shouldn’t Query Production Databases Directly
Giving AI agents direct access to production databases creates performance and security risks that grow with every agent you deploy.
Agents generate unpredictable queries, compete with customer-facing applications for database resources, and often hold credentials that reach far more data than any single task requires.
- Unpredictable query patterns. A human analyst runs a query, reads the result, and thinks. But a non-deterministic agent may issue several queries to complete one task, retry when a result looks incomplete, and run ad hoc filters and joins that nobody tuned for. Multiply that across thousands of conversations, and query volume becomes hard to forecast.
- Competition for resources. Production databases are sized for the applications that run the business: order processing, payments, and inventory updates. Agent queries draw on the same CPU, memory, I/O, and connection pools, so a spike in agent traffic can slow the transactions that matter most.
- Broader exposure of sensitive data. Direct access means database credentials. Unless they’re tightly scoped, an agent that only needs stock levels can also reach customer records, payment details, and other fields it should never see. Every additional agent with those credentials widens the exposure.
Direct access isn’t always the wrong choice. A low-volume internal agent querying a read replica with tightly scoped credentials may be perfectly reasonable. And CDC doesn’t remove source-system overhead entirely: reading transaction logs still touches the source, though generally with far less impact than repeated queries against production tables.
For production agent workloads at scale, a more resilient pattern separates where data changes from where agents read it. CDC maintains a downstream copy designed for agent access, and an MCP server exposes the appropriate data and tools from that copy. Think of it as stocking the shelves rather than sending every customer into the warehouse.
What Is Model Context Protocol (MCP)?
Model Context Protocol (MCP) is an open standard that defines how AI applications connect to external tools and data sources. Instead of building a custom integration for every system an agent needs, you expose each system through an MCP server once, and any MCP-compatible application can discover and use it.
Anthropic first introduced MCP in November 2024, and it has since become a common way to connect agents to enterprise systems. For a deeper dive, read our eBook on what MCP means for modern data architectures.
Think of it as a standard menu format. Every restaurant cooks something different, but if every menu follows the same layout, you know how to order anywhere.
How MCP Works
MCP has three components:
- Host. The AI application that coordinates interactions, such as a chat assistant, a coding environment, or an agent runtime. It manages one or more clients and decides what reaches the model.
- Client. A component inside the host that maintains a dedicated connection to a single MCP server.
- Server. A service that exposes tools, data, and prompts from an external system, such as a database, a file store, or a SaaS application.
Every message between client and server uses JSON-RPC 2.0, a lightweight format for structured requests and responses encoded as JSON. Each request names a method, carries its parameters, and receives a matching response. That shared format means every MCP server speaks the same language, whatever sits behind it.
Servers can offer three types of capabilities:
- Resources. Data and context the application can read, such as files, database records, or API responses.
- Tools. Functions the model can invoke to retrieve information or take action, such as checking inventory or opening a support ticket.
- Prompts. Reusable templates that structure specific interactions, such as a standard troubleshooting workflow.
Discovery is what sets MCP apart from a traditional integration. When a client connects, it negotiates capabilities with the server, then asks what’s available. The server responds with each tool, resource, and prompt, along with descriptions and input schemas that tell the model how to use them.
The agent learns what it can do at runtime instead of relying on hardcoded logic for every system. For the full details, see the official MCP specification.
What MCP Solves for Agent Data Access
- A standard interface. One protocol works across databases, applications, and services, rather than a bespoke connector for every combination of system and model.
- Runtime discovery. Agents find available tools and resources as they connect, with descriptions that tell the model what each one does.
- A place for access controls. MCP servers, and the systems behind them, can authenticate clients and limit what each client can see or do. The specification defines an authorization framework for remote connections, but enforcement is up to each implementation.
- Composability. One application can connect to multiple MCP servers, each covering a different domain: inventory from one, order history from another, and ticketing from a third.
What MCP Doesn’t Solve
MCP is a protocol for access. It says nothing about the state of the data behind the server.
- Freshness. If an MCP server sits on top of a warehouse that refreshes nightly, the agent gets last night’s numbers. MCP has no say in how recently the connected system was updated.
- Database load. An MCP server that queries a production database directly passes every agent request straight through. The interface is standardized, but the load is the same.
- Data protection. MCP doesn’t mask sensitive fields. If a server returns customer records with payment details, the agent receives them. Protection depends on how data is processed upstream and how the server is configured.
Freshness, load, and protection all come down to how data reaches the system behind the MCP server. That’s where CDC comes in.
What Is Change Data Capture (CDC)?
Change Data Capture (CDC) is a method of identifying changes made to a database, such as inserts, updates, and deletes, and delivering them to downstream systems as they happen.
Rather than copying entire tables on a schedule, CDC moves only what changed, so the target stays in step with the source.
If MCP is how an agent asks the question, CDC is how the answer stays true.
How Log-Based CDC Works
Every transactional database records its changes in a log, primarily so it can recover from failures and support replication. PostgreSQL writes to its write-ahead log (WAL), MySQL to its binary log (binlog), and Oracle to its redo logs.
Log-based CDC reads these logs and turns each committed change into a change event. Depending on configuration, an event can carry the operation type, the row’s before and after values, a timestamp, a transaction ID, and source metadata such as the schema and table name.
The main alternative is query-based CDC, or polling, which repeatedly queries source tables for rows with a newer timestamp or version number. It’s simpler to set up, but every poll adds query load, intermediate updates between polls can slip through, and deleted rows are hard to detect because there’s nothing left to query. Log-based CDC reads changes the database has already recorded, so it generally places far less overhead on the source and captures deletes as reliably as inserts. For a full rundown of capture methods, see our guide to change data capture and how it works.
What CDC Gives an Agent
- Fresher data. Downstream systems update continuously as changes occur, rather than waiting for the next batch refresh. The agent reads data that reflects recent activity, not last night’s snapshot.
- Change history. When you retain captured events downstream, they form a record of how data changed over time. That history can support trend analysis or explain how a record reached its current state.
- Event-driven workflows. Every change is an event that downstream systems can act on. A stock level dropping below a threshold, or an order status changing, can trigger processing or an agent workflow without waiting for anyone to ask.
What CDC Doesn’t Solve
CDC moves data. It doesn’t decide who uses it or how.
- No agent interface. CDC delivers changes to a database, warehouse, search index, or stream, but it doesn’t define how an agent discovers or requests that data.
- No access policy. CDC doesn’t determine which agents can read specific fields or perform particular actions. Those controls live in the target system and in whatever sits in front of it.
That’s the gap MCP fills. CDC keeps the downstream system current, and an MCP server configured on top of that system gives agents a standard, controlled way to use it.
How MCP and CDC Work Together to Give Agents Live Database Data
MCP and CDC work together by splitting the job in two. CDC captures changes from the source database, in-stream processing filters, masks, and enriches them, and the results land in a store built for agent access. An MCP server then gives agents a standard, controlled way to use that store. Agent queries hit the downstream copy, not production.
CDC captures and processes database changes before delivering them downstream. An MCP server gives agents controlled access to the data or tools exposed by that system.
CDC doesn’t expose data through MCP on its own. The MCP server needs its own connection to the downstream system, and its own configuration for what it exposes and to whom.
Capture Changes at the Source
CDC reads the source database’s transaction log and streams each committed change downstream as it happens. That separates two very different workloads: the operational database keeps serving the applications that run the business, while agents read from a copy shaped for them.
CDC still interacts with the source. It has to read the log, and it usually needs an initial load to seed the target. But it avoids the repeated full-table queries that polling, or direct agent access, would generate.
Govern and Shape Data in Motion
Between capture and delivery, streaming transformations shape the data before it lands:
- Filter. Drop the tables, columns, and records agents don’t need. An inventory agent needs stock levels by store, not supplier contracts.
- Mask. Hash, tokenize, or redact sensitive fields, such as customer names, email addresses, and payment details, before they leave the stream.
- Enrich. Join change events with reference data, so a raw quantity update arrives with the product name, store location, and availability status attached.
Source schemas also change over time. A column gets added, a data type gets widened. A well-built pipeline handles that schema evolution without breaking, and keeps source and target consistent, so agents aren’t reasoning over partial or mismatched records.
Governed agent access needs two layers of control. Upstream protection decides what data reaches the agent-facing store at all. Downstream access controls decide which agents can retrieve what from that store. Neither replaces the other, but protecting sensitive data before it lands is the safer default. Data that never reaches the store can’t be exposed by a misconfigured server, an overly broad permission, or a prompt that talks an agent into oversharing.
Deliver to the Right Agent-Facing Store
Where the data lands should match how agents will use it.
| Destination | Best for | Example agent question |
|---|---|---|
| Operational database | Current-state lookups | Is this item in stock at the downtown store? |
| Search index | Search and retrieval across records | Which recent orders mention a damaged item? |
| Warehouse or lakehouse | Analytical queries and historical context | How have returns trended this quarter? |
| Streaming topic | Event-driven workflows triggered by changes | Has stock dropped below the reorder point? |
Many enterprises deliver the same change stream to more than one destination, so each agent workload reads from the store that suits it.
Expose Data Through MCP With Scoped Permissions
An MCP server sits in front of the downstream store and defines what agents can see and do. Rather than exposing the whole database, it can offer a narrow set of resources or tools, such as a check_inventory tool that takes a product ID and a store ID and returns a quantity.
In production, three controls are essential:
- Authentication. Every client proves who it is before the server responds.
- Least-privilege permissions. Each agent gets access only to the tools and data its task requires, ideally through a dedicated identity.
- Audit logging. Every request and response is recorded, so you can trace what an agent asked for and what it received.
None of this happens by default. MCP defines how clients and servers communicate, not a universal permission model, so these controls have to be configured in the server and the systems behind it.
End-to-End Example
Here’s a real-life scenario to illustrate how the pieces connect for a national retailer:
- A shopper buys the last pair of trail running shoes in a given size at the retailer’s downtown store.
- The point-of-sale system writes the sale, and the inventory database records the change in its transaction log.
- CDC captures the update from the log.
- The stream drops fields the agent doesn’t need, masks the customer details attached to the sale, and enriches the record with store and product information.
- The downstream inventory store receives the updated quantity: zero.
- Shortly after, another customer asks the retailer’s support agent whether those shoes are available downtown. The agent calls an inventory tool through an MCP server connected to the downstream store.
- The agent answers that the size is sold out at that location and points the customer to a nearby store that has it, without querying the production database.
The same change can also start work on its own. If the sale pushes the store’s stock below its reorder point, downstream stream processing can flag the event and start an agent workflow that drafts a transfer request from the nearest distribution center. CDC supplies the event. The processing logic and workflow configuration decide what happens next.
When You Don’t Need Both
MCP and CDC aren’t a requirement for every agent workload.
- Prototypes. A single agent calling an existing API may need neither. Prove the use case before building the infrastructure around it.
- Infrequently changing data. Product specifications, policy documents, or store hours may not justify continuous replication. A periodic load is often enough.
- Historical analysis. When the question is about last quarter rather than the last five minutes, querying the warehouse directly may be the better fit.
In production, most enterprises combine approaches by workload: CDC and MCP for operational, agent-facing data, and simpler patterns where freshness matters less.
Where Striim Fits: CDC, In-Stream Governance, and MCP
Striim sits on the data path described above. It captures changes from operational databases, processes and governs them in motion, and delivers them to the systems agents use. We organize that work around the four C’s of agent-ready data: Current, Consistent, Consumable, and Contextual.
Current: Capture and Deliver Changes Continuously
Striim uses log-based CDC to capture changes from enterprise databases, including Oracle, SQL Server, PostgreSQL, MySQL, and MongoDB, and delivers them continuously to platforms such as Snowflake, BigQuery, Databricks, ClickHouse, Microsoft Fabric, and Amazon Redshift.
Fast Snapshot Load accelerates initial loads and backfills by up to 5x, and transaction intelligence flags long-running or high-volume Oracle and SQL Server transactions before they slow a pipeline down.
Consistent: Keep Data Reliable Across Systems
Schema evolution helps pipelines adapt as source tables change, so a new column doesn’t break delivery.
For source-to-target verification, Validata, Striim’s separate data validation and reconciliation product, flags mismatches. It works with any data integration platform and isn’t automatically included in Striim pipelines. That matters, because an agent acting on a half-replicated order or a drifted inventory count makes confident decisions on bad data.
Consumable: Transform Data in Motion
Streaming SQL lets you filter, transform, and enrich data as it moves, so records arrive shaped for the target.
For event-driven architectures, SmartMap for Kafka maps source tables to individual topics that downstream applications and agent workflows can subscribe to.
Contextual: Govern Data Before It Reaches Agents
Context turns a raw update into an answer. Joined in the stream with store and product details, a quantity of zero becomes “sold out downtown, in stock across town.”
Governance is part of that context: PII Deep Scan detects and masks sensitive data before delivery, so you rely less on every downstream MCP server to handle it correctly.
Together, that’s what we mean by agent-ready data: current, consistent, consumable, and contextual.
How Striim MCP Server Fits Into the Architecture
Striim MCP Server has a different job. Introduced in Striim 5.4.2, it’s embedded in the platform, so there’s no separate service to deploy or operate. Compatible AI tools and agents can use it to work with Striim itself:
- Inspect pipeline health. Check the status of applications and spot issues early.
- Query live streams. Look at the data moving through supported streams.
- Create and deploy applications. Build and launch pipelines.
- Monitor the cluster. Keep track of the health of the Striim environment.
Across those tasks, it exposes 50 tools for read and write operations. Because some of those tools can change pipelines, treat it like any production access path. Striim MCP Server supports authentication, authorization, and audit logging, as described in the Striim MCP Server documentation. Give each agent its own dedicated, least-privilege Striim user, so its permissions match its job and its actions are traceable.
Striim MCP Server redacts secrets, such as credentials and keys, from its responses. It doesn’t mask PII. Streams that carry sensitive data shouldn’t be readable by agent users, and any stream you do expose to them should already be protected upstream.
Keep the scope clear: Striim MCP Server lets agents operate Striim and inspect supported live streams. It isn’t a general-purpose interface for querying business records in downstream destinations. For that, agents use an MCP server connected to the agent-facing store, as described earlier.
If you’d rather build and troubleshoot pipelines conversationally, Clara, Striim’s AI assistant, does that from inside the platform. See how it works in our guide to building a CDC pipeline with AI.
To see how Striim delivers current, governed data to the systems your agents rely on, book a demo.
FAQs
What’s the Difference Between MCP and an API?
An API is the interface a specific system exposes, with its own endpoints, authentication, and data formats. MCP is a protocol that gives AI applications one consistent way to discover and call many systems.
In practice, an MCP server often wraps an existing API and presents it as tools and resources an agent can find at runtime. Connecting three agents to five systems through custom code can mean 15 separate integrations. With MCP, each system needs one server that any compatible agent can use.
What’s the Difference Between MCP and RAG?
Retrieval-augmented generation (RAG) is a technique: before the model answers, the application retrieves relevant content, often from a vector database or search index, and adds it to the prompt. The approach was introduced in a 2020 paper by researchers at Facebook AI Research and University College London. MCP, by contrast, is a protocol for connecting AI applications to external tools and data.
The two work well together. An MCP server can expose a retrieval tool, so an agent runs a RAG lookup through MCP, and CDC can keep the underlying index current so retrieved context reflects recent changes.
Can AI Agents Write Data Back to a Database Through MCP?
Yes. MCP tools can take actions as well as read data, so a server can expose a tool that reserves an item or updates an order status. The question is the controls around it.
The MCP specification recommends keeping a human in the loop who can deny tool invocations, and servers can label tools with hints that signal whether they’re read-only or destructive. Keep write tools narrow, scope each agent’s permissions to its task, log every call, and route writes through the application’s existing business logic rather than raw database access.
Does CDC Require Changes to the Source Database?
Usually some configuration, but rarely changes to applications or schemas. Log-based CDC depends on the database’s own logs, and those often need to be set up for it.
PostgreSQL needs wal_level set to logical for logical decoding, MySQL typically needs row-based binary logging, Oracle typically needs supplemental logging enabled, and SQL Server commonly uses its built-in CDC feature, enabled per database and table. You’ll also need a database user with the right privileges. These are generally one-time settings agreed with your database team, and the applications writing to the database don’t change.
Do You Need Kafka to Use CDC for AI Agents?
No. Kafka is a common destination for change events, especially when many consumers need the same stream, but it isn’t a prerequisite for CDC.
Many CDC platforms, including Striim, read from source logs and deliver directly to targets such as cloud warehouses and operational databases, or to Kafka when you want it. Add Kafka when you need durable, replayable event streams shared across many applications or agent workflows. Skip it when a single pipeline into an agent-facing store does the job.





