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
Metadata
Release files for metabase-mcp-server 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| metabase_mcp_server-0.1.1.tar.gz | 5.5 kB | With provenance | Details for metabase_mcp_server-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| metabase_mcp_server-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for metabase_mcp_server-0.1.1-py3-none-any.whl |
Total release size: 10.9 kB
Release files / metabase_mcp_server-0.1.1.tar.gz
| Download URL | metabase_mcp_server-0.1.1.tar.gz |
|---|---|
| Size | 5.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c382203a7b46fda19ead19f6bfc9eec69c62ec4179cdcb2a83d7226398bab995
|
|
BLAKE2b-256 checksum How to use checksums |
cec20bcfc7a44ab3dfc174f80f32d26117767253ad7b4432a3a65cfbbd15bad0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 18, 2025.
Transparency logRelease files / metabase_mcp_server-0.1.1-py3-none-any.whl
| Download URL | metabase_mcp_server-0.1.1-py3-none-any.whl |
|---|---|
| Size | 5.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4f45ccdcb5a8b565806d8754f7c24a91fd6a2034f1487f488e876cac3a974faa
|
|
BLAKE2b-256 checksum How to use checksums |
84c568909f17aeff38af29093ca5437c939e10c369d9dd9294efcd46544e971d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 18, 2025.
Transparency logSecurity for metabase-mcp-server 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for metabase_mcp_server-0.1.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 18, 2025.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.