Skip to main content
Glama
verifydream

SchemaPilot MCP

by verifydream

SchemaPilot MCP

MCP server for PostgreSQL schema metadata — read-only, local-first, AI-coding-agent ready.

Features

  • Read-only PostgreSQL introspection (no writes, no arbitrary SQL)

  • MCP protocol (Model Context Protocol) for AI coding agents

  • Schema/table/column metadata with PK/FK/index details

  • Explicit cache refresh (sync_schema)

  • Markdown documentation export (deterministic)

  • Schema allowlist + max table/column limits

  • Secret redaction in logs

Related MCP server: supabase-schema-mcp

Quick Start

pip install -e .
# Configure
cp schemapilot.yaml.example schemapilot.yaml
# Edit with your PostgreSQL credentials
schemapilot

MCP Tools

Tool

Description

list_schemas

List available schemas

list_tables

List tables with column counts

describe_table

Full table details

get_relationships

FK relationship graph

export_schema

Markdown documentation

sync_schema

Refresh schema cache

Configuration

postgres:
  host: localhost
  port: 5432
  database: mydb
  user: app
  password: secret
schema_allowlist:
  - public
  - app
max_tables: 100
max_columns: 500
cache_ttl_seconds: 300

License

MIT

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    D
    maintenance
    An open-source MCP server for PostgreSQL schema introspection and guarded read-only queries. It enables MCP clients to discover schemas, tables, columns, indexes, relationships, and safe queryable data from a configured PostgreSQL database.
    6 npm
    MIT
  • A
    license
    A
    quality
    C
    maintenance
    An MCP server that provides deep schema introspection for Supabase/Postgres, exposing tables, columns, views, enums, RLS policies, functions, and more.
    13
    3
    MIT
  • A
    license
    Not graded
    quality
    B
    maintenance
    Read-only MCP server for PostgreSQL, enabling schema discovery, table metadata, and safe SELECT queries via READ ONLY transactions.
    15 npm
    MIT
  • A
    license
    A
    quality
    B
    maintenance
    A read-only MCP server for PostgreSQL schemas and their git history, enabling AI agents to inspect schema details, migrations, ERDs, missing indexes, circular foreign keys, and churn without write access.
    8
    AGPL 3.0