OpenObserve Community MCP Server

1

Add it to Claude Code

Run this in a terminal.

Run in terminal
claude mcp add -e "OO_BASE_URL=${OO_BASE_URL}" -e "OO_AUTH_MODE=${OO_AUTH_MODE}" openobserve-community -- uvx --from openobserve-community-mcp openobserve-mcp
Required:OO_BASE_URLOO_AUTH_MODE+ 4 optional
README.md

Read-only MCP server for OpenObserve Community Edition via REST API

OpenObserve MCP

stdio MCP server for OpenObserve Community Edition, using only the regular REST API.

This package is designed for local MCP clients such as Claude and Codex.

What it is:

  • stdio only
  • Community Edition only
  • read-only only
  • regular OpenObserve REST API only
  • no native /mcp endpoint

Quick Start

1. Create a config file

uvx --from openobserve-community-mcp openobserve-mcp init-config

This creates a sample config at:

~/.config/openobserve-mcp/config.env

Edit it:

$EDITOR ~/.config/openobserve-mcp/config.env

Example:

OO_BASE_URL=https://openobserve.example.com
# Optional if the credentials have access to exactly one organization.
# OO_ORG_ID=default
OO_AUTH_MODE=basic
OO_USERNAME=your_username
OO_PASSWORD=your_password
OO_TIMEOUT_SECONDS=20
OO_VERIFY_SSL=true

2. Add it to Claude

claude mcp add -s user openobserve-community -- uvx --from openobserve-community-mcp openobserve-mcp

3. Add it to Codex

codex mcp add openobserve-community -- uvx --from openobserve-community-mcp openobserve-mcp

Configuration

Default config path:

~/.config/openobserve-mcp/config.env

Supported settings:

  • OO_BASE_URL
  • OO_ORG_ID optional
  • OO_AUTH_MODE
  • OO_USERNAME and OO_PASSWORD for basic auth
  • OO_TOKEN for bearer auth
  • OO_TIMEOUT_SECONDS
  • OO_VERIFY_SSL
  • OO_CONFIG_FILE optional explicit path to a config file

Config precedence:

  1. explicit OO_CONFIG_FILE
  2. ~/.config/openobserve-mcp/config.env
  3. legacy .env.local in the current directory
  4. process environment overrides file values

You can also pass config directly via MCP client env settings.

Claude with inline env

claude mcp add -s user openobserve-community \
  -e OO_BASE_URL=https://openobserve.example.com \
  -e OO_AUTH_MODE=basic \
  -e OO_USERNAME=your_username \
  -e OO_PASSWORD=your_password \
  -- uvx --from openobserve-community-mcp openobserve-mcp

Codex with inline env

codex mcp add openobserve-community \
  --env OO_BASE_URL=https://openobserve.example.com \
  --env OO_AUTH_MODE=basic \
  --env OO_USERNAME=your_username \
  --env OO_PASSWORD=your_password \
  -- uvx --from openobserve-community-mcp openobserve-mcp

Tools

  • list_streams
  • get_stream_schema
  • search_logs
  • search_around
  • search_values
  • list_dashboards
  • get_dashboard
  • get_latest_traces

Optional Local Install

If you prefer a persistent local binary instead of uvx:

uv tool install openobserve-community-mcp

This installs the openobserve-mcp command into your user-level uv tools directory.

Add To Claude With Global Install

claude mcp add -s user openobserve-community -- openobserve-mcp

Add To Codex With Global Install

codex mcp add openobserve-community -- openobserve-mcp

You can also run the server directly:

openobserve-mcp

This mode may require ~/.local/bin to be present in your PATH.

If openobserve-mcp is not found, either:

  • add ~/.local/bin to your PATH; or
  • use the recommended uvx --from openobserve-community-mcp openobserve-mcp launch mode instead.

Tools (8)

list_streamsLists all available streams in the OpenObserve instance.
get_stream_schemaRetrieves the schema for a specific stream.
search_logsPerforms a search query across logs.
search_aroundSearches for logs around a specific timestamp or event.
search_valuesSearches for specific values within the logs.
list_dashboardsLists all available dashboards.
get_dashboardRetrieves the configuration and details of a specific dashboard.
get_latest_tracesFetches the most recent traces from the system.

Environment Variables

OO_BASE_URLrequiredThe base URL of your OpenObserve instance
OO_AUTH_MODErequiredAuthentication mode (e.g., basic)
OO_USERNAMEUsername for basic authentication
OO_PASSWORDPassword for basic authentication
OO_TOKENBearer token for authentication
OO_ORG_IDOrganization ID if not using the default

Configuration

claude_desktop_config.json
{"mcpServers": {"openobserve-community": {"command": "uvx", "args": ["--from", "openobserve-community-mcp", "openobserve-mcp"], "env": {"OO_BASE_URL": "https://openobserve.example.com", "OO_AUTH_MODE": "basic", "OO_USERNAME": "your_username", "OO_PASSWORD": "your_password"}}}}

Try it

List all the available log streams in my OpenObserve instance.
Search the logs for any errors that occurred in the last hour.
Get the schema for the 'application-logs' stream.
Show me the latest traces to identify recent performance bottlenecks.
List all my dashboards and get the details for the 'System Overview' dashboard.

Frequently Asked Questions

What are the key features of OpenObserve Community?

Read-only access to OpenObserve Community Edition. Supports log searching and trace retrieval. Dashboard discovery and inspection. Stream schema exploration. Works via standard REST API without requiring Enterprise license.

What can I use OpenObserve Community for?

Quickly querying logs directly from your AI chat interface. Debugging system performance by inspecting recent traces. Exploring data structures and schemas within OpenObserve streams. Reviewing dashboard configurations without switching to the web UI.

How do I install OpenObserve Community?

Install OpenObserve Community by running: claude mcp add -s user openobserve-community -- uvx --from openobserve-community-mcp openobserve-mcp

What MCP clients work with OpenObserve Community?

OpenObserve Community works with any MCP-compatible client including Claude Desktop, Claude Code, Cursor, and other editors with MCP support.

Turn this server into reusable context

Keep OpenObserve Community docs, env vars, and workflow notes in Conare so your agent carries them across sessions.

Need the old visual installer? Open Conare IDE.
Open Conare