Feedback

greptimedb-mcp-server

@greptimeteam Claim

Basic information

Runtime
python
Version
0.6.0
Category
License
MIT
Transports
stdio
Author
greptimeteam
Submitted by
Community
Quality
50
Stars
28

About greptimedb-mcp-server

A Model Context Protocol (MCP) server for GreptimeDB

greptimedb-mcp-server is a MCP server in the Other category listed in the AddMCP.net directory, published by GreptimeTeam. Supported transport: stdio. Runtime: python. License: MIT. The repository has 28 GitHub stars. Source code is hosted on github.com. Related topics: greptimedb, mcp-server, observability, observability-data, time-series-analysis.

Setup

{
    "mcpServers": {
        "greptimedb-mcp-server": {
            "command": "uv",
            "args": [
                "venv",
                "&&",
                "source",
                ".venv/bin/activate"
            ]
        }
    }
}

greptimedb-mcp-server config

Add this server to your MCP-compatible client using the configuration below.

{
    "mcpServers": {
        "greptimedb-mcp-server": {
            "command": "uv",
            "args": [
                "venv",
                "&&",
                "source",
                ".venv/bin/activate"
            ]
        }
    }
}

greptimedb-mcp-server tools

Tool list not available yet

This listing does not currently have a tool list to display. This does not mean the server has no tools; check its documentation for supported capabilities.

We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.

Overview

What is greptimedb-mcp-server?

It is a Model Context Protocol (MCP) server for GreptimeDB, an open-source observability database that handles metrics, logs, and traces. It enables AI assistants to query and analyze GreptimeDB using SQL, TQL (PromQL-compatible), and RANGE queries, with built-in security features like read-only enforcement and data masking.

How to use greptimedb-mcp-server?

Install via pip install greptimedb-mcp-server, then run greptimedb-mcp-server --host localhost --database public. For Claude Desktop, add the MCP server configuration to your claude_desktop_config.json. The server can also be started in HTTP server mode for containerized deployments.

Key features of greptimedb-mcp-server

  • Execute SQL, TQL, and time-window aggregation queries.
  • Inspect table schemas and query execution plans.
  • List, create, test, and delete pipelines.
  • List, create, and delete Perses dashboards.
  • Read-only security gate blocking destructive SQL by default.
  • Automatic data masking for sensitive columns.
  • Audit logging of all tool invocations.

Use cases of greptimedb-mcp-server

  • Query and analyze observability metrics, logs, and traces with AI assistants.
  • Automate pipeline and dashboard management via MCP tools.
  • Debug and optimize queries by inspecting execution plans.
  • Enforce security policies (read-only, masking, audit) for AI-driven database access.

Frequently asked questions

1 Is the server read-only by default?

Yes. All queries pass through a security gate that blocks DROP, DELETE, TRUNCATE, UPDATE, INSERT, ALTER, CREATE, GRANT, REVOKE, EXEC, LOAD, COPY, and encoded bypass attempts. Only SELECT, SHOW, DESCRIBE, TQL, EXPLAIN, and UNION are allowed.

2 How can I enable write mode?

Set the environment variable GREPTIMEDB_ALLOW_WRITE=true or use the CLI argument --allow-write true. This bypasses the security gate for execute_sql and is intended only for local development or testing, never for production.

3 What transport modes are supported?

The server supports stdio (default), SSE (legacy), and streamable-http (recommended for production). Transport is set via the --transport CLI argument or GREPTIMEDB_TRANSPORT environment variable.

4 What are the runtime requirements?

A running GreptimeDB instance accessible via MySQL protocol (default port 4002) and optionally via HTTP (port 4000) for pipeline and dashboard management. Python with the installed package is required.

5 Can I use data masking with custom patterns?

Yes. Data masking is enabled by default for known sensitive column names. You can add custom patterns via --mask-patterns phone,email or the GREPTIMEDB_MASK_PATTERNS environment variable.

Comments

No comments yet

Be the first to share feedback about this listing. Sign in to leave a comment.

Sign In

Feedback 💬