Tai42 Dynamic Postgres

•

Generates safe, schema-driven PostgreSQL DML tools for FastMCP agent systems.

Addressing the common challenge of granting AI agents controlled database access, this tool provides a secure middle ground between read-only access and the risks of arbitrary SQL execution. It dynamically introspects your PostgreSQL schema to generate a distinct, typed FastMCP tool for each DML operation (insert, select, update, delete) per table. This ensures agents only have access to precisely defined, validated, and parameterized operations, preventing unintended data changes or schema modifications. It eliminates the need for agents to handle raw SQL, significantly enhancing security and reliability for agentic AI applications interacting with databases.

Key Features

01Supports rich, injection-safe filtering, ordering, and vector KNN search.
02Exposes only generated tools, strictly preventing raw SQL or DDL execution by agents.
03Introspects PostgreSQL schema including tables, columns, types, foreign keys, and pgvector.
04Enforces WHERE clauses for update and delete operations by default to prevent unintended broad changes.
05Generates typed FastMCP DML tools for each operation (insert, select, update, delete) per table.
060 GitHub stars

Use Cases

01Developing agentic AI systems that require controlled data manipulation (CRUD) within specific database tables.
02Enabling AI agents to safely interact with PostgreSQL databases without direct SQL access.
03Enhancing the security of AI applications by restricting database operations to pre-defined, validated commands.