Skip to main content
Glama
PostgreSQL API SSH MCP Server

PostgreSQL API SSH MCP Server

by AmirTlinov

SentryFrogg MCP Server

Русская версия • Docs • MCP configuration • Integration stack • Changelog

License: MIT Node.js >=18 CI

SentryFrogg is a stdio-based Model Context Protocol (MCP) server that gives LLM agents a production-grade toolbox for PostgreSQL, SSH (incl. SFTP), and HTTP. Use it when you want real infrastructure access without glue scripts: profiles, streaming pipelines, runbooks, and auditability are built in.

If you want your agent to move real data (API ↔ SFTP ↔ Postgres), run controlled SSH ops, and leave a traceable trail — this is the server.

Why SentryFrogg

  • One profile system across Postgres, SSH, and HTTP.

  • Streaming pipelines between HTTP, SFTP, and Postgres for large payloads.

  • Reliability primitives: retry/backoff, pagination, timeouts.

  • Runbooks + state for multi-step workflows and repeatable ops.

  • Intent layer with capability registry, previewed plans, and evidence bundles.

  • Observability with trace/span metadata and audit logs (redacted).

  • Encrypted local profile store (AES-256-GCM).

  • Safe-by-default local writes (no overwrite unless overwrite: true).

  • Optional unsafe local mode for full agent autonomy (local exec + filesystem).

Related MCP server: pg-mcp

Agent-first DX (quality-of-life)

  • help({ query }) supports keyword search across tools/actions/fields/aliases.

  • Typos get “did you mean” suggestions for tools, actions, and parameters.

  • Errors are typed and actionable (usually include a hint + minimal working example).

  • Safer defaults: secret redaction everywhere; “raw” secret export is opt-in and gated.

  • Long-running exec/SSH flows prefer explicit status/progress over “detached silence”.

Use cases

  • Sync or backfill data between APIs, SFTP drops, and PostgreSQL.

  • Run controlled remote operations via SSH with auditability.

  • Build repeatable incident runbooks for agents and operators.

Quick examples

Ingest JSONL into Postgres:

{
  "action": "run",
  "flow": "http_to_postgres",
  "http": { "url": "https://example.com/events.jsonl" },
  "postgres": { "profile_name": "default", "table": "events" },
  "format": "jsonl",
  "batch_size": 500
}

Export Postgres to SFTP:

{
  "action": "run",
  "flow": "postgres_to_sftp",
  "postgres": { "profile_name": "default", "table": "events" },
  "format": "csv",
  "sftp": { "profile_name": "default", "remote_path": "/tmp/events.csv", "overwrite": true }
}

Quick start

  1. Install: npm install

  2. Configure your MCP client (stdio):

    {
      "mcpServers": {
        "sentryfrogg": {
           "command": "node",
           "args": ["/absolute/path/to/dist/sentryfrogg_server.js"]
         }
       }
     }

    More details: mcp_config.md.

  3. Start: npm start

  4. In your MCP client: call help (try help({ query: "ssh exec" })), then profile_upsert for PostgreSQL/SSH

Tools

  • help

  • legend

  • mcp_workspace

  • mcp_jobs

  • mcp_artifacts

  • mcp_psql_manager

  • mcp_ssh_manager

  • mcp_api_client

  • mcp_repo

  • mcp_state

  • mcp_runbook

  • mcp_project

  • mcp_context

  • mcp_env

  • mcp_vault

  • mcp_capability

  • mcp_intent

  • mcp_evidence

  • mcp_alias

  • mcp_preset

  • mcp_audit

  • mcp_pipeline

  • mcp_local (unsafe, opt-in)

Short aliases are also available (e.g. sql/psql, ssh, api/http, repo, job, artifacts, workspace, intent, pipeline; plus local when unsafe mode is enabled).

Reference + examples: docs/tools.md.

Intent UX

  • Define capabilities in capabilities.json (override path via MCP_CAPABILITIES_PATH).

  • Context snapshots are stored in context.json (override path via MCP_CONTEXT_PATH).

  • mcp_intent compiles to a runbook plan, dry-run by default; write/mixed effects require apply: true.

  • Evidence bundles are stored under .sentryfrogg/evidence (override path via MCP_EVIDENCE_DIR).

Development

  • npm run check

  • npm test

  • npm run smoke (Docker) — see integration/README.md

Security

This server can execute SQL/SSH/HTTP by design. Run it only in environments you trust.

  • Vulnerability reporting: SECURITY.md

  • Public release checklist: PUBLIC_RELEASE_CHECKLIST.md

License

MIT — see LICENSE.

Available Tools

3 tools
mcp_api_clientB

🌐 API Client - безопасные HTTP запросы: get, post, put, delete, patch, check_api. Валидация URL, санитизация заголовков, защита от SSRF, ограничения размера данных.

Inputs: action (required), url (required), auth_token, data, +1 more.

mcp_psql_managerC

🐘 PostgreSQL Manager - безопасные операции с базой данных: setup_profile, list_profiles, quick_query, show_tables, describe_table, sample_data, insert_data, update_data, delete_data, database_info. Шифрование AES-256-CBC, защита от SQL injection, валидация входных данных.

Inputs: action (required), data, database, host, +8 more.

mcp_ssh_managerB

🔐 SSH Manager - безопасные SSH операции: setup_profile, list_profiles, execute, system_info, check_host. Защита от command injection, санитизация команд, ограничения безопасности.

Inputs: action (required), command, host, password, +3 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.4/5.0

    Scored across 3 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose: mcp_api_client handles HTTP API requests, mcp_psql_manager manages PostgreSQL database operations, and mcp_ssh_manager performs SSH operations. There is no overlap in functionality, making it easy for an agent to select the correct tool based on the task.

    Naming Consistency5/5

    All tool names follow a consistent pattern with the prefix 'mcp_' followed by a descriptive suffix (api_client, psql_manager, ssh_manager). This uniformity enhances readability and predictability across the tool set.

    Tool Count3/5

    With only 3 tools, the server feels thin for its broad purpose of handling PostgreSQL, API, and SSH operations. While each tool bundles related functions, the low count may limit granular control and could be expanded to better cover the domain's scope.

    Completeness4/5

    The tools provide comprehensive coverage for their respective domains: API client supports common HTTP methods, PostgreSQL manager includes essential CRUD operations and database management, and SSH manager covers key remote execution tasks. Minor gaps might exist, such as advanced API features or SSH file transfers, but core workflows are well-covered.

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      F
      maintenance
      An MCP server that allows AI models to execute system commands on local machines or remote hosts via SSH, supporting persistent sessions and environment variables.
      1
      45 npm
      28
      MIT
    • F
      license
      Not graded
      quality
      D
      maintenance
      PG-MCP is an HTTP server implementation that enables AI systems to interact with PostgreSQL databases via MCP, providing tools for querying, connecting to multiple databases, and exploring schema resources. The system enriches context by extracting table/column description from database catalogs.
      28
      -
    • A
      license
      A
      quality
      C
      maintenance
      An open-source MCP server that connects to various data sources (SQL databases, CSV, Parquet files), allowing AI models to execute SQL queries and generate data visualizations for analytics and business intelligence.
      12
      76
      MIT
    • A
      license
      B
      quality
      D
      maintenance
      A blazing fast MCP server that enables AI agents to interact with multiple PostgreSQL databases, providing functionality to list tables, inspect schemas, execute queries, and run transactions.
      4
      153 npm
      MIT