A Model Context Protocol (MCP) server for querying and managing data through CData Connect Cloud. This server enables AI agents to interact with data using SQL, metadata introspection, and procedure execution.
- β Execute SQL queries on cloud-connected data sources
- π Perform batch operations (INSERT, UPDATE, DELETE)
- βοΈ Execute stored procedures
- π Access metadata (catalogs, schemas, tables, columns)
- π Retrieve and download query execution logs
- Node.js v18 or higher
- A CData Connect Cloud account with API access
- A Personal Access Token (PAT) for authentication
To install CData Connect Cloud MCP Server for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @CDataSoftware/connectcloud-mcp-server --client claude
-
Clone the repository
git clone https://github.com/cdatasoftware/connectcloud-mcp-server.git cd connect-cloud-mcp-server
-
Install dependencies
npm install
-
Configure environment variables
Create a
.env
file with the following content:CDATA_USERNAME=your_username CDATA_PAT=your_personal_access_token # Optional LOG_ENABLED=false LOG_LEVEL=info CDATA_URL=https://your-test-environment-url
Use ts-node
for live development:
npm run dev
Build and start:
npm run build
npm start
Tool | Description |
---|---|
queryData |
Execute SQL queries |
execData |
Execute stored procedures |
Tool | Description |
---|---|
getCatalogs |
Retrieve available catalogs |
getSchemas |
List schemas in a catalog |
getTables |
List tables in a schema |
getColumns |
Get column metadata for a table |
getPrimaryKeys |
Retrieve primary keys for tables |
getIndexes |
Get index information for tables |
getImportedKeys |
Retrieve foreign key columns that reference tables |
getExportedKeys |
Retrieve foreign key columns referenced from tables |
getProcedures |
List available procedures |
getProcedureParameters |
Get procedure input/output params |
This server is compatible with AI agents that implement the Model Context Protocol.
const response = await agent.generateContent({
tools: [
{
name: "queryData",
parameters: {
query: "SELECT * FROM Salesforce1.Salesforce.Account LIMIT 10"
}
}
]
});
docker build -t mcp/connectcloud:latest -f Dockerfile .
Add or edit this configuration to your claude_desktop_config.json
under the mcpServers
section:
{
"mcpServers": {
"connect-cloud": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"--name", "connect-cloud-mcp",
"-e", "CDATA_USERNAME",
"-e", "CDATA_PAT",
"mcp/connectcloud"
],
"env": {
"CDATA_USERNAME": "<your-cdata-username>",
"CDATA_PAT": "<your-cdata-personal-access-token>"
}
}
}
}
{
"mcpServers": {
"connect-cloud": {
"command": "npx",
"args": [
"-y",
"@cdatasoftware/connectcloud-mcp-server"],
"env": {
"CDATA_USERNAME": "<your-cdata-username>",
"CDATA_PAT": "<your-cdata-personal-access-token>"
}
}
}
}
This project is licensed under the MIT License.