peaka-mcp-server
OfficialThis MCP server exposes Peaka project tools for discovering data, running SQL, and managing Peaka objects.
Discover accessible projects and query reusable golden SQL question/SQL pairs.
Run ad-hoc SQL queries and execute saved queries.
Inspect catalogs, schemas, tables, columns, relationships, table statistics, and project metadata.
Refresh project metadata and check metadata refresh status.
Manage caches: create single or batch caches, inspect statuses, full/incremental refresh, update schedules, and delete.
Manage saved queries: list, get, create, update, delete, execute, refresh materialized queries, and inspect materialized refresh statuses.
Inspect data source connections and connection details.
Create semantic catalogs and semantic tables backed by saved queries, and delete semantic tables.
Use Peaka SQL rule-set and HTML/report artifact template resources from the README.
Click on "Deploy 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., "@peaka-mcp-server List all Peaka projects I have access to."
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.
peaka-mcp-server
Model Context Protocol (MCP) is a new, standardized protocol for managing context between large language models (LLMs) and external systems.
Peaka Model Context Protocol server that provides access to Peaka's text2SQL capabilities.
This server enables LLMs to inspect schemas and execute sql queries on provided Peaka projects.
Components
Resources
peaka_sql_query_rule_setPeaka SQL Query Rule Set is guidelines for writing sql queries for Peaka.
peaka_artifact_templateStyle guide and HTML template for generating visual reports, dashboards, and artifacts from Peaka query results.
Tools
Every project-scoped tool takes a projectId argument. If the MCP client does not already know the projectId, it should call peaka_list_projects first and pass the chosen id to subsequent calls. The server itself is stateless with respect to project selection — each call carries its own projectId.
peaka_list_projectsList all projects accessible with the current API key. For Partner API keys, enumerates projects across all organizations and workspaces. For Project API keys, returns the single project bound to the key.
peaka_query_golden_sqlsQuery question/sql pairs from Peaka's golden sql vector store. If an existing query matches the user's question, it can be reused directly.
peaka_execute_sql_queryRuns the given sql query on Peaka.
peaka_search_relevant_tablesFind up to 10 candidate tables for a question, with current accessible columns, descriptions and index coverage. Start here for data questions, then fetch metadata for the relevant scope. When the index is unavailable or results are unhelpful, use catalog/schema/table discovery. Requires the gateway's
/metadata/{projectId}/relevant-tablesendpoint; it does not execute SQL or rebuild the index.
peaka_get_project_metadataGet metadata for all catalogs, schemas, and tables in the Peaka project in a single call. Optionally filter by
catalogIdand/orschemaName.
peaka_list_catalogsList all available catalogs in the Peaka project. Returns catalog names, types, and connection info.
peaka_list_schemasList all available schemas for a given catalog in the Peaka project.
peaka_list_tablesList all available tables for a given catalog and schema in the Peaka project.
peaka_list_columnsList all columns for a given table in the Peaka project. Returns column names, data types, and constraints.
peaka_get_relationsGet table relationships (foreign keys) for a catalog. Useful for constructing accurate JOINs.
peaka_get_table_statisticsGet column-level statistics for a table, including distinct-value fractions per column.
peaka_create_cacheCreate a cache for a table in the Peaka project. Caching a table improves query performance by storing the data locally.
peaka_create_cache_batchCreate caches for multiple tables in a single call. Preferred over repeated
peaka_create_cachecalls.
peaka_get_cache_statusesGet all cache statuses for tables in the Peaka project, including current caching state, execution history, and progress.
peaka_refresh_cache_fullTrigger a full refresh on an existing cache.
peaka_refresh_cache_incrementalTrigger an incremental update on an existing cache, fetching only new or changed rows.
peaka_update_cacheUpdate cache settings (schedules) on an existing cache. Replaces both schedules entirely each call.
peaka_delete_cacheDelete an existing cache; the underlying table is not affected.
peaka_list_queriesList all saved queries in the Peaka project. Returns query names, SQL content, and whether they are plain or materialized.
peaka_get_queryRead a single saved query by its ID. Returns the full query object including SQL, type, and the materialized-query refresh schedule.
peaka_execute_queryExecute a saved query by its ID in the Peaka project.
peaka_create_queryCreate a named, saved query in the project's semantic layer. Returns the created query including its ID. For materialized queries, accepts an optional
scheduleto set the auto-refresh cadence —{type: "interval", repeatDuration: "PT6H"},{type: "cron", cronExpression: "0 0 * * *", timezone: "UTC"}, or{type: "none"}to disable.
peaka_update_queryUpdate an existing saved query's display name, SQL body, and/or auto-refresh
schedule(interval, cron, or{type: "none"}to disable; materialized queries only).
peaka_delete_queryDelete a saved query from the Peaka project.
peaka_refresh_materialized_queryTrigger a refresh on a materialized saved query. Use
peaka_list_queriesto find query IDs whosequeryTypeisMATERIALIZED.
peaka_get_materialized_query_statusesInspect the auto-refresh state of materialized queries: last refresh status, last/next scheduled execution, and schedule settings. Pass a
queryIdfor a single query or omit it to list all.
peaka_list_connectionsList all data source connections in the Peaka project, including each connection's id, name, and type.
peaka_get_connection_detailGet connection-specific configuration detail for a data source connection.
peaka_create_semantic_catalogCreate a semantic catalog in the Peaka project. A semantic catalog groups semantic tables (saved queries surfaced as queryable tables) under a single namespace.
peaka_create_semantic_tableCreate a semantic table inside a semantic catalog, backed by a saved query. Requires
catalogId,schemaName,tableName, andqueryId.
peaka_delete_semantic_tableDelete a semantic table from a semantic catalog. The underlying saved query is not affected.
peaka_refresh_project_metadataRefresh project metadata for a specific catalog. Long-running; triggers the refresh and polls for completion.
peaka_get_metadata_refresh_statusCheck the current status of a metadata refresh job for a specific catalog.
Related MCP server: BigQuery MCP server
Usage with Claude Desktop
Edit the configuration file
config.json:on macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonon Windows:
%APPDATA%\Claude\claude_desktop_config.json
Add the following configuration to the
mcpServersobject:
{
"mcpServers": {
"peaka": {
"command": "npx",
"args": ["-y", "@peaka/mcp-server-peaka@latest"],
"env": {
"PEAKA_API_KEY": "<YOUR_API_KEY>"
}
}
}
}Change the {PEAKA_API_KEY} with your project API Key. Check out Peaka Documentation for creating your API Key and follow detailed instructions by clicking here.
Restart Claude Desktop
Packaging as a Claude Desktop extension
This repo ships with a pack script that builds the server and then runs mcpb pack (from @anthropic-ai/mcpb) to produce a .mcpb bundle — a zip-like archive containing the built server and manifest.json that Claude Desktop can load as a custom MCP extension.
npm run packThis produces peaka-mcp-server.mcpb at the repo root. To install it, open Claude Desktop → Settings → Extensions -> Advanced Settings -> Install Extension -> Select the .mcpb file -> Enter your API key when prompted and enable the extension.
Environment variables
You can use following environment variable for configuration:
Name | Description | Default Value |
PEAKA_API_KEY | Project API key for authenticating with Peaka services (stdio mode). | - |
PARTNER_API_BASE_URL | Base URL for Peaka partner API | |
OAUTH_ISSUER | Authorization server issuer, used to validate the | - |
OAUTH_JWKS_URI | Authorization server JWKS endpoint used to verify access-token signatures (httpStream mode, required). | - |
OAUTH_REQUIRED_SCOPE | Scope an access token must carry to be accepted (httpStream mode). |
|
OAUTH_RESOURCE | Expected token audience (this MCP server's resource URL). When set, tokens whose | - |
Request timeout (httpStream)
The Partner API request timeout defaults to 60 seconds. Override it per
connection with the timeoutSeconds query parameter on the MCP endpoint URL —
for example https://mcp.peaka.studio/mcp?timeoutSeconds=120. This lets a slow
or on-prem deployment be tuned from the URL without a rebuild.
The maximum is 600 seconds (10 minutes). A value above the maximum, or an
absent/invalid one (non-numeric, zero, negative), falls back to the 60s default
rather than being clamped — so a unit mistake like timeoutSeconds=60000 (meant
as milliseconds) can't hold a request open for hours.
Contact
For feature requests and bugs, please create an issue in this repo. For further support, see the following resources:
Paged metadata management (DEV-4102)
peaka_list_table_metadata reads one page of authorized collected table summaries, including AI-excluded tables. It requires metadata management permission. Use catalogId, schemaName and limit (1–50, default20); continue with nextCursor and the same arguments. An empty page may still have hasMore:true. Cursors expire after15minutes; results are not a source inventory or consistent snapshot. Columns/samples/relations are not returned. Use ordinary discovery tools to inspect source structure.
peaka_get_metadata_operation reads the exact refresh runId returned by admission. Only done means success; partial/cancelled/paused/failed results do not. Legacy metadata/status tools remain available. New tools require a gateway with these endpoints and fail explicitly on older servers; they never silently fetch the whole project or poll a different operation.
Available Tools
36 toolspeaka_create_cacheA
Create a cache for a table in the Peaka project, so its records are read from Peaka instead of the source. Only for tables of a SaaS source that are not cached yet (peaka_list_project_tables: a SaaS schema's table without [cached]; peaka_list_tables: not_cached): a live read of them may return only the first page of records. A database table (e.g. Oracle) is read live and in full and is not cached. Create a cache only when the user asks for it or agrees to it, never to work around a failing or slow query; the first sync takes time, and until it completes the cache is not complete. Schedule expressions are optional at creation time and use ISO-8601 durations (e.g. PT6H, P1D, P7D, P30D); they can be set later with peaka_update_cache.
If you do not already know the projectId for the current task, call peaka_list_projects first and ask the user which project to use. Remember the chosen projectId for subsequent calls in this conversation.Inputs: catalogId (required), projectId (required), tableName (required), schemaName (required), +2 more.
peaka_create_cache_batchA
Create caches for multiple tables in a single call. Use this instead of repeated peaka_create_cache calls when caching many tables. Only for tables of a SaaS source that are not cached yet (peaka_list_project_tables: a SaaS schema's table without [cached]; peaka_list_tables: not_cached): a live read of them may return only the first page of records. A database table (e.g. Oracle) is read live and in full and is not cached. Create a cache only when the user asks for it or agrees to it, never to work around a failing or slow query; the first sync takes time, and until it completes the cache is not complete. Items are processed independently, so some can succeed while others fail: the response contains one entry per item with success, error, and the created cache. Check every entry and report or retry the failed ones rather than assuming the whole batch succeeded. Each item supports the same optional schedule expressions as peaka_create_cache (ISO-8601 durations, e.g. PT6H, P1D, P7D, P30D).
If you do not already know the projectId for the current task, call peaka_list_projects first and ask the user which project to use. Remember the chosen projectId for subsequent calls in this conversation.Inputs: items (required), projectId (required).
peaka_create_queryA
Create a named, saved query in the Peaka project's semantic layer. Returns the created query object including its ID, which can be passed to peaka_execute_query.
If you do not already know the projectId for the current task, call peaka_list_projects first and ask the user which project to use. Remember the chosen projectId for subsequent calls in this conversation.Inputs: projectId (required), inputQuery (required), displayName (required), schedule, +1 more.
peaka_create_semantic_catalogA
Create a semantic catalog in the Peaka project. A semantic catalog groups semantic tables — saved queries surfaced as queryable tables — under a single namespace. Returns the created catalog including its id.
If you do not already know the projectId for the current task, call peaka_list_projects first and ask the user which project to use. Remember the chosen projectId for subsequent calls in this conversation.Inputs: name (required), projectId (required).
peaka_create_semantic_tableA
Create a semantic table inside a semantic catalog in the Peaka project. The table is backed by an existing saved query, so the catalog/schema/table identifiers become a queryable view over that query. Use peaka_create_query (or peaka_list_queries) to obtain the queryId, and peaka_create_semantic_catalog (or peaka_list_catalogs) for the catalogId.
If you do not already know the projectId for the current task, call peaka_list_projects first and ask the user which project to use. Remember the chosen projectId for subsequent calls in this conversation.Inputs: queryId (required), catalogId (required), projectId (required), tableName (required), +1 more.
peaka_delete_cacheADestructive
Delete an existing cache in the Peaka project. Removes the cache entirely; the underlying table is not affected. Use the cacheId returned from peaka_get_cache_statuses.
If you do not already know the projectId for the current task, call peaka_list_projects first and ask the user which project to use. Remember the chosen projectId for subsequent calls in this conversation.Inputs: cacheId (required), projectId (required).
peaka_delete_queryADestructive
Delete a saved query from the Peaka project. Use the queryId returned from peaka_list_queries.
If you do not already know the projectId for the current task, call peaka_list_projects first and ask the user which project to use. Remember the chosen projectId for subsequent calls in this conversation.Inputs: queryId (required), projectId (required).
peaka_delete_semantic_tableADestructive
Delete a semantic table from a semantic catalog in the Peaka project. Removes the table mapping only; the saved query that backs it is not affected.
If you do not already know the projectId for the current task, call peaka_list_projects first and ask the user which project to use. Remember the chosen projectId for subsequent calls in this conversation.Inputs: tableId (required), catalogId (required), projectId (required).
peaka_execute_queryARead-only
Execute a saved query by its ID in the Peaka project. Use peaka_list_queries to find available query IDs.
If you do not already know the projectId for the current task, call peaka_list_projects first and ask the user which project to use. Remember the chosen projectId for subsequent calls in this conversation.Inputs: queryId (required), projectId (required).
peaka_execute_sql_queryARead-only
Runs the given SQL on Peaka. The SQL is Trino: catalog.schema.table names as listed; DATE '2025-01-31' and INTERVAL '30' DAY literals; integer division truncates (CAST to DOUBLE for ratios); NOT EXISTS instead of NOT IN when NULLs are possible; aggregate in SQL. A failing query returns Trino's message with its line and column: fix that part and run again. Full rules: the peaka_sql_query_rule_set resource.
BEFORE RUNNING THIS TOOL:
1: Find the tables with peaka_list_project_tables (one line a table, with its cache state), then read the chosen tables' columns with peaka_get_project_metadata and tables=[...] in one call. If the project is too large to list, list one schema or use peaka_search_relevant_tables.
2: Check how the tables are read in that list: each schema's header says SaaS source or database, and a SaaS table marked [cached] is read from the cache; peaka_list_tables gives it per schema too
3: A SaaS table not marked [cached] is read live, and a live read may return only its first page of records: say the result may be incomplete, and, if caching tools are available, offer to cache the table. Do not start a cache without the user's yes.
The answer is { columns, rows, returnedRows, totalRows }; a large result is cut (truncated: true, with a note): aggregate or narrow in SQL instead of reading rows.
4: A database table (e.g. Oracle) is always read live and in full: caching does not make its answer more complete. If a query on it fails or is slow, fix or narrow the SQL, or report the error; do not try to cache it.
If you do not already know the projectId for the current task, call peaka_list_projects first and ask the user which project to use. Remember the chosen projectId for subsequent calls in this conversation.Inputs: query (required), projectId (required).
peaka_get_cache_statusesARead-only
Get all cache statuses for tables in the Peaka project. Returns the current caching state, execution history, and progress for each cached table.
If you do not already know the projectId for the current task, call peaka_list_projects first and ask the user which project to use. Remember the chosen projectId for subsequent calls in this conversation.Inputs: projectId (required).
peaka_get_connection_detailARead-only
Get connection-specific configuration detail for a data source connection in the Peaka project. The response shape varies by connection type — only the type field is guaranteed; remaining fields are connection-specific. Use peaka_list_connections to discover the connectionId.
If you do not already know the projectId for the current task, call peaka_list_projects first and ask the user which project to use. Remember the chosen projectId for subsequent calls in this conversation.Inputs: projectId (required), connectionId (required).
peaka_get_materialized_query_statusesARead-only
Inspect the auto-refresh state of materialized saved queries in the Peaka project. Returns each query's last refresh status, last/next scheduled execution times, and its schedule settings (interval/cron). Pass a queryId to inspect a single materialized query; omit it to list all of them.
If you do not already know the projectId for the current task, call peaka_list_projects first and ask the user which project to use. Remember the chosen projectId for subsequent calls in this conversation.Inputs: projectId (required), queryId.
peaka_get_metadata_operationARead-only
Read the exact refresh operation ID returned in runIds by refresh. Only done means success; partially_completed, cancelled, paused, failed and timed_out are not success. Do not substitute the latest catalog job. Requires metadata management permission. Does not start or retry work.
Inputs: runId (required), projectId (required).
peaka_get_metadata_refresh_statusARead-only
Check the current status of a metadata refresh job for a specific catalog. Possible statuses: NOT_ACTIVE, COMPLETED, WAITING, ACTIVE, DELAYED, FAILED, PAUSED, STUCK.
If you do not already know the projectId for the current task, call peaka_list_projects first and ask the user which project to use. Remember the chosen projectId for subsequent calls in this conversation.Inputs: catalogId (required), projectId (required).
peaka_get_project_metadataARead-only
Get project metadata. For a data question: choose the tables from peaka_list_project_tables, then pass them here as tables=["catalog.schema.table", ...] (up to 20) to get their columns, types, descriptions, keys and relations in one call; format defaults to "compact" then. Otherwise scope by catalogId and/or schemaName; an unscoped call can return a large response. For metadata management, prefer peaka_list_table_metadata for one bounded page. If metadata is missing, use peaka_list_schemas, peaka_list_tables and peaka_list_columns; missing metadata does not mean no data.
format makes the result much smaller: "compact" returns { catalogs: [{ catalog, catalogId, desc }], schemas: [{ schema, desc }], tables: [{ table, desc, columns: [{ name, type, desc, pk, values }], relations }] }: the catalogs and schemas of the tables in scope with what each holds, then the tables, with names as written in SQL; "ddl" returns the catalogs and schemas as comment lines, then CREATE TABLE statements with descriptions as comments. levels picks the parts (any of catalogs, schemas, tables; all three by default): levels=["catalogs","schemas"] tells what the project's sources hold without their tables. Without format the full stored metadata is returned. includeSamples (with a format) adds distinct sample values to each column.
If you do not already know the projectId for the current task, call peaka_list_projects first and ask the user which project to use. Remember the chosen projectId for subsequent calls in this conversation.Inputs: projectId (required), format, levels, tables, +3 more.
peaka_get_queryARead-only
Read a single saved query by its ID. Returns the full query object including displayName, inputQuery (SQL), queryType, and the auto-refresh schedule for materialized queries.
If you do not already know the projectId for the current task, call peaka_list_projects first and ask the user which project to use. Remember the chosen projectId for subsequent calls in this conversation.Inputs: queryId (required), projectId (required).
peaka_get_relationsARead-only
Get table relationships (foreign keys) for a catalog in the Peaka project. Useful for understanding how tables connect when constructing JOINs — without this, JOIN conditions have to be guessed from column-name similarity. The response is an open-ended object map keyed by relation identifier.
If you do not already know the projectId for the current task, call peaka_list_projects first and ask the user which project to use. Remember the chosen projectId for subsequent calls in this conversation.Inputs: catalogId (required), projectId (required).
peaka_get_table_statisticsARead-only
Get column-level statistics for a table in the Peaka project. Returns the catalog/schema/table identifiers and a per-column distinctFraction (estimated fraction of distinct values vs total rows), useful for cardinality estimation and query optimization.
If you do not already know the projectId for the current task, call peaka_list_projects first and ask the user which project to use. Remember the chosen projectId for subsequent calls in this conversation.Inputs: catalogId (required), projectId (required), tableName (required), schemaName (required).
peaka_list_catalogsARead-only
List all available catalogs in the Peaka project. Returns catalog names, types, and connection info, and a catalog's description (what it holds) when one is written.
If you do not already know the projectId for the current task, call peaka_list_projects first and ask the user which project to use. Remember the chosen projectId for subsequent calls in this conversation.Inputs: projectId (required).
peaka_list_columnsARead-only
List all columns for a given table in the Peaka project. Returns column names, data types, and constraints. Use this directly when the table is known. For several tables, peaka_get_project_metadata with tables=[...] reads them in one call.
If you do not already know the projectId for the current task, call peaka_list_projects first and ask the user which project to use. Remember the chosen projectId for subsequent calls in this conversation.Inputs: catalogId (required), projectId (required), tableName (required), schemaName (required).
peaka_list_connectionsARead-only
List all data source connections in the Peaka project. Returns each connection's id, name, type, and (for OAuth-based connections) callback URL. Useful for discovering what data sources are wired up; pair with peaka_get_connection_detail for connection-specific configuration.
If you do not already know the projectId for the current task, call peaka_list_projects first and ask the user which project to use. Remember the chosen projectId for subsequent calls in this conversation.Inputs: projectId (required).
peaka_list_projectsARead-only
List all projects accessible for the user. Use this tool to discover projectIds, then pass the chosen projectId to subsequent tool calls.
Inputs: search.
peaka_list_project_tablesARead-only
Start here to find the tables for a data question. Lists every table of the project (or of one catalog or schema), grouped by catalog.schema, one line each: its name, [cached] when it is cached, the start of its description, up to 6 column names and the tables it joins. Each schema's header gives its catalogId and how its tables are read (a SaaS source live, first page only, unless [cached]; a database live and in full). Write tables as catalog.schema.table. Choose the tables the question needs from this list, then read their columns with peaka_get_project_metadata and tables=[...] in one call.
If the project is too large to list whole, the answer gives its schemas with their table counts: list one schema with catalogId and schemaName, or use peaka_search_relevant_tables.
If you do not already know the projectId for the current task, call peaka_list_projects first and ask the user which project to use. Remember the chosen projectId for subsequent calls in this conversation.
Inputs: projectId (required), catalogId, schemaName.
peaka_list_queriesARead-only
List all saved queries in the Peaka project. Returns query names, SQL content, and whether they are plain or materialized.
If you do not already know the projectId for the current task, call peaka_list_projects first and ask the user which project to use. Remember the chosen projectId for subsequent calls in this conversation.Inputs: projectId (required).
peaka_list_schemasARead-only
List all available schemas for a given catalog in the Peaka project, with a schema's description (what it holds) when one is written.
If you do not already know the projectId for the current task, call peaka_list_projects first and ask the user which project to use. Remember the chosen projectId for subsequent calls in this conversation.Inputs: catalogId (required), projectId (required).
peaka_list_table_metadataARead-only
Read one page of collected table metadata summaries, including tables excluded from automatic AI context. Requires metadata management permission. Use catalogId/schemaName to narrow scope. Pass nextCursor with the same filters and limit to continue; an empty page can still have a continuation. Cursors expire after 15 minutes. This is not a complete source inventory or a snapshot; discover missing tables with the ordinary catalog/schema/table tools. Descriptions longer than 2000 characters are explicitly marked as truncated. Does not return columns, samples or relations. On unsupported servers, ask to upgrade; never silently fetch the whole project. Permission errors must not be bypassed.
Inputs: projectId (required), limit, cursor, catalogId, +1 more.
peaka_list_tablesARead-only
List the tables of a catalog schema in the Peaka project: the catalog and schema once, then one row per table with its name and cache state.
cache: "cached" = the table is read from Peaka's cache; "not_cached" = it can be cached but is read live from the source (a live read of a SaaS source may return only its first page of records); "not_cacheable" = always read live from the source (e.g. a database).
Use tableNameContains to look up specific tables in a large schema; totalTables is the schema's size before that filter. Descriptions are left out unless includeDescriptions is true.
If you do not already know the projectId for the current task, call peaka_list_projects first and ask the user which project to use. Remember the chosen projectId for subsequent calls in this conversation.Inputs: catalogId (required), projectId (required), schemaName (required), tableNameContains, +1 more.
peaka_query_golden_sqlsARead-only
Query question/sql pairs from Peaka's golden sql vector store. If you find an existing query matching the user's question, just use it. Otherwise use the other tools to figure out the tables and write the query.
If you do not already know the projectId for the current task, call peaka_list_projects first and ask the user which project to use. Remember the chosen projectId for subsequent calls in this conversation.Inputs: query (required), projectId (required).
peaka_refresh_cache_fullA
Trigger a full refresh on an existing cache in the Peaka project. Use the cacheId returned from peaka_get_cache_statuses.
If you do not already know the projectId for the current task, call peaka_list_projects first and ask the user which project to use. Remember the chosen projectId for subsequent calls in this conversation.Inputs: cacheId (required), projectId (required).
peaka_refresh_cache_incrementalA
Trigger an incremental update on an existing cache in the Peaka project. Fetches only new/changed rows — much faster than a full refresh. Use the cacheId returned from peaka_get_cache_statuses.
If you do not already know the projectId for the current task, call peaka_list_projects first and ask the user which project to use. Remember the chosen projectId for subsequent calls in this conversation.Inputs: cacheId (required), projectId (required).
peaka_refresh_materialized_queryA
Trigger a refresh on a materialized saved query in the Peaka project. Use the queryId returned from peaka_list_queries for queries whose queryType is "MATERIALIZED".
If you do not already know the projectId for the current task, call peaka_list_projects first and ask the user which project to use. Remember the chosen projectId for subsequent calls in this conversation.Inputs: queryId (required), projectId (required).
peaka_refresh_project_metadataA
Refresh project metadata for a specific catalog. This is a long-running operation that should only be used when a data source has structurally changed (e.g. new tables or columns added). Triggers the refresh asynchronously and returns immediately; it does not wait for completion. Poll peaka_get_metadata_refresh_status to track progress until it reports COMPLETED or FAILED.
If you do not already know the projectId for the current task, call peaka_list_projects first and ask the user which project to use. Remember the chosen projectId for subsequent calls in this conversation.Inputs: catalogId (required), projectId (required).
peaka_search_relevant_tablesARead-only
Find candidate tables for a data question when the project is too large for peaka_list_project_tables to list. Returns up to 10 candidates, one row each: table, catalogId, the first sentence of its description, its column count and up to 40 column names, plus index state and coverage. Candidates may be incomplete or irrelevant: inspect them, then use peaka_list_columns for a candidate's full columns. If the index is unavailable, stale or has no useful matches, discover scope with peaka_list_catalogs, peaka_list_schemas and peaka_list_tables. Empty results do not mean the project has no data. Permission errors must be resolved, not bypassed with another tool. This tool does not execute SQL or refresh an index.
If you do not already know the projectId for the current task, call peaka_list_projects first and ask the user which project to use. Remember the chosen projectId for subsequent calls in this conversation.
Inputs: question (required), projectId (required), limit.
peaka_update_cacheAIdempotent
Update cache settings on an existing cache in the Peaka project. This endpoint replaces — not merges — the schedules, so both incrementalSchedule and fullRefreshSchedule must be supplied with the full intended state every call. Each schedule is either {type: "BASIC", expression} with an ISO-8601 duration (e.g. PT6H, P1D, P7D, P30D), or {type: "NONE"} to turn that refresh off. The response reflects the schedule actually applied, which the backend may clamp to its allowed range — check it.
If you do not already know the projectId for the current task, call peaka_list_projects first and ask the user which project to use. Remember the chosen projectId for subsequent calls in this conversation.Inputs: cacheId (required), projectId (required), fullRefreshSchedule (required), incrementalSchedule (required).
peaka_update_queryAIdempotent
Update an existing saved query in the Peaka project. Adjusts the display name, SQL body, and/or the auto-refresh schedule (for materialized queries). At least one of displayName, inputQuery, or schedule must be provided.
If you do not already know the projectId for the current task, call peaka_list_projects first and ask the user which project to use. Remember the chosen projectId for subsequent calls in this conversation.Inputs: queryId (required), projectId (required), schedule, inputQuery, +1 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 36 tools
Most tools target distinct resource/action pairs, and descriptions explicitly route agents between close pairs such as list_project_tables vs list_tables, execute_sql_query vs execute_query, and metadata operation vs refresh status. However, the large surface still contains several overlapping metadata/query/status tools, so an agent can misselect without reading the long descriptions.
All 36 tools use the same peaka_ prefix and snake_case verb_noun convention (list_, get_, create_, update_, delete_, execute_, refresh_). Minor wording differences such as query_golden_sqls and singular/plural status do not break the predictable pattern.
36 tools is well beyond the 25+ threshold and makes the server heavy for an agent to navigate. The breadth covers many real subsystems, but several tools could be consolidated, especially metadata listing/status variants, cache refresh variants, and SQL-vs-saved-query execution.
Core data workflows are well covered: project/connection discovery, catalog/schema/table/column inspection, SQL execution, cache lifecycle, saved query CRUD/execute, and metadata refresh. Gaps remain around project/connection administration, golden SQL write operations, and full semantic catalog/table lifecycle such as updating or deleting a semantic catalog and listing/getting semantic tables.
Maintenance
Related MCP Connectors
Query BigQuery, Snowflake, Redshift & Azure Synapse with natural language
Query Postgres, MySQL, SQL Server, Oracle, BigQuery, ClickHouse and Redshift from your AI client.
Query, explore, and manage your databases through natural conversation.
SQL validation, formatting, parsing, metadata extraction, linting, and security analysis.
Related MCP Servers
- FlicenseNot gradedqualityAmaintenanceEnables LLMs to inspect database schemas and execute SQL queries, including listing tables and describing table schemas.-
- FlicenseNot gradedqualityAmaintenanceEnables LLMs to inspect database schemas and execute SQL queries, including listing tables and describing table schemas.-
- FlicenseNot gradedqualityAmaintenanceEnables LLMs to inspect database schemas, list tables, describe table structures, and execute SQL queries against configured projects and datasets.-
- FlicenseNot gradedqualityAmaintenanceEnables LLMs to inspect database schemas, list tables, describe table schemas, and execute SQL queries against configured datasets and projects.-