LogoSTMCP
Download
greptimedb-mcp-server

greptimedb-mcp-server

A Model Context Protocol (MCP) server implementation for GreptimeDB that provides AI assistants with secure database access for exploring tables, reading data, and executing SQL queries through a controlled interface.

Tools

1. list_resources

List tables in the database.

2. read_resource

Read data from a specified table.

3. list_tools

List available tools provided by the server.

4. call_tool

Execute an SQL query on the database.

5. list_prompts

List available prompts.

6. get_prompt

Retrieve a specific prompt by name.

Open Graph image for greptimedb-mcp-server

JSON Config

{
  "mcpServers": {
    "greptimedb": {
      "command": "uv",
      "args": [
        "--directory",
        "/path/to/greptimedb-mcp-server",
        "run",
        "-m",
        "greptimedb_mcp_server.server"
      ],
      "env": {
        "GREPTIMEDB_HOST": "localhost",
        "GREPTIMEDB_PORT": "4002",
        "GREPTIMEDB_USER": "root",
        "GREPTIMEDB_PASSWORD": "",
        "GREPTIMEDB_DATABASE": "public",
        "GREPTIMEDB_TIMEZONE": ""
      }
    }
  }
}

Useful Links

Information