![]() |
VOOZH | about |
Sourcegraph Amp is a modern AI agent environment designed for building intelligent, production-ready assistants capable of stateful reasoning, automatic context management, and native MCP (Model Context Protocol) integration. When combined with CData Connect AI, you can leverage Amp to create agents that interact with your DB2 data in real time using natural language or SQL-based queries.
CData Connect AI provides a secure, cloud-to-cloud interface for accessing DB2 data. Through the Connect AI Remote MCP Server, Amp connects directly to DB2, enabling live data queries and operations without replication. With optimized pushdown capabilities, CData Connect AI executes SQL operations including filters, aggregations, and joins directly in DB2 for fast, real-time performance.
In this article, we demonstrate how to configure the Amp agent to conversationally explore your DB2 data using natural language or SQL. With Connect AI, you can easily build agents that have secure, live access to DB2 along with hundreds of other enterprise data sources.
Connectivity to DB2 from Amp is made possible through CData Connect AI Remote MCP. To interact with DB2 data from Amp, we start by creating and configuring a DB2 connection in CData Connect AI.
Set the following properties to connect to DB2:
You will also need to install the corresponding DB2 driver:
On Windows, installing the IBM Data Server Provider is sufficient, as the installation registers it in the machine.config.
In the Java version, place the IBM Data Server Driver JAR in the www\WEB-INF\lib\ folder for this application.
Amp communicates with Connect AI through the hosted MCP endpoint:
https://mcp.cloud.cdata.com/mcp
This endpoint provides secure, cloud-to-cloud communication between Amp and your Connect AI workspace.
To authenticate Amp with Connect AI, generate your Base64-encoded credentials. For example, in PowerShell:
{Convert}::ToBase64String{(Text.Encoding)}::ASCII.GetBytes("[email protected]:yourPAT")
Replace [email protected] with your Connect AI email and yourPAT with your Personal Access Token.
Once you have your Base64 string, register the CData Connect AI MCP server with Amp using the following command:
amp mcp add cdata-connect-ai -- npx -y mcp-remote@latest https://mcp.cloud.cdata.com/mcp --header "Authorization: Basic "
This adds your Connect AI configuration to Amp's settings file, enabling communication with CData Connect AI.
Start a new Amp session to begin interacting with your data:
amp thread newπ Starting a new Amp thread
Connect to the new thread using:
amp. π Opening interactive chat in Amp
Inside the Amp shell, check your registered MCP servers:
list mcp. π Listing MCP servers
Confirm that your connected DB2 data appears as a catalog by running
getCatalogs. π Verifying connected data sources
With your Amp application configured and connected to CData Connect AI, you can now build sophisticated agents that interact with your DB2 data using natural language. The MCP integration provides your agents with powerful data access capabilities.
Your Amp application has access to the following CData Connect AI MCP tools:
Amp provides several production-ready capabilities that make it ideal for building intelligent, data-aware AI agents:
Here are some examples of what your Amp agents can do with live data access through CData Connect AI:
Once your agent is running, you can interact with it through natural language queries. For example:
To get live data access to hundreds of SaaS, Big Data, and NoSQL sources directly from your Amp agent environment, try CData Connect AI today!
Learn more about CData Connect AI or sign up for free trial access:
Free Trial