Apache Hive MCP Server
Apache Hive MCP Server
Un servidor MCP para Apache Hive (HiveServer2), construido con FastMCP. Se conecta a cualquier endpoint compatible con HiveServer2 — Apache Hive de código abierto, Cloudera CD P Base o Cloudera CD P Public Cloud (CDW) — y expone dos herramientas de solo lectura que un agente LLM puede invocar.
Resumen del proyecto
Qué es — un servidor protocolo Model Context Protocol que permite a un agente LLM consultar Apache Hive: enumerar tablas y ejecutar SQL de solo lectura, con resultads devueltos as JSON.
Paridad de funccionalidades — es un espejo del Impala/Iceberg MCP server de Cloudera: las mismas herramientas
execute_query+get_schemay estructura, con la capa de conexión reemplazada por HiveServer2 medianteimpyla.Funcciona en todos los lugares donde funciona HiveServer2 — Apache Hive de código abierto, P CDP Base (Kerberos/LDAP) y CDP Public Cloud / CDW (Knox, LDAP sobre HTTPS). Autentication, transporte y TLS se controlde con variables de entterno
HIVE_*.Seguro por defect —
execute_queryimpone un prefijo de guarda de solo lectura (SELECT/SHOW/DESCRIBE/WITH); las operaciones de textur y DDL se rechazan antes de abrir una a conexión.Transporte —
stdio(predeterminado),http(predeterminado),http),sse, seleccionado víaMCP_TRANSPORT.Pila tecnológica — Python ≥3.10, FastMCP,
impyla,uv. 11 pruebas (con conexión called simulada — no se requiera Hive real).
Related MCP server: Cloudera Iceberg MCP Server
Herramientas
Tool | Signature | Descripción |
|
| Ejecuta una consulta SQL de solo lectura (SELECT, SHOW, DESCRIBE, WITH) y devuelve results as un array JSON de objetos con clave por columna. Las operación de escritura se rechazan un string de error. |
|
| Ejecuta |
Configuración
toda la config ur via variables de env (or a file .env in the project root).*
Variable | Valor predeterminado | Descripción |
|
| Hostname or IP de HiveServer2 |
V V | `local... | |
|
| Puerto de HiveServer2 |
|
| Base and the database to the conex |
| (vacío) | Usuario (delelo vacío for NOSASL/Kerberos) |
| (vacío) | Contraseña (utila with PLAIN/LDAP) |
|
| Método de autircación |
|
| Use of HTTP transport vs. thrift binaria |
|
| Path HTTP when |
|
| SSL activo for all the connexion thrift |
|
| SE principal name for Kerberos (solo GSSAPI) |
|
| MCP transport: |
Copia .env.example a .env and fill los values.
Ajustes predeinidos de despliegue
"de local" para all descriptors: " development (Docker HiveServer2)"
HIVE_HOST=localhost
HIVE_PORT=10000
HIVE_DATABASE=default
HIVE_AUTH_MECHANISM=NOSASL
MCP_TRANSPORT=stdioCDP Public Cloud (CDW Virtual Warehuse)
HIVE_HOST=<coordinator-hostname>.dw.cloudera.site
HIVE_PORT=443
HIVE_DATABASE=default
HIVE_USER=<workload-username>
HIVE_PASSWORD=<workload-password>
HIVE_AUTH_MECHANISM=LDAP
HIVE_USE_HTTP_TRANSPORT=true
HIVE_HTTP_PATH=cliservice
HIVE_USE_SSL=true
MCP_TRANSPORT=stdioCDP Base / on-premises con Kerberos
HIVE_HOST=<hiveserver2-host.example.com>
HIVE_PORT=10000
HIVE_DATABASE=default
HIVE_AUTH_MECHANISM=GSSAPI
HIVE_KERBEROS_SERVICE_NAME=hive
MCP_TRANSPORT=stdioObtén un ticket de Kerberos (
kinit) before iniciar el servidor.
Ejecución
# Install
pip install -e .
# or with uv:
uv sync
# Copy and edit config
cp .env.example .env
# Start (stdio transport, for use with an MCP host)
uv run hive-mcp-serverConfiguración del client MCP
Los hosts MCP (Claude Desktop, Cloudera AI Agent Studio, etc.) registran servidores with a mcpServers JSON block. uvx ejecuta este servidor directamente desde GitHub — no no local install, no publishing en PyPI. Fill in — "Complet los values HIVE_* de tu enterno (see Configuración and los presets anteriores).
{
"mcpServers": {
"Hive": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/avelloal/hive-mcp-server@v0.1.0",
"hive-mcp-server"
],
"env": {
"HIVE_HOST": "<coordinator-hostname>.dw.cloudera.site",
"HIVE_PORT": "443",
"HIVE_DATABASE": "default",
"HIVE_USER": "<workload-username>",
"HIVE_PASSWORD": "<workload-password>",
"HIVE_AUTH_MECHANISM": "LDAP",
"HIVE_USE_HTTP_TRANSPORT": "true",
"HIVE_HTTP_PATH": "cliservice",
"HIVE_USE_SSL": "true"
}
}
}
}El example above is aimed at CDP Public Cloud / CDW. For targets locales o Kerberos, cambia values env utilizo "prestes anteriores". @v0.1.0 fija un release — drop the shoe to follow the last or bump it for a newer.
Para Cloudera AI Agent Studio in particular (empas de registro, format de values, limit notes of stdio/uvx), see examples/agent-studio/.
Prueba de humo
un HiveServer2 local (e.g. Apache Hive Dock):
docker run -d -p 10000:10000 apache/hive:3.1.3Configura
.envwith local prest in above.Inicia el servidor:
uv run hive-mcp-serverEn una segund terminal, use the
fastmcpdev inspector of any client MCP to call could both herramientas:get_schema()— debe devolver[]o una lista de namesexecute_query("SHOW DATABASES")— devolver' valid.
Licencia
Apache License 2.0 — see LICENSE.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Tools
Related MCP Servers
- AlicenseBqualityDmaintenanceEnables read-only access to Apache Iceberg tables via Impala, allowing LLMs to inspect database schemas and execute SQL queries to retrieve data from Iceberg tables.213Apache 2.0
- AlicenseNot gradedqualityDmaintenanceProvides read-only access to Iceberg tables via Apache Impala, enabling LLMs to inspect database schemas and execute SQL queries on Iceberg data.Apache 2.0
- AlicenseAqualityDmaintenanceEnables AI assistants to interact with Hadoop Hue for executing SQL queries using Hive, SparkSQL, or Impala and managing HDFS files. It supports directory browsing, file transfers, and exporting query results to CSV through the Model Context Protocol.81MIT
- AlicenseNot gradedqualityDmaintenanceEnables LLMs to query and explore schemas in Microsoft Fabric lakehouses, warehouses, and SQL databases using natural language, with tools for executing read-only SQL queries and searching tables, columns, and query patterns.3MIT
Related MCP Connectors
Explore, query, and inspect SQLite databases with ease. List tables, preview results, and view det…
Gateway between LLM agents and world data through eight tools and a bundled endpoint catalog.
Query PostgreSQL databases in plain English — LLM-generated, safety-validated SQL.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/avelloal/hive-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server