Skip to main content

A Hive MCP server

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
    • Generates appropriate database schemas and sample data
    • 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

Usage with Claude Desktop

uv

# Add the server to your claude_desktop_config.json
"mcpServers": {
  "hive": {
    "command": "uv",
    "args": [
      "--directory",
      "parent_of_servers_repo/servers/src/hive",
      "run",
      "mcp-server-hive",
      "--host",
      "localhost",
      "--port",
      "10000"
    ]
  }
}

Docker

# Add the server to your claude_desktop_config.json
"mcpServers": {
  "hive": {
    "command": "docker",
    "args": [
      "run",
      "--rm",
      "-i",
      "-v",
      "mcp-test:/mcp",
      "mcp/hive"
    ]
  }
}

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.2.tar.gz (20.2 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.2-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mcp_server_hive-0.6.2.tar.gz
  • Upload date:
  • Size: 20.2 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.2.tar.gz
Algorithm Hash digest
SHA256 875a68d69dc4e0760829df9066a31d3a8f0020674ac7415b387c37ee7ae20531
MD5 8418966cdcc7b7a6aa99c76c7369f60e
BLAKE2b-256 f81de309340bafe1c92fb2306b4805d13d275cfac0a50418c6e9d703487b717e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_server_hive-0.6.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ac6cad7841f4a5995d378cb91b2e8a4c7815d52d694dd34792d7b9742196685b
MD5 1bb78ac7c334767fa234356c70cf7c91
BLAKE2b-256 4e6381ef1d7f2cc0a630d2c95afeafc08c68481d042d54f59328b1a4ba33438b

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