GreptimeDB MCP Server

GreptimeDB MCP Server enables FlowHunt and AI agents to securely interact with GreptimeDB—list tables, run SQL queries, and automate analytics with ease.

GreptimeDB MCP Server

What does “greptimedb” MCP Server do?

The greptimedb MCP (Model Context Protocol) Server is a tool designed to bridge AI assistants with GreptimeDB, a powerful time-series database. It enables AI agents to securely and efficiently interact with GreptimeDB by providing structured access to database functionalities. This includes capabilities such as listing tables, reading table data, and executing SQL queries—all through well-defined MCP primitives. By exposing these actions in a controlled manner, greptimedb-mcp-server enhances development workflows, allowing AI-powered tools and assistants to analyze, explore, and manage database content safely and programmatically. This approach fosters responsible data access while enabling rich, context-aware interactions for data analysis, reporting, and automation.

List of Prompts

  • list_prompts
    Lists all available prompts/templates for interaction.
  • get_prompt
    Retrieves a specific prompt by its name.

List of Resources

  • list_resources
    Lists database tables available in GreptimeDB.
  • read_resource
    Reads data from a specified table/resource in the database.

List of Tools

  • list_tools
    Lists all executable tools provided by the server.
  • call_tool
    Executes a SQL command on the GreptimeDB database.

Use Cases of this MCP Server

  • Database Table Discovery
    AI assistants can enumerate all tables in a GreptimeDB instance, aiding in schema exploration and data mapping for analytics and reporting.
  • Data Querying and Analysis
    Agents can execute SQL queries to extract, aggregate, or analyze time-series data, supporting use cases from monitoring to trend analysis.
  • Contextual Data Retrieval
    Enables AI agents to pull specific table data as context for LLM tasks, such as generating summaries, anomaly detection, or forecasting.
  • Automated Reporting
    Scripted or AI-driven workflows can use the server to generate periodic reports by querying the latest data from GreptimeDB.
  • Assisted Data Management
    Developers can use AI to interactively manage and inspect GreptimeDB contents, improving productivity in data engineering workflows.

How to set it up

Windsurf

  1. Ensure Python and GreptimeDB are installed.
  2. Set environment variables or provide command-line arguments for DB connection (GREPTIMEDB_HOST, GREPTIMEDB_PORT, etc.).
  3. Add the MCP server to your Windsurf configuration:
    {
      "mcpServers": {
        "greptimedb": {
          "command": "greptimedb-mcp-server",
          "args": []
        }
      }
    }
    
  4. Save your config and restart Windsurf.
  5. Verify the server is available in your tool list.

Securing API keys:

{
  "mcpServers": {
    "greptimedb": {
      "command": "greptimedb-mcp-server",
      "args": [],
      "env": {
        "GREPTIMEDB_USER": "your_user",
        "GREPTIMEDB_PASSWORD": "your_password"
      }
    }
  }
}

Claude

  1. Install the server: pip install greptimedb-mcp-server
  2. Edit claude_desktop_config.json (see README for path).
  3. Add:
    {
      "mcpServers": {
        "greptimedb": {
          "command": "greptimedb-mcp-server",
          "args": []
        }
      }
    }
    
  4. Save and restart Claude Desktop.
  5. Confirm MCP server availability in Claude UI.

Cursor

  1. Install greptimedb-mcp-server via pip.
  2. Locate Cursor’s configuration file for MCP servers.
  3. Insert:
    {
      "mcpServers": {
        "greptimedb": {
          "command": "greptimedb-mcp-server",
          "args": []
        }
      }
    }
    
  4. Save and restart Cursor.
  5. Check for server in Cursor’s tool integrations.

Cline

  1. Install and configure greptimedb-mcp-server as above.
  2. Edit Cline’s MCP server config:
    {
      "mcpServers": {
        "greptimedb": {
          "command": "greptimedb-mcp-server",
          "args": []
        }
      }
    }
    
  3. Save and restart Cline.
  4. Validate the server is accessible as a tool.

Note about securing API keys

Always use environment variables (not plaintext in config) for sensitive credentials:

{
  "mcpServers": {
    "greptimedb": {
      "command": "greptimedb-mcp-server",
      "args": [],
      "env": {
        "GREPTIMEDB_USER": "your_user",
        "GREPTIMEDB_PASSWORD": "your_password"
      },
      "inputs": {}
    }
  }
}

How to use this MCP inside flows

Using MCP in FlowHunt

To integrate MCP servers into your FlowHunt workflow, start by adding the MCP component to your flow and connecting it to your AI agent:

FlowHunt MCP flow

Click on the MCP component to open the configuration panel. In the system MCP configuration section, insert your MCP server details using this JSON format:

{
  "greptimedb": {
    "transport": "streamable_http",
    "url": "https://yourmcpserver.example/pathtothemcp/url"
  }
}

Once configured, the AI agent is now able to use this MCP as a tool with access to all its functions and capabilities. Remember to change “greptimedb” to whatever the actual name of your MCP server is and replace the URL with your own MCP server URL.


Overview

SectionAvailabilityDetails/Notes
Overview
List of Promptslist_prompts, get_prompt
List of Resourceslist_resources, read_resource
List of Toolslist_tools, call_tool
Securing API Keysvia env in config example
Sampling Support (less important in evaluation)Not mentioned

Based on the information above, greptimedb-mcp-server provides solid MCP primitives for database access, tooling, and prompt/resource management, but lacks explicit sampling/roots support. The documentation is clear, and setup is straightforward for several platforms.

I would rate this MCP server a 7/10 for its practical features, clear documentation, and security notes, but with room for improvement in advanced MCP features (sampling/roots) and more user-oriented prompt templates.


MCP Score

Has a LICENSE✅ (MIT)
Has at least one tool
Number of Forks8
Number of Stars18

Frequently asked questions

What is the GreptimeDB MCP Server?

The GreptimeDB MCP Server enables AI assistants and agents to securely access and manage GreptimeDB, a high-performance time-series database, through structured MCP primitives such as listing tables, reading data, and executing SQL queries.

What are typical use cases for this MCP server?

Use cases include database table discovery, data querying and analysis, contextual data retrieval for LLMs, automated reporting, and AI-assisted data management—streamlining analytics and operational workflows.

How do I configure the GreptimeDB MCP Server for secure access?

Always use environment variables for sensitive credentials like GREPTIMEDB_USER and GREPTIMEDB_PASSWORD in your MCP server configuration, instead of hard-coding them in plaintext.

Can I use this MCP Server in multiple FlowHunt clients like Windsurf, Claude, Cursor, or Cline?

Yes! The GreptimeDB MCP Server supports integration with all major FlowHunt-compatible clients. Just follow the relevant configuration instructions for each client.

Does the MCP Server support advanced sampling or roots features?

Currently, the server focuses on core database access and does not explicitly support MCP sampling or roots features. However, it provides robust tools for querying, resource management, and automation.

Try GreptimeDB MCP Integration

Unlock powerful AI-driven data workflows by connecting your GreptimeDB instance to FlowHunt with the GreptimeDB MCP server. Explore, analyze, and automate your time-series data securely and efficiently.

Learn more