<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: call518</title>
    <description>The latest articles on DEV Community by call518 (@call518).</description>
    <link>https://dev.to/call518</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3387607%2F26a7cef4-5154-40f7-a9f6-a9755c2fe398.jpg</url>
      <title>DEV Community: call518</title>
      <link>https://dev.to/call518</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/call518"/>
    <language>en</language>
    <item>
      <title>MCP-OpenStack-Ops: Manage OpenStack Infrastructure with AI and Natural Language</title>
      <dc:creator>call518</dc:creator>
      <pubDate>Mon, 30 Nov 2026 13:55:46 +0000</pubDate>
      <link>https://dev.to/call518/mcp-openstack-ops-manage-openstack-infrastructure-with-ai-and-natural-language-2n84</link>
      <guid>https://dev.to/call518/mcp-openstack-ops-manage-openstack-infrastructure-with-ai-and-natural-language-2n84</guid>
      <description>&lt;h1&gt;
  
  
  MCP-OpenStack-Ops
&lt;/h1&gt;

&lt;p&gt;&lt;strong&gt;128 MCP tools for OpenStack operations, monitoring, automation, and troubleshooting — with read-only access by default.&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;GitHub:&lt;/strong&gt; &lt;a href="https://github.com/call518/MCP-OpenStack-Ops" rel="noopener noreferrer"&gt;https://github.com/call518/MCP-OpenStack-Ops&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;PyPI:&lt;/strong&gt; &lt;a href="https://pypi.org/project/mcp-openstack-ops/" rel="noopener noreferrer"&gt;https://pypi.org/project/mcp-openstack-ops/&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;License:&lt;/strong&gt; MIT&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt;Managing OpenStack infrastructure typically involves a combination of CLI commands, API requests, configuration files, and service-specific operational knowledge.&lt;/p&gt;

&lt;p&gt;Even a relatively simple task, such as investigating an instance that cannot access the network, may require checking Nova, Neutron, security groups, router interfaces, and floating IP associations.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What if an infrastructure engineer could perform these operations using natural language?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;MCP-OpenStack-Ops is an open-source &lt;a href="https://modelcontextprotocol.io/" rel="noopener noreferrer"&gt;Model Context Protocol (MCP)&lt;/a&gt; server that connects AI assistants to OpenStack APIs.&lt;/p&gt;

&lt;p&gt;It allows engineers to inspect infrastructure, troubleshoot problems, manage resources, and orchestrate operations through natural-language requests.&lt;/p&gt;

&lt;p&gt;Rather than replacing OpenStack's existing management APIs, the project makes them accessible through MCP-compatible AI clients.&lt;/p&gt;

&lt;h2&gt;
  
  
  What Can You Do?
&lt;/h2&gt;

&lt;p&gt;Here are some example requests:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Show me the overall OpenStack cluster status.

List all instances that are currently stopped.

Show all networks, subnets, and routers in my project.

Show the vCPUs and memory allocated to my project
and the remaining quota.

Show the CPU utilization of web-01 over the last hour.

Check the health of my load balancer and its backend members.

Create a new instance using the specified image and flavor.

Stop all instances whose names contain "test".
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;The AI client selects the appropriate MCP tools, invokes the OpenStack APIs through the server, and interprets the returned information.&lt;/p&gt;

&lt;p&gt;Read operations are available by default. Requests that modify infrastructure require explicitly enabling management tools.&lt;/p&gt;
&lt;h3&gt;
  
  
  Example: OpenStack Cluster Status in Claude Desktop
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fopmdzf44zvtk2na5e9ip.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fopmdzf44zvtk2na5e9ip.png" alt="MCP-OpenStack-Ops with Claude Desktop" width="800" height="516"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h3&gt;
  
  
  The Same Project in OpenStack Horizon
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fffwas7kvu5qofrwu6prf.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fffwas7kvu5qofrwu6prf.png" alt="OpenStack Dashboard" width="800" height="591"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  Architecture
&lt;/h2&gt;

&lt;p&gt;MCP-OpenStack-Ops acts as a bridge between AI clients and OpenStack services.&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;                 Natural Language
                        |
                        v
            +-----------------------+
            |      AI Clients       |
            |                       |
            |  Claude Desktop/Code  |
            |  OpenAI Codex         |
            |  OpenWebUI            |
            +-----------+-----------+
                        |
                   MCP Protocol
            (stdio / Streamable HTTP)
                        |
                        v
            +-----------------------+
            |   MCP-OpenStack-Ops   |
            |                       |
            |  128 MCP Tools        |
            |  Resource Management  |
            |  Monitoring           |
            |  Security Controls    |
            |  Project Isolation    |
            +-----------+-----------+
                        |
                  OpenStack SDK
                        |
                        v
            +-----------------------+
            |    OpenStack APIs     |
            |                       |
            |  Nova / Neutron       |
            |  Cinder / Glance      |
            |  Keystone / Heat      |
            |  Octavia / Barbican   |
            |  Gnocchi / Aodh       |
            +-----------------------+
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;The server is built with:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Python 3.12&lt;/li&gt;
&lt;li&gt;FastMCP&lt;/li&gt;
&lt;li&gt;OpenStackSDK&lt;/li&gt;
&lt;li&gt;Gnocchi Client&lt;/li&gt;
&lt;li&gt;Docker / Docker Compose&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;It supports both local execution and containerized deployment, with &lt;code&gt;stdio&lt;/code&gt; and &lt;code&gt;Streamable HTTP&lt;/code&gt; transports.&lt;/p&gt;
&lt;h2&gt;
  
  
  Key Features
&lt;/h2&gt;
&lt;h3&gt;
  
  
  1. Comprehensive OpenStack API Coverage
&lt;/h3&gt;

&lt;p&gt;The project currently provides &lt;strong&gt;128 MCP tools&lt;/strong&gt;, consisting of:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;72 read-only tools&lt;/strong&gt; for infrastructure inspection, monitoring, and troubleshooting.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;56 management tools&lt;/strong&gt; for creating, modifying, and deleting resources.&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;OpenStack Service&lt;/th&gt;
&lt;th&gt;Capabilities&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Nova&lt;/td&gt;
&lt;td&gt;Instance operations, flavors, hypervisors, server events, server groups&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Neutron&lt;/td&gt;
&lt;td&gt;Networks, subnets, routers, ports, security groups, floating IPs, port forwarding, QoS&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Cinder&lt;/td&gt;
&lt;td&gt;Volumes, snapshots, storage operations&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Glance&lt;/td&gt;
&lt;td&gt;Image discovery and management&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Keystone&lt;/td&gt;
&lt;td&gt;Identity and project-related operations&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Heat&lt;/td&gt;
&lt;td&gt;Stack orchestration and lifecycle management&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Octavia&lt;/td&gt;
&lt;td&gt;Load balancers, listeners, pools, members, health monitors, amphora operations&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Barbican&lt;/td&gt;
&lt;td&gt;Secret metadata, containers, certificates, ACLs, TLS integration&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Gnocchi&lt;/td&gt;
&lt;td&gt;Telemetry metrics and time-series queries&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Aodh&lt;/td&gt;
&lt;td&gt;Alarm inspection and management&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;This coverage makes it possible to perform multi-service infrastructure operations through a single conversational interface.&lt;/p&gt;

&lt;p&gt;A detailed mapping between OpenStack CLI commands and the corresponding MCP tools is available in the project README.&lt;/p&gt;
&lt;h3&gt;
  
  
  2. Read-Only by Default
&lt;/h3&gt;

&lt;p&gt;Allowing an AI assistant to interact with infrastructure requires clear safety boundaries.&lt;/p&gt;

&lt;p&gt;MCP-OpenStack-Ops addresses this by separating read-only tools from resource-modification tools.&lt;/p&gt;

&lt;p&gt;The default configuration is:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ALLOW_MODIFY_OPERATIONS=false
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;In this mode, resource-modification tools are not registered with the MCP server.&lt;/p&gt;

&lt;p&gt;To enable operations such as creating, updating, or deleting resources:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ALLOW_MODIFY_OPERATIONS=true
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;The server must be restarted for the change to take effect.&lt;/p&gt;

&lt;p&gt;Additional controls include:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Project-scoped resource access and ownership validation.&lt;/li&gt;
&lt;li&gt;OpenStack policy enforcement through the authenticated account.&lt;/li&gt;
&lt;li&gt;Optional HTTP Bearer authentication.&lt;/li&gt;
&lt;li&gt;Optional cross-project read access, disabled by default.&lt;/li&gt;
&lt;li&gt;Safety limits for filtered bulk operations.&lt;/li&gt;
&lt;li&gt;Per-resource operation results and post-action status feedback.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These protections are intended to reduce operational risk, but they do not replace infrastructure access controls, change review, or operator oversight.&lt;/p&gt;
&lt;h3&gt;
  
  
  3. Natural-Language Infrastructure Troubleshooting
&lt;/h3&gt;

&lt;p&gt;One of the primary goals of this project is to reduce the effort required to investigate infrastructure problems.&lt;/p&gt;

&lt;p&gt;For example:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Find all instances in ERROR state and show their
recent events, associated networks, and volumes.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Traditionally, an engineer would collect this information through several OpenStack CLI commands.&lt;/p&gt;

&lt;p&gt;With MCP-OpenStack-Ops, an AI client can use multiple tools to retrieve related information and organize it into a single diagnostic response.&lt;/p&gt;

&lt;p&gt;The project exposes server events, networking resources, storage relationships, hypervisor information, and resource quotas to support this process.&lt;/p&gt;

&lt;p&gt;The actual diagnostic result depends on the available OpenStack APIs and the permissions assigned to the account.&lt;/p&gt;
&lt;h3&gt;
  
  
  4. Monitoring and Resource Usage
&lt;/h3&gt;

&lt;p&gt;MCP-OpenStack-Ops supports infrastructure monitoring queries and resource allocation analysis.&lt;/p&gt;

&lt;p&gt;For example:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Show the current resource usage and quota limits
for my OpenStack project.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Show the CPU utilization of web-01 over the
last 60 minutes at one-minute intervals.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Monitoring features include:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;OpenStack service status inspection.&lt;/li&gt;
&lt;li&gt;Instance and resource inventory.&lt;/li&gt;
&lt;li&gt;Project resource allocations and quota information.&lt;/li&gt;
&lt;li&gt;API-backed compute allocation-hours.&lt;/li&gt;
&lt;li&gt;Gnocchi time-series metric queries.&lt;/li&gt;
&lt;li&gt;Aodh alarm inspection and management.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Resource allocation statistics and live utilization metrics are different types of information.&lt;/p&gt;

&lt;p&gt;Time-series CPU and other telemetry queries require the corresponding telemetry services, such as Ceilometer and Gnocchi, to be deployed and configured.&lt;/p&gt;
&lt;h3&gt;
  
  
  5. Bulk and Filtered Operations
&lt;/h3&gt;

&lt;p&gt;The project supports bulk operations and resource filtering.&lt;/p&gt;

&lt;p&gt;For example:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Stop all running instances whose names contain "test".
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;List all volumes that are currently available
and are not attached to any instance.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Find instances using a specific image or flavor.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Management tools provide per-resource operation results and, where applicable, the resource status after the requested action.&lt;/p&gt;

&lt;p&gt;Filtered instance modification operations also enforce a configurable maximum number of matching resources.&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;INSTANCE_FILTER_MAX_MATCHES=100
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;This helps prevent unintended large-scale changes caused by overly broad filters.&lt;/p&gt;
&lt;h3&gt;
  
  
  6. Advanced Load Balancing and TLS Management
&lt;/h3&gt;

&lt;p&gt;Octavia and Barbican integration enables more advanced infrastructure configurations.&lt;/p&gt;

&lt;p&gt;Supported capabilities include:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Load balancers, listeners, pools, and members.&lt;/li&gt;
&lt;li&gt;Health monitors and amphora operations.&lt;/li&gt;
&lt;li&gt;HTTPS termination using &lt;code&gt;TERMINATED_HTTPS&lt;/code&gt; listeners.&lt;/li&gt;
&lt;li&gt;TLS passthrough.&lt;/li&gt;
&lt;li&gt;Backend TLS re-encryption.&lt;/li&gt;
&lt;li&gt;Mutual TLS (mTLS) configurations.&lt;/li&gt;
&lt;li&gt;Self-signed certificate generation.&lt;/li&gt;
&lt;li&gt;Barbican secret metadata, containers, orders, and ACLs.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Barbican secret payloads are deliberately excluded from MCP tool inputs and outputs to prevent private key material and other secret payloads from being exposed to the language model through these tools.&lt;/p&gt;

&lt;p&gt;See the &lt;a href="https://github.com/call518/MCP-OpenStack-Ops/blob/main/docs/barbican-tls-guide.md" rel="noopener noreferrer"&gt;Barbican and TLS Guide&lt;/a&gt; for more details.&lt;/p&gt;
&lt;h2&gt;
  
  
  Practical Demonstration: AI-Driven Auto Scaling
&lt;/h2&gt;

&lt;p&gt;One of the most interesting capabilities demonstrated with MCP-OpenStack-Ops is the creation of an OpenStack auto-scaling environment from a natural-language request.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;No Heat template was manually authored by the operator.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The objective was to deploy a web application environment with:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;An HTTPS load balancer.&lt;/li&gt;
&lt;li&gt;TLS termination through Octavia.&lt;/li&gt;
&lt;li&gt;A self-signed certificate stored in Barbican.&lt;/li&gt;
&lt;li&gt;A Heat auto-scaling group.&lt;/li&gt;
&lt;li&gt;CPU-based scaling policies using Gnocchi and Aodh.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;
  
  
  The Natural-Language Request
&lt;/h3&gt;

&lt;p&gt;The following request was given to the AI client:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Use the test-rockylinux-9 VM (web server) as the source for a new base image. Create and bring up a Heat stack with a TLS-terminating load balancer and autoscaling web servers.&lt;/p&gt;

&lt;p&gt;Run 2 web servers under normal conditions, with a maximum of 4. Scale out by 1 when average CPU utilization stays above 60% for 5 minutes, and scale in by 1 when it stays below 40% for 5 minutes, down to a minimum of 2. Use a 900-second cooldown and set the stack's timeout_mins to 60.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h3&gt;
  
  
  What Happened?
&lt;/h3&gt;

&lt;p&gt;Using the MCP tools, the AI client performed the necessary OpenStack operations, including:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Creating a base image from an existing web server instance.&lt;/li&gt;
&lt;li&gt;Generating and registering a TLS certificate in Barbican.&lt;/li&gt;
&lt;li&gt;Preparing the Heat orchestration template.&lt;/li&gt;
&lt;li&gt;Configuring an Octavia HTTPS load balancer.&lt;/li&gt;
&lt;li&gt;Configuring the auto-scaling group and CPU alarm policies.&lt;/li&gt;
&lt;li&gt;Deploying the Heat stack.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The Heat template was generated through the AI workflow rather than manually authored by the operator.&lt;/p&gt;
&lt;h3&gt;
  
  
  Infrastructure Architecture
&lt;/h3&gt;


&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;                    HTTPS Clients
                          |
                       TCP 443
                          |
                          v
              +-----------------------+
              | Octavia Load Balancer |
              |   TERMINATED_HTTPS    |&amp;lt;--- Barbican
              +-----------+-----------+     TLS Certificate
                          |
                    HTTP Backend
                          |
             +------------+------------+
             |            |            |
             v            v            v
         +--------+   +--------+   +--------+
         | Web 01 |   | Web 02 |   | Web N  |
         +--------+   +--------+   +--------+
             |            |            |
             +------------+------------+
                          |
                    CPU Telemetry
                          |
                          v
                    Ceilometer
                          |
                          v
                      Gnocchi
                          |
                          v
                         Aodh
                          |
                   Scaling Signals
                          |
                          v
              +-----------------------+
              | Heat Scaling Policies |
              |   Auto-Scaling Group  |
              |      Min 2 / Max 4    |
              +-----------------------+
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;h3&gt;
  
  
  Auto-Scaling Configuration
&lt;/h3&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Parameter&lt;/th&gt;
&lt;th&gt;Value&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Initial instances&lt;/td&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Minimum instances&lt;/td&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Maximum instances&lt;/td&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Scale-out threshold&lt;/td&gt;
&lt;td&gt;CPU &amp;gt; 60% for 5 minutes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Scale-in threshold&lt;/td&gt;
&lt;td&gt;CPU &amp;lt; 40% for 5 minutes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Scaling adjustment&lt;/td&gt;
&lt;td&gt;1 instance&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Cooldown&lt;/td&gt;
&lt;td&gt;900 seconds&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Load balancing&lt;/td&gt;
&lt;td&gt;Octavia with HTTPS termination&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;
&lt;h3&gt;
  
  
  Auto-Scaling Validation
&lt;/h3&gt;

&lt;p&gt;During the validation test, CPU load was generated against the web servers.&lt;/p&gt;

&lt;p&gt;The auto-scaling group expanded from &lt;strong&gt;2 to 4 instances&lt;/strong&gt; under sustained load and returned to &lt;strong&gt;2 instances&lt;/strong&gt; after the load ended and the scale-in conditions were satisfied.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F39bns2ptnmojj28k4zf0.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F39bns2ptnmojj28k4zf0.png" alt="Heat autoscaling validation with Grafana" width="799" height="266"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The Grafana chart illustrates the actual instance scaling behavior during the test.&lt;/p&gt;
&lt;h3&gt;
  
  
  Analyzing the Result Through Natural Language
&lt;/h3&gt;

&lt;p&gt;After deployment, the AI client was also used to query the CPU utilization of the auto-scaling group members.&lt;/p&gt;

&lt;p&gt;Gnocchi time-series data was retrieved through MCP tools, allowing the client to generate an analysis, chart, and CSV output.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fymgzuk84l0ofvsbxxd9s.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fymgzuk84l0ofvsbxxd9s.png" alt="CPU metrics queried through MCP" width="800" height="755"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This demonstrates a workflow that goes beyond individual API calls:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Natural-Language Request
          |
          v
Infrastructure Provisioning
          |
          v
Monitoring and Telemetry
          |
          v
Operational Validation
          |
          v
Data Analysis and Reporting
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;The complete walkthrough, including the generated templates and verification details, is available here:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;a href="https://github.com/call518/MCP-OpenStack-Ops/blob/main/docs/heat-autoscaling-tutorial.md" rel="noopener noreferrer"&gt;Heat Auto-Scaling Tutorial&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  Supported AI Clients
&lt;/h2&gt;

&lt;p&gt;MCP-OpenStack-Ops can be integrated with several MCP-capable clients.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Client&lt;/th&gt;
&lt;th&gt;Integration&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Claude Desktop&lt;/td&gt;
&lt;td&gt;MCP extension bundle, uvx, local or remote connections&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Claude Code&lt;/td&gt;
&lt;td&gt;MCP server integration&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;OpenAI Codex&lt;/td&gt;
&lt;td&gt;MCP configuration for CLI, desktop app, and IDE environments&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;OpenWebUI&lt;/td&gt;
&lt;td&gt;Streamable HTTP MCP or optional MCPO proxy&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The supported authentication and deployment options vary by client.&lt;/p&gt;
&lt;h2&gt;
  
  
  Quick Start: Claude Desktop
&lt;/h2&gt;

&lt;p&gt;For Claude Desktop, the simplest installation method is the prepackaged MCP extension.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Download the &lt;code&gt;.mcpb&lt;/code&gt; bundle from &lt;a href="https://github.com/call518/MCP-OpenStack-Ops/releases" rel="noopener noreferrer"&gt;GitHub Releases&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Open Claude Desktop settings.&lt;/li&gt;
&lt;li&gt;Navigate to &lt;strong&gt;Extensions &amp;gt; Advanced settings &amp;gt; Install Extension&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Select the downloaded bundle.&lt;/li&gt;
&lt;li&gt;Enter the OpenStack authentication information.&lt;/li&gt;
&lt;li&gt;Leave modification operations disabled for the initial setup.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Then try:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;List all instances in my OpenStack project.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;For additional installation methods, including &lt;code&gt;uvx&lt;/code&gt;, local source installation, and remote MCP connections, see the &lt;a href="https://github.com/call518/MCP-OpenStack-Ops/blob/main/docs/claude-desktop-guide.md" rel="noopener noreferrer"&gt;Claude Desktop Guide&lt;/a&gt;.&lt;/p&gt;
&lt;h2&gt;
  
  
  Quick Start: Docker Compose
&lt;/h2&gt;

&lt;p&gt;For developers who prefer a self-hosted web interface, the repository includes a Docker Compose configuration with:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;OpenWebUI&lt;/li&gt;
&lt;li&gt;MCP-OpenStack-Ops server&lt;/li&gt;
&lt;li&gt;Optional MCPO proxy&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;
  
  
  Step 1: Clone the Repository
