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.

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
- Ensure Python and GreptimeDB are installed.
- Set environment variables or provide command-line arguments for DB connection (
GREPTIMEDB_HOST
,GREPTIMEDB_PORT
, etc.). - Add the MCP server to your Windsurf configuration:
{ "mcpServers": { "greptimedb": { "command": "greptimedb-mcp-server", "args": [] } } }
- Save your config and restart Windsurf.
- 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
- Install the server:
pip install greptimedb-mcp-server
- Edit
claude_desktop_config.json
(see README for path). - Add:
{ "mcpServers": { "greptimedb": { "command": "greptimedb-mcp-server", "args": [] } } }
- Save and restart Claude Desktop.
- Confirm MCP server availability in Claude UI.
Cursor
- Install
greptimedb-mcp-server
via pip. - Locate Cursor’s configuration file for MCP servers.
- Insert:
{ "mcpServers": { "greptimedb": { "command": "greptimedb-mcp-server", "args": [] } } }
- Save and restart Cursor.
- Check for server in Cursor’s tool integrations.
Cline
- Install and configure
greptimedb-mcp-server
as above. - Edit Cline’s MCP server config:
{ "mcpServers": { "greptimedb": { "command": "greptimedb-mcp-server", "args": [] } } }
- Save and restart Cline.
- 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:

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
Section | Availability | Details/Notes |
---|---|---|
Overview | ✅ | |
List of Prompts | ✅ | list_prompts, get_prompt |
List of Resources | ✅ | list_resources, read_resource |
List of Tools | ✅ | list_tools, call_tool |
Securing API Keys | ✅ | via 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 Forks | 8 |
Number of Stars | 18 |
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.