Turbular
Connects to MySQL databases, retrieves schemas in an LLM-friendly normalized format, and executes optimized SQL queries against the database.
Connects to PostgreSQL databases, retrieves schemas in an LLM-friendly normalized format, and executes optimized SQL queries against the database.
Connects to SQLite databases, supports uploading SQLite database files, retrieves schemas in an LLM-friendly normalized format, and executes optimized SQL queries against the database.
Click on "Deploy 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., "@Turbularshow me the schema of my PostgreSQL database"
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.
Turbular
Turbular is an open-source Model Context Protocol (MCP) server that enables seamless database connectivity for Language Models (LLMs). It provides a unified API interface to interact with various database types, making it perfect for AI applications that need to work with multiple data sources.
โจ Features
๐ Multi-Database Support: Connect to various database types through a single API
๐ Schema Normalization: Automatically normalize database schemas to correct naming conventions for LLM compatibility
๐ Secure Connections: Support for SSL and various authentication methods
๐ High Performance: Optimizes your LLM generated queries
๐ Query Transformation: Let LLM generate queries against normalized layouts and transform them into their unnormalized form
๐ณ Docker Support: Easy deployment with Docker and Docker Compose
๐ง Easy to Extend: Adding new database providers can be easily done by extending the BaseDBConnector interface
Related MCP server: any-db-mcp
๐๏ธ Supported Databases
Database Type | Status | Icon |
PostgreSQL | โ | |
MySQL | โ | |
SQLite | โ | |
BigQuery | โ | |
Oracle | โ | |
MS SQL | โ | |
Redshift | โ |
๐ Quick Start
Using Docker (Recommended)
Clone the repository:
git clone https://github.com/raeudigerRaeffi/turbular.git cd turbularStart the development environment:
docker-compose -f docker-compose.dev.yml up --buildTest the connection:
./scripts/test_connection.py
Manual Installation
Install Python 3.11 or higher
Install dependencies:
pip install -r requirements.txtRun the server:
uvicorn app.main:app --reload
๐ API Reference
Database Operations
Get Database Schema
POST /get_schemaRetrieve the schema of a connected database for your LLM agent.
Parameters:
db_info: Database connection argumentsreturn_normalize_schema(optional): Return schema in LLM-friendly format
Execute Query
POST /execute_queryOptimizes query and then execute SQL queries on the connected database.
Parameters:
db_info: Database connection argumentsquery: SQL query stringnormalized_query: Boolean indicating if query is normalizedmax_rows: Maximum number of rows to returnautocommit: Boolean for autocommit mode
File Management
Upload BigQuery Key
POST /upload-bigquery-keyUpload a BigQuery service account key file.
Parameters:
project_id: BigQuery project IDkey_file: JSON key file
Upload SQLite Database
POST /upload-sqlite-fileUpload a SQLite database file.
Parameters:
database_name: Name to identify the databasedb_file: SQLite database file (.db or .sqlite)
Utility Endpoints
Health Check
GET /healthVerify if the API is running.
List Supported Databases
GET /supported-databasesGet a list of all supported database types.
๐ง Development Setup
Fork and clone the repository
Create a development environment:
docker-compose -f docker-compose.dev.yml up --buildThe development server includes:
FastAPI server with hot reload
PostgreSQL test database
Pre-configured test data
Access the API documentation:
Swagger UI: http://localhost:8000/docs
ReDoc: http://localhost:8000/redoc
๐ค Contributing
We welcome contributions! Here's how you can help:
Check out our contribution guidelines
Look for open issues
Submit pull requests with improvements
Help with documentation
Share your feedback
Development Guidelines
Follow PEP 8 style guide
Write tests for new features
Update documentation as needed
Use meaningful commit messages
Roadmap
Add more testing, formatting and commit hooks
Add SSH support for database connection
Add APIs as datasources using steampipe
Enable local schema saving for databases to which the server has already connected
Add more datasources (snowflake, mongodb, excel, etc.)
Add authentication protection to routes
๐งช Testing
Run the test suite:
pytestFor development tests with the included PostgreSQL:
./scripts/test_connection.py๐ Documentation
๐ Connection Examples
PostgreSQL
connection_info = {
"database_type": "PostgreSQL",
"username": "user",
"password": "password",
"host": "localhost",
"port": 5432,
"database_name": "mydb",
"ssl": False
}BigQuery
connection_info = {
"database_type": "BigQuery",
"path_cred": "/path/to/credentials.json",
"project_id": "my-project",
"dataset_id": "my_dataset"
}SQLite
connection_info = {
"type": "SQLite",
"database_name": "my_database"
}๐ Acknowledgments
FastAPI for the amazing framework
SQLAlchemy for database support
@henryclickclack Henry Albert Jupiter Hommel as Co-Developer โค๏ธ
All our contributors and users
๐ Support
Create an issue
Email: raffael@turbular.com
This server cannot be deployed
Maintenance
Related MCP Connectors
MCP server unifying ERPs, CRMs, APIs and knowledge base for Claude, ChatGPT and Gemini.
MCP server connecting AI agents to 100+ apps (Gmail, Slack, Notion, GitHub) via one-click OAuth.
The Remote MCP server acts as a standardized bridge between LLM applications (like Claude, ChatGPT, and Cursor) and external services, enabling AI agents to access external tools and resources. Its primary capability is providing a centralized search tool to discover other MCP servers and their respective tools. Unlike local implementations, it runs remotely with OAuth authentication and permission controls for security.
Text-to-SQL MCP server: read-only queries on PostgreSQL, MySQL and SQL Server with your real schema
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA unified MCP server for querying and managing multiple database types (PostgreSQL, MySQL, SQL Server, etc.) via natural language through AI assistants.GPL 3.0
- AlicenseAqualityDmaintenanceA multi-database MCP server that enables LLMs to safely interact with MySQL, PostgreSQL, SQLite, and others through a unified tool interface, with permission modes and schema resources.107 npm53MIT
- AlicenseNot gradedqualityBmaintenanceA multi-database MCP server that enables LLM agents to safely access MySQL, Oracle, DM, PostgreSQL, and SQLite databases with security features like whitelist, row count pre-check, and audit logging.3MIT
- AlicenseNot gradedqualityDmaintenanceUniversal Database MCP Server enabling AI assistants to connect and query multiple databases including Databricks, BigQuery, PostgreSQL, MySQL, SQL Server, SQLite, and MariaDB through a unified interface.26 npmMIT