TokenToSeaMCP Hub
中文 Console

PostgreSQL Schema MCP

vinsidious

Reads schema information from a PostgreSQL database and runs read-only queries.

Setup

Choose your client, copy the config, then fill in any required environment variables.

Add to CursorAdd to VS Code

claude mcp add postgresql-schema --env POSTGRESQL_URL='<POSTGRESQL_URL>' --env PG_URL='<PG_URL>' --env DATABASE_URL='<DATABASE_URL>' -- docker run -i --rm mcp/postgres postgresql://host.docker.internal:5432/mydb

Environment variables

  • POSTGRESQL_URL
  • PG_URL
  • DATABASE_URL

Replace the placeholders with your own credentials and keep them out of version control.