Required Environment Variables
CDATA_USERNAME
: Your CData Connect Cloud usernameCDATA_PAT
: Your CData Connect Cloud Personal Access Token
Steps
-
Install Meshagent CLI:
- Sign Up & Authenticate: Follow instructions at Meshagent Getting Started to sign up and authenticate your CLI.
-
Start the MCP Server in a Room as an Agent:
- This command creates a new Meshagent Room (
test
) and joins this MCP server as an agent. Rooms will be closed if they go inactive.
- This command creates a new Meshagent Room (
-
Start the Chatbot in the Room:
- This launches a chatbot in your Room (referencing the MCP server agent and toolkit).
- The output of this command will provide a Room link you can open in your browser.
-
Try It Out:
- Visit the Room link.
- Send a message to the agent in chat to interact with the MCP Server tools.
Project Level Deployment
For production environments, you may want persistent agents and chatbots to join every Room in your Meshagent Project, without starting and stopping them manually. This is ideal for automatic, consistent data tool availability—no local hosting or repeated command runs required.Deploy Persistent Services:
-
Create the MCP Server as a Project Service:
-
Create the Chatbot as a Project Service:
Tools Available
Tools Summary
Tools provided by this Server | Short Description |
---|---|
execData | Execute stored procedures against connected data sources |
getCatalogs | Retrieve a list of available connections from CData Connect Cloud. |
getColumns | Retrieve a list of database columns for a specific catalog, schema, and table. |
getExportedKeys | Retrieve foreign key relationships for a specific catalog, schema, and table. |
getImportedKeys | Retrieve imported key relationships for a specific catalog, schema, and table. |
getIndexes | Retrieve a list of indexes for a specific catalog, schema, and table. |
getPrimaryKeys | Retrieve primary keys for a specific catalog, schema, and table. |
getProcedureParameters | Retrieve parameters for a specific stored procedure. |
getProcedures | Retrieve a list of stored procedures for a specific catalog and schema. |
getSchemas | Retrieve a list of available database schemas. |
getTables | Retrieve a list of available database tables for a specific catalog and schema. |
queryData | Execute SQL queries against connected data sources and retrieve results |
Tools Details
execData
Execute stored procedures against connected data sourcesParameters:
procedure
(string
): Stored procedure name to executedefaultSchema
(string
, optional): Default schemaparameters
(object
, optional): JSON object of parameters, all names must begin with@
getCatalogs
Retrieve a list of available connections from CData Connect Cloud. Connection names are used as catalog names in other tools and queries.
getColumns
Retrieve a list of available columns from CData Connect Cloud for a specific catalog, schema, and tableParameters:
catalogName
(string
, optional)columnName
(string
, optional)schemaName
(string
, optional)tableName
(string
, optional)
getExportedKeys
Retrieve foreign key relationships from CData Connect Cloud for a specific catalog, schema, and tableParameters:
catalogName
(string
, optional)schemaName
(string
, optional)tableName
(string
, optional)
getImportedKeys
Retrieve imported key relationships from CData Connect Cloud for a specific catalog, schema, and tableParameters:
catalogName
(string
, optional)schemaName
(string
, optional)tableName
(string
, optional)
getIndexes
Retrieve a list of indexes from CData Connect Cloud for a specific catalog, schema, and tableParameters:
catalogName
(string
, optional)schemaName
(string
, optional)tableName
(string
, optional)
getPrimaryKeys
Retrieve a list of primary keys from CData Connect Cloud for a specific catalog, schema, and tableParameters:
catalogName
(string
, optional)schemaName
(string
, optional)tableName
(string
, optional)
getProcedureParameters
Retrieve a list of stored procedure parameters from CData Connect Cloud for a specific catalog, schema, and procedureParameters:
catalogName
(string
, optional)parameterName
(string
, optional)procedureName
(string
, optional)schemaName
(string
, optional)
getProcedures
Retrieve a list of stored procedures from CData Connect Cloud for a specific catalog and schemaParameters:
catalogName
(string
, optional)procedureName
(string
, optional)schemaName
(string
, optional)
getSchemas
Retrieve a list of available database schemas from CData Connect Cloud for a specific catalog.Parameters:
catalogName
(string
, optional)
getTables
Retrieve a list of available database tables from CData Connect Cloud for a specific catalog and schema.Parameters:
catalogName
(string
, optional)schemaName
(string
, optional)tableName
(string
, optional)
queryData
Execute SQL queries against connected data sources and retrieve resultsParameters:
query
(string
): SQL statement(s) to execute (separated by;
)defaultSchema
(string
, optional): Default schemaparameters
(object
, optional): JSON object of query parametersschemaOnly
(boolean
, optional): If true, return only column metadata
Meshagent & Reference Links
- Meshagent Home: https://www.meshagent.com/
- Meshagent Documentation: https://docs.meshagent.com
- Meshagent MCP Tool Docker Image: https://hub.docker.com/r/meshagent/mcp-cdata-connectcloud