MCP Server for PostgreSQL Management via SSE

MCP Server for PostgreSQL Management via SSE

mcpdatabases•byalvnavraii

An MCP server that exposes PostgreSQL database management tools, including CRUD operations, table management, and custom SQL queries, with responses delivered via Server-Sent Events.

License: Not specified•Runtime: Awaiting documentation review•Category: databases storage

WHAT IT DOES

  • •Executes SELECT, INSERT, UPDATE, and DELETE queries against a PostgreSQL database through MCP tools.
  • •Provides table management tools to create, alter, and drop tables.
  • •Supports executing custom SQL queries for analysis or maintenance.
  • •Delivers operation results and notifications over Server-Sent Events in real time.

BEST FOR

  • •Managing and querying PostgreSQL records from an MCP client.
  • •Running ad hoc SQL analysis or maintenance tasks through an MCP interface.
  • •Creating, altering, or dropping database tables via MCP tools.

ABOUT MCPDATABASES

MCP Server for PostgreSQL Management via SSE is cataloged as an MCP server attributed to alvnavraii. An MCP server that exposes PostgreSQL database management tools, including CRUD operations, table management, and custom SQL queries, with responses delivered via Server-Sent Events. It is categorized under databases storage. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for MCP Server for PostgreSQL Management via SSE are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Does this server support real-time responses?

Yes, it uses Server-Sent Events to deliver responses for operations and notifications.

Which database does the MCP server manage?

It manages a PostgreSQL database.

上游原版 README

在 GitHub 查看同一版本原文

README.md · d9f6733060a9 · 采集于 2026-11-13 11:24:51 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

🗄️ DataBaseSse Project (SSE Version)

This project is the SSE version of the original "stido" release available at https://github.com/alvnavraii/mcpDataBases. It includes improvements and adaptations for managing and migrating data between PostgreSQL and SQLite databases, with features exposed via Server-Sent Events (SSE).

📁 Main Structure

  • main.py: 🖥️ MCP server with tools to query, insert, update, delete, and modify tables in the PostgreSQL database, now with SSE support.
  • connection.py: 🔗 Manages the connection to the PostgreSQL database.
  • pg_to_sqlite.py: 🔄 Script to migrate all tables and data from PostgreSQL to SQLite.
  • ecommerce.db: 🗃️ SQLite database generated from the migration (optional).

⚙️ Features

  • CRUD operations: ➕ Create, 🔎 Read, ✏️ Update, and ❌ Delete records in PostgreSQL database tables.
  • Table management: 🏗️ Easily create, 🛠️ alter, and 🗑️ drop tables.
  • Data migration: 🔄 Automatic transfer of structure and data between PostgreSQL and SQLite.
  • Advanced queries: 🧮 Execute custom SQL queries for analysis or maintenance.
  • SSE support: 📡 Real-time responses using Server-Sent Events for operations and notifications.

🚀 Usage Examples

1. MCP Server (main.py)

  • Run the MCP server to expose database management tools with SSE:
    python3 main.py
    
  • Available tools:
    • 🔎 query_db(query): Executes SELECT queries and returns results via SSE.
    • ➕ insert_db(query): Executes INSERT statements and notifies via SSE.
    • ✏️ update_db(query): Executes UPDATE statements and notifies via SSE.
    • ❌ delete_db(query): Executes DELETE statements and notifies via SSE.
    • 🏗️ create_table(query): Executes CREATE TABLE statements and notifies via SSE.
    • 🛠️ alter_table(query): Executes ALTER TABLE statements and notifies via SSE.
    • 🗑️ drop_table(query): Executes DROP TABLE statements and notifies via SSE.

2. Data migration between databases

  • Run the migration script to copy all tables and data from PostgreSQL to SQLite:
    python3 pg_to_sqlite.py
    
  • You can adapt the script to migrate data in both directions or between different schemas.

3. CRUD operation examples

  • Create a record: 📝
    INSERT INTO users (email, password) VALUES ('user@domain.com', 'secret');
    
  • Read records: 🔍
    SELECT * FROM products WHERE is_active = TRUE;
    
  • Update records: 🔄
    UPDATE categories SET name = 'New Technologies' WHERE id = 1;
    
  • Delete records: 🚮
    DELETE FROM carts WHERE created_at < '2024-01-01';
    

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for MCP Server for PostgreSQL Management via SSE from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/mcpdatabases)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related databases storage MCP Servers

Alternative and complementary servers in the same category

View all in databases storage →
AIStor MCP server
mcp-server-aistor•minio

This is a Model Context Protocol (MCP) server for interacting with AIStor object stores.

Repository stats unavailable
Databases & Storage
InfluxDB v2 MCP Server
influxdb-mcp-server•idoru

A Model Context Protocol (MCP) server that exposes access to an InfluxDB v2 instance using the InfluxDB OSS API v2.

Repository stats unavailable
Databases & Storage