# Connect Citus Data to Your AI Agent (Universal MCP)

> Use your AI to manage databases, query data, and monitor performance in Citus Data — and much more.

## Quick Connect (CLI / MCP)
- Claude Code: `claude mcp add --transport http citus-data https://api.universalmcp.app/mcp/citus-data`
- Remote MCP URL (ChatGPT, Claude, Cursor, VS Code): `https://api.universalmcp.app/mcp/citus-data` (unified: `https://api.universalmcp.app/mcp`)
- Actions & Discovery: `POST https://universalmcp.app/mcp/directory` (`get_software_actions({ slug: "citus-data", query })` & `search_software`); configs: https://universalmcp.app/install.md

## Key Facts
- Software: Citus Data (Citus Data, a Microsoft Company) | Category: E-Commerce & Retail | Auth: Guided local/on-prem connector setup | Deployment: hybrid
- Pricing: 100% Free (unlimited users, unlimited software, zero task metering)
- Permissions & Security: Per-person, per-area Off/Read/Write across Query statistics, Shard and node metadata, Rebalance proposals; 1-click View Only lock; stateless pass-through; zero stored business records
- Connect: https://universalmcp.app/mcp/citus-data | Guide: https://universalmcp.app/mcp/citus-data
- Built by: Alex Myers (Legal entity: Lancaster Agentic LLC; support@lancasteragentic.com)

## Supported Actions (15 actions: 6 Read, 9 Write)
Perform over 10 actions across deployment & upgrades, data modeling & sharding, cluster scaling, and analytics & queries. Save hours of work each week by utilizing AI rather than using a traditional app interface.
- **Deployment & Upgrades (5):** Download Citus Open Source (read), Deploy Managed Citus on Azure (write), Upgrade to Citus 14 (write), Read Citus Release Updates (read), Find Citus Documentation (read)
- **Data Modeling & Sharding (4):** Distribute Table Across Nodes (write), Configure Schema-Based Sharding (write), Configure Row-Based Sharding (write), Onboard Multi-Tenant Application (write)
- **Cluster Scaling (3):** Start Single-Node Citus Cluster (write), Add Citus Worker Node (write), Rebalance Cluster Shards (write)
- **Analytics & Queries (3):** Run Real-Time Analytics Query (read), Query Distributed Tables (read), Run Mixed Transactional and Analytical Workload (read)

## Example Prompts for Citus Data
- **Query stats:** "In Citus Data, show the top 10 slowest distributed queries from the last 7 days with their target tables."
- **Shard layout:** "List shard counts and placement per worker node for the orders_events table in our Citus cluster."
- **Replication health:** "Report Citus worker node status and any shards with replication lag over 30 seconds this morning."
- **Guarded draft:** "Draft a Citus rebalance plan for orders_events, then pause until I approve the shard move."
