Tai42 Mcp Dynamic Postgres
FreeNot checkedTai42 Mcp Dynamic Postgres — Model Context Protocol server
About
Tai42 Mcp Dynamic Postgres — Model Context Protocol server
README
Schema-driven generator for safe, scoped PostgreSQL DML tools in FastMCP agent systems.
Point it at a PostgreSQL database and it introspects the schema and generates one
typed MCP tool per DML operation per table — insert, select, update,
delete, plus optional select_joined. The agent gets exactly those tools and
nothing else: no raw SQL, no schema changes, no access to tables you didn't
expose.
Why
Giving an agent database access usually means choosing between read-only access or risking that the agent runs arbitrary SQL and changes data or settings you never intended. This project gives you a controlled middle ground: a fixed set of generated, validated, parameterized tools scoped to the tables and operations you choose.
What it does
- Introspects your schema (tables, columns, types, foreign keys,
pgvector). - Generates a FastMCP tool per DML operation per table, each with a dedicated Pydantic input model derived from the table.
- Supports rich, injection-safe filtering (
WhereFilter) and ordering, including vector KNN search. - Excludes chosen columns from generated tool inputs (e.g.
id,created_at). - Exposes only the generated tools — never raw SQL or DDL.
Security model
[!IMPORTANT] The generated tool layer controls which operations exist; the PostgreSQL role you connect as controls what those operations can physically do. Connect as a dedicated least-privilege role, never a superuser. Read SECURITY.md before deploying.
Highlights, in full detail in SECURITY.md:
- Filter/order field names are validated against real columns and emitted only as quoted identifiers; values are always bound parameters. There is no path for SQL injection through field names.
update/deleterequire aWHEREfilter unless the server is started with--allow-unfiltered.- The tool layer does not provide row-level scoping. Use PostgreSQL
Row-Level Security and
GRANT/REVOKEfor that.
Installation
Requires Python 3.13+. Install from PyPI into the environment that runs the server, or run it without installing:
uv add tai42-mcp-dynamic-postgres
uvx tai42-mcp-dynamic-postgres # run it without installing
Or from source — clone this repo and add it as an editable dependency, or run
the clone with uvx:
git clone https://github.com/tai42ai/tai42-mcp-dynamic-postgres # next to your app checkout
cd /path/to/your/app
uv add --editable ../tai42-mcp-dynamic-postgres
uvx --from ../tai42-mcp-dynamic-postgres tai42-mcp-dynamic-postgres
Documentation
Full reference — every connection and pooling variable, the CLI scoping flags,
stdio and HTTP transport wiring, the generated-tool surface, WhereFilter
filtering, and pgvector search — lives on the plugin's documentation page. See
also SECURITY.md before deploying.
Development
See CONTRIBUTING.md.
uv venv --python 3.13
uv pip install --no-sources --editable ".[dev,test-integration]"
uv run --no-sync ruff check .
uv run --no-sync ruff format --check .
uv run --no-sync pyright
uv run --no-sync pytest --cov --cov-report=term-missing # unit tests
uv run --no-sync pytest -m integration # CRUD tests against real Postgres (needs Docker)
License
Apache-2.0. See LICENSE and NOTICE.
Install Tai42 Mcp Dynamic Postgres in Claude Desktop, Claude Code & Cursor
unyly install tai42-mcp-dynamic-postgresInstalls into Claude Desktop, Claude Code, Cursor & VS Code — handles npx, uvx and build-from-source repos for you.
First time? Get the CLI: curl -fsSL https://unyly.org/install | sh
Or configure manually
Run in your terminal:
claude mcp add tai42-mcp-dynamic-postgres -- uvx tai42-mcp-dynamic-postgresStep-by-step: how to install Tai42 Mcp Dynamic Postgres
FAQ
Is Tai42 Mcp Dynamic Postgres MCP free?
Yes, Tai42 Mcp Dynamic Postgres MCP is free — one-click install via Unyly at no cost.
Does Tai42 Mcp Dynamic Postgres need an API key?
No, Tai42 Mcp Dynamic Postgres runs without API keys or environment variables.
Is Tai42 Mcp Dynamic Postgres hosted or self-hosted?
Self-hosted: the server runs locally on your machine via the install command above.
How do I install Tai42 Mcp Dynamic Postgres in Claude Desktop, Claude Code or Cursor?
Open Tai42 Mcp Dynamic Postgres on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
Related MCPs
wenb1n-dev/SmartDB_MCP
A universal database MCP server supporting simultaneous connections to multiple databases. It provides tools for database operations, health analysis, SQL optim
by wenb1n-devPostgres Server
This server enables interaction with PostgreSQL databases through the Model Context Protocol, optimized for the AWS Bedrock AgentCore Runtime. It provides tools
by madhurprashPostgres
Query your database in natural language
by AnthropicPostgreSQL
Read-only database access with schema inspection.
by modelcontextprotocolRedis
Interact with Redis key-value stores.
by modelcontextprotocolSQLite
Database interaction and business intelligence capabilities.
by modelcontextprotocolmxcp
Open-source framework for building enterprise-grade MCP servers using just YAML, SQL, and Python, with built-in auth, monitoring, ETL and policy enforcement.
by raw-labstadas-github/a2asearch-mcp
MCP server to search 4,800+ MCP servers, AI agents, CLI tools and agent skills. Install: npx -y a2asearch-mcp. Ask Claude: "Find MCP servers for database access
by tadas-githubjulien040/anyquery
Query more than 40 apps with one binary using SQL. It can also connect to your PostgreSQL, MySQL, or SQLite compatible database. Local-first and private by desi
by julien040drakonkat/wizzy-mcp-tmdb
A MCP server for The Movie Database API that enables AI assistants to search and retrieve movie, TV show, and person information.
by drakonkatCompare Tai42 Mcp Dynamic Postgres with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All data MCPs
