Skip to main content
Glama
MCP Vertica
by nolleh

MCP ヴェルティカ

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

ツール

データベース操作

  1. execute_query

    • SQLクエリを実行する

    • すべてのSQL操作のサポート

  2. stream_query

    • 大規模なクエリ結果をバッチでストリーミングする

    • 設定可能なバッチサイズ

  3. copy_data

    • COPYコマンドを使用した一括データロード

    • 大規模なデータセットに効率的

スキーマ管理

  1. get_table_structure

    • 詳細なテーブル構造を取得する

    • 列情報

    • 制約

  2. list_indexes

    • テーブルのすべてのインデックスを一覧表示する

    • インデックスの種類と一意性

    • 列情報

  3. 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環境で実行

Docker Compose を使用して Vertica を実行する場合、次のように MCP サーバーを実行できます。

1. 直接パラメータで実行

uvx mcp-vertica \
  --host localhost \
  --db-port 5433 \
  --database VMart \
  --user dbadmin \
  --password "" \
  --connection-limit 10

2. 環境変数を使って実行する

次の内容の.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: local

Available Tools

6 tools
copy_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

    B3.1/5.0

    Scored across 6 tools

    Disambiguation3/5

    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.

    Naming Consistency5/5

    All tools follow a consistent verb_noun pattern with underscores (e.g., copy_data, list_indexes, get_table_structure), making the naming predictable.

    Tool Count4/5

    6 tools is a reasonable size for a focused database server, though it leans slightly low.

    Completeness2/5

    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

    ActivityInactive
    ResponsivenessLimited data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      A Model Context Protocol server that enables SQL query execution, database management, and business intelligence capabilities through MySQL connections.
      1,462 npm
      MIT
    • A
      license
      B
      quality
      D
      maintenance
      A Model Context Protocol server that enables executing SQL queries and managing connections with Microsoft SQL Server databases.
      1
      2,101 npm
      6
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      A 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.
      62 npm
      9
      MIT
    • F
      license
      Not graded
      quality
      D
      maintenance
      A 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
      -