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.
List tables in the database.
Read data from a specified table.
List available tools provided by the server.
Execute an SQL query on the database.
List available prompts.
Retrieve a specific prompt by name.
{
"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": ""
}
}
}
}