Skip to main content

A Model Context Protocol server that enables interaction with Metabase via LLMs

Project description

Metabase MCP Server

This project implements an MCP server to interact with the Metabase API, exposing key functionality via a MCP interface.

Features

  • 🔍 List Metabase cards
  • 🗄️ List available databases
  • 📊 Execute queries on cards
  • 🧾 Run arbitrary queries
  • 📝 Create new cards
  • 🔖 Create bookmark
  • 📁 List collections

Requirements

  • Python 3.12+
  • uv

Installation

  1. Clone the repository:
git clone https://github.com/cuenca-mx/metabase-mcp-server.git
cd metabase-mcp-server
  1. Configure your AI assistant client (Claude, Cursor, etc.) by adding the following configuration:
{
    "mcpServers": {
        "metabase": {
            "command": "uv",
            "args": [
                "--directory",
                "/ABSOLUTE/PATH/TO/PARENT/FOLDER/metabase_mcp_server",
                "run",
                "app.py"
            ],
            "env": {
                "METABASE_URL": "https://metabase.domain.com/",
                "METABASE_API_KEY": "your-secret-api-key"
            }
        }
    }
}

Development Setup

This project uses a Makefile to simplify development tasks:

make install

Environment Variables

Configure required environment variables:

export $(<env.template)

Running Tests

The project uses pytest for unit testing:

uv run pytest

Debugging with MCP Inspector

Use the MCP Inspector for testing and debugging:

make dev

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

metabase_mcp_server-0.1.0.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

metabase_mcp_server-0.1.0-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file metabase_mcp_server-0.1.0.tar.gz.

File metadata

  • Download URL: metabase_mcp_server-0.1.0.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for metabase_mcp_server-0.1.0.tar.gz
Algorithm Hash digest
SHA256 27b9500ab56d0098af3622b541dc43d7ab1e5b93a1be6b60c880f397076d31a3
MD5 93f48f333f89315cb5703d8d015da02f
BLAKE2b-256 21181418a9dcb322390b48b1632063d0ba689420c06c6990ba5e304380337338

See more details on using hashes here.

Provenance

The following attestation bundles were made for metabase_mcp_server-0.1.0.tar.gz:

Publisher: release.yml on cuenca-mx/metabase-mcp-server

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file metabase_mcp_server-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for metabase_mcp_server-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e21960039626b61028b6b5c89120904d716380ab88dabc651b75e705ed5d7042
MD5 eb8f616433ad90425ae847f4fb7d0ad0
BLAKE2b-256 964db9024ee9fe9417b2df0f0e55d71095f0b52954adfc4556abfcb2fb0e5fa6

See more details on using hashes here.

Provenance

The following attestation bundles were made for metabase_mcp_server-0.1.0-py3-none-any.whl:

Publisher: release.yml on cuenca-mx/metabase-mcp-server

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page