&lt;/h3&gt;


&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git clone https://github.com/call518/MCP-OpenStack-Ops.git
&lt;span class="nb"&gt;cd&lt;/span&gt; MCP-OpenStack-Ops
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;h3&gt;
  
  
  Step 2: Prepare Configuration
&lt;/h3&gt;


&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;cp .env.example .env
cp mcp-config.json.http mcp-config.json.http.local
chmod 600 .env mcp-config.json.http.local
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Generate a secret key:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;openssl rand -hex 32
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Edit &lt;code&gt;.env&lt;/code&gt; to configure your OpenStack credentials and use the generated value as &lt;code&gt;WEBUI_SECRET_KEY&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Important configuration variables include:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;OS_PROJECT_NAME=your_project_name
OS_USERNAME=your_username
OS_PASSWORD=your_password
OS_AUTH_HOST=your-openstack-host

ALLOW_MODIFY_OPERATIONS=false
ALLOW_CROSS_PROJECT_READ=false
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;For production deployment, use HTTPS, properly configured certificate validation, restricted credentials, and appropriate access controls.&lt;/p&gt;
&lt;h3&gt;
  
  
  Step 3: Start the Services
&lt;/h3&gt;


&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;docker compose up -d
docker compose ps
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;The default endpoints are:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Component&lt;/th&gt;
&lt;th&gt;URL&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;OpenWebUI&lt;/td&gt;
&lt;td&gt;&lt;a href="http://localhost:3000" rel="noopener noreferrer"&gt;http://localhost:3000&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;MCP Server&lt;/td&gt;
&lt;td&gt;&lt;a href="http://localhost:8000/mcp" rel="noopener noreferrer"&gt;http://localhost:8000/mcp&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;MCPO Proxy&lt;/td&gt;
&lt;td&gt;&lt;a href="http://localhost:8080" rel="noopener noreferrer"&gt;http://localhost:8080&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;After startup, configure a tool-calling model provider in OpenWebUI and register the MCP endpoint.&lt;/p&gt;

&lt;p&gt;When connecting directly from the OpenWebUI container, use:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;http://mcp-server:8000/mcp
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Then try:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Use mcp-openstack-ops to show the current
status of my OpenStack project.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;MCPO is optional. OpenWebUI can communicate directly with the MCP server through Streamable HTTP.&lt;/p&gt;

&lt;p&gt;To start without MCPO:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;docker compose up -d mcp-server open-webui
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;The complete OpenWebUI configuration steps, including model compatibility and tool registration, are documented in the &lt;a href="https://github.com/call518/MCP-OpenStack-Ops/blob/main/docs/openwebui-guide.md" rel="noopener noreferrer"&gt;OpenWebUI Integration Guide&lt;/a&gt;.&lt;/p&gt;
&lt;h2&gt;
  
  
  Deployment and Authentication Options
&lt;/h2&gt;

&lt;p&gt;MCP-OpenStack-Ops supports several deployment and authentication configurations.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Feature&lt;/th&gt;
&lt;th&gt;Support&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Local MCP transport&lt;/td&gt;
&lt;td&gt;stdio&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Remote MCP transport&lt;/td&gt;
&lt;td&gt;Streamable HTTP&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Python package&lt;/td&gt;
&lt;td&gt;PyPI / uvx&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Container deployment&lt;/td&gt;
&lt;td&gt;Docker&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Integrated web interface&lt;/td&gt;
&lt;td&gt;Docker Compose / OpenWebUI&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Desktop extension&lt;/td&gt;
&lt;td&gt;MCPB&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;OpenStack authentication&lt;/td&gt;
&lt;td&gt;Username and password&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Remote MCP authentication&lt;/td&gt;
&lt;td&gt;HTTP Bearer token&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Per-user authentication&lt;/td&gt;
&lt;td&gt;OpenStack Application Credentials (experimental)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Multiple projects&lt;/td&gt;
&lt;td&gt;Separate MCP server instances&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Cross-project reads&lt;/td&gt;
&lt;td&gt;Optional, policy-controlled&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Custom API endpoints&lt;/td&gt;
&lt;td&gt;Supported&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;HTTPS and private CA&lt;/td&gt;
&lt;td&gt;Supported&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The experimental multi-user mode authenticates individual HTTP requests using OpenStack Application Credentials instead of a shared server-side OpenStack account.&lt;/p&gt;

&lt;p&gt;See the &lt;a href="https://github.com/call518/MCP-OpenStack-Ops/blob/main/docs/multi-user-guide.md" rel="noopener noreferrer"&gt;Multi-User Guide&lt;/a&gt; for client compatibility and configuration details.&lt;/p&gt;
&lt;h2&gt;
  
  
  OpenStack Version Compatibility
&lt;/h2&gt;

&lt;p&gt;The project has documented validation against multiple OpenStack releases.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;OpenStack Release&lt;/th&gt;
&lt;th&gt;Validation&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Hibiscus (2026.2)&lt;/td&gt;
&lt;td&gt;Full live check documented on November 29, 2026&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Epoxy (2025.1)&lt;/td&gt;
&lt;td&gt;Tested&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Dalmatian (2024.2)&lt;/td&gt;
&lt;td&gt;Tested&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Other OpenStack versions may work, depending on API compatibility and SDK requirements.&lt;/p&gt;

&lt;p&gt;The project maintains detailed documentation of live API validation, unit tests, known limitations, and tool-specific behavior.&lt;/p&gt;

&lt;p&gt;For the detailed test environment, conditions, and results, see:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;a href="https://github.com/call518/MCP-OpenStack-Ops/blob/main/docs/validation.md" rel="noopener noreferrer"&gt;Validation Evidence&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  Security Considerations
&lt;/h2&gt;

&lt;p&gt;Infrastructure automation through AI introduces additional operational risks, particularly when management tools can change live resources.&lt;/p&gt;

&lt;p&gt;MCP-OpenStack-Ops provides several security mechanisms.&lt;/p&gt;
&lt;h3&gt;
  
  
  Read-Only Deployment
&lt;/h3&gt;

&lt;p&gt;Modification tools are disabled unless explicitly enabled.&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ALLOW_MODIFY_OPERATIONS=false
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;h3&gt;
  
  
  Project Isolation
&lt;/h3&gt;

&lt;p&gt;Project resource operations are scoped to the authenticated project, with resource ownership checks.&lt;/p&gt;

&lt;p&gt;Cloud-wide administrative APIs remain subject to OpenStack policy.&lt;/p&gt;
&lt;h3&gt;
  
  
  OpenStack RBAC
&lt;/h3&gt;

&lt;p&gt;API access remains subject to Keystone roles and OpenStack service policies.&lt;/p&gt;

&lt;p&gt;The MCP server does not grant additional OpenStack permissions.&lt;/p&gt;
&lt;h3&gt;
  
  
  Remote Authentication
&lt;/h3&gt;

&lt;p&gt;HTTP deployments can use Bearer authentication.&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;REMOTE_AUTH_ENABLE=true
REMOTE_SECRET_KEY=your-strong-secret-key
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Remote access should also be protected with HTTPS and appropriate certificate validation.&lt;/p&gt;
&lt;h3&gt;
  
  
  Cross-Project Reads
&lt;/h3&gt;

&lt;p&gt;Cross-project read access is an advanced, opt-in capability.&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ALLOW_CROSS_PROJECT_READ=false
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Enabling this option does not grant additional OpenStack permissions. The authenticated account must already have the necessary access through OpenStack policy.&lt;/p&gt;
&lt;h3&gt;
  
  
  Secret Handling
&lt;/h3&gt;

&lt;p&gt;Barbican integration avoids exposing secret payloads directly to the language model through MCP tools.&lt;/p&gt;

&lt;p&gt;For operational deployments, I recommend starting with read-only mode and least-privilege OpenStack credentials.&lt;/p&gt;

&lt;p&gt;See the &lt;a href="https://github.com/call518/MCP-OpenStack-Ops/blob/main/docs/security.md" rel="noopener noreferrer"&gt;Security Guide&lt;/a&gt; for more information.&lt;/p&gt;
&lt;h2&gt;
  
  
  Why I Built This Project
&lt;/h2&gt;

&lt;p&gt;As a system engineer working with virtualization, cloud infrastructure, and automation, I have spent considerable time operating and troubleshooting complex infrastructure environments.&lt;/p&gt;

&lt;p&gt;OpenStack provides extensive APIs and command-line tools, but practical operations often require combining information from multiple services.&lt;/p&gt;

&lt;p&gt;I wanted to explore how MCP and AI assistants could simplify these workflows without introducing another proprietary infrastructure management layer.&lt;/p&gt;

&lt;p&gt;The goal of MCP-OpenStack-Ops is not to eliminate the need for experienced infrastructure engineers.&lt;/p&gt;

&lt;p&gt;Instead, it is to:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Make existing operational capabilities easier to access.&lt;/li&gt;
&lt;li&gt;Reduce repetitive manual operations.&lt;/li&gt;
&lt;li&gt;Simplify multi-service infrastructure troubleshooting.&lt;/li&gt;
&lt;li&gt;Improve accessibility to infrastructure monitoring data.&lt;/li&gt;
&lt;li&gt;Explore practical AI-driven infrastructure automation.&lt;/li&gt;
&lt;li&gt;Maintain explicit operational and security boundaries.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The project is being developed and validated through practical OpenStack environments, with attention to API behavior, operational safety, and compatibility.&lt;/p&gt;
&lt;h2&gt;
  
  
  Documentation and Resources
&lt;/h2&gt;

&lt;p&gt;The repository includes detailed configuration, integration, and operational documentation.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Documentation&lt;/th&gt;
&lt;th&gt;Description&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://github.com/call518/MCP-OpenStack-Ops" rel="noopener noreferrer"&gt;GitHub Repository&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;Source code and project overview&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://github.com/call518/MCP-OpenStack-Ops/blob/main/docs/configuration.md" rel="noopener noreferrer"&gt;Configuration Guide&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;Environment variables, endpoints, deployment options&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://github.com/call518/MCP-OpenStack-Ops/blob/main/docs/usage-guide.md" rel="noopener noreferrer"&gt;Usage Guide&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;Natural-language examples and operational workflows&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://github.com/call518/MCP-OpenStack-Ops/blob/main/docs/claude-desktop-guide.md" rel="noopener noreferrer"&gt;Claude Desktop Guide&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;Desktop integration&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://github.com/call518/MCP-OpenStack-Ops/blob/main/docs/claude-code-guide.md" rel="noopener noreferrer"&gt;Claude Code Guide&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;Claude Code integration&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://github.com/call518/MCP-OpenStack-Ops/blob/main/docs/codex-guide.md" rel="noopener noreferrer"&gt;Codex Guide&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;OpenAI Codex integration&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://github.com/call518/MCP-OpenStack-Ops/blob/main/docs/openwebui-guide.md" rel="noopener noreferrer"&gt;OpenWebUI Guide&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;Docker Compose and OpenWebUI integration&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://github.com/call518/MCP-OpenStack-Ops/blob/main/docs/security.md" rel="noopener noreferrer"&gt;Security Guide&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;Authentication and operational safety&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://github.com/call518/MCP-OpenStack-Ops/blob/main/docs/multi-user-guide.md" rel="noopener noreferrer"&gt;Multi-User Guide&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;Per-user Application Credentials&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://github.com/call518/MCP-OpenStack-Ops/blob/main/docs/cross-project-guide.md" rel="noopener noreferrer"&gt;Cross-Project Reads Guide&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;Policy-controlled cross-project queries&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://github.com/call518/MCP-OpenStack-Ops/blob/main/docs/barbican-tls-guide.md" rel="noopener noreferrer"&gt;Barbican and TLS Guide&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;Certificate and TLS management&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://github.com/call518/MCP-OpenStack-Ops/blob/main/docs/heat-autoscaling-tutorial.md" rel="noopener noreferrer"&gt;Heat Auto-Scaling Tutorial&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;Practical AI-driven infrastructure orchestration&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://github.com/call518/MCP-OpenStack-Ops/blob/main/docs/validation.md" rel="noopener noreferrer"&gt;Validation Evidence&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;Live validation and test results&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Both English and Korean documentation are available.&lt;/p&gt;
&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;MCP-OpenStack-Ops demonstrates how the Model Context Protocol can connect AI assistants with practical infrastructure management workflows.&lt;/p&gt;

&lt;p&gt;With 128 MCP tools, support for major OpenStack services, safety-gated operations, and multiple AI client integrations, the project provides an extensible foundation for natural-language OpenStack operations.&lt;/p&gt;

&lt;p&gt;The Heat auto-scaling demonstration shows how an AI client can coordinate multiple OpenStack services to deploy, monitor, and validate infrastructure through a conversational workflow.&lt;/p&gt;

&lt;p&gt;This project is an ongoing exploration of how AI can be applied to practical infrastructure engineering and operations.&lt;/p&gt;

&lt;p&gt;If you work with OpenStack, cloud infrastructure, DevOps, infrastructure automation, or MCP-based AI agents, feel free to explore the repository, review the documentation, report issues, or contribute.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Feedback, suggestions, and contributions are welcome.&lt;/strong&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  Project Links
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;GitHub:&lt;/strong&gt; &lt;a href="https://github.com/call518/MCP-OpenStack-Ops" rel="noopener noreferrer"&gt;https://github.com/call518/MCP-OpenStack-Ops&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;PyPI:&lt;/strong&gt; &lt;a href="https://pypi.org/project/mcp-openstack-ops/" rel="noopener noreferrer"&gt;https://pypi.org/project/mcp-openstack-ops/&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Docker Hub:&lt;/strong&gt; &lt;a href="https://hub.docker.com/r/call518/mcp-server-openstack-ops" rel="noopener noreferrer"&gt;https://hub.docker.com/r/call518/mcp-server-openstack-ops&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;GitHub Releases:&lt;/strong&gt; &lt;a href="https://github.com/call518/MCP-OpenStack-Ops/releases" rel="noopener noreferrer"&gt;https://github.com/call518/MCP-OpenStack-Ops/releases&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Issue Tracker:&lt;/strong&gt; &lt;a href="https://github.com/call518/MCP-OpenStack-Ops/issues" rel="noopener noreferrer"&gt;https://github.com/call518/MCP-OpenStack-Ops/issues&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;DeepWiki:&lt;/strong&gt; &lt;a href="https://deepwiki.com/call518/MCP-OpenStack-Ops" rel="noopener noreferrer"&gt;https://deepwiki.com/call518/MCP-OpenStack-Ops&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;


&lt;div class="ltag-github-readme-tag"&gt;
  &lt;div class="readme-overview"&gt;
    &lt;h2&gt;
      &lt;img src="https://assets.dev.to/assets/github-logo-5a155e1f9a670af7944dd5e12375bc76ed542ea80224905ecaf878b9157cdefc.svg" alt="GitHub logo"&gt;
      &lt;a href="https://github.com/call518" rel="noopener noreferrer"&gt;
        call518
      &lt;/a&gt; / &lt;a href="https://github.com/call518/MCP-OpenStack-Ops" rel="noopener noreferrer"&gt;
        MCP-OpenStack-Ops
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      100+ OpenStack tools for AI agents via MCP: compute, network, storage, identity, Heat, Octavia load balancing and Gnocchi telemetry. Read-only and project-scoped by default. Works with Claude Desktop (.mcpb), Open WebUI and any MCP client. Available on PyPI and Docker Hub.
    &lt;/h3&gt;
  &lt;/div&gt;
  &lt;div class="ltag-github-body"&gt;
    
&lt;div id="readme" class="md"&gt;&lt;p&gt;&lt;strong&gt;English&lt;/strong&gt; | &lt;a href="https://github.com/call518/MCP-OpenStack-Ops/README.ko.md" rel="noopener noreferrer"&gt;Korean&lt;/a&gt;&lt;/p&gt;
&lt;div class="markdown-heading"&gt;
&lt;h1 class="heading-element"&gt;MCP-OpenStack-Ops&lt;/h1&gt;
&lt;/div&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;MCP OpenStack Operations Server&lt;/strong&gt;: A comprehensive MCP (Model Context Protocol) server providing OpenStack project management and monitoring capabilities with built-in safety controls and single-project scope.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;a href="https://mcpvault.io/servers/mcp-openstack-ops/health?utm_source=external_badge&amp;amp;utm_medium=referral&amp;amp;utm_campaign=mcp_health_report" rel="nofollow noopener noreferrer"&gt;&lt;img src="https://camo.githubusercontent.com/59559483339676cffa56c4875a06e51d34951695a29d2dfcd40133e6adc7b976/68747470733a2f2f6d63707661756c742e696f2f62616467652f6d63702d6f70656e737461636b2d6f70732e7376673f7468656d653d6461726b" alt="MCPVault: claimed"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://opensource.org/licenses/MIT" rel="nofollow noopener noreferrer"&gt;&lt;img src="https://camo.githubusercontent.com/f0cb8ba13592d31161791daf5df230b9e7c063b00e304ac5a2f0661e7e2c8a57/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d626c75652e737667" alt="License: MIT"&gt;&lt;/a&gt;
&lt;a rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/511685d3eadc1cfd79adc4c32fe661c5d7c2a1af35b671597e94615263b85025/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f507974686f6e2d3337373641423f7374796c653d666c6174266c6f676f3d707974686f6e266c6f676f436f6c6f723d7768697465"&gt;&lt;img src="https://camo.githubusercontent.com/511685d3eadc1cfd79adc4c32fe661c5d7c2a1af35b671597e94615263b85025/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f507974686f6e2d3337373641423f7374796c653d666c6174266c6f676f3d707974686f6e266c6f676f436f6c6f723d7768697465" alt="Python"&gt;&lt;/a&gt;
&lt;a rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/e51ef13308da1a0c813d958301028653af5383671f5adb6a904658680ebe8820/68747470733a2f2f696d672e736869656c64732e696f2f646f636b65722f70756c6c732f63616c6c3531382f6d63702d7365727665722d6f70656e737461636b2d6f7073"&gt;&lt;img src="https://camo.githubusercontent.com/e51ef13308da1a0c813d958301028653af5383671f5adb6a904658680ebe8820/68747470733a2f2f696d672e736869656c64732e696f2f646f636b65722f70756c6c732f63616c6c3531382f6d63702d7365727665722d6f70656e737461636b2d6f7073" alt="Docker Pulls"&gt;&lt;/a&gt;
&lt;a href="https://www.buymeacoffee.com/call518" rel="nofollow noopener noreferrer"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fraw.githubusercontent.com%2Fpachadotdev%2Fbuymeacoffee-badges%2Fmain%2Fbmc-donate-yellow.svg" alt="BuyMeACoffee"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/call518/MCP-OpenStack-Ops/actions/workflows/pypi-publish.yml" rel="noopener noreferrer"&gt;&lt;img src="https://github.com/call518/MCP-OpenStack-Ops/actions/workflows/pypi-publish.yml/badge.svg" alt="Deploy to PyPI with tag"&gt;&lt;/a&gt;
&lt;a rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/4a23d98482bb5d2895a0af5a357980edc39f976f254baf962195699f21f49132/68747470733a2f2f696d672e736869656c64732e696f2f707970692f762f4d43502d4f70656e537461636b2d4f70733f6c6162656c3d707970692532307061636b616765"&gt;&lt;img src="https://camo.githubusercontent.com/4a23d98482bb5d2895a0af5a357980edc39f976f254baf962195699f21f49132/68747470733a2f2f696d672e736869656c64732e696f2f707970692f762f4d43502d4f70656e537461636b2d4f70733f6c6162656c3d707970692532307061636b616765" alt="PyPI"&gt;&lt;/a&gt;
&lt;a rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/1bc2ec826f74899145097a605edb2ab0821279c2be98fdfc5320a3054a954ba7/68747470733a2f2f696d672e736869656c64732e696f2f707970692f646d2f4d43502d4f70656e537461636b2d4f7073"&gt;&lt;img src="https://camo.githubusercontent.com/1bc2ec826f74899145097a605edb2ab0821279c2be98fdfc5320a3054a954ba7/68747470733a2f2f696d672e736869656c64732e696f2f707970692f646d2f4d43502d4f70656e537461636b2d4f7073" alt="PyPI - Downloads"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;What is MCP-OpenStack-Ops?&lt;/h2&gt;
&lt;/div&gt;
&lt;p&gt;MCP-OpenStack-Ops lets an AI assistant such as Claude or a model in OpenWebUI
inspect and operate an OpenStack project in plain language. It is an
&lt;a href="https://modelcontextprotocol.io/" rel="nofollow noopener noreferrer"&gt;MCP&lt;/a&gt; server that turns requests like "which
instances are stopped?" into OpenStack API calls and returns the results.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Read-only by default&lt;/strong&gt;: tools that create, change or delete resources are
not even registered unless you enable them.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;One project at a time&lt;/strong&gt;: each server works inside one OpenStack project and
checks resource ownership.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Broad coverage&lt;/strong&gt;: 128 tools (72 read-only, 56 management) for Nova
Neutron, Cinder, Glance, Keystone, Heat, Octavia, Barbican, and Gnocchi/Aodh
telemetry.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;For an AI-generated walkthrough of the code, see
&lt;a href="https://deepwiki.com/call518/MCP-OpenStack-Ops" rel="nofollow noopener noreferrer"&gt;&lt;img src="https://camo.githubusercontent.com/2cdca229639bcc955ff9272d32935dcfe374681940e1fb45befc6191190c895a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f41736b2d4465657057696b692d626c7565" alt="Ask DeepWiki"&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;What can you do with it?&lt;/h2&gt;

