Skip to main content

A Hive MCP server for data analysis

Project description

Hive MCP Server

Overview

A Model Context Protocol (MCP) server implementation that provides database interaction and business intelligence capabilities through Hive. This server enables running HQL queries, analyzing business data, and automatically generating business insight memos.

Components

Resources

The server exposes a single dynamic resource:

  • memo://insights: A continuously updated business insights memo that aggregates discovered insights during analysis
    • Auto-updates as new insights are discovered via the append-insight tool

Prompts

The server provides a demonstration prompt:

  • mcp-demo: Interactive prompt that guides users through database operations
    • Required argument: topic - The business domain to analyze
    • Guides users through analysis and insight generation
    • Integrates with the business insights memo

Tools

The server offers six core tools:

Query Tools

  • read_query

    • Execute SELECT queries to read data from the database
    • Input:
      • query (string): The SELECT HQL query to execute
    • Returns: Query results as array of objects
  • write_query

    • Execute INSERT, UPDATE, or DELETE queries
    • Input:
      • query (string): The HQL modification query
    • Returns: { affected_rows: number }
  • create_table

    • Create new tables in the database
    • Input:
      • query (string): CREATE TABLE HQL statement
    • Returns: Confirmation of table creation

Schema Tools

  • list_tables

    • Get a list of all tables in the database
    • No input required
    • Returns: Array of table names
  • describe-table

    • View schema information for a specific table
    • Input:
      • table_name (string): Name of table to describe
    • Returns: Array of column definitions with names and types

Analysis Tools

  • append_insight
    • Add new business insights to the memo resource
    • Input:
      • insight (string): Business insight discovered from data analysis
    • Returns: Confirmation of insight addition
    • Triggers update of memo://insights resource

Command Line Arguments

  • --username: Hive username (default: "hive")
  • --password: Hive password (default: "")
  • --host: Hive server hostname (default: "localhost")
  • --port: Hive server port (default: 10000)
  • --database: Hive database name (default: "default")
  • --configuration: Additional configuration string for Hive connection (default: "")

Usage with Claude Desktop

uvx

"mcpServers": {
  "hive": {
    "command": "uvx",
    "args": [
      "mcp-server-hive",
      "--host", "localhost",
      "--port", "10000",
      "--username", "hive",
      "--database", "default",
      "--configuration", "key1=value1;key2=value2"
    ]
  }
}

Docker

"mcpServers": {
  "hive": {
    "command": "docker",
    "args": [
      "run",
      "--rm",
      "-i",
      "-v", "mcp-test:/mcp",
      "mcp/hive",
      "--host", "hiveserver",
      "--port", "10000",
      "--username", "hive",
      "--database", "default"
    ]
  }
}

Building

Docker:

docker build -t mcp/hive .

License

This MCP server is licensed under the MIT License. This means you are free to use, modify, and distribute the software, subject to the terms and conditions of the MIT License. For more details, please see the LICENSE file in the project repository.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mcp_server_hive-0.6.10.tar.gz (35.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mcp_server_hive-0.6.10-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

Details for the file mcp_server_hive-0.6.10.tar.gz.

File metadata

  • Download URL: mcp_server_hive-0.6.10.tar.gz
  • Upload date:
  • Size: 35.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.10.14

File hashes

Hashes for mcp_server_hive-0.6.10.tar.gz
Algorithm Hash digest
SHA256 f7e16c24eba619f642e80f65f30469f4952501a69d9c0f0f31d0a75aa3063116
MD5 bf69c50721ba792cf9deafe9fd59d3b6
BLAKE2b-256 effe249e2d59b91167bdd4941ed28000d73b3bfd092ee29c3178b5bc38d841f7

See more details on using hashes here.

File details

Details for the file mcp_server_hive-0.6.10-py3-none-any.whl.

File metadata

File hashes

Hashes for mcp_server_hive-0.6.10-py3-none-any.whl
Algorithm Hash digest
SHA256 e3d06c36a7b12003f05b7f53b3e6bb27d5bf8d9132e811ac4fcc0d985e0e4cec
MD5 d0af7a3e96f7b4a3067f2b19bfbc0b8d
BLAKE2b-256 543b46557c5afe621e3237b5d9b23812ac1a503c0d33e9533fc1497c4c8ca41b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page