1. Conduid
  2. Healthcare
  3. Postgresai
MCP server · Healthcare

Postgresai

postgresai – Postgres observability built for humans and AI agents

80Strong

Scored 7 hours ago · breakdown

About Postgresai

Postgresai is an MCP server published by postgres-ai in the Healthcare category: postgresai – Postgres observability built for humans and AI agents. Conduid read 16 tools from its source: create_action_item, create_issue, deploy_monitoring, download_file, get_report_data, list_action_items and 10 more. No package is published for it, so it installs from a source checkout.

The repository has 142 stars and 10 forks, is licensed Apache-2.0, and its last commit was on 1 Dec 2026. The latest release is 0.15.0 (2 Jun 2026): Release 0.15.0 Release Date: 2026-06-02 AI-native PostgreSQL observability - monitoring, health checks, and root cause analysis for engineers and AI agents. It follows 0.14.0 (23 Jan 2026), and the 5 most recent releases go back to 0.11 (30 Oct 2025). It passes 4 of the 5 static checks Conduid ran on the repository; it does not pass No dynamic code execution. Its topics include cli, grafana, health-check, monitoring, observability and postgres.

Install

From source
git clone https://github.com/postgres-ai/postgresai

Tools (16)

create_action_itemCreate a new action item for an issue
ParameterTypeDescription
configsarrayConfiguration parameter changes
debugbooleanEnable verbose debug logs
descriptionstringDetailed description
issue_id *stringIssue ID (UUID)
sql_actionstringSQL command to execute, e.g. 'DROP INDEX CONCURRENTLY idx_unused;'
title *stringAction item title
create_issueCreate a new issue in PostgresAI. Local files passed via 'attachments' are uploaded to PostgresAI storage and the resulting markdown links are appended to the issue description.
ParameterTypeDescription
attachmentsarrayLocal file paths to upload and append as markdown links to the description (images render inline)
debugbooleanEnable verbose debug logs
descriptionstringIssue description (supports \n as newline)
is_hiddenbooleanCreate as a hidden, staff-internal issue (PostgresAI staff only; same as CLI --hidden)
labelsarrayLabels to apply to the issue
org_idnumberOrganization ID. Optional with a per-organization token (uses the config value); REQUIRED with a global token, which can reach every organization the user belongs to and will not assume one. Use orgs_list / `pgai orgs` to discover valid values.
project_idnumberProject ID to associate the issue with
title *stringIssue title (required)
deploy_monitoringPut a Postgres database under PostgresAI Cloud monitoring (same as `pgai mon deploy`): prepares the monitoring role (an admin URL creates it; otherwise returns the SQL), provisions the monitoring box, and returns JSON with status (ready | in_progress | deleting | deleted | inactive | action_required | failed: the same words as pgai dblab deploy), health_url (the project's Database health in the console), dashboard_url (Grafana, signing in with PostgresAI) and next (the exact next action). A billed box is provisioned only with yes: true: without it the result is action_required with the price (and requires_payment_method), so show the price to the user first. It does not wait for the box: call it again to see the status. Safe to call again. When PostgresAI can't reach the database the way an IP allowlist refuses (or with ip_first), the box's IP is reserved first and the result is action_required with step allow_ip (ip, cidr, host, port, reserved_until): give the user the cidr and port to allow on the database, then call again with ip_allowed: true. ClickHouse Managed Postgres, RDS and Supabase are detected from the host. An RDS instance that is not publicly accessible is monitored over AWS PrivateLink (no public IP, nothing opened): the user creates a CloudFormation stack in their AWS account from a link. Until the stack exists the result is action_required with step privatelink_stack and cfn_url: give the user the link to open in the RDS's AWS account (the stack keeps its name); once they say it is created, call again. When this machine's aws CLI can read the RDS (read-only; aws_profile picks the profile, no_aws: true skips it), the link is filled in and the stack is found by itself; otherwise pass vpce_service, the stack's VpceServiceName output. When the URL's user can't create the monitoring role, or this machine can't reach the database (a private RDS seen from outside its VPC), the result is action_required with step prepare_db, sql, nonce and monitoring_password: the user runs the SQL as the master user in that database, then call again with monitoring_password and nonce. host_stats: true adds host CPU, memory, disk and IOPS through a read-only role the stack creates (host_stats_role: its HostStatsRoleArn output, when not read from AWS). Aurora and RDS Proxy endpoints are not supported over PrivateLink. Supabase needs no password (PostgresAI prepares the database through the Supabase Management API): the first time, the result is action_required with a consent link in next; give it to the user to open and approve, then call again. Elsewhere the URL must carry its password, and only these query parameters: sslmode, channel_binding, application_name. PGAI_MON_PASSWORD, PGPASSWORD and CLICKHOUSE_KEY_ID + CLICKHOUSE_KEY_SECRET of the server process are not used (pass clickhouse_key), and a TLS failure is not retried in plaintext (say sslmode=disable for a server without TLS). For another database on a server PostgresAI already monitors for the org, an admin URL with sslmode=require (or verify-*), each query parameter once, is enough: PostgresAI fills in the password of postgres_ai_mon it keeps, over TLS only (on a server without TLS, pass the postgres_ai_mon URL; if nobody has its password, the user runs in a terminal: pgai mon instances delete the server's other databases, then pgai mon deploy <admin-url> --reset-password with PGAI_MON_PASSWORD set to a new one, then deploys them again with it).
download_fileDownload a file from PostgresAI storage by URL (full URL under the storage base, or a relative path like /files/123/foo.png).
ParameterTypeDescription
debugbooleanEnable verbose debug logs
output_pathstringLocal destination path (default: derive filename from URL, save in CWD). When omitted, the path-traversal guard restricts the destination to CWD.
url *stringFull URL (must be under the configured storage base) or relative storage path (e.g. /files/123/foo.png)
get_report_dataGet checkup report file content: the JSON data of each check, in a 'data' field. Either report_id or check_id must be provided. For findings and recommendations, use the issues tools (list_issues, view_issue).
ParameterTypeDescription
check_idstringFilter by check ID (e.g., 'H002', 'F004')
debugbooleanEnable verbose debug logs
report_idnumberCheckup report ID (optional if check_id is provided)
typestringFile type: 'json' (default), or 'md' for markdown that the legacy postgres-checkup tool uploaded
list_action_itemsList action items for an issue
ParameterTypeDescription
debugbooleanEnable verbose debug logs
issue_id *stringIssue ID (UUID)
list_issuesList issues from PostgresAI API (same as CLI 'issues list')
ParameterTypeDescription
debugbooleanEnable verbose debug logs
hidden_onlybooleanList only hidden issues (PostgresAI staff; same as CLI --hidden-only)
limitnumberMax number of issues to return (default: ${DEFAULT_ISSUES_LIMIT}; the API returns at most ${MAX_ISSUES_PER_REQUEST}). A second text block says which rows of how many were returned and how to get the rest.
offsetnumberNumber of issues to skip (default: 0)
org_idnumberOrganization ID. Optional with a per-organization token (falls back to config); REQUIRED with a global token, which can reach every organization the user belongs to and will not assume one. Use orgs_list / `pgai orgs` to discover valid values.
statusstringFilter by status: 'open', 'closed', or omit for all (note: the CLI defaults to open). Rows carry status as 'open'/'closed'.
list_report_filesList files in a checkup report (metadata only, no content). Checkup reports are JSON, one file per check. Either report_id or check_id must be provided. For findings and recommendations, use the issues tools (list_issues, view_issue).
ParameterTypeDescription
check_idstringFilter by check ID (e.g., 'H002', 'F004')
debugbooleanEnable verbose debug logs
report_idnumberCheckup report ID (optional if check_id is provided)
typestringFile type: 'json' (default), or 'md' for markdown that the legacy postgres-checkup tool uploaded
list_reportsList checkup reports. Returns report metadata: id, project, status, timestamps. Use get_report_data to fetch actual report content. Supports date-based filtering with before_date.
ParameterTypeDescription
allbooleanFetch all reports (paginated automatically)
before_datestringShow reports created before this date (YYYY-MM-DD, DD.MM.YYYY, YYYY-MM-DD HH:mm, etc.)
debugbooleanEnable verbose debug logs
limitnumberMax number of reports to return (default: 20)
project_idnumberFilter by project ID
statusstringFilter by status (e.g., 'completed')
post_issue_commentPost a new comment to an issue (optionally as a reply). Local files passed via 'attachments' are uploaded to PostgresAI storage and the resulting markdown links are appended to the comment body (image extensions render inline).
ParameterTypeDescription
attachmentsarrayLocal file paths to upload and append as markdown links (images render inline). Either 'content' or 'attachments' must be non-empty.
contentstringComment text (supports \n as newline)
debugbooleanEnable verbose debug logs
issue_id *stringIssue ID (UUID)
parent_comment_idstringParent comment ID (UUID) for replies
update_action_itemUpdate an action item: mark as done/not done, approve/reject, or edit title/description
ParameterTypeDescription
action_item_id *stringAction item ID (UUID)
debugbooleanEnable verbose debug logs
descriptionstringNew description
is_donebooleanMark as done (true) or not done (false)
statusstringApproval status: 'waiting_for_approval', 'approved', or 'rejected'
status_reasonstringReason for approval/rejection
titlestringNew title
update_issueUpdate an existing issue (title, description, status, labels, is_hidden). Use status=1 to close, status=0 to reopen. Local files passed via 'attachments' are uploaded and appended to 'description'; if 'description' is omitted, the existing description is fetched first and appended to.
ParameterTypeDescription
attachmentsarrayLocal file paths to upload and append as markdown links (images render inline). When provided without 'description', the existing description is fetched and appended to.
debugbooleanEnable verbose debug logs
descriptionstringNew description (supports \n as newline)
is_hiddenbooleantrue hides the issue, false unhides it (PostgresAI staff only; same as CLI --hidden / --no-hidden). Omit (or pass null) to leave unchanged.
issue_id *stringIssue ID (UUID)
labelsarrayLabels to set on the issue
notifybooleanWith is_hidden=false: send the new-issue email and Slack post (same as CLI --notify). Sent only the first time the issue becomes visible; the result says whether it was requested.
statusnumberStatus: 0=open, 1=closed
titlestringNew title (supports \n as newline)
update_issue_commentUpdate an existing issue comment. Local files passed via 'attachments' are uploaded and appended to 'content' as markdown links.
ParameterTypeDescription
attachmentsarrayLocal file paths to upload and append as markdown links (images render inline)
comment_id *stringComment ID (UUID)
contentstringNew comment text (supports \n as newline). Either 'content' or 'attachments' must be non-empty.
debugbooleanEnable verbose debug logs
upload_fileUpload a local file to PostgresAI storage. Returns the storage URL and a ready-to-paste markdown link (image extensions get the inline `![](url)` form, others get `[](url)`). For posting attachments alongside an issue or comment, prefer the 'attachments' parameter on the issue/comment tools — this tool is for ad-hoc uploads or when you need the URL out of band.
ParameterTypeDescription
debugbooleanEnable verbose debug logs
path *stringLocal file path to upload (absolute or relative to CWD)
view_action_itemView action item(s) with all details. Supports single ID or multiple IDs.
ParameterTypeDescription
action_item_idstringSingle action item ID (UUID)
action_item_idsarrayMultiple action item IDs (UUIDs)
debugbooleanEnable verbose debug logs
view_issueView a specific issue with its comments and who has seen it (seen_by). Viewing records the token owner in the issue's seen-by list as an AI agent.
ParameterTypeDescription
debugbooleanEnable verbose debug logs
issue_id *stringIssue ID (UUID)

