metabase-lite-mcp
Allows AI agents to search and read saved questions and dashboards, explore database schema, and run read-only query previews on a Metabase instance.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@metabase-lite-mcpFind a dashboard named 'Weekly Sales'"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
metabase-lite-mcp
An MCP (Model Context Protocol) server that lets AI agents interact with Metabase — search dashboards & cards, explore database metadata, and run read-only query previews.
Use Case
Give your AI agent (Claude, Cursor, etc.) the ability to:
Search & read saved questions (cards) and dashboards
Explore database schema — list databases, tables, fields, and collections
Run query previews — execute read-only SQL/Mongo queries with built-in safety validation (write operations are blocked before they ever reach Metabase)
This is useful for agents that need to understand your data, find existing reports, validate queries, or build new dashboards on your behalf.
Related MCP server: Metabase MCP Server
Prerequisites
Node.js 18+
A Metabase instance with API key access enabled
A Metabase API key (inherits permissions from its group)
Install
npm install -g metabase-lite-mcpOr use directly with npx (no install needed) — see configuration below.
Configuration
The server requires two environment variables:
Variable | Description | Example |
| Your Metabase instance URL |
|
| Metabase API key |
|
Usage with Claude Code
Add to your .mcp.json (project-level or ~/.claude/.mcp.json for global):
{
"mcpServers": {
"metabase": {
"command": "npx",
"args": ["-y", "metabase-lite-mcp"],
"env": {
"METABASE_BASE_URL": "https://metabase.example.com",
"METABASE_API_KEY": "mb_xxxxxxxxxxxxxx"
}
}
}
}Usage with Cursor
Add to your Cursor MCP settings (.cursor/mcp.json):
{
"mcpServers": {
"metabase": {
"command": "npx",
"args": ["-y", "metabase-lite-mcp"],
"env": {
"METABASE_BASE_URL": "https://metabase.example.com",
"METABASE_API_KEY": "mb_xxxxxxxxxxxxxx"
}
}
}
}Available Tools
Tool | Description |
| List all databases configured in Metabase |
| Get tables and fields for a specific database |
| List all collections |
| Search saved questions by name/text |
| Get full details of a saved question |
| Search dashboards by name/text |
| Get full dashboard with tabs, cards, and filters |
| Execute a read-only query and return results |
Safety
All queries are validated before being sent to Metabase:
SQL: Blocks
INSERT,UPDATE,DELETE,DROP,ALTER,TRUNCATE,CREATE,GRANT,REVOKE,CALL,EXECUTE, and multi-statement queriesMongoDB: Blocks
$outand$mergepipeline stages
Development
git clone https://github.com/sanjeevsingla/metabase-lite-mcp.git
cd metabase-lite-mcp
npm install
npm run build
npm run watch # Rebuild on changes
npm run inspector # Launch MCP inspector to test tools interactivelyLicense
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Sanjeev4523/metabase-lite-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server