&lt;/div&gt;
&lt;p&gt;&lt;strong&gt;Showcase: a&lt;/strong&gt;…&lt;/p&gt;&lt;/div&gt;
  &lt;/div&gt;
  &lt;div class="gh-btn-container"&gt;&lt;a class="gh-btn" href="https://github.com/call518/MCP-OpenStack-Ops" rel="noopener noreferrer"&gt;View on GitHub&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;





&lt;p&gt;&lt;strong&gt;Author:&lt;/strong&gt; JungJungIn (call518)&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;License:&lt;/strong&gt; MIT&lt;/p&gt;

</description>
      <category>openstack</category>
      <category>ai</category>
      <category>opensource</category>
      <category>devops</category>
    </item>
    <item>
      <title>DeciFlow: Custom AI Decisions for Logs, JSONL, and HDFS Data</title>
      <dc:creator>call518</dc:creator>
      <pubDate>Wed, 14 Oct 2026 00:56:52 +0000</pubDate>
      <link>https://dev.to/call518/deciflow-ai-assisted-real-time-log-classification-for-operators-1eil</link>
      <guid>https://dev.to/call518/deciflow-ai-assisted-real-time-log-classification-for-operators-1eil</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fv7irnd75214v4w9qk7y9.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fv7irnd75214v4w9qk7y9.png" alt=" " width="799" height="500"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;DeciFlow started with a practical question: when reviewing operational logs, which events should I look at first?&lt;/p&gt;

&lt;p&gt;It now supports a broader workflow: read text records, apply configurable AI decision criteria, inspect the results, and optionally connect them to follow-up actions.&lt;/p&gt;

&lt;p&gt;You can use it to classify application logs, assess urgency, or organize customer inquiries by topic and follow-up needs.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;GitHub and setup instructions:&lt;/strong&gt; &lt;a href="https://github.com/call518/DeciFlow" rel="noopener noreferrer"&gt;https://github.com/call518/DeciFlow&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What DeciFlow Does
&lt;/h2&gt;

&lt;p&gt;DeciFlow reads data and provides a browser interface for configuring tasks and reviewing results.&lt;/p&gt;

&lt;p&gt;The inference engine runs separately:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Laya&lt;/strong&gt; is the default, self-hosted decision engine. It can run on CPU or a compatible NVIDIA GPU.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Jev&lt;/strong&gt; is an optional hosted, paid decision API.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;DeciFlow sends input text and decision criteria to the selected engine, then stores and displays the returned predictions. It never automatically switches from Laya to the paid Jev API.&lt;/p&gt;

&lt;p&gt;The basic workflow is:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Source
  → Criteria
  → Classification
  → Human Review
  → Optional Python Action
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Define the Decisions You Need
&lt;/h2&gt;

&lt;p&gt;Decisions are configurable rather than limited to a fixed set of log categories.&lt;/p&gt;

&lt;p&gt;A Criteria profile can combine multiple named decisions in one request:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Type&lt;/th&gt;
&lt;th&gt;Purpose&lt;/th&gt;
&lt;th&gt;Example&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Choice&lt;/td&gt;
&lt;td&gt;Select from defined categories&lt;/td&gt;
&lt;td&gt;Event type or inquiry topic&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Score&lt;/td&gt;
&lt;td&gt;Evaluate an ordered scale&lt;/td&gt;
&lt;td&gt;Urgency&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Noul&lt;/td&gt;
&lt;td&gt;Estimate a yes/no probability&lt;/td&gt;
&lt;td&gt;Whether follow-up is required&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;For operational logs, a profile might classify the event as Normal, Warning, Error, Security, or Other, while also assessing urgency.&lt;/p&gt;

&lt;p&gt;For customer inquiry records, it might identify the topic, handling status, follow-up owner, and need for further action.&lt;/p&gt;

&lt;p&gt;The decisions should match the evidence available in the input. A question alone, for example, does not establish whether someone has already resolved it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Read Local, SSH, and HDFS Sources
&lt;/h2&gt;

&lt;p&gt;DeciFlow supports:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Local files.&lt;/li&gt;
&lt;li&gt;Remote files over SSH/SFTP.&lt;/li&gt;
&lt;li&gt;HDFS through the native Hadoop client.&lt;/li&gt;
&lt;li&gt;HDFS through WebHDFS.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;File patterns let you select multiple files without merging them first.&lt;/p&gt;

&lt;p&gt;Two input formats are available:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;TEXT (Chunk):&lt;/strong&gt; group text events into configurable chunks.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;JSONL (Line):&lt;/strong&gt; process one JSON object per line, using a configured top-level text field.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For example, a JSONL source can use &lt;code&gt;consulting_content&lt;/code&gt; as its Content Field. Each record remains a separate input, even when several records belong to the same conversation.&lt;/p&gt;

&lt;p&gt;HDFS sources support batch reads of UTF-8 TEXT and JSONL files. Connection settings are configured separately from paths such as:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;/warehouse/events/part-*.jsonl
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Native HDFS and WebHDFS use different connection and authentication settings. See the &lt;a href="https://github.com/call518/DeciFlow/blob/main/docs/sources.md#hdfs" rel="noopener noreferrer"&gt;HDFS documentation&lt;/a&gt; for prerequisites and limits.&lt;/p&gt;

&lt;h2&gt;
  
  
  Save Repeatable Tasks
&lt;/h2&gt;

&lt;p&gt;A Task connects Sources with Criteria, chunk settings, and optional Actions.&lt;/p&gt;

&lt;p&gt;Tasks support three execution modes:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Batch / Manual:&lt;/strong&gt; read existing files once.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Batch / Cron:&lt;/strong&gt; run batches on a schedule with an explicit timezone.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Realtime:&lt;/strong&gt; follow new lines and file rotation for local and SSH files.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;HDFS currently supports Batch only.&lt;/p&gt;

&lt;p&gt;Tasks can be paused and resumed. Execution history, results, and reviewer corrections persist in SQLite rather than only in the browser.&lt;/p&gt;

&lt;p&gt;Active runs can recover from saved checkpoints after a server restart, subject to the documented recovery limits. Paused runs remain paused.&lt;/p&gt;

&lt;h2&gt;
  
  
  Review Predictions in the Browser
&lt;/h2&gt;

&lt;p&gt;The results interface lets you:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Inspect the original input and each configured decision.&lt;/li&gt;
&lt;li&gt;View decision probabilities and Criteria definitions.&lt;/li&gt;
&lt;li&gt;Filter results by processing status, source, host, review status, and text.&lt;/li&gt;
&lt;li&gt;Find predictions that need review.&lt;/li&gt;
&lt;li&gt;Record human corrections separately from the original predictions.&lt;/li&gt;
&lt;li&gt;Export all results or only results with human corrections as JSON.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Charts let you explore different decisions within the same run. Switching charts or filtering saved results does not rerun inference.&lt;/p&gt;

&lt;p&gt;Task History and execution results also have shareable URLs, so you can return to a particular run and its filters.&lt;/p&gt;

&lt;p&gt;Probabilities help prioritize inspection; they do not guarantee correctness. Human corrections are review records, not automatic model retraining.&lt;/p&gt;

&lt;h2&gt;
  
  
  Connect Results to Python Actions
&lt;/h2&gt;

&lt;p&gt;An optional Python Action receives a successful classification result as JSON and runs custom code.&lt;/p&gt;

&lt;p&gt;Actions have separately managed Python environments and dependencies. They can connect results to an HTTP endpoint, database, notification system, or another service.&lt;/p&gt;

&lt;p&gt;The included Elasticsearch sample demonstrates writing results to an index.&lt;/p&gt;

&lt;p&gt;Classification and Action outcomes are tracked separately, so a successful decision and a failed delivery remain distinguishable.&lt;/p&gt;

&lt;p&gt;Actions execute code and may produce external effects. Starting a new Batch run rereads the input and can repeat those effects. DeciFlow does not create tickets automatically; that requires an Action you configure.&lt;/p&gt;

&lt;p&gt;For the current result schema and setup, see the &lt;a href="https://github.com/call518/DeciFlow/blob/main/docs/actions.md" rel="noopener noreferrer"&gt;Actions documentation&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Share One Inference Server Across Nodes
&lt;/h2&gt;

&lt;p&gt;DeciFlow and Laya can run on the same host or on separate hosts:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Log Host A — DeciFlow ─┐
Log Host B — DeciFlow ─┼→ Shared Laya Server
Log Host C — DeciFlow ─┘
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;DeciFlow nodes do not need a local GPU or PyTorch installation when using a separate Laya server.&lt;/p&gt;

&lt;p&gt;Self-hosting Laya lets you keep classification requests within your own infrastructure. Jev remains an optional external service.&lt;/p&gt;

&lt;p&gt;Criteria can also be drafted with an optional OpenAI integration. That is separate from classification: it sends the samples you review and submit to OpenAI and incurs API charges. You can define Criteria manually without using it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try It With Sample Data
&lt;/h2&gt;

&lt;p&gt;The repository includes sample operational logs and customer inquiry datasets, so you can explore the workflow before connecting your own systems.&lt;/p&gt;

&lt;p&gt;For the Docker Compose quick start, use a Linux host with Git and Docker Compose installed:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git clone https://github.com/call518/DeciFlow.git
&lt;span class="nb"&gt;cd &lt;/span&gt;DeciFlow

&lt;span class="c"&gt;# Create the configuration only if it does not already exist.&lt;/span&gt;
&lt;span class="nb"&gt;test&lt;/span&gt; &lt;span class="nt"&gt;-f&lt;/span&gt; .env &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="nb"&gt;cp&lt;/span&gt; .env.example .env
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For CPU execution, set these values in &lt;code&gt;.env&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;COMPOSE_PROFILES=cpu
DECISION_ENGINE=laya
LAYA_MODEL=multilingual
LAYA_API_URL=http://laya:8000/v1/systemone
PORT=4000
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then start both services:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;docker compose up &lt;span class="nt"&gt;-d&lt;/span&gt;
docker compose logs &lt;span class="nt"&gt;--follow&lt;/span&gt; laya-cpu
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The first start downloads and loads the model. After checking readiness using the README instructions, open:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;http://127.0.0.1:4000
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;To try the sample access logs:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;In Sources, edit &lt;strong&gt;Sample HTTP access&lt;/strong&gt; and set its path to &lt;code&gt;/host-logs/sample-logs/access-100.log&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Create a &lt;strong&gt;Batch / Manual&lt;/strong&gt; Task.&lt;/li&gt;
&lt;li&gt;Select that Source and the &lt;strong&gt;Sample HTTP access&lt;/strong&gt; Criteria.&lt;/li&gt;
&lt;li&gt;Set &lt;strong&gt;Events/Chunk&lt;/strong&gt; to &lt;code&gt;1&lt;/code&gt; and &lt;strong&gt;Action&lt;/strong&gt; to &lt;code&gt;None&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Save, enable the Task, and click &lt;strong&gt;Run&lt;/strong&gt;.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;New Tasks are disabled by default; saving alone does not start processing.&lt;/p&gt;

&lt;p&gt;Change the trial API key before deployment. The &lt;a href="https://github.com/call518/DeciFlow#readme" rel="noopener noreferrer"&gt;README&lt;/a&gt; covers readiness checks, GPU execution, remote inference, and deployment configuration.&lt;/p&gt;

&lt;h2&gt;
  
  
  Current Limits
&lt;/h2&gt;

&lt;p&gt;DeciFlow is still in early development.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Validate decision quality against representative data before relying on it.&lt;/li&gt;
&lt;li&gt;TEXT chunking does not automatically detect multiline event boundaries such as stack traces.&lt;/li&gt;
&lt;li&gt;Inputs must fit the selected model's token budget.&lt;/li&gt;
&lt;li&gt;HDFS supports batch processing, not continuous tailing.&lt;/li&gt;
&lt;li&gt;Follow-up judgments require evidence in the source text.&lt;/li&gt;
&lt;li&gt;Actions need care because repeated runs can repeat external effects.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The most useful test is a small dataset you understand well: define the decisions, inspect the mistakes, and assess whether the results help your review process.&lt;/p&gt;

&lt;h2&gt;
  
  
  Feedback
&lt;/h2&gt;

&lt;p&gt;I would especially appreciate feedback from people working with operational logs, customer inquiry records, or text datasets in HDFS.&lt;/p&gt;

&lt;p&gt;Which decisions would save you time? What information would you need to trust—or reject—a prediction? Where would this workflow fit into your existing tools?&lt;/p&gt;

&lt;p&gt;Code, samples, and documentation:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/call518/DeciFlow" rel="noopener noreferrer"&gt;https://github.com/call518/DeciFlow&lt;/a&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>showdev</category>
      <category>devops</category>
      <category>observability</category>
    </item>
    <item>
      <title>MCP-Server for Ambari Cluster : MCP-Ambari-API</title>
      <dc:creator>call518</dc:creator>
      <pubDate>Mon, 22 Sep 2025 13:07:46 +0000</pubDate>
      <link>https://dev.to/call518/mcp-server-for-ambari-cluster-mcp-ambari-api-2jh6</link>
      <guid>https://dev.to/call518/mcp-server-for-ambari-cluster-mcp-ambari-api-2jh6</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;&lt;a href="https://github.com/call518/MCP-Ambari-API" rel="noopener noreferrer"&gt;https://github.com/call518/MCP-Ambari-API&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h1&gt;
  
  
  MCP Ambari API - Apache Hadoop Cluster Management Automation
&lt;/h1&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;🚀 Automate Apache Ambari operations with AI/LLM&lt;/strong&gt;: Natural language commands for Hadoop cluster management, service control, configuration monitoring, and real-time status tracking via Model Context Protocol (MCP) tools.&lt;/p&gt;
&lt;/blockquote&gt;




&lt;h2&gt;
  
  
  Architecture &amp;amp; Internal (DeepWiki)
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://deepwiki.com/call518/MCP-Ambari-API" rel="noopener noreferrer"&gt;https://deepwiki.com/call518/MCP-Ambari-API&lt;/a&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  📋 Overview
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;MCP Ambari API&lt;/strong&gt; is a powerful Model Context Protocol (MCP) server that enables seamless Apache Ambari cluster management through natural language commands. Built for DevOps engineers, data engineers, and system administrators who work with Hadoop ecosystems.&lt;/p&gt;




&lt;h3&gt;
  
  
  🎯 What You Can Do
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Automated Service Management&lt;/strong&gt;: Start, stop, restart Hadoop services (HDFS, YARN, Spark, etc.) with simple commands&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Real-time Monitoring&lt;/strong&gt;: Monitor cluster health, service status, and performance metrics&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Configuration Management&lt;/strong&gt;: View, update, and manage cluster configurations across all services
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Alert Management&lt;/strong&gt;: Track and manage cluster alerts and notifications&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;User &amp;amp; Host Management&lt;/strong&gt;: Manage cluster users, permissions, and host assignments&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Request Tracking&lt;/strong&gt;: Monitor long-running operations with detailed progress tracking&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Docuement for Airflow REST-API
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://github.com/apache/ambari/blob/trunk/ambari-server/docs/api/v1/index.md" rel="noopener noreferrer"&gt;Ambari API Documents&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Topics
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;apache-ambari&lt;/code&gt; &lt;code&gt;hadoop-cluster&lt;/code&gt; &lt;code&gt;mcp-server&lt;/code&gt; &lt;code&gt;cluster-automation&lt;/code&gt; &lt;code&gt;devops-tools&lt;/code&gt; &lt;code&gt;big-data&lt;/code&gt; &lt;code&gt;infrastructure-management&lt;/code&gt; &lt;code&gt;ai-automation&lt;/code&gt; &lt;code&gt;llm-tools&lt;/code&gt; &lt;code&gt;python-mcp&lt;/code&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  Example Queries - Cluster Info/Status
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fsfc053eaphjjwhk3zpqn.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fsfc053eaphjjwhk3zpqn.png" alt=" " width="800" height="750"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;a href="//./src/mcp_ambari_api/prompt_template.md#5-example-queries"&gt;Go to More Example Queries&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  🚀 QuickStart Guide /w Docker
&lt;/h2&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; The following instructions assume you are using the &lt;code&gt;streamable-http&lt;/code&gt; mode for MCP Server.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3&gt;
  
  
  Flow Diagram of Quickstart/Tutorial
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fzlrlblxi4oto9kgbm3eq.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fzlrlblxi4oto9kgbm3eq.png" alt=" " width="800" height="416"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Prepare Ambari Cluster (Test Target)
&lt;/h3&gt;

&lt;p&gt;To set up a Ambari Demo cluster, follow the guide at: &lt;a href="https://medium.com/@call518/install-ambari-3-0-with-docker-297a8bb108c8" rel="noopener noreferrer"&gt;Install Ambari 3.0 with Docker&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fuvxsytino5mby52p8f8x.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fuvxsytino5mby52p8f8x.png" alt=" " width="800" height="470"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Run Docker-Compose
&lt;/h3&gt;

