# Meridian: Ask Postgres Anything in Plain English

> Safe, read-only PostgreSQL data analysis and business intelligence via Meridian MCP.

Meridian: Ask Postgres Anything in Plain English is a free AI agent skill on Agensi by NARCISSE NDONGKAIN, in LLM Ops. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [NARCISSE NDONGKAIN](https://www.agensi.io/creators/narcisse-ndongkain)
- Category: [LLM Ops](https://www.agensi.io/skills/llm-ops)
- Version: 1.0
- Last updated: 2026-11-26
- Security: scan passed (2026-11-26); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/meridian-ask-postgres-anything-in-plain-english
- Tags: llm-ops, postgres, sql, business-intelligence, mcp

## About this skill

Writing SQL queries for business intelligence often carries the risk of accidental data modification or exposure of sensitive PII. This skill provides a safe, read-only interface to PostgreSQL databases via the Meridian MCP server, ensuring analysts can explore data without compromising security.

### What it does
- **Schema exploration** identifies available tables and specific business definitions for metrics like revenue or churn.
- **Safe query execution** enforces read-only access with strict guards against `INSERT`, `UPDATE`, or `DELETE` commands.
- **Automated validation** checks queries against an allow-list of tables and restricts access to sensitive columns like emails or phone numbers.
- **Data sampling** retrieves up to 20 rows to verify status codes and categories before writing complex joins.
- **Business analysis** produces aggregated reports with readable aliases, rounded values, and window functions.

### How it works
1. **Map the data** by calling `list_tables` and `describe_table` to understand columns and business logic.
2. **Verify values** using `sample_rows` to ensure filters match the actual data formats in the database.
3. **Generate SQL** using PostgreSQL dialect, incorporating CTEs and aggregations to answer the specific business prompt.
4. **Execute and refine** via `run_query`, handling any rejection messages (e.g., timeouts or restricted columns) by optimizing the statement.

### Frameworks & tools
This skill requires a configured Meridian MCP server connecting to a PostgreSQL database. It utilizes standard SQL features including CTEs, window functions, and `date_trunc`.

### Why this beats prompting it yourself
Standard LLM prompts often hallucinate schema details or write dangerous destructive queries. This skill follows a strict multi-step verification process that anchors queries in real schema metadata and enforces security constraints at the protocol level.

### Use cases
- **Revenue tracking** to calculate monthly recurring revenue or growth trends.
- **Customer behavior** analysis for cohort retention and churn patterns.
- **Operational auditing** to identify failed transactions or bottlenecked processes.
- **Ad-hoc reporting** for quick table generation ready for charting tools.

### Known limitations
Restricted to a single `SELECT` statement per execution and capped at 200 rows. Queries must complete within an 8-second timeout.

## Requires

- Git
- uv (Python tool runner)

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Meridian: Ask Postgres Anything in Plain English skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### How does this skill prevent AI agents from accidentally deleting or modifying my database?

This skill enables your AI agent to browse schemas, sample data, and write complex SQL queries safely. It solves the risk of 'hallucinated' table names and prevents accidental data deletion by enforcing strict read-only access.

### Which AI agents and databases are compatible with the Meridian Postgres Analyst?

The skill is built for any AI agent or platform that supports the Model Context Protocol (MCP). It specifically targets PostgreSQL databases and works best with agents capable of multi-step tool use for schema exploration.

### Can I restrict the agent from accessing sensitive information like user emails or passwords?

Security is managed through an allow-list of tables and sensitive column filtering (like PII). Furthermore, the tool automatically rejects any query containing destructive commands like INSERT, UPDATE, or DELETE before they reach your database.

### What are the technical requirements for the initial setup?

To get started, you will need a running Meridian MCP server configured with your PostgreSQL connection string. Once the server is active, you simply point your MCP-compatible agent to the server's endpoint to begin analyzing data.

### Are there any limits on the complexity or size of the data reports generated?

To ensure system stability, queries are limited to a single SELECT statement, a 200-row result set, and an 8-second execution timeout. These guardrails prevent the AI from accidentally triggering long-running or resource-intensive processes.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
