npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@heroku-mcp/postgres

v1.0.1

Published

MCP tools for Heroku Postgres: database info, credentials, backups, followers, maintenance, and write operations.

Downloads

272

Readme

@heroku-mcp/postgres

MCP tools for Heroku Postgres: database info, credentials, backups, followers, maintenance, and write operations. Sibling of @heroku-mcp/platform.

This package is a library: the hosted HTTP server registers its tools alongside the Platform tools so connecting clients (e.g. Claude Desktop) see one merged catalog.

Not affiliated with Salesforce or Heroku. See TRADEMARKS.md.

Install

npm install @heroku-mcp/postgres

Requires Node ≥ 24.

What's included

22 tools — 13 reads + 9 writes. Reads are always available when the data.postgres tier is present; writes require an explicit confirm argument matching the target name.

Reads

| Group | Tools | | --- | --- | | Inventory & info | pg_list, pg_info, pg_plans | | Credentials | pg_credentials_list, pg_credentials_url (sensitive) | | Backups | pg_backups_list, pg_backups_info, pg_backups_url (sensitive), pg_backups_schedules | | Followers | pg_followers_list, pg_leader, pg_replication_status | | Config | pg_maintenance_window |

Writes (require confirm)

| Group | Tools | | --- | --- | | Connections | pg_connection_reset | | Credentials | pg_credentials_create, pg_credentials_destroy, pg_credentials_rotate, pg_credentials_repair_default | | Backups | pg_backups_capture, pg_backups_delete, pg_backups_schedule | | Config | pg_maintenance_window_set |

Deferred / out of scope

  • pg_diagnostics — requires a separate diagnostics service (PGDIAGNOSE_HOST); the Data API endpoint returns 404. Deferred.
  • pg_connection_pooling — no read endpoint exists yet. Deferred.
  • pg_query_insights — requires a direct database connection (pg_stat_statements); there is no HTTP API. Out of scope for a pure-HTTPS server.

Endpoints & auth

Postgres operations span two hosts, both authenticated with the same Heroku OAuth bearer token the core client already carries:

  • Platform API (api.heroku.com) — pg_list (app add-ons) and pg_plans (plan catalog).
  • Heroku Data API (api.data.heroku.com/client/v11/...) — everything Postgres-specific (info, credentials, backups, followers, config).

Capability probing

POSTGRES_PROBES (defined in @heroku-mcp/core) probe the Data API families at sign-in time, alongside the Platform matrix. The whole package is gated on the data.postgres root tier; individual families (pg_backups, pg_followers, pg_credentials) carry their own sub-tier so a tool fails fast with an actionable message when the family is gated, rather than issuing a request it knows will fail. A sub-tier that was never probed is treated as available (the real Heroku response speaks for itself).

Safety

Every mutating tool requires a confirm argument equal to the target name, enforced by core's assertConfirm, and supports dry_run: true to preview the request without executing. The server never auto-fills confirm; the AI client must obtain explicit user acknowledgment.

Sensitive output

pg_credentials_url and pg_backups_url return secrets (a connection string with a password; a signed download URL). The audit log records only the request URL, which carries no secret — response bodies are never logged.

Related

License

Apache-2.0