Security checks

  • ✓README presentThe repository's README runs to about 3.2K words.
  • ✓License declaredThe repository declares the Apache-2.0 license.
  • ✓Tests presentA test suite exists in the repository.
  • ✓Dependencies pinnedA lockfile pins dependency versions.
  • !No dynamic code executionScanned 89 source files and found 4 calls to eval or shell execution, in cli/bin/postgres-ai.ts, cli/lib/connect.ts and cli/lib/privatelink.ts among others. Review how tool inputs reach them before granting credentials.

1 check has not been run yet.

Releases

0.15.00.15.0 · 2 Jun 2026Release 0.15.0 Release Date: 2026-06-02 AI-native PostgreSQL observability - monitoring, health checks, and root cause analysis for engineers and AI agents. ⚠️ Breaking change: bundled PostgreSQL 15 → 17 — upgrade requires a data migration…
0.14.0postgresai 0.14.0 · 23 Jan 2026AI-native PostgreSQL observability — monitoring, health checks, and root cause analysis for engineers and AI agents. Highlights 0.14 brings direct PostgreSQL health checks via `postgresai checkup`, Claude Code plugin (`/pgai`), first-class…
0.130.13 · 4 Dec 2025postgres_ai monitoring v0.13 - release notes What's new Kubernetes support (Helm charts) Complete Kubernetes deployment support via Helm charts, including: (!72) Full monitoring stack deployment (PGWatch, VictoriaMetrics, Grafana)…
0.120.12 · 11 Nov 2025Release Date: November 10, 2025 GitLab Issue: #48 Overview Version 0.12.0 adds SLRU monitoring, multixact member space exhaustion detection, enhanced dashboard usability, and improved automated reporting for production Postgres databases.…
0.110.11 · 30 Oct 2025Major changes Victoria Metrics integration (bbe4c8d) Replaced standard Prometheus with Victoria Metrics for time-series data storage, delivering substantial performance and efficiency improvements: Better compression: Reduced storage…

README

The repository's README runs to about 3.2K words, fetched 13 days ago. The original in the repository is authoritative.

Read full README
Questions

About Postgresai

How do I install Postgresai?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is Postgresai safe to use with an AI agent?

Its trust score is 80 out of 100 (strong). It passes 4 of the 5 static checks Conduid ran on the repository; it does not pass No dynamic code execution. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Postgresai still maintained?

Yes — the last commit was 16 hours ago. The repository has 142 stars and 10 forks and 26 open issues.

What tools does Postgresai provide?

Conduid read 16 tools from the source: create_action_item, create_issue, deploy_monitoring, download_file, get_report_data, list_action_items, list_issues, list_report_files and 8 more. 15 of them publish their parameters, listed under Tools above.

What license is Postgresai released under?

The repository declares the Apache-2.0 license. That applies to the latest release, 0.15.0, as well.