tai-dynamic-postgres-mcp
Provides tools for interacting with a PostgreSQL database, enabling AI agents to perform insert, select, update, and delete operations on tables based on the database schema.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
tai-dynamic-postgres-mcp
Schema-Based Generator for PostgreSQL DML Tools in FastMCP Agent Systems
What It Does
Connects to your PostgreSQL instance and introspects the schema.
Generates one FastMCP-compatible tool per DML operation (insert, select, update, delete) for each table.
Creates a dedicated Pydantic model for each tool's input, based on the table’s structure.
Supports column exclusion for the relevant tools (e.g.,
id,created_at, etc.).Limits agent access to only generated tools, preventing unrestricted SQL or schema changes.
Related MCP server: Postgres MCP Server
Environment Variables
Set the following environment variables to configure your PostgreSQL connection and pooling:
PG_HOST=localhost
PG_PORT=5555
PG_DB=nolie
PG_USER=postgres
PG_PASSWORD=
PG_POOL_MIN_SIZE=2
PG_POOL_MAX_SIZE=20
PG_POOL_TIMEOUT=5
PG_POOL_MAX_LIFETIME=600Usage
Basic Example: Run directly from Git using uvx
{
"mcpServers": {
"postgres": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/Frank-Tech/tai-dynamic-postgres-mcp.git",
"tai-postgres-mcp"
],
"env": {
"PG_HOST": "localhost",
"PG_PORT": "5432",
"PG_DB": "dbname",
"PG_USER": "username",
"PG_PASSWORD": "password"
}
}
}
}Related MCP Connectors
The AI that understands raw data: Schema over your tables and databases, as MCP tools.
Convert, lint and generate LLM tool schemas for OpenAI, Anthropic, Gemini and MCP
PostgreSQL, MySQL, and SQL Server in one session. 26 read-only MCP tools for AI agents.
Generate a typed SDK, CLI, and MCP server from any OpenAPI or GraphQL spec, and keep them current.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEasily query and mutate Postgres data using MCP. This is an open source project.Apache 2.0
- FlicenseNot gradedqualityCmaintenanceEnables querying and modifying PostgreSQL databases through MCP tools with read/write operations, schema inspection, and write-safety constraints that limit modifications to the mcp schema.1-
- AlicenseNot gradedqualityNot gradedmaintenanceAutomatically generates MCP tools from any GraphQL API by introspecting its schema, supporting queries, mutations, and authentication.5GPL 3.0
- AlicenseNot gradedqualityBmaintenanceProvides safe, configurable SQL database access via MCP tools, enabling schema introspection, predefined queries, and structured updates with multi-backend support.2MIT