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.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@tai-dynamic-postgres-mcpinsert a new user named John Doe with email john@example.com"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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"
}
}
}
}This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Frank-Tech/tai-dynamic-postgres-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server