&lt;p&gt;Start the &lt;code&gt;MCP-Server&lt;/code&gt;, &lt;code&gt;MCPO&lt;/code&gt;(MCP-Proxy for OpenAPI), and &lt;code&gt;OpenWebUI&lt;/code&gt;.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Ensure Docker and Docker Compose are installed on your system.&lt;/li&gt;
&lt;li&gt;Clone this repository and navigate to its root directory.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Set up environment configuration:&lt;/strong&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;   &lt;span class="c"&gt;# Copy environment template and configure your settings&lt;/span&gt;
   &lt;span class="nb"&gt;cp&lt;/span&gt; .env.example .env
   &lt;span class="c"&gt;# Edit .env with your Ambari cluster information&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Configure your Ambari connection in &lt;code&gt;.env&lt;/code&gt; file:&lt;/strong&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;   &lt;span class="c"&gt;# Ambari cluster connection&lt;/span&gt;
   &lt;span class="nv"&gt;AMBARI_HOST&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;host.docker.internal
   &lt;span class="nv"&gt;AMBARI_PORT&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;7070
   &lt;span class="nv"&gt;AMBARI_USER&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;admin
   &lt;span class="nv"&gt;AMBARI_PASS&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;admin
   &lt;span class="nv"&gt;AMBARI_CLUSTER_NAME&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;TEST-AMBARI

   &lt;span class="c"&gt;# (Optional) Enable authentication for streamable-http mode&lt;/span&gt;
   &lt;span class="c"&gt;# Recommended for production environments&lt;/span&gt;
   &lt;span class="nv"&gt;REMOTE_AUTH_ENABLE&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="nb"&gt;false
   &lt;/span&gt;&lt;span class="nv"&gt;REMOTE_SECRET_KEY&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;your-secure-secret-key-here
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;Run:
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;   docker-compose up &lt;span class="nt"&gt;-d&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;OpenWebUI will be available at: &lt;code&gt;http://localhost:${DOCKER_EXTERNAL_PORT_OPENWEBUI}&lt;/code&gt; (default: 3001)&lt;/li&gt;
&lt;li&gt;The MCPO-Proxy will be accessible at: &lt;code&gt;http://localhost:${DOCKER_EXTERNAL_PORT_MCPO_PROXY}&lt;/code&gt; (default: 8001)
&lt;/li&gt;
&lt;li&gt;The MCPO API Docs: &lt;code&gt;http://localhost:${DOCKER_EXTERNAL_PORT_MCPO_PROXY}/ambari-api/docs&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fj2w84qxnl6hbmngs2uov.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fj2w84qxnl6hbmngs2uov.png" alt=" " width="792" height="1194"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Registering the Tool in OpenWebUI
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;logging in to OpenWebUI with an admin account&lt;/li&gt;
&lt;li&gt;go to "Settings" → "Tools" from the top menu.&lt;/li&gt;
&lt;li&gt;Enter the &lt;code&gt;ambari-api&lt;/code&gt; Tool address (e.g., &lt;code&gt;http://localhost:8000/ambari-api&lt;/code&gt;) to connect MCP Tools with your Ambari cluster.&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  4. More Examples: Using MCP Tools to Query Ambari Cluster
&lt;/h3&gt;

&lt;p&gt;Below is an example screenshot showing how to query the Ambari cluster using MCP Tools in OpenWebUI:&lt;/p&gt;

&lt;h4&gt;
  
  
  Example Query - Cluster Configuration Review &amp;amp; Recommendations
&lt;/h4&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fggojyvzxcyc52k2odzdp.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fggojyvzxcyc52k2odzdp.png" alt=" " width="800" height="604"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h4&gt;
  
  
  Example Query - Restart HDFS Service
&lt;/h4&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fgpkmeuds44sc92vzsnx9.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fgpkmeuds44sc92vzsnx9.png" alt=" " width="800" height="443"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Flbdmwn9b0m9kr2h0h581.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Flbdmwn9b0m9kr2h0h581.png" alt=" " width="800" height="427"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  💡 Tool Example Queries
&lt;/h2&gt;

&lt;h3&gt;
  
  
  🔍 Cluster &amp;amp; Service Management
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;get_cluster_info&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;"Show cluster summary and basic information."&lt;/li&gt;
&lt;li&gt;"What's the cluster name and version?"&lt;/li&gt;
&lt;li&gt;"Display cluster overview with service counts."&lt;/li&gt;
&lt;li&gt;📋 &lt;strong&gt;Features&lt;/strong&gt;: Cluster name, version, service counts, basic cluster information&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;get_cluster_services&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;"Show all cluster services and their current status."&lt;/li&gt;
&lt;li&gt;"List all services with their states."&lt;/li&gt;
&lt;li&gt;"Display service overview for the cluster."&lt;/li&gt;
&lt;li&gt;"Which services are running in the cluster?"&lt;/li&gt;
&lt;li&gt;📋 &lt;strong&gt;Features&lt;/strong&gt;: Service names, states, health status overview&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;get_service_status&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;"What's the status of HDFS service?"&lt;/li&gt;
&lt;li&gt;"Check if YARN is running properly."&lt;/li&gt;
&lt;li&gt;"Show current state of HBase service."&lt;/li&gt;
&lt;li&gt;"Is the MapReduce service healthy?"&lt;/li&gt;
&lt;li&gt;📋 &lt;strong&gt;Features&lt;/strong&gt;: Individual service state, health check, status details&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;get_service_components&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;"Show HDFS components and which hosts they're running on."&lt;/li&gt;
&lt;li&gt;"List all YARN components with their host assignments."&lt;/li&gt;
&lt;li&gt;"Display component distribution for Kafka service."&lt;/li&gt;
&lt;li&gt;"Which hosts are running NameNode components?"&lt;/li&gt;
&lt;li&gt;📋 &lt;strong&gt;Features&lt;/strong&gt;: Component-to-host mapping, service distribution analysis&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;get_service_details&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;"Get detailed information about HDFS service including all components."&lt;/li&gt;
&lt;li&gt;"Show comprehensive YARN service overview with component states."&lt;/li&gt;
&lt;li&gt;"Display full service details for Spark with host assignments."&lt;/li&gt;
&lt;li&gt;📋 &lt;strong&gt;Features&lt;/strong&gt;: Complete service overview with components and host details&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  ⚙️ Service Operations
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;start_service / stop_service / restart_service&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;"Start the HDFS service."&lt;/li&gt;
&lt;li&gt;"Stop the MapReduce service."&lt;/li&gt;
&lt;li&gt;"Restart the YARN service."&lt;/li&gt;
&lt;li&gt;"Please restart the HBase service."&lt;/li&gt;
&lt;li&gt;📋 &lt;strong&gt;Features&lt;/strong&gt;: Individual service lifecycle management&lt;/li&gt;
&lt;li&gt;⚠️ &lt;strong&gt;Note&lt;/strong&gt;: Returns request ID for operation tracking&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;start_all_services / stop_all_services / restart_all_services&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;"Start all cluster services."&lt;/li&gt;
&lt;li&gt;"Stop all services in the cluster."&lt;/li&gt;
&lt;li&gt;"Restart all cluster services."&lt;/li&gt;
&lt;li&gt;📋 &lt;strong&gt;Features&lt;/strong&gt;: Bulk service operations for entire cluster&lt;/li&gt;
&lt;li&gt;⚠️ &lt;strong&gt;Warning&lt;/strong&gt;: These are high-impact operations affecting the entire cluster&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  📊 Operations &amp;amp; Monitoring
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;get_active_requests&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;"Show all running operations."&lt;/li&gt;
&lt;li&gt;"List current service requests in progress."&lt;/li&gt;
&lt;li&gt;"What operations are currently active?"&lt;/li&gt;
&lt;li&gt;"Display ongoing cluster operations."&lt;/li&gt;
&lt;li&gt;📋 &lt;strong&gt;Features&lt;/strong&gt;: Real-time operation status, request monitoring&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;get_request_status&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;"Check the status of request ID 123."&lt;/li&gt;
&lt;li&gt;"Show progress for operation 456."&lt;/li&gt;
&lt;li&gt;"Get details for the last restart request."&lt;/li&gt;
&lt;li&gt;"Monitor request 789 completion status."&lt;/li&gt;
&lt;li&gt;📋 &lt;strong&gt;Features&lt;/strong&gt;: Detailed request progress, completion status, error tracking&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  🖥️ Host Management
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;list_hosts&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;"List all hosts in the cluster."&lt;/li&gt;
&lt;li&gt;"Show cluster node inventory."&lt;/li&gt;
&lt;li&gt;"Display all available hosts."&lt;/li&gt;
&lt;li&gt;📋 &lt;strong&gt;Features&lt;/strong&gt;: Host inventory, cluster node overview&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;get_host_details&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;"Show detailed information for host node1.example.com."&lt;/li&gt;
&lt;li&gt;"Get component status on host node2.example.com."&lt;/li&gt;
&lt;li&gt;"Display all host details with component states."&lt;/li&gt;
&lt;li&gt;"Show hardware and component information for specific host."&lt;/li&gt;
&lt;li&gt;📋 &lt;strong&gt;Features&lt;/strong&gt;: Hardware specs, component states, host health status&lt;/li&gt;
&lt;li&gt;💡 &lt;strong&gt;Tip&lt;/strong&gt;: Omit hostname parameter to get details for all hosts&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  🔧 Configuration Management
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;dump_configurations&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;"Show all configuration types available."&lt;/li&gt;
&lt;li&gt;"Display HDFS configuration settings."&lt;/li&gt;
&lt;li&gt;"Get YARN resource manager configuration."&lt;/li&gt;
&lt;li&gt;"Show core-site.xml configuration values."&lt;/li&gt;
&lt;li&gt;"Find all configurations containing 'memory' settings."&lt;/li&gt;
&lt;li&gt;"Display summarized view of all service configurations."&lt;/li&gt;
&lt;li&gt;📋 &lt;strong&gt;Features&lt;/strong&gt;: Configuration type exploration, property search, service-specific configs&lt;/li&gt;
&lt;li&gt;💡 &lt;strong&gt;Usage&lt;/strong&gt;: Use &lt;code&gt;summarize=True&lt;/code&gt; for overview, &lt;code&gt;filter&lt;/code&gt; parameter for specific properties&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  👥 User Management
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;list_users&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;"Show all cluster users."&lt;/li&gt;
&lt;li&gt;"List users with access to Ambari."&lt;/li&gt;
&lt;li&gt;"Display user accounts and their roles."&lt;/li&gt;
&lt;li&gt;📋 &lt;strong&gt;Features&lt;/strong&gt;: User accounts, role assignments, access permissions&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;get_user&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;"Get detailed information for user 'admin'."&lt;/li&gt;
&lt;li&gt;"Show profile and permissions for user 'operator'."&lt;/li&gt;
&lt;li&gt;"Display authentication details for specific user."&lt;/li&gt;
&lt;li&gt;📋 &lt;strong&gt;Features&lt;/strong&gt;: User profile, permissions, authentication source, role details&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  🚨 Alert Management
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;get_alerts_history (current mode)&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;"Show current active alerts."&lt;/li&gt;
&lt;li&gt;"Display all current alert states."&lt;/li&gt;
&lt;li&gt;"List active alerts for HDFS service."&lt;/li&gt;
&lt;li&gt;"Show critical alerts that are currently active."&lt;/li&gt;
&lt;li&gt;📋 &lt;strong&gt;Features&lt;/strong&gt;: Real-time alert monitoring, service-specific alerts, severity filtering&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;get_alerts_history (history mode)&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;"Show alert history for the last 24 hours."&lt;/li&gt;
&lt;li&gt;"Display HDFS alerts from yesterday."&lt;/li&gt;
&lt;li&gt;"Get critical alerts from last week."&lt;/li&gt;
&lt;li&gt;"Show all alerts that occurred in the past month."&lt;/li&gt;
&lt;li&gt;"Find alerts for specific host from last 7 days."&lt;/li&gt;
&lt;li&gt;📋 &lt;strong&gt;Features&lt;/strong&gt;: Historical alert analysis, time-based filtering, trend analysis&lt;/li&gt;
&lt;li&gt;💡 &lt;strong&gt;Smart Time Processing&lt;/strong&gt;: Supports natural language time expressions in any language&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  📚 System Information
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;get_prompt_template&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;"Show available prompt template sections."&lt;/li&gt;
&lt;li&gt;"Get tool usage guidelines."&lt;/li&gt;
&lt;li&gt;"Display example queries for reference."&lt;/li&gt;
&lt;li&gt;📋 &lt;strong&gt;Features&lt;/strong&gt;: Template documentation, usage guidelines, section navigation&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  🐛 Usage &amp;amp; Configuration
&lt;/h2&gt;

&lt;p&gt;This MCP server supports two connection modes: &lt;strong&gt;stdio&lt;/strong&gt; (traditional) and &lt;strong&gt;streamable-http&lt;/strong&gt; (Docker-based). You can configure the transport mode using CLI arguments or environment variables.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Configuration Priority:&lt;/strong&gt; CLI arguments &amp;gt; Environment variables &amp;gt; Default values&lt;/p&gt;

&lt;h3&gt;
  
  
  CLI Arguments
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;--type&lt;/code&gt; (&lt;code&gt;-t&lt;/code&gt;): Transport type (&lt;code&gt;stdio&lt;/code&gt; or &lt;code&gt;streamable-http&lt;/code&gt;) - Default: &lt;code&gt;stdio&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;--host&lt;/code&gt;: Host address for HTTP transport - Default: &lt;code&gt;127.0.0.1&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;--port&lt;/code&gt; (&lt;code&gt;-p&lt;/code&gt;): Port number for HTTP transport - Default: &lt;code&gt;8000&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;--auth-enable&lt;/code&gt;: Enable Bearer token authentication for streamable-http mode - Default: &lt;code&gt;false&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;--secret-key&lt;/code&gt;: Secret key for Bearer token authentication (required when auth enabled)&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Environment Variables
&lt;/h3&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Variable&lt;/th&gt;
&lt;th&gt;Description&lt;/th&gt;
&lt;th&gt;Default&lt;/th&gt;
&lt;th&gt;Project Default&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;PYTHONPATH&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Python module search path for MCP server imports&lt;/td&gt;
&lt;td&gt;-&lt;/td&gt;
&lt;td&gt;&lt;code&gt;/app/src&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;MCP_LOG_LEVEL&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Server logging verbosity (DEBUG, INFO, WARNING, ERROR)&lt;/td&gt;
&lt;td&gt;&lt;code&gt;INFO&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;INFO&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;FASTMCP_TYPE&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;MCP transport protocol (stdio for CLI, streamable-http for web)&lt;/td&gt;
&lt;td&gt;&lt;code&gt;stdio&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;streamable-http&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;FASTMCP_HOST&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;HTTP server bind address (0.0.0.0 for all interfaces)&lt;/td&gt;
&lt;td&gt;&lt;code&gt;127.0.0.1&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;0.0.0.0&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;FASTMCP_PORT&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;HTTP server port for MCP communication&lt;/td&gt;
&lt;td&gt;&lt;code&gt;8000&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;8000&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;REMOTE_AUTH_ENABLE&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Enable Bearer token authentication for streamable-http mode&lt;br&gt;&lt;strong&gt;Default: false&lt;/strong&gt; (if undefined, empty, or null)&lt;/td&gt;
&lt;td&gt;&lt;code&gt;false&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;false&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;REMOTE_SECRET_KEY&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Secret key for Bearer token authentication&lt;br&gt;&lt;strong&gt;Required when REMOTE_AUTH_ENABLE=true&lt;/strong&gt;
&lt;/td&gt;
&lt;td&gt;-&lt;/td&gt;
&lt;td&gt;&lt;code&gt;your-secret-key-here&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;AMBARI_HOST&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Ambari server hostname or IP address&lt;/td&gt;
&lt;td&gt;&lt;code&gt;127.0.0.1&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;host.docker.internal&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;AMBARI_PORT&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Ambari server port number&lt;/td&gt;
&lt;td&gt;&lt;code&gt;8080&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;8080&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;AMBARI_USER&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Username for Ambari server authentication&lt;/td&gt;
&lt;td&gt;&lt;code&gt;admin&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;admin&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;AMBARI_PASS&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Password for Ambari server authentication&lt;/td&gt;
&lt;td&gt;&lt;code&gt;admin&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;admin&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;AMBARI_CLUSTER_NAME&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Name of the target Ambari cluster&lt;/td&gt;
&lt;td&gt;&lt;code&gt;TEST-AMBARI&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;TEST-AMBARI&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;DOCKER_EXTERNAL_PORT_OPENWEBUI&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Host port mapping for Open WebUI container&lt;/td&gt;
&lt;td&gt;&lt;code&gt;8080&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;3001&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;DOCKER_EXTERNAL_PORT_MCP_SERVER&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Host port mapping for MCP server container&lt;/td&gt;
&lt;td&gt;&lt;code&gt;8080&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;18001&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;DOCKER_EXTERNAL_PORT_MCPO_PROXY&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Host port mapping for MCPO proxy container&lt;/td&gt;
&lt;td&gt;&lt;code&gt;8000&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;8001&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;Note&lt;/strong&gt;: &lt;code&gt;AMBARI_CLUSTER_NAME&lt;/code&gt; serves as the default target cluster for operations when no specific cluster is specified. All environment variables can be configured via the &lt;code&gt;.env&lt;/code&gt; file. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Transport Selection Logic:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Configuration Priority:&lt;/strong&gt; CLI arguments &amp;gt; Environment variables &amp;gt; Default values&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Transport Selection Logic:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;CLI Priority&lt;/strong&gt;: &lt;code&gt;--type streamable-http --host 0.0.0.0 --port 18001&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Environment Priority&lt;/strong&gt;: &lt;code&gt;FASTMCP_TYPE=streamable-http FASTMCP_HOST=0.0.0.0 FASTMCP_PORT=18001&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Legacy Support&lt;/strong&gt;: &lt;code&gt;FASTMCP_PORT=18001&lt;/code&gt; (automatically enables streamable-http mode)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Default&lt;/strong&gt;: &lt;code&gt;stdio&lt;/code&gt; mode when no configuration is provided&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Environment Setup
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# 1. Clone the repository&lt;/span&gt;
git clone https://github.com/call518/MCP-Ambari-API.git
&lt;span class="nb"&gt;cd &lt;/span&gt;MCP-Ambari-API

&lt;span class="c"&gt;# 2. Set up environment configuration&lt;/span&gt;
&lt;span class="nb"&gt;cp&lt;/span&gt; .env.example .env

&lt;span class="c"&gt;# 3. Configure your Ambari connection in .env file&lt;/span&gt;
&lt;span class="nv"&gt;AMBARI_HOST&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;your-ambari-host
&lt;span class="nv"&gt;AMBARI_PORT&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;your-ambari-port  
&lt;span class="nv"&gt;AMBARI_USER&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;your-username
&lt;span class="nv"&gt;AMBARI_PASS&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;your-password
&lt;span class="nv"&gt;AMBARI_CLUSTER_NAME&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;your-cluster-name
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  🔐 Security &amp;amp; Authentication
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Bearer Token Authentication
&lt;/h3&gt;

&lt;p&gt;For &lt;code&gt;streamable-http&lt;/code&gt; mode, this MCP server supports Bearer token authentication to secure remote access. This is especially important when running the server in production environments.&lt;/p&gt;

&lt;h4&gt;
  
  
  Configuration
&lt;/h4&gt;

&lt;p&gt;&lt;strong&gt;Enable Authentication:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# In .env file&lt;/span&gt;
&lt;span class="nv"&gt;REMOTE_AUTH_ENABLE&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="nb"&gt;true
&lt;/span&gt;&lt;span class="nv"&gt;REMOTE_SECRET_KEY&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;your-secure-secret-key-here
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Or via CLI:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;python &lt;span class="nt"&gt;-m&lt;/span&gt; mcp_ambari_api &lt;span class="nt"&gt;--type&lt;/span&gt; streamable-http &lt;span class="nt"&gt;--auth-enable&lt;/span&gt; &lt;span class="nt"&gt;--secret-key&lt;/span&gt; your-secure-secret-key-here
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h4&gt;
  
  
  Security Levels
&lt;/h4&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;stdio mode&lt;/strong&gt; (Default): Local-only access, no authentication needed&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;streamable-http + REMOTE_AUTH_ENABLE=false/undefined&lt;/strong&gt;: Remote access without authentication ⚠️ &lt;strong&gt;NOT RECOMMENDED for production&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;streamable-http + REMOTE_AUTH_ENABLE=true&lt;/strong&gt;: Remote access with Bearer token authentication ✅ &lt;strong&gt;RECOMMENDED for production&lt;/strong&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;🔒 Default Policy&lt;/strong&gt;: &lt;code&gt;REMOTE_AUTH_ENABLE&lt;/code&gt; defaults to &lt;code&gt;false&lt;/code&gt; if undefined, empty, or null. This ensures the server starts even without explicit authentication configuration.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h4&gt;
  
  
  Client Configuration
&lt;/h4&gt;

&lt;p&gt;When authentication is enabled, MCP clients must include the Bearer token in the Authorization header:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"mcpServers"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"ambari-api"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"streamable-http"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"url"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"http://your-server:8000/mcp"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"headers"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nl"&gt;"Authorization"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"Bearer your-secure-secret-key-here"&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h4&gt;
  
  
  Security Best Practices
&lt;/h4&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Always enable authentication&lt;/strong&gt; when using streamable-http mode in production&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Use strong, randomly generated secret keys&lt;/strong&gt; (32+ characters recommended)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Use HTTPS&lt;/strong&gt; when possible (configure reverse proxy with SSL/TLS)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Restrict network access&lt;/strong&gt; using firewalls or network policies&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Rotate secret keys regularly&lt;/strong&gt; for enhanced security&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Monitor access logs&lt;/strong&gt; for unauthorized access attempts&lt;/li&gt;
&lt;/ul&gt;

&lt;h4&gt;
  
  
  Error Handling
&lt;/h4&gt;

&lt;p&gt;When authentication fails, the server returns:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;401 Unauthorized&lt;/strong&gt; for missing or invalid tokens&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Detailed error messages&lt;/strong&gt; in JSON format for debugging&lt;/li&gt;
&lt;/ul&gt;




&lt;h3&gt;
  
  
  Method 1: Local MCP (transport="stdio")
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"mcpServers"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"ambari-api"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"command"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"uvx"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"args"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"--python"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"3.11"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"mcp-ambari-api"&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"env"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nl"&gt;"AMBARI_HOST"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"host.docker.internal"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nl"&gt;"AMBARI_PORT"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"8080"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nl"&gt;"AMBARI_USER"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"admin"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nl"&gt;"AMBARI_PASS"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"admin"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nl"&gt;"AMBARI_CLUSTER_NAME"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"TEST-AMBARI"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nl"&gt;"MCP_LOG_LEVEL"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"INFO"&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Method 2: Remote MCP (transport="streamable-http")
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;On MCP-Client Host:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"mcpServers"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"ambari-api"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"streamable-http"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"url"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"http://localhost:18001/mcp"&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;With Bearer Token Authentication (Recommended for production):&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"mcpServers"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"ambari-api"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"streamable-http"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; 
      &lt;/span&gt;&lt;span class="nl"&gt;"url"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"http://localhost:18001/mcp"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"headers"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nl"&gt;"Authorization"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"Bearer your-secure-secret-key-here"&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  Example usage: Claude-Desktop
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;claude_desktop_config.json&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"mcpServers"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"ambari-api"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"command"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"uvx"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"args"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"--python"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"3.11"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"mcp-ambari-api"&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"env"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nl"&gt;"AMBARI_HOST"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"localhost"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nl"&gt;"AMBARI_PORT"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"7070"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nl"&gt;"AMBARI_USER"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"admin"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nl"&gt;"AMBARI_PASS"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"admin"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nl"&gt;"AMBARI_CLUSTER_NAME"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"TEST-AMBARI"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nl"&gt;"MCP_LOG_LEVEL"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"INFO"&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fx34t9pnqpgycyrbqyxec.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fx34t9pnqpgycyrbqyxec.png" alt=" " width="800" height="773"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;(Option) Configure Multiple Ambari Cluster&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"mcpServers"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"Ambari-Cluster-A"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"command"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"uvx"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"args"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"--python"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"3.11"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"mcp-ambari-api"&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"env"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nl"&gt;"AMBARI_HOST"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"a.foo.com"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nl"&gt;"AMBARI_PORT"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"8080"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nl"&gt;"AMBARI_USER"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"admin-user"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nl"&gt;"AMBARI_PASS"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"admin-pass"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nl"&gt;"AMBARI_CLUSTER_NAME"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"AMBARI-A"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nl"&gt;"MCP_LOG_LEVEL"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"INFO"&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;},&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"Ambari-Cluster-B"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"command"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"uvx"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"args"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"--python"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"3.11"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"mcp-ambari-api"&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"env"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nl"&gt;"AMBARI_HOST"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"b.bar.com"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nl"&gt;"AMBARI_PORT"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"8080"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nl"&gt;"AMBARI_USER"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"admin-user"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nl"&gt;"AMBARI_PASS"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"admin-pass"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nl"&gt;"AMBARI_CLUSTER_NAME"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"AMBARI-B"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nl"&gt;"MCP_LOG_LEVEL"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"INFO"&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Remote Access with Authentication (Claude Desktop):&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"mcpServers"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"ambari-api-remote"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"streamable-http"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"url"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"http://your-server-ip:18001/mcp"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"headers"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nl"&gt;"Authorization"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"Bearer your-secure-secret-key-here"&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  🎯 Core Features &amp;amp; Capabilities
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Service Operations
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Hadoop Service Management&lt;/strong&gt;: Start, stop, restart HDFS, YARN, Spark, HBase, and more&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Bulk Operations&lt;/strong&gt;: Control all cluster services simultaneously&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Status Monitoring&lt;/strong&gt;: Real-time service health and performance tracking&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Configuration Management
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Unified Config Tool&lt;/strong&gt;: Single interface for all configuration types (yarn-site, hdfs-site, etc.)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Bulk Configuration&lt;/strong&gt;: Export and manage multiple configurations with filtering&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Configuration Validation&lt;/strong&gt;: Syntax checking and validation before applying changes&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Monitoring &amp;amp; Alerting
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Real-time Alerts&lt;/strong&gt;: Current and historical cluster alerts with filtering&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Request Tracking&lt;/strong&gt;: Monitor long-running operations with detailed progress&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Host Monitoring&lt;/strong&gt;: Hardware metrics, component states, and resource utilization&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Administration
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;User Management&lt;/strong&gt;: Check cluster user administration&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Host Management&lt;/strong&gt;: Node registration, component assignments, and health monitoring&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  Available MCP Tools
&lt;/h2&gt;

&lt;p&gt;This MCP server provides the following tools for Ambari cluster management:&lt;/p&gt;

&lt;h3&gt;
  
  
  Cluster Management
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;get_cluster_info&lt;/code&gt; - Retrieve basic cluster information and status&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;get_active_requests&lt;/code&gt; - List currently active/running operations&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;get_request_status&lt;/code&gt; - Check status and progress of specific requests&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Service Management
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;get_cluster_services&lt;/code&gt; - List all services with their status&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;get_service_status&lt;/code&gt; - Get detailed status of a specific service&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;get_service_components&lt;/code&gt; - List components and host assignments for a service&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;get_service_details&lt;/code&gt; - Get comprehensive service information&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;start_service&lt;/code&gt; - Start a specific service&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;stop_service&lt;/code&gt; - Stop a specific service&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;restart_service&lt;/code&gt; - Restart a specific service&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;start_all_services&lt;/code&gt; - Start all services in the cluster&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;stop_all_services&lt;/code&gt; - Stop all services in the cluster&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;restart_all_services&lt;/code&gt; - Restart all services in the cluster&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Configuration Tools
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;dump_configurations&lt;/code&gt; - Unified configuration tool (replaces &lt;code&gt;get_configurations&lt;/code&gt;, &lt;code&gt;list_configurations&lt;/code&gt;, and the former internal &lt;code&gt;dump_all_configurations&lt;/code&gt;). Supports:

&lt;ul&gt;
&lt;li&gt;Single type: &lt;code&gt;dump_configurations(config_type="yarn-site")&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Bulk summary: &lt;code&gt;dump_configurations(summarize=True)&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Filter by substring (type or key): &lt;code&gt;dump_configurations(filter="memory")&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Service filter (narrow types by substring): &lt;code&gt;dump_configurations(service_filter="yarn", summarize=True)&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Keys only (no values): &lt;code&gt;dump_configurations(include_values=False)&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Limit number of types: &lt;code&gt;dump_configurations(limit=10, summarize=True)&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;/ul&gt;

&lt;blockquote&gt;
&lt;p&gt;Breaking Change: &lt;code&gt;get_configurations&lt;/code&gt; and &lt;code&gt;list_configurations&lt;/code&gt; were removed in favor of this single, more capable tool.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3&gt;
  
  
  Host Management
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;list_hosts&lt;/code&gt; - List all hosts in the cluster&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;get_host_details&lt;/code&gt; - Get detailed information for specific or all hosts (includes component states, hardware metrics, and service assignments)&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  User Management
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;list_users&lt;/code&gt; - List all users in the Ambari system with their usernames and API links&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;get_user&lt;/code&gt; - Get detailed information about a specific user including:

&lt;ul&gt;
&lt;li&gt;Basic profile (ID, username, display name, user type)&lt;/li&gt;
&lt;li&gt;Status information (admin privileges, active status, login failures)&lt;/li&gt;
&lt;li&gt;Authentication details (LDAP user status, authentication sources)&lt;/li&gt;
&lt;li&gt;Group memberships, privileges, and widget layouts&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;/ul&gt;

&lt;h3&gt;
  
  
  Alert Management
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;get_alerts_history&lt;/code&gt; - &lt;strong&gt;Unified alert tool&lt;/strong&gt; for both current and historical alerts:

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Current mode&lt;/strong&gt; (&lt;code&gt;mode="current"&lt;/code&gt;): Retrieve current/active alerts with real-time status&lt;/li&gt;
&lt;li&gt;Current alert states across cluster, services, or hosts&lt;/li&gt;
&lt;li&gt;Maintenance mode filtering (ON/OFF)&lt;/li&gt;
&lt;li&gt;Summary formats: basic summary and grouped by definition&lt;/li&gt;
&lt;li&gt;Detailed alert information including timestamps and descriptions&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;History mode&lt;/strong&gt; (&lt;code&gt;mode="history"&lt;/code&gt;): Retrieve historical alert events from the cluster&lt;/li&gt;
&lt;li&gt;Scope filtering: cluster-wide, service-specific, or host-specific alerts&lt;/li&gt;
&lt;li&gt;Time range filtering: from/to timestamp support&lt;/li&gt;
&lt;li&gt;Pagination support for large datasets&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Common features&lt;/strong&gt; (both modes):&lt;/li&gt;
&lt;li&gt;State filtering: CRITICAL, WARNING, OK, UNKNOWN alerts&lt;/li&gt;
&lt;li&gt;Definition filtering: filter by specific alert definition names&lt;/li&gt;
&lt;li&gt;Multiple output formats: detailed, summary, compact&lt;/li&gt;
&lt;li&gt;Unified API for consistent alert querying experience&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;/ul&gt;




&lt;h2&gt;
  
  
  🤝 Contributing &amp;amp; Support
&lt;/h2&gt;

&lt;h3&gt;
  
  
  How to Contribute
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;🐛 &lt;strong&gt;Report Bugs&lt;/strong&gt;: &lt;a href="https://github.com/call518/MCP-Ambari-API/issues" rel="noopener noreferrer"&gt;GitHub Issues&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;💡 &lt;strong&gt;Request Features&lt;/strong&gt;: &lt;a href="https://github.com/call518/MCP-Ambari-API/issues" rel="noopener noreferrer"&gt;Feature Requests&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;🔧 &lt;strong&gt;Submit PRs&lt;/strong&gt;: &lt;a href="https://github.com/call518/MCP-Ambari-API/blob/main/CONTRIBUTING.md" rel="noopener noreferrer"&gt;Contributing Guidelines&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;📖 &lt;strong&gt;Improve Docs&lt;/strong&gt;: Help make documentation better&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Technologies Used
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Language&lt;/strong&gt;: Python 3.11&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Framework&lt;/strong&gt;: Model Context Protocol (MCP)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;API&lt;/strong&gt;: Apache Ambari REST API&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Transport&lt;/strong&gt;: stdio (local) and streamable-http (remote)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Deployment&lt;/strong&gt;: Docker, Docker Compose, PyPI&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Dev Env.
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;WSL2(networkingMode = bridged) + Docker-Desktop

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;.wslconfig&lt;/code&gt;: tested with &lt;code&gt;networkingMode = bridged&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;li&gt;Python 3.11 venv
&lt;/li&gt;

&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;  &lt;span class="c"&gt;### Option-1: with uv&lt;/span&gt;
  uv venv &lt;span class="nt"&gt;--python&lt;/span&gt; 3.11 &lt;span class="nt"&gt;--seed&lt;/span&gt;

  &lt;span class="c"&gt;### Option-2: with pip&lt;/span&gt;
  python3.11 &lt;span class="nt"&gt;-m&lt;/span&gt; venv .venv
  &lt;span class="nb"&gt;source&lt;/span&gt; .venv/bin/activate
  pip &lt;span class="nb"&gt;install&lt;/span&gt; &lt;span class="nt"&gt;-U&lt;/span&gt; pip
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  ❓ Frequently Asked Questions
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Q: What Ambari versions are supported?
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;A&lt;/strong&gt;: Ambari 2.7+ is recommended. Earlier versions may work but are not officially tested.&lt;/p&gt;

&lt;h3&gt;
  
  
  Q: Can I use this with cloud-managed Hadoop clusters?
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;A&lt;/strong&gt;: Yes, as long as Ambari API endpoints are accessible, it works with on-premise, cloud, and hybrid deployments.&lt;/p&gt;

&lt;h3&gt;
  
  
  Q: How do I troubleshoot connection issues?
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;A&lt;/strong&gt;: Check your &lt;code&gt;AMBARI_HOST&lt;/code&gt;, &lt;code&gt;AMBARI_PORT&lt;/code&gt;, and network connectivity. Enable debug logging with &lt;code&gt;MCP_LOG_LEVEL=DEBUG&lt;/code&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  Q: How does this compare to Ambari Web UI?
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;A&lt;/strong&gt;: This provides programmatic access via AI/LLM commands, perfect for automation, scripting, and integration with modern DevOps workflows.&lt;/p&gt;




&lt;h2&gt;
  
  
  Contributing
&lt;/h2&gt;

&lt;p&gt;🤝 &lt;strong&gt;Got ideas? Found bugs? Want to add cool features?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;We're always excited to welcome new contributors! Whether you're fixing a typo, adding a new monitoring tool, or improving documentation - every contribution makes this project better.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Ways to contribute:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;🐛 Report issues or bugs&lt;/li&gt;
&lt;li&gt;💡 Suggest new PostgreSQL monitoring features&lt;/li&gt;
&lt;li&gt;📝 Improve documentation &lt;/li&gt;
&lt;li&gt;🚀 Submit pull requests&lt;/li&gt;
&lt;li&gt;⭐ Star the repo if you find it useful!&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Pro tip:&lt;/strong&gt; The codebase is designed to be super friendly for adding new tools. Check out the existing &lt;code&gt;@mcp.tool()&lt;/code&gt; functions in &lt;code&gt;mcp_main.py&lt;/code&gt;.&lt;/p&gt;




&lt;h2&gt;
  
  
  📄 License
&lt;/h2&gt;

&lt;p&gt;This project is licensed under the MIT License.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>MCP-Server for PostgreSQL Operations</title>
      <dc:creator>call518</dc:creator>
      <pubDate>Fri, 22 Aug 2025 17:16:09 +0000</pubDate>
      <link>https://dev.to/call518/mcp-server-for-postgresql-operations-5e5l</link>
      <guid>https://dev.to/call518/mcp-server-for-postgresql-operations-5e5l</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;&lt;a href="https://github.com/call518/MCP-PostgreSQL-Ops" rel="noopener noreferrer"&gt;https://github.com/call518/MCP-PostgreSQL-Ops&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h1&gt;
  
  
  MCP Server for PostgreSQL Operations and Database Monitoring
&lt;/h1&gt;

&lt;h2&gt;
  
  
  Overview
&lt;/h2&gt;

&lt;p&gt;A professional MCP server for PostgreSQL database operations, monitoring, and management. Supports PostgreSQL 12-17 with comprehensive database analysis, performance monitoring, and intelligent maintenance recommendations through natural language queries. Most features work independently, but advanced query analysis capabilities are enhanced when &lt;code&gt;pg_stat_statements&lt;/code&gt; and (optionally) &lt;code&gt;pg_stat_monitor&lt;/code&gt; extensions are installed.&lt;/p&gt;




&lt;h2&gt;
  
  
  Architecture &amp;amp; Internal (DeepWiki)
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://deepwiki.com/call518/MCP-PostgreSQL-Ops" rel="noopener noreferrer"&gt;https://deepwiki.com/call518/MCP-PostgreSQL-Ops&lt;/a&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  Features
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;✅ &lt;strong&gt;Zero Configuration&lt;/strong&gt;: Works with PostgreSQL 12-17 out-of-the-box with automatic version detection.&lt;/li&gt;
&lt;li&gt;✅ &lt;strong&gt;Natural Language&lt;/strong&gt;: Ask questions like "Show me slow queries" or "Analyze table bloat."&lt;/li&gt;
&lt;li&gt;✅ &lt;strong&gt;Production Safe&lt;/strong&gt;: Read-only operations, RDS/Aurora compatible with regular user permissions.&lt;/li&gt;
&lt;li&gt;✅ &lt;strong&gt;Extension Enhanced&lt;/strong&gt;: Optional &lt;code&gt;pg_stat_statements&lt;/code&gt; and &lt;code&gt;pg_stat_monitor&lt;/code&gt; for advanced query analytics.&lt;/li&gt;
&lt;li&gt;✅ &lt;strong&gt;Comprehensive Database Monitoring&lt;/strong&gt;: Performance analysis, bloat detection, and maintenance recommendations.&lt;/li&gt;
&lt;li&gt;✅ &lt;strong&gt;Smart Query Analysis&lt;/strong&gt;: Slow query identification with &lt;code&gt;pg_stat_statements&lt;/code&gt; and &lt;code&gt;pg_stat_monitor&lt;/code&gt; integration.&lt;/li&gt;
&lt;li&gt;✅ &lt;strong&gt;Schema &amp;amp; Relationship Discovery&lt;/strong&gt;: Database structure exploration with detailed relationship mapping.&lt;/li&gt;
&lt;li&gt;✅ &lt;strong&gt;VACUUM &amp;amp; Autovacuum Intelligence&lt;/strong&gt;: Real-time maintenance monitoring and effectiveness analysis.&lt;/li&gt;
&lt;li&gt;✅ &lt;strong&gt;Multi-Database Operations&lt;/strong&gt;: Seamless cross-database analysis and monitoring.&lt;/li&gt;
&lt;li&gt;✅ &lt;strong&gt;Enterprise-Ready&lt;/strong&gt;: Safe read-only operations with RDS/Aurora compatibility.&lt;/li&gt;
&lt;li&gt;✅ &lt;strong&gt;Developer-Friendly&lt;/strong&gt;: Simple codebase for easy customization and tool extension.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  🔧 &lt;strong&gt;Advanced Capabilities&lt;/strong&gt;
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Version-aware I/O statistics (enhanced on PostgreSQL 16+).&lt;/li&gt;
&lt;li&gt;Real-time connection and lock monitoring.&lt;/li&gt;
&lt;li&gt;Background process and checkpoint analysis.&lt;/li&gt;
&lt;li&gt;Replication status and WAL monitoring.&lt;/li&gt;
&lt;li&gt;Database capacity and bloat analysis.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Tool Usage Examples
&lt;/h2&gt;

&lt;h3&gt;
  
  
  📸 &lt;strong&gt;&lt;a href="https://github.com/call518/MCP-PostgreSQL-Ops/wiki/Tool-Usage-Example" rel="noopener noreferrer"&gt;More Examples with Screenshots →&lt;/a&gt;&lt;/strong&gt;
&lt;/h3&gt;




&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fi026k1sm6s0zwiomqwrz.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fi026k1sm6s0zwiomqwrz.png" alt=" " width="800" height="722"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Famt0pmr9m0abypksnlcn.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Famt0pmr9m0abypksnlcn.png" alt=" " width="800" height="446"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  ⭐ Quickstart (5 minutes)
&lt;/h2&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; The &lt;code&gt;postgresql&lt;/code&gt; container included in &lt;code&gt;docker-compose.yml&lt;/code&gt; is intended for quickstart testing purposes only. You can connect to your own PostgreSQL instance by adjusting the environment variables as needed.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;If you want to use your own PostgreSQL instance instead of the built-in test container:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Update the target PostgreSQL connection information in your &lt;code&gt;.env&lt;/code&gt; file (see POSTGRES_HOST, POSTGRES_PORT, POSTGRES_USER, POSTGRES_PASSWORD, POSTGRES_DB).&lt;/li&gt;
&lt;li&gt;In &lt;code&gt;docker-compose.yml&lt;/code&gt;, comment out (disable) the &lt;code&gt;postgres&lt;/code&gt; and &lt;code&gt;postgres-init-extensions&lt;/code&gt; containers to avoid starting the built-in test database.&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;

&lt;h3&gt;
  
  
  Flow Diagram of Quickstart/Tutorial
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Frxyg0pk6riwusr0z3amv.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Frxyg0pk6riwusr0z3amv.png" alt=" " width="800" height="416"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Environment Setup
&lt;/h3&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Note&lt;/strong&gt;: While superuser privileges provide access to all databases and system information, the MCP server also works with regular user permissions for basic monitoring tasks.&lt;br&gt;
&lt;/p&gt;
&lt;/blockquote&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git clone https://github.com/call518/MCP-PostgreSQL-Ops.git
&lt;span class="nb"&gt;cd &lt;/span&gt;MCP-PostgreSQL-Ops

&lt;span class="c"&gt;### Check and modify .env file&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;&lt;br&gt;
bash&lt;br&gt;
cp .env.example .env&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
### No need to modify defaults, but if using your own PostgreSQL server, edit below:
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;&lt;br&gt;
bash&lt;br&gt;
POSTGRES_HOST=host.docker.internal&lt;br&gt;
POSTGRES_PORT=15432&lt;br&gt;
POSTGRES_USER=postgres&lt;br&gt;
POSTGRES_PASSWORD=changeme!@34&lt;br&gt;
POSTGRES_DB=ecommerce # Default connection DB. Superusers can access all DBs.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
&amp;gt; **Note**: `PGDATA=/data/db` is preconfigured for the Percona PostgreSQL Docker image, which requires this specific path for proper write permissions.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  2. Start Demo Containers
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# Start all containers including built-in PostgreSQL for testing&lt;/span&gt;
docker-compose up &lt;span class="nt"&gt;-d&lt;/span&gt;

&lt;span class="c"&gt;# Alternative: If using your own PostgreSQL instance&lt;/span&gt;
&lt;span class="c"&gt;# Comment out postgres and postgres-init-extensions services in docker-compose.yml&lt;/span&gt;
&lt;span class="c"&gt;# Then use the custom configuration:&lt;/span&gt;
&lt;span class="c"&gt;# docker-compose -f docker-compose.custom-db.yml up -d&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  3. Access to OpenWebUI
&lt;/h3&gt;

&lt;p&gt;&lt;a href="http://localhost:3003/" rel="noopener noreferrer"&gt;http://localhost:3003/&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The list of MCP tool features provided by &lt;code&gt;swagger&lt;/code&gt; can be found in the MCPO API Docs URL.

&lt;ul&gt;
&lt;li&gt;e.g: &lt;code&gt;http://localhost:8003/docs&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;/ul&gt;

&lt;h3&gt;
  
  
  4. Registering the Tool in OpenWebUI
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;logging in to OpenWebUI with an admin account&lt;/li&gt;
&lt;li&gt;go to "Settings" → "Tools" from the top menu.&lt;/li&gt;
&lt;li&gt;Enter the &lt;code&gt;postgresql-ops&lt;/code&gt; Tool address (e.g., &lt;code&gt;http://localhost:8003/postgresql-ops&lt;/code&gt;) to connect MCP Tools.&lt;/li&gt;
&lt;li&gt;Setup Ollama or OpenAI.&lt;/li&gt;
&lt;/ol&gt;




&lt;h2&gt;
  
  
  (NOTE) Sample Test Data Overview
&lt;/h2&gt;

&lt;p&gt;The &lt;code&gt;create-test-data.sql&lt;/code&gt; script is executed by the &lt;code&gt;postgres-init-extensions&lt;/code&gt; container (defined in docker-compose.yml) on first startup, automatically generating comprehensive test databases for MCP tool testing:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Database&lt;/th&gt;
&lt;th&gt;Purpose&lt;/th&gt;
&lt;th&gt;Schema &amp;amp; Tables&lt;/th&gt;
&lt;th&gt;Scale&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;ecommerce&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;E-commerce system&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;public&lt;/strong&gt;: categories, products, customers, orders, order_items&lt;/td&gt;
&lt;td&gt;10 categories, 500 products, 100 customers, 200 orders, 400 order items&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;analytics&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Analytics &amp;amp; reporting&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;public&lt;/strong&gt;: page_views, sales_summary&lt;/td&gt;
&lt;td&gt;1,000 page views, 30 sales summaries&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;inventory&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Warehouse management&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;public&lt;/strong&gt;: suppliers, inventory_items, purchase_orders&lt;/td&gt;
&lt;td&gt;10 suppliers, 100 items, 50 purchase orders&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;hr_system&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;HR management&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;public&lt;/strong&gt;: departments, employees, payroll&lt;/td&gt;
&lt;td&gt;5 departments, 50 employees, 150 payroll records&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;Test users created:&lt;/strong&gt; &lt;code&gt;app_readonly&lt;/code&gt;, &lt;code&gt;app_readwrite&lt;/code&gt;, &lt;code&gt;analytics_user&lt;/code&gt;, &lt;code&gt;backup_user&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Optimized for testing:&lt;/strong&gt; Intentional table bloat, various indexes (used/unused), time-series data, complex relationships&lt;/p&gt;




&lt;h2&gt;
  
  
  Tool Compatibility Matrix
&lt;/h2&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Automatic Adaptation:&lt;/strong&gt; All tools work transparently across supported versions - no configuration needed!&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3&gt;
  
  
  🟢 &lt;strong&gt;Extension-Independent Tools (No Extensions Required)&lt;/strong&gt;
&lt;/h3&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Tool Name&lt;/th&gt;
&lt;th&gt;Extensions Required&lt;/th&gt;
&lt;th&gt;PG 12&lt;/th&gt;
&lt;th&gt;PG 13&lt;/th&gt;
&lt;th&gt;PG 14&lt;/th&gt;
&lt;th&gt;PG 15&lt;/th&gt;
&lt;th&gt;PG 16&lt;/th&gt;
&lt;th&gt;PG 17&lt;/th&gt;
&lt;th&gt;System Views/Tables Used&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;get_server_info&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;❌ None&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;version()&lt;/code&gt;, &lt;code&gt;pg_extension&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;get_active_connections&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;❌ None&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;&lt;code&gt;pg_stat_activity&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;get_postgresql_config&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;❌ None&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;&lt;code&gt;pg_settings&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;get_database_list&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;❌ None&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;&lt;code&gt;pg_database&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;get_table_list&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;❌ None&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;&lt;code&gt;information_schema.tables&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;get_table_schema_info&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;❌ None&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;information_schema.*&lt;/code&gt;, &lt;code&gt;pg_indexes&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;get_database_schema_info&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;❌ None&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;pg_namespace&lt;/code&gt;, &lt;code&gt;pg_class&lt;/code&gt;, &lt;code&gt;pg_proc&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;get_table_relationships&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;❌ None&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;information_schema.*&lt;/code&gt; (constraints)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;get_user_list&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;❌ None&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;pg_user&lt;/code&gt;, &lt;code&gt;pg_roles&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;get_index_usage_stats&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;❌ None&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;&lt;code&gt;pg_stat_user_indexes&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;get_database_size_info&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;❌ None&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;&lt;code&gt;pg_database_size()&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;get_table_size_info&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;❌ None&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;&lt;code&gt;pg_total_relation_size()&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;get_vacuum_analyze_stats&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;❌ None&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;&lt;code&gt;pg_stat_user_tables&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;get_current_database_info&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;❌ None&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;pg_database&lt;/code&gt;, &lt;code&gt;current_database()&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;get_table_bloat_analysis&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;❌ None&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;&lt;code&gt;pg_stat_user_tables&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;get_database_bloat_overview&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;❌ None&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;&lt;code&gt;pg_stat_user_tables&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;get_autovacuum_status&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;❌ None&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;&lt;code&gt;pg_stat_user_tables&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;get_autovacuum_activity&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;❌ None&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;&lt;code&gt;pg_stat_user_tables&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;get_running_vacuum_operations&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;❌ None&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;&lt;code&gt;pg_stat_activity&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;get_vacuum_effectiveness_analysis&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;❌ None&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;&lt;code&gt;pg_stat_user_tables&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;get_table_bloat_analysis&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;❌ None&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;&lt;code&gt;pg_stat_user_tables&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;get_database_bloat_overview&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;❌ None&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;&lt;code&gt;pg_stat_user_tables&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;get_lock_monitoring&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;❌ None&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;pg_locks&lt;/code&gt;, &lt;code&gt;pg_stat_activity&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;get_wal_status&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;❌ None&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;&lt;code&gt;pg_current_wal_lsn()&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;get_database_stats&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;❌ None&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;&lt;code&gt;pg_stat_database&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;get_table_io_stats&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;❌ None&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;&lt;code&gt;pg_statio_user_tables&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;get_index_io_stats&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;❌ None&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;&lt;code&gt;pg_statio_user_indexes&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;get_database_conflicts_stats&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;❌ None&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;&lt;code&gt;pg_stat_database_conflicts&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h3&gt;
  
  
  🚀 &lt;strong&gt;Version-Aware Tools (Auto-Adapting)&lt;/strong&gt;
&lt;/h3&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Tool Name&lt;/th&gt;
&lt;th&gt;Extensions Required&lt;/th&gt;
&lt;th&gt;PG 12&lt;/th&gt;
&lt;th&gt;PG 13&lt;/th&gt;
&lt;th&gt;PG 14&lt;/th&gt;
&lt;th&gt;PG 15&lt;/th&gt;
&lt;th&gt;PG 16&lt;/th&gt;
&lt;th&gt;PG 17&lt;/th&gt;
&lt;th&gt;Special Features&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;get_io_stats&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;❌ None&lt;/td&gt;
&lt;td&gt;✅ Basic&lt;/td&gt;
&lt;td&gt;✅ Basic&lt;/td&gt;
&lt;td&gt;✅ Basic&lt;/td&gt;
&lt;td&gt;✅ Basic&lt;/td&gt;
&lt;td&gt;✅ &lt;strong&gt;Enhanced&lt;/strong&gt;
&lt;/td&gt;
&lt;td&gt;✅ &lt;strong&gt;Enhanced&lt;/strong&gt;
&lt;/td&gt;
&lt;td&gt;PG16+: &lt;code&gt;pg_stat_io&lt;/code&gt; support&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;get_bgwriter_stats&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;❌ None&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅ &lt;strong&gt;Special&lt;/strong&gt;
&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;PG15: Separate checkpointer stats&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;get_replication_status&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;❌ None&lt;/td&gt;
&lt;td&gt;✅ Compatible&lt;/td&gt;
&lt;td&gt;✅ &lt;strong&gt;Enhanced&lt;/strong&gt;
&lt;/td&gt;
&lt;td&gt;✅ &lt;strong&gt;Enhanced&lt;/strong&gt;
&lt;/td&gt;
&lt;td&gt;✅ &lt;strong&gt;Enhanced&lt;/strong&gt;
&lt;/td&gt;
&lt;td&gt;✅ &lt;strong&gt;Enhanced&lt;/strong&gt;
&lt;/td&gt;
&lt;td&gt;✅ &lt;strong&gt;Enhanced&lt;/strong&gt;
&lt;/td&gt;
&lt;td&gt;PG13+: &lt;code&gt;wal_status&lt;/code&gt;, &lt;code&gt;safe_wal_size&lt;/code&gt;; PG16+: enhanced WAL receiver&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;get_all_tables_stats&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;❌ None&lt;/td&gt;
&lt;td&gt;✅ Compatible&lt;/td&gt;
&lt;td&gt;✅ &lt;strong&gt;Enhanced&lt;/strong&gt;
&lt;/td&gt;
&lt;td&gt;✅ &lt;strong&gt;Enhanced&lt;/strong&gt;
&lt;/td&gt;
&lt;td&gt;✅ &lt;strong&gt;Enhanced&lt;/strong&gt;
&lt;/td&gt;
&lt;td&gt;✅ &lt;strong&gt;Enhanced&lt;/strong&gt;
&lt;/td&gt;
&lt;td&gt;✅ &lt;strong&gt;Enhanced&lt;/strong&gt;
&lt;/td&gt;
&lt;td&gt;PG13+: &lt;code&gt;n_ins_since_vacuum&lt;/code&gt; tracking for vacuum maintenance optimization&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;get_user_functions_stats&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;⚙️ Config Required&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;Requires &lt;code&gt;track_functions=pl&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h3&gt;
  
  
  🟡 &lt;strong&gt;Extension-Dependent Tools (Extensions Required)&lt;/strong&gt;
&lt;/h3&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Tool Name&lt;/th&gt;
&lt;th&gt;Required Extension&lt;/th&gt;
&lt;th&gt;PG 12&lt;/th&gt;
&lt;th&gt;PG 13&lt;/th&gt;
&lt;th&gt;PG 14&lt;/th&gt;
&lt;th&gt;PG 15&lt;/th&gt;
&lt;th&gt;PG 16&lt;/th&gt;
&lt;th&gt;PG 17&lt;/th&gt;
&lt;th&gt;Notes&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;get_pg_stat_statements_top_queries&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;pg_stat_statements&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;✅ &lt;strong&gt;Compatible&lt;/strong&gt;
&lt;/td&gt;
&lt;td&gt;✅ &lt;strong&gt;Enhanced&lt;/strong&gt;
&lt;/td&gt;
&lt;td&gt;✅ &lt;strong&gt;Enhanced&lt;/strong&gt;
&lt;/td&gt;
&lt;td&gt;✅ &lt;strong&gt;Enhanced&lt;/strong&gt;
&lt;/td&gt;
&lt;td&gt;✅ &lt;strong&gt;Enhanced&lt;/strong&gt;
&lt;/td&gt;
&lt;td&gt;✅ &lt;strong&gt;Enhanced&lt;/strong&gt;
&lt;/td&gt;
&lt;td&gt;PG12: &lt;code&gt;total_time&lt;/code&gt; → &lt;code&gt;total_exec_time&lt;/code&gt;; PG13+: native &lt;code&gt;total_exec_time&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;get_pg_stat_monitor_recent_queries&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;pg_stat_monitor&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;✅ &lt;strong&gt;Compatible&lt;/strong&gt;
&lt;/td&gt;
&lt;td&gt;✅ &lt;strong&gt;Enhanced&lt;/strong&gt;
&lt;/td&gt;
&lt;td&gt;✅ &lt;strong&gt;Enhanced&lt;/strong&gt;
&lt;/td&gt;
&lt;td&gt;✅ &lt;strong&gt;Enhanced&lt;/strong&gt;
&lt;/td&gt;
&lt;td&gt;✅ &lt;strong&gt;Enhanced&lt;/strong&gt;
&lt;/td&gt;
&lt;td&gt;✅ &lt;strong&gt;Enhanced&lt;/strong&gt;
&lt;/td&gt;
&lt;td&gt;PG12: &lt;code&gt;total_time&lt;/code&gt; → &lt;code&gt;total_exec_time&lt;/code&gt;; PG13+: native &lt;code&gt;total_exec_time&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;📋 PostgreSQL 18 Support&lt;/strong&gt;: PostgreSQL 18 is currently in beta phase and not yet supported by Percona Distribution PostgreSQL. Support will be added once PostgreSQL 18 reaches stable release and distribution support becomes available.&lt;/p&gt;
&lt;/blockquote&gt;




&lt;h2&gt;
  
  
  Usage Examples
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Claude Desktop Integration
&lt;/h3&gt;

&lt;p&gt;(Recommended) Add to your Claude Desktop configuration file:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"mcpServers"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"postgresql-ops"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"command"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"uvx"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"args"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"--python"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"3.11"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"mcp-postgresql-ops"&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"env"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nl"&gt;"POSTGRES_HOST"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"127.0.0.1"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nl"&gt;"POSTGRES_PORT"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"15432"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nl"&gt;"POSTGRES_USER"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"postgres"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nl"&gt;"POSTGRES_PASSWORD"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"changeme!@34"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nl"&gt;"POSTGRES_DB"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"ecommerce"&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;"Show all active connections in a clear and readable html table format."&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqh2gme5k7bicnnad3ex7.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqh2gme5k7bicnnad3ex7.png" alt=" " width="800" height="472"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;"Show all relationships for customers table in ecommerce database as a Mermaid diagram."&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Flyelfrw7kdrtwowpstlv.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Flyelfrw7kdrtwowpstlv.png" alt=" " width="800" height="361"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;(Optional) Run with Local Source:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"mcpServers"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"postgresql-ops"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"command"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"uv"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"args"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"run"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"python"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"-m"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"src.mcp_postgresql_ops.mcp_main"&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"env"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nl"&gt;"PYTHONPATH"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"/path/to/MCP-PostgreSQL-Ops"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nl"&gt;"POSTGRES_HOST"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"127.0.0.1"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nl"&gt;"POSTGRES_PORT"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"15432"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nl"&gt;"POSTGRES_USER"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"postgres"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nl"&gt;"POSTGRES_PASSWORD"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"changeme!@34"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nl"&gt;"POSTGRES_DB"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"ecommerce"&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Run MCP-Server as Standalon
&lt;/h3&gt;

&lt;h4&gt;
  
  
  /w Pypi and uvx (Recommended)
&lt;/h4&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# Stdio mode&lt;/span&gt;
uvx &lt;span class="nt"&gt;--python&lt;/span&gt; 3.11 mcp-postgresql-ops &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;--type&lt;/span&gt; stdio

&lt;span class="c"&gt;# HTTP mode&lt;/span&gt;
uvx &lt;span class="nt"&gt;--python&lt;/span&gt; 3.11 mcp-postgresql-ops
  &lt;span class="nt"&gt;--type&lt;/span&gt; streamable-http &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;--host&lt;/span&gt; 127.0.0.1 &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;--port&lt;/span&gt; 8080 &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;--log-level&lt;/span&gt; DEBUG
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  (Option) Configure Multiple PostgreSQL Instances
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"mcpServers"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"Postgresql-A"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"command"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"uvx"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"args"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"--python"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"3.11"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"mcp-postgresql-ops"&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"env"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nl"&gt;"POSTGRES_HOST"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"a.foo.com"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nl"&gt;"POSTGRES_PORT"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"5432"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nl"&gt;"POSTGRES_USER"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"postgres"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nl"&gt;"POSTGRES_PASSWORD"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"postgres"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nl"&gt;"POSTGRES_DB"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"postgres"&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;},&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"Postgresql-B"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"command"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"uvx"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"args"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"--python"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"3.11"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"mcp-postgresql-ops"&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"env"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nl"&gt;"POSTGRES_HOST"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"b.bar.com"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nl"&gt;"POSTGRES_PORT"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"5432"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nl"&gt;"POSTGRES_USER"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"postgres"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nl"&gt;"POSTGRES_PASSWORD"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"postgres"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nl"&gt;"POSTGRES_DB"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"postgres"&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h4&gt;
  
  
  /w Local Source
&lt;/h4&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# Stdio mode&lt;/span&gt;
&lt;span class="nv"&gt;PYTHONPATH&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;/path/to/MCP-PostgreSQL-Ops
python &lt;span class="nt"&gt;-m&lt;/span&gt; src.mcp_postgresql_ops.mcp_main &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;--type&lt;/span&gt; stdio

&lt;span class="c"&gt;# HTTP mode&lt;/span&gt;
&lt;span class="nv"&gt;PYTHONPATH&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;/path/to/MCP-PostgreSQL-Ops
python &lt;span class="nt"&gt;-m&lt;/span&gt; src.mcp_postgresql_ops.mcp_main &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;--type&lt;/span&gt; streamable-http &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;--host&lt;/span&gt; 127.0.0.1 &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;--port&lt;/span&gt; 8080 &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;--log-level&lt;/span&gt; DEBUG
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  Environment Variables
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Variable&lt;/th&gt;
&lt;th&gt;Description&lt;/th&gt;
&lt;th&gt;Default&lt;/th&gt;
&lt;th&gt;Project Default&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;PYTHONPATH&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Python module search path for MCP server imports&lt;/td&gt;
&lt;td&gt;-&lt;/td&gt;
&lt;td&gt;&lt;code&gt;/app/src&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;MCP_LOG_LEVEL&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Server logging verbosity (DEBUG, INFO, WARNING, ERROR)&lt;/td&gt;
&lt;td&gt;&lt;code&gt;INFO&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;INFO&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;FASTMCP_TYPE&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;MCP transport protocol (stdio for CLI, streamable-http for web)&lt;/td&gt;
&lt;td&gt;&lt;code&gt;stdio&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;streamable-http&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;FASTMCP_HOST&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;HTTP server bind address (0.0.0.0 for all interfaces)&lt;/td&gt;
&lt;td&gt;&lt;code&gt;127.0.0.1&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;0.0.0.0&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;FASTMCP_PORT&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;HTTP server port for MCP communication&lt;/td&gt;
&lt;td&gt;&lt;code&gt;8080&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;8080&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;PGSQL_VERSION&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;PostgreSQL major version for Docker image selection&lt;/td&gt;
&lt;td&gt;&lt;code&gt;17&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;17&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;PGDATA&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;PostgreSQL data directory inside Docker container (&lt;strong&gt;Do not modify&lt;/strong&gt;)&lt;/td&gt;
&lt;td&gt;&lt;code&gt;/var/lib/postgresql/data&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;/data/db&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;POSTGRES_HOST&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;PostgreSQL server hostname or IP address&lt;/td&gt;
&lt;td&gt;&lt;code&gt;127.0.0.1&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;host.docker.internal&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;POSTGRES_PORT&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;PostgreSQL server port number&lt;/td&gt;
&lt;td&gt;&lt;code&gt;5432&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;15432&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;POSTGRES_USER&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;PostgreSQL connection username (needs read permissions)&lt;/td&gt;
&lt;td&gt;&lt;code&gt;postgres&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;postgres&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;POSTGRES_PASSWORD&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;PostgreSQL user password (supports special characters)&lt;/td&gt;
&lt;td&gt;&lt;code&gt;changeme!@34&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;changeme!@34&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;POSTGRES_DB&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Default database name for connections&lt;/td&gt;
&lt;td&gt;&lt;code&gt;testdb&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;ecommerce&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;POSTGRES_MAX_CONNECTIONS&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;PostgreSQL max_connections configuration parameter&lt;/td&gt;
&lt;td&gt;&lt;code&gt;200&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;200&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;DOCKER_EXTERNAL_PORT_OPENWEBUI&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Host port mapping for Open WebUI container&lt;/td&gt;
&lt;td&gt;&lt;code&gt;8080&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;3003&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;DOCKER_EXTERNAL_PORT_MCP_SERVER&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Host port mapping for MCP server container&lt;/td&gt;
&lt;td&gt;&lt;code&gt;8080&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;18003&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;DOCKER_EXTERNAL_PORT_MCPO_PROXY&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Host port mapping for MCPO proxy container&lt;/td&gt;
&lt;td&gt;&lt;code&gt;8000&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;8003&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;Note&lt;/strong&gt;: &lt;code&gt;POSTGRES_DB&lt;/code&gt; serves as the default target database for operations when no specific database is specified. In Docker environments, if set to a non-default name, this database will be automatically created during initial PostgreSQL startup.&lt;/p&gt;




&lt;h2&gt;
  
  
  Prerequisites
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Required PostgreSQL Extensions
&lt;/h3&gt;

&lt;blockquote&gt;
&lt;p&gt;For more details, see the ## Tool Compatibility Matrix&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;Note&lt;/strong&gt;: Most MCP tools work without any PostgreSQL extensions. section below. Some advanced performance analysis tools require the following extensions:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="c1"&gt;-- Query performance statistics (required only for get_pg_stat_statements_top_queries)&lt;/span&gt;
&lt;span class="k"&gt;CREATE&lt;/span&gt; &lt;span class="n"&gt;EXTENSION&lt;/span&gt; &lt;span class="n"&gt;IF&lt;/span&gt; &lt;span class="k"&gt;NOT&lt;/span&gt; &lt;span class="k"&gt;EXISTS&lt;/span&gt; &lt;span class="n"&gt;pg_stat_statements&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;-- Advanced monitoring (optional, used by get_pg_stat_monitor_recent_queries)&lt;/span&gt;
&lt;span class="k"&gt;CREATE&lt;/span&gt; &lt;span class="n"&gt;EXTENSION&lt;/span&gt; &lt;span class="n"&gt;IF&lt;/span&gt; &lt;span class="k"&gt;NOT&lt;/span&gt; &lt;span class="k"&gt;EXISTS&lt;/span&gt; &lt;span class="n"&gt;pg_stat_monitor&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Quick Setup&lt;/strong&gt;: For new PostgreSQL installations, add to &lt;code&gt;postgresql.conf&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;shared_preload_libraries = 'pg_stat_statements'
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then restart PostgreSQL and run the CREATE EXTENSION commands above.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;pg_stat_statements&lt;/code&gt; is required only for slow query analysis tools.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;pg_stat_monitor&lt;/code&gt; is optional and used for real-time query monitoring.&lt;/li&gt;
&lt;li&gt;All other tools work without these extensions.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Minimum Requirements
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;PostgreSQL 12+ (tested with PostgreSQL 17)&lt;/li&gt;
&lt;li&gt;Python 3.11&lt;/li&gt;
&lt;li&gt;Network access to PostgreSQL server&lt;/li&gt;
&lt;li&gt;Read permissions on system catalogs&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Required PostgreSQL Configuration
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;⚠️ Statistics Collection Settings&lt;/strong&gt;:&lt;br&gt;
Some MCP tools require specific PostgreSQL configuration parameters to collect statistics. Choose one of the following configuration methods:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Tools affected by these settings&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;get_user_functions_stats&lt;/strong&gt;: Requires &lt;code&gt;track_functions = pl&lt;/code&gt; or &lt;code&gt;track_functions = all&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;get_table_io_stats&lt;/strong&gt; &amp;amp; &lt;strong&gt;get_index_io_stats&lt;/strong&gt;: More accurate timing with &lt;code&gt;track_io_timing = on&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;get_database_stats&lt;/strong&gt;: Enhanced I/O timing with &lt;code&gt;track_io_timing = on&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Verification&lt;/strong&gt;:&lt;br&gt;
After applying any method, verify the settings:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;setting&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;context&lt;/span&gt; &lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;pg_settings&lt;/span&gt; &lt;span class="k"&gt;WHERE&lt;/span&gt; &lt;span class="n"&gt;name&lt;/span&gt; &lt;span class="k"&gt;IN&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'track_activities'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'track_counts'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'track_io_timing'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'track_functions'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;ORDER&lt;/span&gt; &lt;span class="k"&gt;BY&lt;/span&gt; &lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

       &lt;span class="n"&gt;name&lt;/span&gt;       &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="n"&gt;setting&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt;  &lt;span class="n"&gt;context&lt;/span&gt;  
&lt;span class="c1"&gt;------------------+---------+-----------&lt;/span&gt;
 &lt;span class="n"&gt;track_activities&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="k"&gt;on&lt;/span&gt;      &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="n"&gt;superuser&lt;/span&gt;
 &lt;span class="n"&gt;track_counts&lt;/span&gt;     &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="k"&gt;on&lt;/span&gt;      &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="n"&gt;superuser&lt;/span&gt;
 &lt;span class="n"&gt;track_functions&lt;/span&gt;  &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="n"&gt;pl&lt;/span&gt;      &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="n"&gt;superuser&lt;/span&gt;
 &lt;span class="n"&gt;track_io_timing&lt;/span&gt;  &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="k"&gt;on&lt;/span&gt;      &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="n"&gt;superuser&lt;/span&gt;
&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;4&lt;/span&gt; &lt;span class="k"&gt;rows&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h4&gt;
  
  
  Method 1: postgresql.conf (Recommended for Self-Managed PostgreSQL)
&lt;/h4&gt;

&lt;p&gt;Add the following to your &lt;code&gt;postgresql.conf&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight ini"&gt;&lt;code&gt;&lt;span class="c"&gt;# Basic statistics collection (usually enabled by default)
&lt;/span&gt;&lt;span class="py"&gt;track_activities&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="s"&gt;on&lt;/span&gt;
&lt;span class="py"&gt;track_counts&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="s"&gt;on&lt;/span&gt;

&lt;span class="c"&gt;# Required for function statistics tools
&lt;/span&gt;&lt;span class="py"&gt;track_functions&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="s"&gt;pl    # Enables PL/pgSQL function statistics collection&lt;/span&gt;

&lt;span class="c"&gt;# Optional but recommended for accurate I/O timing
&lt;/span&gt;&lt;span class="py"&gt;track_io_timing&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="s"&gt;on    # Enables I/O timing statistics collection&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then restart PostgreSQL server.&lt;/p&gt;

&lt;h4&gt;
  
  
  Method 2: PostgreSQL Startup Parameters
&lt;/h4&gt;

&lt;p&gt;For Docker or command-line PostgreSQL startup:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# Docker example&lt;/span&gt;
docker run &lt;span class="nt"&gt;-d&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;-e&lt;/span&gt; &lt;span class="nv"&gt;POSTGRES_PASSWORD&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;mypassword &lt;span class="se"&gt;\&lt;/span&gt;
  postgres:17 &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;-c&lt;/span&gt; &lt;span class="nv"&gt;track_activities&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;on &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;-c&lt;/span&gt; &lt;span class="nv"&gt;track_counts&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;on &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;-c&lt;/span&gt; &lt;span class="nv"&gt;track_functions&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;pl &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;-c&lt;/span&gt; &lt;span class="nv"&gt;track_io_timing&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;on

&lt;span class="c"&gt;# Direct postgres command&lt;/span&gt;
postgres &lt;span class="nt"&gt;-D&lt;/span&gt; /data &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;-c&lt;/span&gt; &lt;span class="nv"&gt;track_activities&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;on &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;-c&lt;/span&gt; &lt;span class="nv"&gt;track_counts&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;on &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;-c&lt;/span&gt; &lt;span class="nv"&gt;track_functions&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;pl &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;-c&lt;/span&gt; &lt;span class="nv"&gt;track_io_timing&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;on
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h4&gt;
  
  
  Method 3: Dynamic Configuration (AWS RDS, Azure, GCP, Managed Services)
&lt;/h4&gt;

&lt;p&gt;For managed PostgreSQL services where you cannot modify &lt;code&gt;postgresql.conf&lt;/code&gt;, use SQL commands to change settings dynamically:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="c1"&gt;-- Enable basic statistics collection (usually enabled by default)&lt;/span&gt;
&lt;span class="k"&gt;ALTER&lt;/span&gt; &lt;span class="k"&gt;SYSTEM&lt;/span&gt; &lt;span class="k"&gt;SET&lt;/span&gt; &lt;span class="n"&gt;track_activities&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;'on'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;ALTER&lt;/span&gt; &lt;span class="k"&gt;SYSTEM&lt;/span&gt; &lt;span class="k"&gt;SET&lt;/span&gt; &lt;span class="n"&gt;track_counts&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;'on'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;-- Enable function statistics collection (requires superuser privileges)&lt;/span&gt;
&lt;span class="k"&gt;ALTER&lt;/span&gt; &lt;span class="k"&gt;SYSTEM&lt;/span&gt; &lt;span class="k"&gt;SET&lt;/span&gt; &lt;span class="n"&gt;track_functions&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;'pl'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;-- Enable I/O timing statistics (optional but recommended)&lt;/span&gt;
&lt;span class="k"&gt;ALTER&lt;/span&gt; &lt;span class="k"&gt;SYSTEM&lt;/span&gt; &lt;span class="k"&gt;SET&lt;/span&gt; &lt;span class="n"&gt;track_io_timing&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;'on'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;-- Reload configuration without restart (run separately)&lt;/span&gt;
&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="n"&gt;pg_reload_conf&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Alternative for session-level testing&lt;/strong&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="c1"&gt;-- Set for current session only (temporary)&lt;/span&gt;
&lt;span class="k"&gt;SET&lt;/span&gt; &lt;span class="n"&gt;track_activities&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;'on'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;SET&lt;/span&gt; &lt;span class="n"&gt;track_counts&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;'on'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;SET&lt;/span&gt; &lt;span class="n"&gt;track_functions&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;'pl'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;SET&lt;/span&gt; &lt;span class="n"&gt;track_io_timing&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;'on'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Note&lt;/strong&gt;: When using command-line tools, run each SQL statement separately to avoid transaction block errors.&lt;/p&gt;




&lt;h2&gt;
  
  
  RDS/Aurora Compatibility
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;This server is read-only and works with regular roles on RDS/Aurora. For advanced analysis enable pg_stat_statements; pg_stat_monitor is not available on managed engines.&lt;/li&gt;
&lt;li&gt;On RDS/Aurora, prefer DB Parameter Group over ALTER SYSTEM for persistent settings.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;  &lt;span class="c1"&gt;-- Verify preload setting&lt;/span&gt;
  &lt;span class="k"&gt;SHOW&lt;/span&gt; &lt;span class="n"&gt;shared_preload_libraries&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

  &lt;span class="c1"&gt;-- Enable extension in target DB&lt;/span&gt;
  &lt;span class="k"&gt;CREATE&lt;/span&gt; &lt;span class="n"&gt;EXTENSION&lt;/span&gt; &lt;span class="n"&gt;IF&lt;/span&gt; &lt;span class="k"&gt;NOT&lt;/span&gt; &lt;span class="k"&gt;EXISTS&lt;/span&gt; &lt;span class="n"&gt;pg_stat_statements&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

  &lt;span class="c1"&gt;-- Recommended visibility for monitoring&lt;/span&gt;
  &lt;span class="k"&gt;GRANT&lt;/span&gt; &lt;span class="n"&gt;pg_read_all_stats&lt;/span&gt; &lt;span class="k"&gt;TO&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;app_user&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  Example Queries
&lt;/h2&gt;

&lt;h3&gt;
  
  
  🟢 Extension-Independent Tools (Always Available)
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;get_server_info&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;"Show PostgreSQL server version and extension status."&lt;/li&gt;
&lt;li&gt;"Check if pg_stat_statements is installed."&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;li&gt;

&lt;strong&gt;get_active_connections&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;"Show all active connections."&lt;/li&gt;
&lt;li&gt;"List current sessions with database and user."&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;li&gt;

&lt;strong&gt;get_postgresql_config&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;"Show all PostgreSQL configuration parameters."&lt;/li&gt;
&lt;li&gt;"Find all memory-related configuration settings."&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;li&gt;

&lt;strong&gt;get_database_list&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;"List all databases and their sizes."&lt;/li&gt;
&lt;li&gt;"Show database list with owner information."&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;li&gt;

&lt;strong&gt;get_table_list&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;"List all tables in the ecommerce database."&lt;/li&gt;
&lt;li&gt;"Show table sizes in the public schema."&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;li&gt;

&lt;strong&gt;get_table_schema_info&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;"Show detailed schema information for the customers table in ecommerce database."&lt;/li&gt;
&lt;li&gt;"Get column details and constraints for products table in ecommerce database."&lt;/li&gt;
&lt;li&gt;"Analyze table structure with indexes and foreign keys for orders table in sales schema of ecommerce database."&lt;/li&gt;
&lt;li&gt;"Show schema overview for all tables in public schema of inventory database."&lt;/li&gt;
&lt;li&gt;📋 &lt;strong&gt;Features&lt;/strong&gt;: Column types, constraints, indexes, foreign keys, table metadata&lt;/li&gt;
&lt;li&gt;⚠️ &lt;strong&gt;Required&lt;/strong&gt;: &lt;code&gt;database_name&lt;/code&gt; parameter must be specified&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;li&gt;

&lt;strong&gt;get_database_schema_info&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;"Show all schemas in ecommerce database with their contents."&lt;/li&gt;
&lt;li&gt;"Get detailed information about sales schema in ecommerce database."&lt;/li&gt;
&lt;li&gt;"Analyze schema structure and permissions for inventory database."&lt;/li&gt;
&lt;li&gt;"Show schema overview with table counts and sizes for hr_system database."&lt;/li&gt;
&lt;li&gt;📋 &lt;strong&gt;Features&lt;/strong&gt;: Schema owners, permissions, object counts, sizes, contents&lt;/li&gt;
&lt;li&gt;⚠️ &lt;strong&gt;Required&lt;/strong&gt;: &lt;code&gt;database_name&lt;/code&gt; parameter must be specified&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;li&gt;

&lt;strong&gt;get_table_relationships&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;"Show all relationships for customers table in ecommerce database."&lt;/li&gt;
&lt;li&gt;"Analyze foreign key relationships for orders table in sales schema of ecommerce database."&lt;/li&gt;
&lt;li&gt;"Get database-wide relationship overview for ecommerce database."&lt;/li&gt;
&lt;li&gt;"Find all tables that reference products table in ecommerce database."&lt;/li&gt;
&lt;li&gt;"Show cross-schema relationships in inventory database."&lt;/li&gt;
&lt;li&gt;📋 &lt;strong&gt;Features&lt;/strong&gt;: Foreign key relationships (inbound/outbound), cross-schema dependencies, constraint details&lt;/li&gt;
&lt;li&gt;⚠️ &lt;strong&gt;Required&lt;/strong&gt;: &lt;code&gt;database_name&lt;/code&gt; parameter must be specified&lt;/li&gt;
&lt;li&gt;💡 &lt;strong&gt;Usage&lt;/strong&gt;: Leave &lt;code&gt;table_name&lt;/code&gt; empty for database-wide relationship analysis&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;li&gt;

&lt;strong&gt;get_user_list&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;"List all database users and their roles."&lt;/li&gt;
&lt;li&gt;"Show user permissions for a specific database."&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;li&gt;

&lt;strong&gt;get_index_usage_stats&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;"Analyze index usage efficiency."&lt;/li&gt;
&lt;li&gt;"Find unused indexes in the current database."&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;li&gt;

&lt;strong&gt;get_database_size_info&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;"Show database capacity analysis."&lt;/li&gt;
&lt;li&gt;"Find the largest databases by size."&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;li&gt;

&lt;strong&gt;get_table_size_info&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;"Show table and index size analysis."&lt;/li&gt;
&lt;li&gt;"Find largest tables in a specific schema."&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;li&gt;

&lt;strong&gt;get_vacuum_analyze_stats&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;"Show recent VACUUM and ANALYZE operations."&lt;/li&gt;
&lt;li&gt;"List tables needing VACUUM."&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;li&gt;

&lt;strong&gt;get_current_database_info&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;"What database am I connected to?"&lt;/li&gt;
&lt;li&gt;"Show current database information and connection details."&lt;/li&gt;
&lt;li&gt;"Display database encoding, collation, and size information."&lt;/li&gt;
&lt;li&gt;📋 &lt;strong&gt;Features&lt;/strong&gt;: Database name, encoding, collation, size, connection limits&lt;/li&gt;
&lt;li&gt;🔧 &lt;strong&gt;PostgreSQL 12-17&lt;/strong&gt;: Fully compatible, no extensions required&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;li&gt;

&lt;strong&gt;get_table_bloat_analysis&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;"Analyze table bloat in the current database."&lt;/li&gt;
&lt;li&gt;"Show dead tuple ratios and bloat estimates for user_logs table pattern."&lt;/li&gt;
&lt;li&gt;"Find tables with high bloat that need VACUUM maintenance."&lt;/li&gt;
&lt;li&gt;"Analyze bloat in specific schema with minimum 100 dead tuples."&lt;/li&gt;
&lt;li&gt;📋 &lt;strong&gt;Features&lt;/strong&gt;: Dead tuple ratios, bloat size estimates, VACUUM recommendations, pattern filtering&lt;/li&gt;
&lt;li&gt;🔧 &lt;strong&gt;PostgreSQL 12-17&lt;/strong&gt;: Fully compatible, no extensions required&lt;/li&gt;
&lt;li&gt;💡 &lt;strong&gt;Usage&lt;/strong&gt;: Extension-Independent approach using pg_stat_user_tables&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;li&gt;

&lt;strong&gt;get_database_bloat_overview&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;"Show database-wide bloat summary by schema."&lt;/li&gt;
&lt;li&gt;"Get high-level view of storage efficiency across all schemas."&lt;/li&gt;
&lt;li&gt;"Identify schemas requiring maintenance attention."&lt;/li&gt;
&lt;li&gt;📋 &lt;strong&gt;Features&lt;/strong&gt;: Schema-level aggregation, total bloat estimates, maintenance status&lt;/li&gt;
&lt;li&gt;🔧 &lt;strong&gt;PostgreSQL 12-17&lt;/strong&gt;: Fully compatible, no extensions required&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;li&gt;

&lt;strong&gt;get_autovacuum_status&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;"Check autovacuum configuration and trigger conditions."&lt;/li&gt;
&lt;li&gt;"Show tables needing immediate autovacuum attention."&lt;/li&gt;
&lt;li&gt;"Analyze autovacuum threshold percentages for public schema."&lt;/li&gt;
&lt;li&gt;"Find tables approaching autovacuum trigger points."&lt;/li&gt;
&lt;li&gt;📋 &lt;strong&gt;Features&lt;/strong&gt;: Trigger threshold analysis, urgency classification, configuration status&lt;/li&gt;
&lt;li&gt;🔧 &lt;strong&gt;PostgreSQL 12-17&lt;/strong&gt;: Fully compatible, no extensions required&lt;/li&gt;
&lt;li&gt;💡 &lt;strong&gt;Usage&lt;/strong&gt;: Extension-Independent autovacuum monitoring using pg_stat_user_tables&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;li&gt;

&lt;strong&gt;get_autovacuum_activity&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;"Show autovacuum activity patterns for the last 48 hours."&lt;/li&gt;
&lt;li&gt;"Monitor autovacuum execution frequency and timing."&lt;/li&gt;
&lt;li&gt;"Find tables with irregular autovacuum patterns."&lt;/li&gt;
&lt;li&gt;"Analyze recent autovacuum and autoanalyze history."&lt;/li&gt;
&lt;li&gt;📋 &lt;strong&gt;Features&lt;/strong&gt;: Activity patterns, execution frequency, timing analysis&lt;/li&gt;
&lt;li&gt;🔧 &lt;strong&gt;PostgreSQL 12-17&lt;/strong&gt;: Fully compatible, no extensions required&lt;/li&gt;
&lt;li&gt;💡 &lt;strong&gt;Usage&lt;/strong&gt;: Historical autovacuum pattern analysis&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;li&gt;

&lt;strong&gt;get_running_vacuum_operations&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;"Show currently running VACUUM and ANALYZE operations."&lt;/li&gt;
&lt;li&gt;"Monitor active maintenance operations and their progress."&lt;/li&gt;
&lt;li&gt;"Check if any VACUUM operations are blocking queries."&lt;/li&gt;
&lt;li&gt;"Find long-running maintenance operations."&lt;/li&gt;
&lt;li&gt;📋 &lt;strong&gt;Features&lt;/strong&gt;: Real-time operation status, elapsed time, impact level, process details&lt;/li&gt;
&lt;li&gt;🔧 &lt;strong&gt;PostgreSQL 12-17&lt;/strong&gt;: Fully compatible, no extensions required&lt;/li&gt;
&lt;li&gt;💡 &lt;strong&gt;Usage&lt;/strong&gt;: Real-time maintenance monitoring using pg_stat_activity&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;li&gt;

&lt;strong&gt;get_vacuum_effectiveness_analysis&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;"Analyze VACUUM effectiveness and maintenance patterns."&lt;/li&gt;
&lt;li&gt;"Compare manual VACUUM vs autovacuum efficiency."&lt;/li&gt;
&lt;li&gt;"Find tables with suboptimal maintenance patterns."&lt;/li&gt;
&lt;li&gt;"Check VACUUM frequency vs table activity ratios."&lt;/li&gt;
&lt;li&gt;📋 &lt;strong&gt;Features&lt;/strong&gt;: Maintenance pattern analysis, effectiveness assessment, DML-to-VACUUM ratios&lt;/li&gt;
&lt;li&gt;🔧 &lt;strong&gt;PostgreSQL 12-17&lt;/strong&gt;: Fully compatible, no extensions required&lt;/li&gt;
&lt;li&gt;💡 &lt;strong&gt;Usage&lt;/strong&gt;: Strategic VACUUM analysis using existing statistics&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;li&gt;

&lt;strong&gt;get_table_bloat_analysis&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;"Analyze table bloat in the public schema."&lt;/li&gt;
&lt;li&gt;"Show tables with high dead tuple ratios in ecommerce database."&lt;/li&gt;
&lt;li&gt;"Find tables requiring VACUUM maintenance."&lt;/li&gt;
&lt;li&gt;"Check bloat for tables with more than 5000 dead tuples."&lt;/li&gt;
&lt;li&gt;📋 &lt;strong&gt;Features&lt;/strong&gt;: Dead tuple ratios, estimated bloat size, VACUUM recommendations&lt;/li&gt;
&lt;li&gt;⚠️ &lt;strong&gt;Required&lt;/strong&gt;: Specify &lt;code&gt;database_name&lt;/code&gt; for cross-database analysis&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;li&gt;

&lt;strong&gt;get_database_bloat_overview&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;"Show database-wide bloat summary by schema."&lt;/li&gt;
&lt;li&gt;"Get bloat overview for inventory database."&lt;/li&gt;
&lt;li&gt;"Identify schemas with highest bloat ratios."&lt;/li&gt;
&lt;li&gt;"Database maintenance planning with bloat statistics."&lt;/li&gt;
&lt;li&gt;📋 &lt;strong&gt;Features&lt;/strong&gt;: Schema-level aggregation, maintenance priorities, size recommendations&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;li&gt;

&lt;strong&gt;get_lock_monitoring&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;"Show all current locks and blocked sessions."&lt;/li&gt;
&lt;li&gt;"Show only blocked sessions with granted=false filter."&lt;/li&gt;
&lt;li&gt;"Monitor locks by specific user with username filter."&lt;/li&gt;
&lt;li&gt;"Check exclusive locks with mode filter."&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;li&gt;

&lt;strong&gt;get_wal_status&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;"Show WAL status and archiving information."&lt;/li&gt;
&lt;li&gt;"Monitor WAL generation and current LSN position."&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;li&gt;

&lt;strong&gt;get_replication_status&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;"Check replication connections and lag status."&lt;/li&gt;
&lt;li&gt;"Monitor replication slots and WAL receiver status."&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;li&gt;

&lt;strong&gt;get_database_stats&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;"Show comprehensive database performance metrics."&lt;/li&gt;
&lt;li&gt;"Analyze transaction commit ratios and I/O statistics."&lt;/li&gt;
&lt;li&gt;"Monitor buffer cache hit ratios and temporary file usage."&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;li&gt;

&lt;strong&gt;get_bgwriter_stats&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;"Analyze checkpoint performance and timing."&lt;/li&gt;
&lt;li&gt;"Show me checkpoint performance."&lt;/li&gt;
&lt;li&gt;"Show background writer efficiency statistics."&lt;/li&gt;
&lt;li&gt;"Monitor buffer allocation and fsync patterns."&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;li&gt;

&lt;strong&gt;get_user_functions_stats&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;"Analyze user-defined function performance."&lt;/li&gt;
&lt;li&gt;"Show function call counts and execution times."&lt;/li&gt;
&lt;li&gt;"Identify performance bottlenecks in custom functions."&lt;/li&gt;
&lt;li&gt;⚠️ &lt;strong&gt;Requires&lt;/strong&gt;: &lt;code&gt;track_functions = pl&lt;/code&gt; in postgresql.conf&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;li&gt;

&lt;strong&gt;get_table_io_stats&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;"Analyze table I/O performance and buffer hit ratios."&lt;/li&gt;
&lt;li&gt;"Identify tables with poor buffer cache performance."&lt;/li&gt;
&lt;li&gt;"Monitor TOAST table I/O statistics."&lt;/li&gt;
&lt;li&gt;💡 &lt;strong&gt;Enhanced with&lt;/strong&gt;: &lt;code&gt;track_io_timing = on&lt;/code&gt; for accurate timing&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;li&gt;

&lt;strong&gt;get_index_io_stats&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;"Show index I/O performance and buffer efficiency."&lt;/li&gt;
&lt;li&gt;"Identify indexes causing excessive disk I/O."&lt;/li&gt;
&lt;li&gt;"Monitor index cache-friendliness patterns."&lt;/li&gt;
&lt;li&gt;💡 &lt;strong&gt;Enhanced with&lt;/strong&gt;: &lt;code&gt;track_io_timing = on&lt;/code&gt; for accurate timing&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;li&gt;

&lt;strong&gt;get_database_conflicts_stats&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;"Check replication conflicts on standby servers."&lt;/li&gt;
&lt;li&gt;"Analyze conflict types and resolution statistics."&lt;/li&gt;
&lt;li&gt;"Monitor standby server query cancellation patterns."&lt;/li&gt;
&lt;li&gt;"Monitor WAL generation and current LSN position."&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;li&gt;

&lt;strong&gt;get_replication_status&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;"Check replication connections and lag status."&lt;/li&gt;
&lt;li&gt;"Monitor replication slots and WAL receiver status."&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;/ul&gt;

&lt;h3&gt;
  
  
  🚀 Version-Aware Tools (Auto-Adapting)
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;get_io_stats&lt;/strong&gt; (New!)

&lt;ul&gt;
&lt;li&gt;"Show comprehensive I/O statistics." (PostgreSQL 16+ provides detailed breakdown)&lt;/li&gt;
&lt;li&gt;"Analyze I/O statistics."&lt;/li&gt;
&lt;li&gt;"Analyze buffer cache efficiency and I/O timing."&lt;/li&gt;
&lt;li&gt;"Monitor I/O patterns by backend type and context."&lt;/li&gt;
&lt;li&gt;📈 &lt;strong&gt;PG16+&lt;/strong&gt;: Full pg_stat_io with timing, backend types, and contexts&lt;/li&gt;
&lt;li&gt;📊 &lt;strong&gt;PG12-15&lt;/strong&gt;: Basic pg_statio_* fallback with buffer hit ratios&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;li&gt;

&lt;strong&gt;get_bgwriter_stats&lt;/strong&gt; (Enhanced!)

&lt;ul&gt;
&lt;li&gt;"Show background writer and checkpoint performance."&lt;/li&gt;
&lt;li&gt;📈 &lt;strong&gt;PG15&lt;/strong&gt;: Separate checkpointer and bgwriter statistics (unique feature)&lt;/li&gt;
&lt;li&gt;📊 &lt;strong&gt;PG12-14, 16+&lt;/strong&gt;: Combined bgwriter stats (includes checkpointer data)&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;li&gt;

&lt;strong&gt;get_server_info&lt;/strong&gt; (Enhanced!)

&lt;ul&gt;
&lt;li&gt;"Show server version and compatibility features."&lt;/li&gt;
&lt;li&gt;"Check server compatibility."&lt;/li&gt;
&lt;li&gt;"Check what MCP tools are available on this PostgreSQL version."&lt;/li&gt;
&lt;li&gt;"Displays feature availability matrix and upgrade recommendations."&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;li&gt;

&lt;strong&gt;get_all_tables_stats&lt;/strong&gt; (Enhanced!)

&lt;ul&gt;
&lt;li&gt;"Show comprehensive statistics for all tables." (version-compatible for PG12-17)&lt;/li&gt;
&lt;li&gt;"Include system tables with include_system=true parameter."&lt;/li&gt;
&lt;li&gt;"Analyze table access patterns and maintenance needs."&lt;/li&gt;
&lt;li&gt;📈 &lt;strong&gt;PG13+&lt;/strong&gt;: Tracks insertions since vacuum (&lt;code&gt;n_ins_since_vacuum&lt;/code&gt;) for optimal maintenance scheduling&lt;/li&gt;
&lt;li&gt;📊 &lt;strong&gt;PG12&lt;/strong&gt;: Compatible mode with NULL for unsupported columns&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;/ul&gt;

&lt;h3&gt;
  
  
  🟡 Extension-Dependent Tools
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;get_pg_stat_statements_top_queries&lt;/strong&gt; (Requires &lt;code&gt;pg_stat_statements&lt;/code&gt;)

&lt;ul&gt;
&lt;li&gt;"Show top 10 slowest queries."&lt;/li&gt;
&lt;li&gt;"Analyze slow queries in the inventory database."&lt;/li&gt;
&lt;li&gt;📈 &lt;strong&gt;Version-Compatible&lt;/strong&gt;: PG12 uses &lt;code&gt;total_time&lt;/code&gt; → &lt;code&gt;total_exec_time&lt;/code&gt; mapping; PG13+ uses native columns&lt;/li&gt;
&lt;li&gt;💡 &lt;strong&gt;Cross-Version&lt;/strong&gt;: Automatically adapts query structure for PostgreSQL 12-17 compatibility&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;li&gt;

&lt;strong&gt;get_pg_stat_monitor_recent_queries&lt;/strong&gt; (Optional, uses &lt;code&gt;pg_stat_monitor&lt;/code&gt;)

&lt;ul&gt;
&lt;li&gt;"Show recent queries in real time."&lt;/li&gt;
&lt;li&gt;"Monitor query activity for the last 5 minutes."&lt;/li&gt;
&lt;li&gt;📈 &lt;strong&gt;Version-Compatible&lt;/strong&gt;: PG12 uses &lt;code&gt;total_time&lt;/code&gt; → &lt;code&gt;total_exec_time&lt;/code&gt; mapping; PG13+ uses native columns&lt;/li&gt;
&lt;li&gt;💡 &lt;strong&gt;Cross-Version&lt;/strong&gt;: Automatically adapts query structure for PostgreSQL 12-17 compatibility&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;💡 Pro Tip&lt;/strong&gt;: All tools support multi-database operations using the &lt;code&gt;database_name&lt;/code&gt; parameter. This allows PostgreSQL superusers to analyze and monitor multiple databases from a single MCP server instance.&lt;/p&gt;




&lt;h2&gt;
  
  
  Troubleshooting
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Connection Issues
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;Check PostgreSQL server status&lt;/li&gt;
&lt;li&gt;Verify connection parameters in &lt;code&gt;.env&lt;/code&gt; file&lt;/li&gt;
&lt;li&gt;Ensure network connectivity&lt;/li&gt;
&lt;li&gt;Check user permissions&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  Extension Errors
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;Run &lt;code&gt;get_server_info&lt;/code&gt; to check extension status&lt;/li&gt;
&lt;li&gt;Install missing extensions:
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;   &lt;span class="k"&gt;CREATE&lt;/span&gt; &lt;span class="n"&gt;EXTENSION&lt;/span&gt; &lt;span class="n"&gt;pg_stat_statements&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
   &lt;span class="k"&gt;CREATE&lt;/span&gt; &lt;span class="n"&gt;EXTENSION&lt;/span&gt; &lt;span class="n"&gt;pg_stat_monitor&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;Restart PostgreSQL if needed&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  Configuration Issues
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;"No data found" for function statistics&lt;/strong&gt;: Check &lt;code&gt;track_functions&lt;/code&gt; setting
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;   &lt;span class="k"&gt;SHOW&lt;/span&gt; &lt;span class="n"&gt;track_functions&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;  &lt;span class="c1"&gt;-- Should be 'pl' or 'all'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Quick fix for managed services (AWS RDS, etc.)&lt;/strong&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;   &lt;span class="k"&gt;ALTER&lt;/span&gt; &lt;span class="k"&gt;SYSTEM&lt;/span&gt; &lt;span class="k"&gt;SET&lt;/span&gt; &lt;span class="n"&gt;track_functions&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;'pl'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
   &lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="n"&gt;pg_reload_conf&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Missing I/O timing data&lt;/strong&gt;: Enable timing collection
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;   &lt;span class="k"&gt;SHOW&lt;/span&gt; &lt;span class="n"&gt;track_io_timing&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;  &lt;span class="c1"&gt;-- Should be 'on'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Quick fix&lt;/strong&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;   &lt;span class="k"&gt;ALTER&lt;/span&gt; &lt;span class="k"&gt;SYSTEM&lt;/span&gt; &lt;span class="k"&gt;SET&lt;/span&gt; &lt;span class="n"&gt;track_io_timing&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;'on'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
   &lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="n"&gt;pg_reload_conf&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Apply configuration changes&lt;/strong&gt;:

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Self-managed&lt;/strong&gt;: Add settings to &lt;code&gt;postgresql.conf&lt;/code&gt; and restart server&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Managed services&lt;/strong&gt;: Use &lt;code&gt;ALTER SYSTEM SET&lt;/code&gt; + &lt;code&gt;SELECT pg_reload_conf()&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Temporary testing&lt;/strong&gt;: Use &lt;code&gt;SET parameter = value&lt;/code&gt; for current session&lt;/li&gt;
&lt;li&gt;Generate some database activity to populate statistics&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  Performance Issues
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;Use &lt;code&gt;limit&lt;/code&gt; parameters to reduce result size&lt;/li&gt;
&lt;li&gt;Run monitoring during off-peak hours&lt;/li&gt;
&lt;li&gt;Check database load before running analysis&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  Version Compatibility Issues
&lt;/h3&gt;

&lt;blockquote&gt;
&lt;p&gt;For more details, see the ## Tool Compatibility Matrix&lt;/p&gt;
&lt;/blockquote&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Run compatibility check first&lt;/strong&gt;:
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;   &lt;span class="c"&gt;# "Use get_server_info to check version and available features"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Understanding feature availability&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;PostgreSQL 16-17&lt;/strong&gt;: All features available&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;PostgreSQL 15+&lt;/strong&gt;: Separate checkpointer stats&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;PostgreSQL 14+&lt;/strong&gt;: Parallel query tracking&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;PostgreSQL 12-13&lt;/strong&gt;: Core functionality only&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;If a tool shows "Not Available"&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Feature requires newer PostgreSQL version&lt;/li&gt;
&lt;li&gt;Tool will automatically use best available alternative&lt;/li&gt;
&lt;li&gt;Consider upgrading PostgreSQL for enhanced monitoring&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;




&lt;h2&gt;
  
  
  Development
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Testing &amp;amp; Development
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# Test with MCP Inspector&lt;/span&gt;
./scripts/run-mcp-inspector-local.sh

&lt;span class="c"&gt;# Direct execution for debugging&lt;/span&gt;
python &lt;span class="nt"&gt;-m&lt;/span&gt; src.mcp_postgresql_ops.mcp_main &lt;span class="nt"&gt;--log-level&lt;/span&gt; DEBUG

&lt;span class="c"&gt;# Test version compatibility (requires different PostgreSQL versions)&lt;/span&gt;
&lt;span class="c"&gt;# Modify POSTGRES_HOST in .env to point to different versions&lt;/span&gt;

&lt;span class="c"&gt;# Run tests (if you add any)&lt;/span&gt;
uv run pytest
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Version Compatibility Testing
&lt;/h3&gt;

&lt;p&gt;The MCP server automatically adapts to PostgreSQL versions 12-17. To test across versions:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Set up test databases&lt;/strong&gt;: Different PostgreSQL versions (12, 14, 15, 16, 17)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Run compatibility tests&lt;/strong&gt;: Point to each version and verify tool behavior&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Check feature detection&lt;/strong&gt;: Ensure proper version detection and feature availability&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Verify fallback behavior&lt;/strong&gt;: Confirm graceful degradation on older versions&lt;/li&gt;
&lt;/ol&gt;




&lt;h2&gt;
  
  
  Security Notes
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;All tools are &lt;strong&gt;read-only&lt;/strong&gt; - no data modification capabilities&lt;/li&gt;
&lt;li&gt;Sensitive information (passwords) are masked in outputs&lt;/li&gt;
&lt;li&gt;No direct SQL execution - only predefined queries&lt;/li&gt;
&lt;li&gt;Follows principle of least privilege&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  Contributing
&lt;/h2&gt;

&lt;p&gt;🤝 &lt;strong&gt;Got ideas? Found bugs? Want to add cool features?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;We're always excited to welcome new contributors! Whether you're fixing a typo, adding a new monitoring tool, or improving documentation - every contribution makes this project better.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Ways to contribute:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;🐛 Report issues or bugs&lt;/li&gt;
&lt;li&gt;💡 Suggest new PostgreSQL monitoring features&lt;/li&gt;
&lt;li&gt;📝 Improve documentation &lt;/li&gt;
&lt;li&gt;🚀 Submit pull requests&lt;/li&gt;
&lt;li&gt;⭐ Star the repo if you find it useful!&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Pro tip:&lt;/strong&gt; The codebase is designed to be super friendly for adding new tools. Check out the existing &lt;code&gt;@mcp.tool()&lt;/code&gt; functions in &lt;code&gt;mcp_main.py&lt;/code&gt;.&lt;/p&gt;




&lt;h2&gt;
  
  
  MCPO Swagger Docs
&lt;/h2&gt;

&lt;blockquote&gt;
&lt;p&gt;[MCPO Swagger URL] &lt;a href="http://localhost:8003/postgresql-ops/docs" rel="noopener noreferrer"&gt;http://localhost:8003/postgresql-ops/docs&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fp7o4d1g5spvjrq5ckp40.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fp7o4d1g5spvjrq5ckp40.png" alt=" " width="800" height="388"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  License
&lt;/h2&gt;

&lt;p&gt;Freely use, modify, and distribute under the &lt;strong&gt;MIT License&lt;/strong&gt;.&lt;/p&gt;




&lt;h2&gt;
  
  
  ⭐ Other Projects
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Other MCP servers by the same author:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://github.com/call518/MCP-Airflow-API" rel="noopener noreferrer"&gt;MCP-Airflow-API&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/call518/MCP-Ambari-API" rel="noopener noreferrer"&gt;MCP-Ambari-API&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/call518/LogSentinelAI" rel="noopener noreferrer"&gt;LogSentinelAI - LLB-Based Log Analyzer&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>postgres</category>
      <category>tooling</category>
      <category>monitoring</category>
      <category>opensource</category>
    </item>
    <item>
      <title>[LogSentinelAI] LLM-Powered Log Analyzer for Security Events and Anomalies</title>
      <dc:creator>call518</dc:creator>
      <pubDate>Fri, 25 Jul 2025 11:09:27 +0000</pubDate>
      <link>https://dev.to/call518/llm-based-log-analyzer-detecting-security-events-and-storing-results-in-elasticsearch-for-52cm</link>
      <guid>https://dev.to/call518/llm-based-log-analyzer-detecting-security-events-and-storing-results-in-elasticsearch-for-52cm</guid>
      <description>&lt;h1&gt;
  
  
  GitHub Repo
&lt;/h1&gt;

&lt;p&gt;&lt;a href="https://github.com/call518/LogSentinelAI" rel="noopener noreferrer"&gt;https://github.com/call518/LogSentinelAI&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;Hello everyone,&lt;/p&gt;

&lt;p&gt;After seeing how brittle and time-consuming rule-based log parsing can be in real-world environments, I set out to build LogSentinelAI, an open-source, LLM-powered log analysis tool. LLM-powered log analysis tool. Whereas traditional solutions force you to normalize logs and write rigid parsing rules, LogSentinelAI works on both structured and unstructured logs: you simply define the fields you care about, and the LLM automatically extracts, semantically analyzes, and understands context across log entries. In our Demo, we even showcase visualization with Elastic Stack.&lt;/p&gt;

&lt;p&gt;I’d love feedback from system/security engineers, developers, and ops folks:&lt;/p&gt;

&lt;p&gt;How accurate is field extraction on your real-world logs?&lt;/p&gt;

&lt;p&gt;Does performance (throughput, latency) and cost feel reasonable?&lt;/p&gt;

&lt;p&gt;Are there any security or privacy concerns I haven’t considered?&lt;/p&gt;

&lt;p&gt;Your honest critiques and improvement ideas will be hugely valuable.&lt;br&gt;
Full details and examples on Medium:&lt;br&gt;
&lt;a href="https://medium.com/@call518/logsentinelai-practical-llm-based-ai-log-analysis-for-security-engineering-fed4c941dee2" rel="noopener noreferrer"&gt;https://medium.com/@call518/logsentinelai-practical-llm-based-ai-log-analysis-for-security-engineering-fed4c941dee2&lt;/a&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  Dashboard Example
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fsyn16gvdipiaml467mfk.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fsyn16gvdipiaml467mfk.png" alt="Kibana Dashboard" width="800" height="800"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  📋 JSON Output Example
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fg4heyeazfiq192ulgsuh.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fg4heyeazfiq192ulgsuh.png" alt="JSON Output" width="800" height="591"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  LogSentinelAI - LLM-Powered Log Analyzer for Security Events and Anomalies
&lt;/h1&gt;

</description>
      <category>llm</category>
      <category>log</category>
      <category>ai</category>
      <category>analytics</category>
    </item>
  </channel>
</rss>
