MCP Vertica
МКП Вертика
Сервер Vertica MCP (модель-контекст-протокол)
Пример: настройка сервера MCP
Создайте или отредактируйте файл конфигурации клиента mcp со следующим содержимым:
{
"mcpServers": {
"vertica": {
"command": "uvx",
"args": [
"mcp-vertica",
"--host=localhost",
"--db-port=5433",
"--database=VMart",
"--user=dbadmin",
"--password=",
"--connection-limit=10"
]
}
}
}[!Примечание]
Для логических флагов, таких как
--sslили--ssl-reject-unauthorized, просто добавьте флаг (например,"--ssl"), чтобы включить его, или опустите его, чтобы отключить.Для пустого пароля используйте пустую строку, как показано выше.
Функции
Управление подключением к базе данных
Объединение подключений с настраиваемыми ограничениями
Поддержка SSL/TLS
Автоматическая очистка соединения
Обработка тайм-аута соединения
Операции запроса
Выполнение SQL-запросов
Передавайте большие результаты запросов пакетами
Операции копирования данных
Управление транзакциями
Управление схемой
Проверка структуры таблицы
Управление индексом
Посмотреть управление
Информация об ограничениях
Подробности столбца
Функции безопасности
Разрешения на уровне операций (INSERT, UPDATE, DELETE, DDL)
Разрешения, специфичные для схемы
Поддержка SSL/TLS
Маскировка пароля в журналах
Related MCP server: MSSQL MCP Server
Инструменты
Операции с базами данных
execute_queryВыполнение SQL-запросов
Поддержка всех операций SQL
stream_queryПередавайте большие результаты запросов пакетами
Настраиваемый размер партии
copy_dataМассовая загрузка данных с помощью команды COPY
Эффективно для больших наборов данных
Управление схемой
get_table_structureПолучить подробную структуру таблицы
Информация о столбце
Ограничения
list_indexesСписок всех индексов для таблицы
Тип индекса и уникальность
Информация о столбце
list_viewsПеречислить все представления в схеме
Посмотреть определения
Конфигурация
Переменные среды
VERTICA_HOST=localhost
VERTICA_PORT=5433
VERTICA_DATABASE=VMart
VERTICA_USER=newdbadmin
VERTICA_PASSWORD=vertica
VERTICA_CONNECTION_LIMIT=10
VERTICA_SSL=false
VERTICA_SSL_REJECT_UNAUTHORIZED=trueРазрешения на операции
ALLOW_INSERT_OPERATION=false
ALLOW_UPDATE_OPERATION=false
ALLOW_DELETE_OPERATION=false
ALLOW_DDL_OPERATION=falseРазрешения схемы
SCHEMA_INSERT_PERMISSIONS=schema1:true,schema2:false
SCHEMA_UPDATE_PERMISSIONS=schema1:true,schema2:false
SCHEMA_DELETE_PERMISSIONS=schema1:true,schema2:false
SCHEMA_DDL_PERMISSIONS=schema1:true,schema2:falseУстановка
uvx mcp-verticaЛицензия
Данный проект лицензирован по лицензии MIT — подробности см. в файле LICENSE.
Работа в среде Docker
При запуске Vertica с Docker Compose вы можете запустить сервер MCP следующим образом:
1. Запуск с прямыми параметрами
uvx mcp-vertica \
--host localhost \
--db-port 5433 \
--database VMart \
--user dbadmin \
--password "" \
--connection-limit 102. Запуск с переменными среды
Создайте файл .env со следующим содержимым:
VERTICA_HOST=localhost
VERTICA_PORT=5433
VERTICA_DATABASE=test_db
VERTICA_USER=test_user
VERTICA_PASSWORD=test_password
VERTICA_CONNECTION_LIMIT=10
VERTICA_SSL=false
VERTICA_SSL_REJECT_UNAUTHORIZED=trueЗатем запустите с .env
uvx mcp-vertica \
--env-file .envДля тестирования, пример VerticaDB Docker Compose
version: "3.8"
services:
vertica:
# image: vertica/vertica-ce:11.1.0-0
image: vertica/vertica-ce:latest
platform: linux/amd64
container_name: vertica-ce
environment:
VERTICA_MEMDEBUG: 2
ports:
- "5433:5433"
- "5444:5444"
volumes:
- vertica_data:/home/dbadmin/VMart
healthcheck:
test:
[
"CMD",
"/opt/vertica/bin/vsql",
"-h",
"localhost",
"-d",
"VMart",
"-U",
"dbadmin",
"-c",
"SELECT 1",
]
interval: 10s
timeout: 5s
retries: 5
start_period: 30s
restart: unless-stopped
volumes:
vertica_data:
driver: localAvailable Tools
6 toolscopy_dataC
Copy data into a Vertica table using COPY command.
Args:
ctx: FastMCP context for progress reporting and logging
schema: vertica schema to execute the copy against
table: Target table name
data: List of rows to insert
Returns:
Status message indicating success or failure
Inputs: schema (required), table (required), data (required).
execute_queryC
Execute a SQL query and return the results.
Args:
ctx: FastMCP context for progress reporting and logging
query: SQL query to execute
database: Optional database name to execute the query against
Returns:
Query results as a string
Inputs: query (required).
get_table_structureB
Get the structure of a table including columns, data types, and constraints.
Args:
ctx: FastMCP context for progress reporting and logging
table_name: Name of the table to inspect
schema: Schema name (default: public)
Returns:
Table structure information as a string
Inputs: table_name (required), schema.
list_indexesB
List all indexes for a specific table.
Args:
ctx: FastMCP context for progress reporting and logging
table_name: Name of the table to inspect
schema: Schema name (default: public)
Returns:
Index information as a string
Inputs: table_name (required), schema.
list_viewsB
List all views in a schema.
Args:
ctx: FastMCP context for progress reporting and logging
schema: Schema name (default: public)
Returns:
View information as a string
Inputs: schema.
stream_queryC
Execute a SQL query and return the results in batches as a single string.
Args:
ctx: FastMCP context for progress reporting and logging
query: SQL query to execute
batch_size: Number of rows to fetch at once
Returns:
Query results as a concatenated string
Inputs: query (required), batch_size.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 6 tools
Most tools are distinct, but 'execute_query' and 'stream_query' both execute SQL queries with only a difference in batch handling, leading to potential confusion for an agent.
All tools follow a consistent verb_noun pattern with underscores (e.g., copy_data, list_indexes, get_table_structure), making the naming predictable.
6 tools is a reasonable size for a focused database server, though it leans slightly low.
The set covers query execution and data copying but lacks essential operations like table creation, modification, and deletion, leaving significant gaps for typical database management.
Maintenance
Related MCP Connectors
The BigQuery remote MCP server is a fully managed service that uses the Model Context Protocol to connect AI applications and LLMs to BigQuery data sources. It provides secure, standardized tools for AI agents to list datasets and tables, retrieve schemas, generate and execute SQL queries through natural language, and analyze data—enabling direct access to enterprise analytics data without requiring manual SQL coding.
Draxlr's remote MCP server connects AI assistants to your SQL databases and dashboards. Explore schemas, run read-only queries, manage saved queries and dashboards, and export results, all with row-level security so each user sees only their own data.
Hosted SQL Server MCP server for Claude, ChatGPT and Cursor, with each action switched per account.
Governed SQL access to your databases: redaction, query review and an audit log.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that enables SQL query execution, database management, and business intelligence capabilities through MySQL connections.1,462 npmMIT
- AlicenseBqualityDmaintenanceA Model Context Protocol server that enables executing SQL queries and managing connections with Microsoft SQL Server databases.12,310 npm6MIT
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that provides AI assistants with comprehensive access to SQL databases, enabling schema inspection, query execution, and database operations with enterprise-grade security.55 npm9MIT
- FlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that enables AI assistants to interact with Vertica databases through SQL queries, schema inspection, database documentation, and data export capabilities.1-