integration-postgres

Connect a PostgreSQL database to a self-hosted Hermes agent over SSH.

13|1|Updated Jun 1, 2026
One-click install
npx skills add https://github.com/paarths-collab/hstack --skill integration-postgres
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: integration-postgres
Source: https://github.com/paarths-collab/hstack/tree/main/skills/integration-postgres
Command: npx skills add https://github.com/paarths-collab/hstack --skill integration-postgres

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill connects a PostgreSQL database to a self-hosted Hermes agent over SSH, so an AI agent can work with database-backed systems without manual wiring or fragile one-off setup.

Core Features & Use Cases

  • Secure database onboarding: Stores and verifies a PostgreSQL connection string on the VPS and keeps the setup idempotent.
  • MCP integration: Registers the Crystal DBA postgres-mcp server for stdio-based access when Path A is used.
  • Safety guardrails: Encourages scoped read-only users, rejects risky superuser-style credentials by default, and includes rollback steps.
  • Operational verification: Reloads the Hermes gateway and performs live connection smoke tests to confirm the integration works.

Quick Start

Ask the AI to connect your PostgreSQL database to your Hermes VPS using a scoped read-only user, then verify the live connection and complete the MCP wiring.

Frequently Asked Questions about integration-postgres

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I connect a PostgreSQL database to an AI agent over SSH?

To connect a PostgreSQL database to an AI agent over SSH, you need to store and verify the connection string on your VPS. This process registers the database for stdio-based access and performs a live connection smoke test to confirm the integration.

What is MCP integration for PostgreSQL and how does it work?

MCP integration for PostgreSQL registers a postgres-mcp server for stdio-based access, allowing an AI agent to interact with your database. It works by securely storing the connection string on the VPS and reloading the gateway to enable live agent database queries.

Do I need a read-only user to connect PostgreSQL to a self-hosted Hermes agent?

You do not strictly need a read-only user to connect PostgreSQL to a self-hosted Hermes agent, but it is strongly encouraged. The setup applies safety guardrails that reject risky superuser credentials by default and support both read-only and read-write setups.

Can I use psql or psycopg2 for PostgreSQL MCP server registration?

Yes, you can use psql or psycopg2 as fallback support for PostgreSQL MCP server registration. These optional dependencies help facilitate idempotent rollout and rollback-safe wiring when connecting your database to the Hermes VPS.

What are the limitations of using superuser credentials for PostgreSQL database onboarding?

The limitation of using superuser credentials for PostgreSQL database onboarding is that the system rejects them by default for safety. The setup enforces scoped read-only users to prevent risky operations, though read-write setups are also supported with proper guardrails.

How to verify a live PostgreSQL connection after gateway reloads?

To verify a live PostgreSQL connection after gateway reloads, the system performs operational smoke tests. These tests confirm the integration works by checking the active connection status on the VPS after the Hermes gateway has been successfully reloaded.