Skip to main content
Glama
Cube MCP Server

Cube MCP Server

by 7BlockLabs

Cube MCP Server

A production-shaped Model Context Protocol server for Cube, built by 7Block Labs. It makes Cube's API usable directly by AI agents (Claude, ChatGPT, Cursor) — metered to the caller's own key — instead of leaving it to community wrappers.

Built for the Cube team as a working example of the official MCP server we'd ship & launch for you (OAuth + per-plan metering + listings in the Claude and ChatGPT directories).

python -m venv .venv && source .venv/bin/activate && pip install -e .
export CUBE_API_TOKEN=...        # your Cube API key
python -m cube_mcp.server                       # stdio
TRANSPORT=http PORT=8000 python -m cube_mcp.server   # remote

Claude Code: claude mcp add --transport http cube http://localhost:8000/mcp

API: https://your-deployment.cubecloud.dev/cubejs-api/v1 · docs: https://cube.dev/docs/product/apis-integrations/rest-api/reference · auth: raw JWT in Authorization header (no 'Bearer' prefix); set CUBE_API_BASE to your deployment

Tools

Tool

What it does

get_metadata

List cubes/views with measures, dimensions, segments

run_query

Run a Cube query and return result rows

get_generated_sql

Return the SQL Cube generates for a query

Want this hardened (OAuth, metering) and listed in Claude + ChatGPT? 7Block Labs builds and launches MCP servers for data & API companies. MIT licensed.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables AI assistants to interact with Metabase through its API, allowing them to list, read, execute, and manage databases, tables, dashboards, cards, collections, and queries with support for multiple export formats.
      -
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI assistants to query and analyze data from Cube.js analytics platforms, allowing natural language access to cubes, measures, dimensions, and complex analytics queries.
      9
      MIT
    • A
      license
      B
      quality
      D
      maintenance
      Enables users to interact with Cube's AI agent for real-time analytics and data exploration through a chat interface. It supports generating data visualizations, performing SQL queries, and analyzing trends using natural language.
      1
      13
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      Enables AI assistants to interact with Metabase for database operations, SQL queries, dashboard management, and analytics automation.
      28
      MIT