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.1.tar.gz (5.5 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.1-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: metabase_mcp_server-0.1.1.tar.gz
  • Upload date:
  • Size: 5.5 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.1.tar.gz
Algorithm Hash digest
SHA256 c382203a7b46fda19ead19f6bfc9eec69c62ec4179cdcb2a83d7226398bab995
MD5 74a158c8bc4bbf0f5a81c89e421a6fb8
BLAKE2b-256 cec20bcfc7a44ab3dfc174f80f32d26117767253ad7b4432a3a65cfbbd15bad0

See more details on using hashes here.

Provenance

The following attestation bundles were made for metabase_mcp_server-0.1.1.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.1-py3-none-any.whl.

File metadata

File hashes

Hashes for metabase_mcp_server-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4f45ccdcb5a8b565806d8754f7c24a91fd6a2034f1487f488e876cac3a974faa
MD5 808d225d024efbf206555f199f902577
BLAKE2b-256 84c568909f17aeff38af29093ca5437c939e10c369d9dd9294efcd46544e971d

See more details on using hashes here.

Provenance

The following attestation bundles were made for metabase_mcp_server-0.1.1-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