More screenshots

    Works with the AI Agents you already use

    Meridian: Ask Postgres Anything in Plain English

    by NARCISSE NDONGKAIN

    1

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

    Free

    Security scanned
    Meridian: Ask Postgres Anything in Plain English

    Meridian: Ask Postgres Anything in Plain English

    Example session with this skill installed

    Check the last 3 months of revenue. Group it by month and round to two decimals. Make sure to use the business definition for 'revenue' found in the table comments.

    • Read your context and instructions
    • Compiled the meridian

    I have analyzed the database schema and executed a query to retrieve the monthly revenue for the last three months, following the business definition provided in the orders table comments (which excludes cancelled orders and tax).

    Monthly Revenue Report (Last 3 Months)

    billing_monthrevenue_usdorder_count
    2024-10-0114250.50312
    2024-11-0116890.75345
    2024-12-0112100.20280
    -- Query anchored to current date for the last 3 full months
    WITH monthly_stats AS (
      SELECT 
        date_trunc('month', created_at) AS billing_month,
        SUM(total_amount - tax_amount) AS raw_revenue,
        COUNT(id) AS order_count
      FROM orders
      WHERE status = 'completed' 
        AND created_at >= date_trunc('month', CURRENT_DATE) - INTERVAL '3 months'
      GROUP BY 1
    )
    SELECT 
      billing_month,
      ROUND(CAST(raw_revenue AS numeric), 2) AS revenue_usd,
      order_count
    FROM monthly_stats
    ORDER BY billing_month DESC;
    

    Next steps

    • Breakdown this revenue by product category to identify the cause of the December dip.
    • Compare these figures against the same period last year for YoY growth analysis.
    • Check for any restricted columns in the customers table to correlate revenue with user demographics.

    Connects securely to your tools. The creator never sees your data.

    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.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Free to use

    No account required to browse

    Trust & safety

    Security scan

    Security scan passed 8 days ago

    • Free with an Agensi account

    Software
    Gituv (Python tool runner)

    Permissions

    Read Files
    Network Access
    Environment Variables
    Terminal / Shell
    Listed8 days ago

    What's inside

    Frequently Asked Questions

    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.

    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.

    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.

    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.

    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.

    New in LLM Ops

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for LLM Ops.

    Free