Purpose
OpenObserve MCP is a stdio-based MCP server used to connect to OpenObserve Community Edition. It only uses the regular OpenObserve REST API, does not rely on the native /mcp endpoint, and does not require an Enterprise license. This package is mainly intended for local MCP clients, such as Claude and Codex, allowing these clients to have read-only access to observability data in OpenObserve.
Main Capabilities
According to the materials, this server provides the following tool capabilities:
- get_stream_schema: get stream schema
- list_dashboards: list dashboards
- get_latest_traces: get latest traces
Overall, it is positioned as read-only access, capable of searching logs, traces, stream schemas, and dashboards.
Usage
Configuration
First create a configuration file. A sample configuration can be generated via openobserve-mcp init-config. The default configuration path is ~/.config/openobserve-mcp/config.env.
Supported settings include:
- OO_BASE_URL: OpenObserve instance address
- OO_ORG_ID: optional, can be omitted when the credentials can access only one organization
- OO_USERNAME and OO_PASSWORD: used for basic authentication
- OO_TOKEN: used for bearer authentication
- OO_TIMEOUT_SECONDS: timeout setting
- OO_CONFIG_FILE: optional, explicitly specifies the configuration file path
The configuration priority is: explicit OO_CONFIG_FILE > ~/.config/openobserve-mcp/config.env > legacy .env.local in the current directory > process environment variables override file values. Configuration can also be passed directly through the MCP client's environment variable settings.
Integrating with Claude
The server can be added to Claude's MCP configuration, supporting the inline environment variable approach.
Integrating with Codex
It can likewise be added to Codex, supporting the inline environment variable approach.
Integrating with OpenCode
OpenCode configures the MCP server under mcp in its configuration file. According to the official documentation, it can be added in the global configuration ~/.config/opencode/opencode.json or the project-level opencode.json. If a sample configuration has already been created via openobserve-mcp init-config, OpenCode can be pointed to that file; OpenObserve settings can also be inlined directly in the OpenCode MCP configuration. OpenCode's MCP documentation also supports the optional enabled, environment, and timeout fields for local servers, used to adjust startup behavior.
Docker and Container Images
This repository also publishes container images for use by Docker-based MCP clients and Glama deployments. The container can be started without credentials set, to accommodate hosted MCP platforms, but tool calls will fail until a real external OpenObserve instance is configured.
Local Installation
If you want to use a persistent local binary instead of uvx, you can perform a local installation to install the openobserve-mcp command into the user-level uv tool directory. After installation, the server can be added to Claude or Codex, or the server can be run directly. Direct run mode may require ~/.local/bin to be in PATH. If openobserve-mcp cannot be found, you can add ~/.local/bin to PATH, or use the recommended startup method uvx --from openobserve-community-mcp openobserve-mcp.
Applicable Scenarios
Suitable for scenarios where you need to query OpenObserve Community Edition data in a read-only manner in local MCP clients (such as Claude, Codex, OpenCode), including viewing logs, traces, stream schemas, and dashboards. Also suitable for MCP clients deployed via Docker or Glama.
Limitations
- Only supports OpenObserve Community Edition, and does not support features related to Enterprise licensing.
- Only uses the regular OpenObserve REST API, does notUse the native /mcp endpoint.
- Although the server can start without configuration, each tool call requires connecting to an accessible external OpenObserve instance via OO_BASE_URL and credentials.
- The material does not provide specific charging, pricing, platform compatibility details, or descriptions of effectiveness.