GreptimeDB MCP ServerServer

GreptimeTeam
GitHub
DatabaseMCPAI Assistant

Loading subscription status...

💡 Description

A Model Context Protocol (MCP) server implementation for GreptimeDB. This server provides AI assistants with a secure and structured way to explore and analyze databases. It enables them to list tables, read data, and execute SQL queries through a controlled interface, ensuring responsible database access.

📝 JSON Entries

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

🛠️ Tools

PythonMCP Inspector

Features

  • List tables
  • Read data
  • Execute SQL queries

💬 Example Queries

  • List the tables in the database
  • Read data from a specific table
  • Execute an SQL query on the database