Skip to main content

ByteHouse MCP Server

An MCP server for ByteHouse. ByteHouse MCP Server serves as a communication bridge between large language models and ByteHouse instances, capable of efficiently transmitting information to achieve seamless docking and collaboration between the two. It also provides intelligent services throughout the entire life cycle for ByteHouse data development, query optimization, and cluster operation and maintenance. During data development, it offers precise guidance and suggestions to improve efficiency and quality. In terms of query optimization, it supports the analysis of statements and the optimization of performance. In the aspect of cluster operation and maintenance, it provides services such as monitoring the status, warning of risks, and automatic diagnosis and repair to ensure the efficient operation of the system.

Features

Tools

  • run_select_query

    • Execute SQL queries on your ByteHouse cluster.
    • Input: sql (string): The SQL query to execute.
    • All ByteHouse queries are run with readonly = 1 to ensure they are safe.
  • list_databases

    • List all databases on your ByteHouse cluster.
  • list_tables

    • List all tables in a database.
    • Input: database (string): The name of the database.
  • run_dml_ddl_query

    • Execute DML or DDL queries on your ByteHouse cluster.
    • Input: sql (string): The SQL query to execute.
  • get_bytehouse_table_engine_doc

    • Get ByteHouse Engine Manual.
    • Input: doc_name (string): The name of the doc.

Configuration

Running the Server

# Run the server with stdio transport (default)
mcp-bytehouse

# Run the server with SSE transport
mcp-bytehouse --transport sse
  1. Open the Claude Desktop configuration file located at:

    • On macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
    • On Windows: %APPDATA%/Claude/claude_desktop_config.json
  2. Add the following:

{
  "mcpServers": {
    "mcp-bytehouse": {
      "command": "uvx",
      "args": [
            "--from",
            "git+https://github.com/volcengine/mcp-server@master#subdirectory=server/mcp_server_bytehouse",
            "--python",
            "3.13",
            "mcp-bytehouse",
      ],
      "env": {
        "BYTEHOUSE_HOST": "<ByteHouse-host>",
        "BYTEHOUSE_PORT": "<ByteHouse-port>",
        "BYTEHOUSE_USER": "<ByteHouse-user>",
        "BYTEHOUSE_PASSWORD": "<ByteHouse-password>",
        "BYTEHOUSE_SECURE": "true",
        "BYTEHOUSE_VERIFY": "true",
        "BYTEHOUSE_CONNECT_TIMEOUT": "30",
        "BYTEHOUSE_SEND_RECEIVE_TIMEOUT": "30"
      }
    }
  }
}

License

This project is licensed under the Apache License.

Metadata

Release files for bytehouse-mcp-server 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bytehouse-mcp-server 0.1.0
File Size Uploaded
bytehouse_mcp_server-0.1.0.tar.gz 29.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for bytehouse-mcp-server 0.1.0
File Interpreter ABI Platform
bytehouse_mcp_server-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 63.3 kB

Release files / bytehouse_mcp_server-0.1.0.tar.gz

Download URL bytehouse_mcp_server-0.1.0.tar.gz
Size 29.3 kB
Tags Source
SHA-256 checksum
How to use checksums
75bedc91dc898691114c8faf87e5339cb29781b42884dda4216fffd6967d16f3
BLAKE2b-256 checksum
How to use checksums
8021da8846ca73527c3c4b2879d933e919002a003aac33924d414b0dee02c874
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.6.9

Release files / bytehouse_mcp_server-0.1.0-py3-none-any.whl

Download URL bytehouse_mcp_server-0.1.0-py3-none-any.whl
Size 34.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
eacfe2f2f24265c736442b2ef6ef4c59c55988913683108e04c80716b3cf909d
BLAKE2b-256 checksum
How to use checksums
65f10a47b5affb6ed727d1b91175a707dc62a289ae1ca3cfb58db500242718c2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.6.9

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page