k8s-log-browser-mcp

k8s-log-browser-mcp

3.2

If you are the rightful owner of k8s-log-browser-mcp and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

An opinionated MCP server that provides access to Kubernetes pod logs indexed in OpenSearch, utilizing Fluentbit for centralized logging.

The k8s-log-browser-mcp is a specialized Model Context Protocol (MCP) server designed to facilitate the retrieval and browsing of Kubernetes pod logs that are indexed in OpenSearch. This server assumes a centralized logging setup using Fluentbit's Kubernetes filter and OpenSearch with Logstash format, organized by namespace index. It leverages the OpenSearch SQL plugin endpoint for querying logs and supports pagination through cursors. The server is currently under active development, with plans to enhance pagination support, improve security, and add filtering capabilities. Users can launch the server using the provided command, which requires specifying the OpenSearch URL, username, and password. The server is particularly useful for developers and operators who need to access and analyze logs from Kubernetes environments efficiently.

Features

  • Centralized Logging: Utilizes Fluentbit and OpenSearch for centralized log management.
  • SQL Querying: Queries OpenSearch via SQL plugin endpoint for efficient log retrieval.
  • Pagination Support: Uses cursors for paginated log access.
  • Namespace Indexing: Organizes logs by namespace for structured access.
  • Active Development: Ongoing improvements for security and functionality.

Tools

  1. k8_pod_logs

    Searches logs by a pod name prefix in OpenSearch and returns the output as text with XML tags as delimiters.

  2. load_more_logs

    Loads the next page of an ongoing search using cursors from OpenSearch.