execute_query
Execute SQL queries against the Vertica database. Query restrictions depend on configuration.
Run SQL against Vertica, stream oversized result sets in batches, and read table, view, projection and column metadata.
LABSCO SUMMARY
stream_query is what separates this from a plain query wrapper: batchSize and maxRows keep a wide table from arriving as a single payload. On the introspection side, list_indexes reports Vertica projections, which is the structure that actually governs performance in that engine. Whether execute_query can write is a configuration question rather than a property of the tool, so a read-only deployment is something you set up rather than something you are given.
A Vertica client covering query execution and schema introspection.
A reachable Vertica database and its connection settings; what a query is permitted to do depends on how the deployment is configured.
One command plus credentials — claude mcp add vertica --scope user -- npx -y @hechtcarmel/vertica-mcp@latest --env-file <YOUR_ENV_FILE>, then supply credentials
USE CASES
Column types and constraints decide whether a query is even valid, and view definitions often answer the question outright.
Batching is the difference between an answer and a truncated payload; the batch size and the row ceiling are both yours to set.
In Vertica the physical layout is the projection, and it is what a slow scan usually traces back to.
Counted once with only startup setup. Other versions, modes or optional credentials may expose a different list.
execute_queryExecute SQL queries against the Vertica database. Query restrictions depend on configuration.
get_table_structureGet detailed structure information for a specific table including columns, data types, constraints, and metadata.
list_indexesList indexes (projections) for a specific table in Vertica with column and uniqueness information
list_tablesList all tables in a schema with metadata
list_viewsList all views in a schema with their definitions and metadata
stream_queryStream large query results in batches to handle datasets efficiently. Query restrictions depend on configuration.
BEFORE YOU INSTALL
6 tools when we connected. VERTICA_READONLY_MODE defaults to true, limiting execute_query to SELECT, SHOW, DESCRIBE, EXPLAIN and WITH. Use stream_query above about 10,000 rows.
All 3 documented clients run the server on your machine.
CONTEXT COST
Rated by the size of the 6 tool definitions that ride along on every turn, not by how many there are
INSTALLATION
claude mcp add vertica --scope user -- npx -y @hechtcarmel/vertica-mcp@latest --env-file <YOUR_ENV_FILE>Create your .env file with connection details: VERTICA_HOST, VERTICA_PORT (5433 by default), VERTICA_DATABASE, VERTICA_USER and VERTICA_PASSWORD.
Then run the command below, with --env-file pointing at that file.
claude mcp add vertica --scope user -- npx -y @hechtcarmel/vertica-mcp@latest --env-file <YOUR_ENV_FILE>{
"mcpServers": {
"vertica-mcp": {
"command": "npx",
"args": [
"@hechtcarmel/vertica-mcp",
"--env-file",
"/Users/<YOUR_USERNAME>/.cursor/vertica.env"
]
}
}
}Create ~/.cursor/vertica.env with the connection details — VERTICA_HOST, VERTICA_PORT (5433 by default), VERTICA_DATABASE, VERTICA_USER and VERTICA_PASSWORD — and point --env-file at it.
{
"mcpServers": {
"vertica-mcp": {
"command": "npx",
"args": [
"@hechtcarmel/vertica-mcp",
"--env-file",
"<YOUR_ENV_FILE>"
]
}
}
}--env-file points at a .env file holding the connection details: VERTICA_HOST, VERTICA_PORT (5433 by default), VERTICA_DATABASE, VERTICA_USER and VERTICA_PASSWORD.