Skip to main content
Redhat Developers  Logo
  • AI

    Get started with AI

    • Red Hat AI
      Accelerate the development and deployment of enterprise AI solutions.
    • AI learning hub
      Explore learning materials and tools, organized by task.
    • AI interactive demos
      Click through scenarios with Red Hat AI, including training LLMs and more.
    • AI/ML learning paths
      Expand your OpenShift AI knowledge using these learning resources.
    • AI quickstarts
      Focused AI use cases designed for fast deployment on Red Hat AI platforms.
    • No-cost AI training
      Foundational Red Hat AI training.

    Featured resources

    • OpenShift AI learning
    • Open source AI for developers
    • AI product application development
    • Open source-powered AI/ML for hybrid cloud
    • AI and Node.js cheat sheet

    Red Hat AI Factory with NVIDIA

    • Red Hat AI Factory with NVIDIA is a co-engineered, enterprise-grade AI solution for building, deploying, and managing AI at scale across hybrid cloud environments.
    • Explore the solution
  • Learn

    Self-guided

    • Documentation
      Find answers, get step-by-step guidance, and learn how to use Red Hat products.
    • Learning paths
      Explore curated walkthroughs for common development tasks.
    • Guided learning
      Receive custom learning paths powered by our AI assistant.
    • See all learning

    Hands-on

    • Developer Sandbox
      Spin up Red Hat's products and technologies without setup or configuration.
    • Interactive labs
      Learn by doing in these hands-on, browser-based experiences.
    • Interactive demos
      Click through product features in these guided tours.

    Browse by topic

    • AI/ML
    • Automation
    • Java
    • Kubernetes
    • Linux
    • See all topics

    Training & certifications

    • Courses and exams
    • Certifications
    • Skills assessments
    • Red Hat Academy
    • Learning subscription
    • Explore training
  • Build

    Get started

    • Red Hat build of Podman Desktop
      A downloadable, local development hub to experiment with our products and builds.
    • Developer Sandbox
      Spin up Red Hat's products and technologies without setup or configuration.

    Download products

    • Access product downloads to start building and testing right away.
    • Red Hat Enterprise Linux
    • Red Hat AI
    • Red Hat OpenShift
    • Red Hat Ansible Automation Platform
    • See all products

    Featured

    • Red Hat build of OpenJDK
    • Red Hat JBoss Enterprise Application Platform
    • Red Hat OpenShift Dev Spaces
    • Red Hat Developer Toolset

    References

    • E-books
    • Documentation
    • Cheat sheets
    • Architecture center
  • Community

    Get involved

    • Events
    • Live AI events
    • Red Hat Summit
    • Red Hat Accelerators
    • Community discussions

    Follow along

    • Articles & blogs
    • Developer newsletter
    • Videos
    • Github

    Get help

    • Customer service
    • Customer support
    • Regional contacts
    • Find a partner

    Join the Red Hat Developer program

    • Download Red Hat products and project builds, access support documentation, learning content, and more.
    • Explore the benefits

Integrate OpenShift AI and PG Airman MCP Server

Conversational analytics for Postgres

