Install Psycopg2 in Claude Code
claude mcp add psycopg2 -- uvx mcp-psycopg2{
"mcpServers": {
"psycopg2": {
"command": "uvx",
"args": [
"mcp-psycopg2"
]
}
}
}Frequently asked questions
What does the Psycopg2 MCP server do?
MCP server exposing psycopg2 PostgreSQL database adapter functionality
Is the Psycopg2 MCP server free?
Yes, most likely. Open source and no paid account or API key is mentioned in the listing. Check the provider for current pricing.
Does Psycopg2 run locally or remotely?
Local. Runs on your machine (stdio). You install it with npx, uvx, Docker or from source.
How do I add Psycopg2 to Claude Code?
Run: claude mcp add psycopg2 -- uvx mcp-psycopg2
More databases MCP servers
View allNhost
nhost/nhost/cli
Official Nhost MCP server, bundled with the Nhost CLI. Lets AI coding assistants read your GraphQL schema, run the queries and mutations you allow, manage permissions and migrations, update Nhost Cloud project config, and search the docs.
DBHub
bytebase/dbhub
Token-efficient database MCP server for PostgreSQL, MySQL, MariaDB, SQL Server, Oracle, SQLite
Postgres
crystaldba/postgres-mcp
Postgres development and operations: performance analysis, tuning and health checks.
LINQ to DB
linq2db/linq2db
Inspect database schemas and execute SQL queries across multiple database providers with LINQ to DB.
Mindwtr
dongdongbh/Mindwtr
Task automation via SQLite, desktop Local API, or Mindwtr Cloud; read-only by default.
Mysql
benborla/mcp-server-mysql
MySQL database integration with configurable access controls and schema inspection.