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.

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@main#subdirectory=server/mcp_server_bytehouse",
            "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 mcp-bytehouse 0.2.1

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

Source distribution (sdist)

Source distribution for mcp-bytehouse 0.2.1
File Size Uploaded Provenance Actions
mcp_bytehouse-0.2.1.tar.gz 81.6 kB Without provenance Details for mcp_bytehouse-0.2.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mcp-bytehouse 0.2.1
File Interpreter ABI Platform Actions
mcp_bytehouse-0.2.1-py3-none-any.whl Python 3 none any Details for mcp_bytehouse-0.2.1-py3-none-any.whl

Total release size: 92.9 kB

Release files / mcp_bytehouse-0.2.1.tar.gz

Download URL mcp_bytehouse-0.2.1.tar.gz
Size 81.6 kB
Tags Source
SHA-256 checksum
How to use checksums
c5c996ed149a3e8403c625341ce49eba819bc07a739bcf3e66d40406c5ebbb74
BLAKE2b-256 checksum
How to use checksums
ff450aa223144887c5e6c1fab24eb1e798bff71d5f63a56e2a054ef363fe0048
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.15

Release files / mcp_bytehouse-0.2.1-py3-none-any.whl

Download URL mcp_bytehouse-0.2.1-py3-none-any.whl
Size 11.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
45feff9577141ef2c73f7dd4b87eb055ade3a323ec6b82fd9ba53911362ca022
BLAKE2b-256 checksum
How to use checksums
12cedf9e4e8d96e2fdcef0acf888fa4ebf13be59807f7c57d5ed169566ee2570
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.15

Security for mcp-bytehouse 0.2.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 release files No provenance

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