Skip to main content
Glama

HiveServer2 MCP

by xiexiajiao

HiveServer2 MCP

A MCP server for HiveServer2.

Installation

  1. Clone the repository:
    git clone https://github.com/your-username/hiveserver2-mcp.git cd hiveserver2-mcp
  2. Create a virtual environment:
    python3 -m venv venv source venv/bin/activate
  3. Install the dependencies:
    pip install -r requirements.txt

Usage

  1. Create a .env file:Create a .env file in the root of the project and add the following environment variables:
    HIVESERVER2_HOST=<your_hiveserver2_host> HIVESERVER2_PORT=<your_hiveserver2_port> HIVESERVER2_USER=<your_hiveserver2_user> HIVESERVER2_PASSWORD=<your_hiveserver2_password>
  2. Run the server:
    hiveserver2-mcp
  3. Interact with the server:You can use curl to interact with the server.Query:
    curl -X POST -H "Content-Type: application/json" -d '{"query": "SELECT * FROM my_table"}' http://localhost:5000/query

Note on sasl

This project does not include the sasl package as a direct dependency, as it can be difficult to install on some systems. If you are connecting to a Hive instance that requires SASL authentication, you may need to install it manually.

Ubuntu/Debian:

sudo apt-get install -y libsasl2-dev pip install sasl

macOS:

brew install sasl pip install sasl
-
security - not tested
F
license - not found
-
quality - not tested

A MCP server that allows users to interact with HiveServer2 through an API interface, enabling execution of Hive queries over HTTP.

  1. Installation
    1. Usage
      1. Note on sasl

        Related MCP Servers

        • -
          security
          A
          license
          -
          quality
          An MCP server that exposes HTTP methods defined in an OpenAPI specification as tools, enabling interaction with APIs via the Model Context Protocol.
          Last updated -
          8
          Python
          MIT License
        • A
          security
          A
          license
          A
          quality
          An MCP server that connects to the Teamwork API, providing a simplified interface for interacting with Teamwork projects and tasks.
          Last updated -
          35
          7
          10
          TypeScript
          MIT License
          • Apple
        • -
          security
          F
          license
          -
          quality
          An MCP (Multi-Agent Conversation Protocol) Server that provides access to Google Cloud's Dataproc Metastore API, enabling AI agents to manage and interact with Hive metastore services through natural language.
          Last updated -
          Python
          • Linux
          • Apple

        View all related MCP servers

        MCP directory API

        We provide all the information about MCP servers via our MCP API.

        curl -X GET 'https://glama.ai/api/mcp/v1/servers/xiexiajiao/HIVE-MCP'

        If you have feedback or need assistance with the MCP directory API, please join our Discord server