cliftonc/drizzle-cube-plugin
cliftonc/drizzle-cube-plugin · 0 stars · 1 plugin
Marketplace Claude code marketplace / MCP for Drizzle Cube enabled applications.
Install
/plugin marketplace add cliftonc/drizzle-cube-pluginRun inside Claude Code, then install plugins from it. Check the repo's README before you run it.
Plugins 1
After adding the marketplace, install one with /plugin install <name>@drizzle-cube-marketplace.
- 1drizzle-cubeClaude Code plugin for Drizzle Cube - type-safe analytics and dashboards with Drizzle ORM
/plugin install drizzle-cube@drizzle-cube-marketplace
Files
Drizzle Cube Plugin for Claude Code
This is a Claude Code plugin for building with drizzle-cube, a Drizzle ORM-first semantic layer. It adds:
- Skills that teach Claude the current drizzle-cube API: defining cubes, serving the API, writing queries, building dashboards, configuring charts.
- MCP tools for querying a running drizzle-cube server from Claude.
- Slash commands for common workflows.
It's for people using drizzle-cube in their own apps. To contribute to drizzle-cube itself, see that repo's CLAUDE.md.
Install
/plugin marketplace add cliftonc/drizzle-cube-plugin
/plugin install drizzle-cube@drizzle-cube-marketplace
Then run /dc-setup to point the tools at your server.
Skills
Each skill loads automatically when Claude sees a matching task.
| Skill | Use it for |
|---|---|
dc-cubes |
Turning Drizzle tables into cubes: measures, dimensions, joins, tenant security, event streams, custom (EAV) fields |
dc-server-setup |
SemanticLayerCompiler, database engines, Express/Fastify/Hono/Next.js adapters, security context, MCP endpoint, caching, RLS, per-tenant cube sets |
dc-queries |
Query JSON: measures, dimensions, filters, time ranges, comparisons, funnel/flow/retention, raw rows. Also answering questions through the MCP tools |
dc-dashboards |
React client: CubeProvider, AnalyticsDashboard, DashboardConfig/AnalysisConfig, layouts, filters, import/export, theming |
dc-charts |
Picking a chart type and writing its chartConfig/displayConfig (29 built-in types), formatting, custom charts |
Commands
| Command | What it does |
|---|---|
/dc-setup [url] |
Connect to a server and verify REST + MCP |
/dc-ask <question> |
Answer a data question (discover → validate → load) |
/dc-debug <query> |
Explain why a query fails or is slow (validation, SQL, execution plan) |
/dc-create-cube <tables> |
Generate cubes from your Drizzle schema |
/dc-create-dashboard <topic> |
Generate a DashboardConfig |
/dc-add-chart <what> |
Add a portlet to an existing dashboard |
MCP tools
The plugin runs one stdio MCP server (drizzle-cube) that talks to your drizzle-cube server:
| Tool | Server endpoint |
|---|---|
drizzle_cube_config |
local: shows the resolved config and MCP status |
drizzle_cube_meta |
GET /cubejs-api/v1/meta |
drizzle_cube_discover |
MCP discover (REST fallback /cubejs-api/v1/discover, Next.js adapter only) |
drizzle_cube_validate |
MCP validate (REST fallback /cubejs-api/v1/dry-run) |
drizzle_cube_load |
MCP load (REST fallback /cubejs-api/v1/load) |
drizzle_cube_dry_run |
POST /cubejs-api/v1/dry-run |
drizzle_cube_explain |
POST /cubejs-api/v1/explain |
drizzle_cube_batch |
POST /cubejs-api/v1/batch |
Configuration
The plugin checks these in order: ./.drizzle-cube.json, then ~/.drizzle-cube/config.json, then the env vars DRIZZLE_CUBE_SERVER_URL and DRIZZLE_CUBE_API_TOKEN. With nothing configured, it uses http://localhost:3001.
{ "serverUrl": "https://analytics.example.com", "apiToken": "optional", "mode": "auto" }
mode is one of:
auto(default): tries the server's/mcpendpoint first and falls back to REST.mcp: MCP only.rest: REST only.
Development
npm install && npm run build # builds dist/index.js (the MCP server)
Skill evals live in evals/. Re-run them after changing a skill or when a new drizzle-cube release comes out.
License
MIT
{
"name": "drizzle-cube-marketplace",
"owner": {
"name": "Clifton Cunningham",
"email": "clifton.cunningham@gmail.com"
},
"plugins": [
{
"name": "drizzle-cube",
"source": {
"source": "github",
"repo": "cliftonc/drizzle-cube-plugin"
},
"description": "Claude Code plugin for Drizzle Cube - type-safe analytics and dashboards with Drizzle ORM"
}
]
}Facts
- Kind
- Marketplace
- Repo
- cliftonc/drizzle-cube-plugin
- Group
- Uncategorized
- Stars
- 0
- Marketplace name
- drizzle-cube-marketplace
- Owner
- Clifton Cunningham
- License
- MIT
- Language
- TypeScript
- Created
- 2026-01-12
- Last push
- 2026-11-08
- Plugins
- 1