June 9, 2026
Peter Samouelian Torsten Steinbach, Bilge Ince
Related topics:
Artificial intelligenceData integrationDatabases
Related products:
Red Hat OpenShift AI

    In 1991, Mark D. Weiser (CTO of Xerox PARC) wrote, “The most profound technologies are those that disappear.” Weiser was expressing his intuitive observation that the most reliable and successful technologies reach such a high degree of integration with our day-to-day lives that we cease to notice them. In this regard, relational database technology stands in an elite league, quietly and reliably supporting nearly every function within the enterprise for over half a century. Despite the emergence of numerous non-relational database options, relational databases remain the core data workload technology used by most companies based on the projected market size of $140.36 billion by 2030 40% of the global database market. 

    This is the first installment of our four-part series, examining how the Data Governance Copilot provides a governance-aware, agentic conversational analyst for PostgreSQL using Red Hat OpenShift AI and EnterpriseDB’s (EDB’s) PG Airman MCP server. In this article, we’ll cover the business challenge and help you deploy the quickstart. In future posts, we’ll dive into agentic AI theory, application architecture, and security.

    The prestige act of AI and relational databases: Text-to-SQL

    If anything about modern AI feels like magic, it’s the ability to generate code from natural language requirements, particularly SQL for its foundational role in data analytics. Though the reliability and pervasive integration of relational databases have fueled the effect Weiser described, a significant technical hurdle remains that hampers the analytic workflow in most organizations, namely the inability for non-technical staff to directly interact with databases using SQL.

    The problem

    Imagine you’ve been asked as a sales analyst minutes before a meeting to determine customer lifetime value (LTV) for your product line. You’ve gained access to the massive EDB Postgres data warehouse, but when you list the tables, you see hundreds of objects with cryptic names (cust_pdata_b, sales_rpt_v2, v_cust_ltv_agg, customer_master_DEPRECATED). You have two major problems:

    • Discovery: You have no idea which table or view is the correct, "certified" source for LTV.
    • Compliance: You know some tables contain highly sensitive personally identifiable information (PII). Querying the wrong table could lead to incorrect analysis or worse, a serious compliance violation.

    The solution

    Waiting for IT could take days or weeks; but with agentic AI, you can enter your query in natural language and get an answer in minutes, with visualizations and governance warnings if the data contains PII.

    SQL was designed to simplify data access, but over the years databases and the SQL language have grown in complexity and become inaccessible to non-technical users. Providing a natural language interface to your relational databases removes this barrier to accelerate nearly every business function within your enterprise.

    Red Hat OpenShift AI & EnterpriseDB

    EnterpriseDB provides a suite of AI-enabled database technologies based on PostgreSQL. In this article, we will focus on PG Airman MCP, EDB’s open-source library that uses the Model Control Protocol (MCP) to connect LLMs with PostgreSQL databases. To keep the information within the boundaries of your controlled network, OpenShift AI provides a flexible and scalable AI platform to help you build, evaluate, monitor, and host your agentic AI applications across hybrid cloud environments. 

    You can see the copilot’s response for the query, “Visualize the top three states with the highest customer count and list any related data governance comments.” Figure 1 shows the copilot’s main user interface with results for a sample query, visualizing the top three states with the highest customer count and listing any related data governance comments. The screen shows several compliance notes related to PII and deprecated tables with a bar graph that shows the number of customers for three states.

    The copilot’s user interface shows results for a query to visualize the top three states with the highest customer count and list any related data governance comments.
    Figure 1: This shows the copilot’s main user interface with results to a sample query.

    System overview

    In this section, we will review the basics of deploying the copilot and present a summary of features.

    Deployment

    Make sure you are logged in to your OpenShift cluster. After you clone the quickstart from the GitHub repository. Change to the data-governance-co-pilot/helm directory and run the make command.

    make install NAMESPACE=your-namespace \
     PROVIDER_MODE=mcp_direct \
     DEPLOY_MODEL=true \
     MODEL=nemotron \
     postgres.userId=postgres \
     postgres.password=<provide a password> \
     postgres.databaseName=postgres
     postgres.readonlyPassword=<provide a password>

    The make file will install and load a Postgres database with sample ecommerce data. Set the values for the database’s superuser and read-only MCP user for the postgres.password and postgres.readonlyPassword parameters respectively. The quickstart and PG Airman MCP server (which we will review in detail in this article series) can be used with any Postgres database; however, combining PG Airman MCP with other EDB Postgres AI technologies may provide additional functionality. You can learn more by visiting enterprisedb.com. 

    The make file includes several deployment options, including the choice to use your own LLM; however, except for the minimum hardware and software requirements documented in the README.md file, the command above will deploy everything you need to run the quickstart. This includes EDB’s PG Airman MCP server which you can find on GitHub.

    Copilot features

    Once deployment is complete, the makefile will print the URL for the quickstart’s user interface where you can submit your natural language queries or simply select from one of the sample queries provided on the screen. A good place to start is to ask the copilot, "Tell me about this database” or “Tell me about the tables and views in the public schema." You can then ask more complex questions, such as "Compare our total sales in 2017 to 2018." The toolbar buttons on the top right in Figure 1 allow you to upload a data governance policy, enable reasoning output (for the Nemotron model), and manage your conversations.

    Data governance in a data sovereign platform 

    The copilot supports safe data discovery by orchestrating the interaction between the PG Airman MCP server and the LLM to combine schema and other governance metadata embedded within the database and the user-provided data governance policy to generate governance-aware SQL statements and analysis. The system diagram in Figure 2 shows the high-level components and data flow for user queries.

    An overview of the Data Governance Copilot system.
    Figure 2: This system diagram shows the major components of the Data Governance Copilot system, including EDB’s PG Airman MCP server, Red Hat vLLM inference server, and the copilot application.

    The quickstart’s approach–to combine a high-level data governance policy with object-level metadata–closely matches how data governance is applied in many organizations. Generic data governance policies are written by legal and data governance experts. While these policies describe high-level requirements, they lack specific guidance on how they apply to the organization’s databases and the objects they contain. This mapping step is typically performed by data owners and analysts manually, resulting in a process that is inefficient, error prone and inaccessible to stakeholders who lack either the schema knowledge or SQL expertise. The copilot automatically bridges these components–governance policies, schema metadata and SQL expertise–in a powerful AI-assisted conversational analyst that generates and executes compliant SQL statements and provides insight analysis.

    The entire solution runs within your controlled hybrid or on-prem network using EDB’s PG Airman MCP server and an open-weight LLM on the OpenShift AI platform. PG Airman MCP provides the schema information and SQL execution capability while the LLM and Red Hat’s vLLM inference server provides the generative AI capability (SQL generation, data analysis and visualization). The result is a governance aware, data and AI sovereign solution that offers the flexibility to choose any model and run it on your ideal infrastructure, freeing you from vendor lock-in while maintaining strict data privacy.

    Metadata and policy management

    EDB has enhanced the PG Airman MCP server to make it easy to read and update the metadata attached to database objects without deploying the MCP server in unrestricted mode, which would grant full access to the target database with the full expressivity of SQL and is not recommended. We discuss this feature in greater detail in the security section later. You can view an example of object metadata by asking the copilot to: “Show me the comments in the dim_customer table.”

    In addition to schema metadata management, the quickstart employs a governance policy uploader that allows users to upload their organization’s data governance standards as a text file. Effective policies should be brief and as concrete as possible, providing examples of policy rules for each category or classification of data. For example: “You can use all customer location data (such as state and country) for general analysis, but it must be marked sensitive.”

    Quickstart scope

    Quickstarts are sample AI applications meant to help organizations evaluate different ways AI can drive enterprise transformation. This copilot quickstart illustrates the use of OpenShift AI and EDB technologies to implement a powerful conversational analyst geared toward safe data discovery. To extend the quickstart for production use, however, you will need to consider additional integration tasks, such as combining the solution with your organization’s identity provider to enable authentication and authorization services. Deploying a production grade application within a complex application map requires in-depth planning and extensive on-site testing. While our quickstart helps you get a jump start on this process, it’s provided as a proof-of-concept versus an out-of-the-box solution for your exact needs.

    Next steps

    You now have a working conversational analyst deployed on your OpenShift cluster, proving that safe, governance-aware data discovery is possible in minutes. But what makes this agentic approach different from just bolting a chatbot onto a database? In part 2 of this series, we will unpack the evolution of agentic AI, compare it to standard Retrieval Augmented Generation (RAG) applications, and explore why this modern approach fundamentally changes the text-to-SQL landscape.

    Related Posts

    • Empower conversational AI at scale with KServe

    • Deploy OpenViking on OpenShift AI to improve AI agent memory

    • Scale LLM fine-tuning with Training Hub and OpenShift AI

    • Deploy an enterprise RAG chatbot with Red Hat OpenShift AI

    Recent Posts

    • Bring your own evaluation framework to EvalHub

    • Integrate OpenShift AI and PG Airman MCP Server

    • Build a local voice agent with Red Hat OpenShift AI

    • Gang autoscaling on OpenShift with Kueue and ProvisionRequest

    • Installing Red Hat Enterprise Linux 10 from a bootc image with bootc

    What’s up next?

    Learning Path RHOS_Elasticsearch_RAG_featured_image

    Demystify RAG with OpenShift AI and Elasticsearch

    Understand how retrieval-augmented generation (RAG) works and how users can...
    Red Hat Developers logo LinkedIn YouTube Twitter Facebook

    Platforms

    • Red Hat AI
    • Red Hat Enterprise Linux
    • Red Hat OpenShift
    • Red Hat Ansible Automation Platform
    • See all products

    Build

    • Developer Sandbox
    • Developer tools
    • Interactive tutorials
    • API catalog

    Quicklinks

    • Learning resources
    • E-books
    • Cheat sheets
    • Blog
    • Events
    • Newsletter

    Communicate

    • About us
    • Contact sales
    • Find a partner
    • Report a website issue
    • Site status dashboard
    • Report a security problem

    RED HAT DEVELOPER

    Build here. Go anywhere.

    We serve the builders. The problem solvers who create careers with code.

    Join us if you’re a developer, software engineer, web designer, front-end designer, UX designer, computer scientist, architect, tester, product manager, project manager or team lead.

    Sign me up

    Red Hat legal and privacy links

    • About Red Hat
    • Jobs
    • Events
    • Locations
    • Contact Red Hat
    • Red Hat Blog
    • Inclusion at Red Hat
    • Cool Stuff Store
    • Red Hat Summit
    © 2026 Red Hat

    Red Hat legal and privacy links

    • Privacy statement
    • Terms of use
    • All policies and guidelines
    • Digital accessibility

    Chat Support

    Please log in with your Red Hat account to access chat support.