Skip to main content

OpenObserve community stdio MCP server

Project description

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 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

That is the recommended user-facing flow:

  • no repo clone
  • no manual absolute path
  • no PATH setup for the installed binary

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 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 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.

Development

For repo-based development and smoke tests, see LOCAL_SETUP.md.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

openobserve_community_mcp-0.1.1.tar.gz (11.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

openobserve_community_mcp-0.1.1-py3-none-any.whl (12.4 kB view details)

Uploaded Python 3

File details

Details for the file openobserve_community_mcp-0.1.1.tar.gz.

File metadata

File hashes

Hashes for openobserve_community_mcp-0.1.1.tar.gz
Algorithm Hash digest
SHA256 dbe670d030f812443dd5516d1270945af5b97edc23d81138dbd67f9bc4302493
MD5 fbf4ea8bbf12619f9f82de2221db788c
BLAKE2b-256 ee6950002f338a3d51d019002f7b8ea6cde249798dc5d744da288c4eb112ad17

See more details on using hashes here.

Provenance

The following attestation bundles were made for openobserve_community_mcp-0.1.1.tar.gz:

Publisher: publish.yml on alilxxey/openobserve-community-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file openobserve_community_mcp-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for openobserve_community_mcp-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f47898422d113d2181de676e22bf8d26f5d6a6eb29c2e9a3642107f2c87c1cbf
MD5 ff3420a8bfa879527411b419e54c1b09
BLAKE2b-256 66c2af35c194d3373a52bb75f5f178069e347885d148781aa42cde7131a3ebba

See more details on using hashes here.

Provenance

The following attestation bundles were made for openobserve_community_mcp-0.1.1-py3-none-any.whl:

Publisher: publish.yml on alilxxey/openobserve-community-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page