Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
LOG_LEVELNoLogging level: debug, info, warn, error, fatal (debug enables pretty JSON)info
CACHE_TTL_MSNoCache time-to-live in milliseconds (default: 10 minutes)600000
METABASE_URLNoThe URL of your Metabase instance
EXPORT_DIRECTORYNoExport location for exported datasets~/Downloads/Metabase
METABASE_API_KEYNoYour Metabase API key (recommended authentication method)
METABASE_PASSWORDNoYour Metabase password (alternative authentication method)
REQUEST_TIMEOUT_MSNoRequest timeout in milliseconds (default: 10 minutes)600000
METABASE_USER_EMAILNoYour Metabase user email (alternative authentication method)
METABASE_READ_ONLY_MODENoRestrict execute tool to SELECT queries only (blocks INSERT, UPDATE, DELETE, DROP, etc.)true

Tools

Functions exposed to the LLM to take actions

NameDescription
search

Search across all Metabase items using native search API. Supports cards, dashboards, tables, collections, databases, and more. Use this first for finding any Metabase content. Returns search metrics, recommendations, and clean results organized by model type.

retrieve

Fetch additional details for supported models (Cards, Dashboards, Tables, Databases, Collections, Fields). Supports multiple IDs (max 50 per request) with intelligent concurrent processing and optimized caching. Includes table pagination for large databases exceeding token limits.

list

Fetch all records for a single Metabase resource type with highly optimized responses for overview purposes. Retrieves complete lists of cards, dashboards, tables, databases, or collections. Returns only essential identifier fields for efficient browsing and includes intelligent caching for performance. Supports pagination for large datasets exceeding token limits.

execute

Unified command to execute SQL queries or run saved cards against Metabase databases. Use Card mode when existing cards have the needed filters. Use SQL mode for custom queries or when cards lack required filters. Returns up to 500 rows per request - for larger datasets, use the export tool instead. SECURITY WARNING: SQL mode can execute ANY valid SQL including destructive operations (DELETE, UPDATE, DROP, TRUNCATE, ALTER). Use with caution and ensure appropriate database permissions are configured in Metabase. Note: When Read-Only Mode is enabled, write operations will be rejected with an error.

export

Unified command to export large SQL query results or saved cards using Metabase export endpoints (supports up to 1M rows). Returns data in specified format (CSV, JSON, or XLSX) and automatically saves to Downloads/Metabase folder.

clear_cache

Clear the internal cache for stored data. Useful for debugging or when you know the data has changed. Supports granular cache clearing for both individual items and list caches.

Prompts

Interactive templates invoked by user choice

NameDescription
execute_cardExecute a Metabase card/question with intelligent parameter handling and display results
export_cardExport a Metabase card/question to file with intelligent parameter handling and troubleshooting

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

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/jerichosequitin/Metabase'

If you have feedback or need assistance with the MCP directory API, please join our Discord server