Skip to main content
Glama
MCP PostgreSQL Server

MCP PostgreSQL Server

by Maxim2324

MCP Server Test Collection

License Maintenance PRs Welcome

This repository contains a collection of tests and implementations for various Model-Controller-Provider (MCP) server architectures. Each implementation focuses on different aspects of MCP pattern and database interactions.

Current Implementations

1. MCP PostgreSQL Server (mcp-psql/)

A PostgreSQL-specific implementation that:

  • Provides safe database access through a structured API

  • Enables AI systems to interact with databases

  • Implements read-only query validation

  • Includes pre-built analysis templates

  • Supports schema exploration and data analysis

2. MCP Figma Server (mcp-figma/)

A Figma-specific implementation that:

  • Enables AI systems to interact with Figma designs

  • Provides structured access to Figma files and components

  • Implements design analysis and manipulation capabilities

  • Supports AI-driven design suggestions and modifications

  • Includes pre-built design templates and patterns

Related MCP server: mcp-postgres

Purpose

This repository serves as:

  • A testing ground for different MCP implementations

  • A reference for MCP pattern best practices

  • A collection of database and design tool interaction patterns

  • A showcase of AI integration approaches with various systems

Getting Started

Each implementation in this collection has its own setup instructions and documentation. Please refer to the specific implementation's README for details.

Contributing

New MCP implementations and test cases are welcome! Please follow these guidelines:

  1. Create a new directory for your implementation

  2. Include comprehensive documentation

  3. Follow the existing project structure

  4. Add appropriate tests

License

MIT

Available Tools

6 tools
connect_dbA

Connect to PostgreSQL database. NOTE: Default connection exists - only use when requested or if other commands fail

Inputs: database (required), host (required), password (required), user (required), +1 more.

describe_tableC

Get table structure

Inputs: table (required), schema.

executeB

Execute an INSERT, UPDATE, or DELETE query

Inputs: sql (required), params.

list_schemasA

List all schemas in the database

Inputs: no named parameters.

list_tablesC

List tables in the database

Inputs: schema.

queryC

Execute a SELECT query

Inputs: sql (required), params.

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 6 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose with no ambiguity. 'execute' handles INSERT/UPDATE/DELETE, 'query' handles SELECT, 'list_tables' and 'list_schemas' are separate listing functions, 'describe_table' provides metadata, and 'connect_db' is for connection management. The separation between 'execute' and 'query' is particularly well-defined.

    Naming Consistency4/5

    Most tools follow a consistent verb_noun pattern (describe_table, list_schemas, list_tables). The main deviation is 'execute' and 'query' which use single verbs without objects, and 'connect_db' uses a verb_object pattern but with abbreviated 'db' instead of 'database'. The naming is still readable and mostly predictable.

    Tool Count5/5

    Six tools is well-scoped for a PostgreSQL server. This covers essential database operations: connection management, schema/table discovery, metadata inspection, and both read (SELECT) and write (INSERT/UPDATE/DELETE) operations. Each tool earns its place without bloat.

    Completeness4/5

    The toolset covers core PostgreSQL workflows well: discovery (list_schemas, list_tables), inspection (describe_table), and query execution (query, execute). Minor gaps include lack of transaction control tools (BEGIN, COMMIT, ROLLBACK) and database management operations (CREATE/DROP database/table), but agents can work around these using the existing execute tool.

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      D
      maintenance
      Provides read-only access to PostgreSQL databases with schema inspection, query execution in multiple formats (JSON, CSV, Markdown), and query history tracking with built-in security features.
      -
    • A
      license
      Not graded
      quality
      D
      maintenance
      Read-only PostgreSQL MCP server that enables running SELECT queries, listing tables and schemas, and describing columns, with built-in protection against writes and malicious SQL attacks.
      MIT