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
- Clone the repository:
git clone https://github.com/cuenca-mx/metabase-mcp-server.git
cd metabase-mcp-server
{
"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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
27b9500ab56d0098af3622b541dc43d7ab1e5b93a1be6b60c880f397076d31a3
|
|
| MD5 |
93f48f333f89315cb5703d8d015da02f
|
|
| BLAKE2b-256 |
21181418a9dcb322390b48b1632063d0ba689420c06c6990ba5e304380337338
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
metabase_mcp_server-0.1.0.tar.gz -
Subject digest:
27b9500ab56d0098af3622b541dc43d7ab1e5b93a1be6b60c880f397076d31a3 - Sigstore transparency entry: 242526682
- Sigstore integration time:
-
Permalink:
cuenca-mx/metabase-mcp-server@a2c78c58122f06b2b29977becb44e621cf3c26d6 -
Branch / Tag:
refs/tags/0.1.0 - Owner: https://github.com/cuenca-mx
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@a2c78c58122f06b2b29977becb44e621cf3c26d6 -
Trigger Event:
release
-
Statement type:
File details
Details for the file metabase_mcp_server-0.1.0-py3-none-any.whl.
File metadata
- Download URL: metabase_mcp_server-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e21960039626b61028b6b5c89120904d716380ab88dabc651b75e705ed5d7042
|
|
| MD5 |
eb8f616433ad90425ae847f4fb7d0ad0
|
|
| BLAKE2b-256 |
964db9024ee9fe9417b2df0f0e55d71095f0b52954adfc4556abfcb2fb0e5fa6
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
metabase_mcp_server-0.1.0-py3-none-any.whl -
Subject digest:
e21960039626b61028b6b5c89120904d716380ab88dabc651b75e705ed5d7042 - Sigstore transparency entry: 242526693
- Sigstore integration time:
-
Permalink:
cuenca-mx/metabase-mcp-server@a2c78c58122f06b2b29977becb44e621cf3c26d6 -
Branch / Tag:
refs/tags/0.1.0 - Owner: https://github.com/cuenca-mx
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@a2c78c58122f06b2b29977becb44e621cf3c26d6 -
Trigger Event:
release
-
Statement type: