SQL-Transpiler MCP Tool
Transpile SQL queries between different dialects using the sqlglot library.
π SQL-Transpiler MCP Tool
SQL-Transpiler is a MCP tool designed to transpile SQL queries between different dialects using the sqlglot library. This tool helps you convert SQL code from one dialect (e.g., MySQL) to another (e.g., PostgreSQL) with ease, ensuring compatibility across various database systems.
π οΈ Features
- Dialect Support: Lists all SQL dialects supported by
sqlglot. - SQL Transpilation: Converts SQL queries from one dialect to another.
- Error Handling: Informs you if a dialect is unsupported or if there are syntax errors.
π¦ Library Used
sqlglot
Version: Check yourpyproject.tomloruv.lockfor the exact version used in this project.
βοΈ Prerequisites
- Python 3.13+ (if running locally)
- UV package manager (for dependency management)
- Docker (if running via container)
π Installation
Option 1: Using UV (Locally)
-
Clone the repository
git clone https://github.com/Baronco/SQL-Transpiler-MCP-Tool.git cd sql-transpiler -
Install UV
pip install uv -
Sync dependencies (using
uv.lock)uv sync --frozen -
Run the server
uv run server.py
Option 2: Using Docker
-
Clone the repository
git clone https://github.com/your-username/sql-transpiler.git cd sql-transpiler -
Build the Docker image
docker build -t sql-transpiler .
π Usage
- Use the
Dialectstool to list all supported SQL dialects. - Use the
Transpilertool to convert SQL queries from one dialect to another.
For more details, see the instructions in src/instructions.md.
π₯οΈ Integration with Claude Desktop
To add the SQL-Transpiler MCP tool to your Claude Desktop configuration using the Docker image, update your claude_desktop_config.json as follows:
{
"mcpServers": {
"sql-transpiler":
{
"command": "docker",
"args": ["run", "-i", "--rm", "--init", "-e", "DOCKER_CONTAINER=true", "sql-transpiler"]
}
}
}
If you want to use your local environment with UV instead of Docker, configure your claude_desktop_config.json like this (adjust the path as needed):
{
"mcpServers": {
"sql-transpiler":
{
"command": "uv",
"args": [
"--directory",
"path/to/sql-transpiler",
"run",
"server.py"
]
}
}
}
π License
MIT License
Related Servers
GoldRush
Exposes Covalent's GoldRush blockchain data APIs as MCP resources and tools.
Seatable
A comprehensive Model Context Protocol (MCP) server for SeaTable that exposes endβtoβend database capabilities (schema introspection, CRUD, querying, linking, select option management, and file attachment stubs) through 18+ rigorously defined tools.
Google Directory by CData
A read-only MCP server for querying live Google Directory data using the CData JDBC Driver.
ADO.NET MCP Server
A C# MCP server for interacting with databases via ADO.NET, compatible with Virtuoso.
MariaDB / MySQL
Provides access to MariaDB and MySQL databases for querying and data manipulation.
FOCUS DATA MCP Server
Enables AI assistants to query data from DataFocus using natural language.
Unofficial ChEMBL MCP Server
Access the ChEMBL chemical database for drug discovery, chemical informatics, and bioactivity research using specialized tools via its REST API.
MongoDB
A Model Context Protocol Server for MongoDB
DROMA MCP Server
Interact with DROMA drug-omics association analysis databases using natural language.
SchemaFlow
Real-time PostgreSQL & Supabase database schema access for AI-IDEs via Model Context Protocol. Provides live database context through secure SSE connections with three powerful tools: get_schema, analyze_database, and check_schema_alignment.