Tai42 Dynamic Postgres
Generates safe, scoped PostgreSQL DML tools for FastMCP agent systems from your database schema.
This tool addresses the challenge of providing agentic AI systems with controlled database access. Instead of risking arbitrary SQL execution, it introspects your PostgreSQL schema and automatically generates a set of typed FastMCP tools for each DML operation (insert, select, update, delete, select_joined) per table. These tools are parameterized, validated, and scoped to only the tables and operations you choose, ensuring agents can interact with data securely without the ability to run raw SQL or modify schema. It also supports advanced features like injection-safe filtering, ordering, and vector KNN search via pgvector.
Key Features
01Generates one typed FastMCP tool per DML operation per table with Pydantic input models
02Excludes specified columns from generated tool inputs (e.g., 'id', 'created_at')
03Introspects PostgreSQL schema (tables, columns, types, foreign keys, pgvector)
04Supports rich, injection-safe filtering (WhereFilter) and ordering, including vector KNN search
05Exposes only generated DML tools, preventing raw SQL or DDL execution by agents
060 GitHub stars
Use Cases
01Integrating PostgreSQL databases into FastMCP agent architectures with granular permission control
02Developing agent applications that perform database operations without exposing direct SQL capabilities
03Providing agentic AI systems with secure and controlled read/write access to PostgreSQL databases