Provides a connection to HiveServer2, allowing users to execute SQL queries against Hive databases and retrieve results through a REST API endpoint.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@HiveServer2 MCPshow me the top 10 customers by total sales"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
HiveServer2 MCP
A MCP server for HiveServer2.
Installation
Clone the repository:
git clone https://github.com/your-username/hiveserver2-mcp.git cd hiveserver2-mcpCreate a virtual environment:
python3 -m venv venv source venv/bin/activateInstall the dependencies:
pip install -r requirements.txt
Related MCP server: MCP-OpenAPI
Usage
Create a
.envfile:Create a
.envfile 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>Run the server:
hiveserver2-mcpInteract with the server:
You can use
curlto 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 saslmacOS:
brew install sasl
pip install saslThis server cannot be installed
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.