PostgreSQL MCP server with SSE transport

PostgreSQL MCP server with SSE transport

postgres-mcp-server-with-sse-transport•byvajram-dev

A Model Context Protocol server that integrates with PostgreSQL, supports multi-provider AI models, and offers flexible communication transports.

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

WHAT IT DOES

  • •Serves as an MCP server implemented in server.py.
  • •Integrates with PostgreSQL for database operations.
  • •Provides a list_tables tool to retrieve database tables.
  • •Exposes an SSE endpoint and supports flexible transports.

BEST FOR

  • •Querying PostgreSQL table metadata through MCP.
  • •Running an MCP server over Server-Sent Events transport.
  • •Teams wanting to add custom MCP tools via decorators.

ABOUT POSTGRES-MCP-SERVER-WITH-SSE-TRANSPORT

PostgreSQL MCP server with SSE transport is cataloged as an MCP server attributed to vajram-dev. A Model Context Protocol server that integrates with PostgreSQL, supports multi-provider AI models, and offers flexible communication transports. 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 PostgreSQL MCP server with SSE transport 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

Which AI providers does this server support?

It supports Anthropic (Claude models) and Google (Gemini models).

How are custom tools added?

Custom tools can be added using the app.tool() decorator.

上游原版 README

在 GitHub 查看同一版本原文

README.md · e7c1aa727753 · 采集于 2026-11-13 12:55:18 UTC

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

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

MCP (Model Context Protocol) Server

Project Structure

├── client.py             # Client-side interaction script
├── server.py             # Main MCP server implementation
├── pg_connect.py         # PostgreSQL database connection
├── lm_config.py          # Language model configuration
│
├── .env.example          # Example environment configuration
├── .env.dev              # Development environment configuration
├── requirements.txt      # Project dependencies
└── .gitignore            # Git ignore file

Prerequisites

  • Python 3.10+
  • PostgreSQL
  • API access to AI providers (Anthropic, Google)

Installation

1. Clone the Repository

git https://github.com/VajraM-dev/Postgres-MCP-Server-With-SSE-Transport.git

2. Create Virtual Environment

python -m venv venv
source venv/bin/activate  # On Windows, use `venv\Scripts\activate`

3. Install Dependencies

pip install -r requirements.txt

4. Configure Environment

  1. Copy .env.example to .env.dev
  2. Fill in the required configuration:
cp .env.example .env.dev
nano .env.dev  # or use your preferred text editor

Configuration Parameters

  • POSTGRES_USERNAME: PostgreSQL database username
  • POSTGRES_PASSWORD: PostgreSQL database password
  • POSTGRES_DB_NAME: Database name
  • POSTGRES_HOST: Database host
  • POSTGRES_PORT: Database port
  • MCP_NAME: Server name
  • MCP_HOST: Server host
  • MCP_PORT: Server port
  • TRANSPORT: Communication transport (sse/stdio)
  • ANTHROPIC_API_KEY: Anthropic API key
  • GOOGLE_API_KEY: Google API key
  • USE_PROVIDER: Default AI provider

Running the Server

Development Mode

python server.py

Client Interaction

python client.py

Key Features

  • 🔒 Secure configuration management
  • 🗃️ PostgreSQL database integration
  • 🤖 Multi-provider AI model support
  • 📡 Flexible communication transport
  • 🛡️ Extensible tool registration

Supported AI Providers

  • Anthropic (Claude models)
  • Google (Gemini models)

Tools and Endpoints

Available Tools

  • list_tables(): Retrieve database tables
  • Custom tools can be easily added via decorators

Endpoints

  • /sse: Server-Sent Events endpoint
  • Customizable routing and tool registration

Extending the Framework

Adding New Tools

@app.tool()
def custom_tool():
    """Custom tool implementation"""
    # Your tool logic here

Configuring AI Providers

Modify lm_config.py to add or configure new AI providers.

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 PostgreSQL MCP server with SSE transport 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/postgres-mcp-server-with-sse-transport)

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