Universal Database MCP Server
Provides a unified interface for AI agents to connect to MySQL databases, enabling SQL query execution, schema exploration, data insertion, and result export to CSV.
Provides a unified interface for AI agents to connect to PostgreSQL databases, enabling SQL query execution, schema exploration, data insertion, and result export to CSV.
Provides a unified interface for AI agents to connect to SQLite databases (built-in support), enabling SQL query execution, schema exploration, data insertion, and result export to CSV.
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., "@Universal Database MCP Serverlist all tables in my SQLite database at /data/app.db"
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.
Universal Database MCP Server
By MEOK AI Labs | meok.ai
Connect AI agents to any SQL database. Query data, explore schemas, insert rows, and export results to CSV. Supports SQLite (built-in), PostgreSQL, and MySQL with a single unified interface.
Tools
Tool | Description |
| Execute any SQL query with safety validation |
| List all tables in a database |
| Get column names, types, nullability, row count |
| Insert a row using a simple key-value dictionary |
| Run a SELECT and save results as CSV |
Installation
# Core (SQLite support included)
pip install mcp
# PostgreSQL support
pip install psycopg2-binary
# MySQL support
pip install mysql-connector-pythonUsage
Run the server
python server.pyClaude Desktop config
{
"mcpServers": {
"database": {
"command": "python",
"args": ["/path/to/database-universal-mcp/server.py"]
}
}
}Connection string formats
Database | Format |
SQLite (file) |
|
PostgreSQL |
|
MySQL |
|
Example calls
List tables in a SQLite database:
Tool: list_tables
Input: {"connection_string": "/Users/me/data/app.db"}
Output: {"tables": ["users", "orders", "products"], "count": 3, "db_type": "sqlite"}Describe a table:
Tool: describe_table
Input: {"connection_string": "/Users/me/data/app.db", "table_name": "users"}
Output: {"columns": [{"name": "id", "type": "INTEGER", "primary_key": true}, {"name": "email", "type": "TEXT", "nullable": false}], "row_count": 1523}Query data:
Tool: query_sql
Input: {"connection_string": "postgresql://admin:secret@localhost/myapp", "sql": "SELECT name, email FROM users WHERE created_at > '2026-01-01' LIMIT 10"}
Output: {"columns": ["name", "email"], "rows": [{"name": "Alice", "email": "alice@example.com"}, ...], "row_count": 10}Insert a row:
Tool: insert_row
Input: {"connection_string": "/tmp/test.db", "table_name": "notes", "data": {"title": "Meeting notes", "body": "Discussed Q2 roadmap", "created_at": "2026-04-13"}}
Output: {"message": "Inserted 1 row into notes"}Export to CSV:
Tool: export_to_csv
Input: {"connection_string": "/Users/me/data/app.db", "sql": "SELECT * FROM orders WHERE total > 100"}
Output: {"output": "/tmp/export_20260413_143022.csv", "rows_exported": 47}Safety
Dangerous queries blocked: DROP TABLE, TRUNCATE, DELETE without WHERE, GRANT/REVOKE are rejected
Write guard: INSERT/UPDATE/DELETE require explicit
allow_write=TrueRow limit: Free tier returns max 1000 rows per query
No credentials stored: Connection strings are used per-call, never persisted
Pricing
Tier | Limit | Price |
Free | 30 calls/day, 1000 rows max | $0 |
Pro | Unlimited + connection pooling + batch operations | $12/mo |
Enterprise | Custom + audit logging + VPC support | Contact us |
License
MIT
This server cannot be installed
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
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/CSOAI-ORG/database-universal-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server