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.toml
oruv.lock
for 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
Dialects
tool to list all supported SQL dialects. - Use the
Transpiler
tool 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
LanceDB Node.js Vector Search
Vector search using the LanceDB vector database and Ollama embedding models.
Noves MCP Server
Access blockchain transaction data in natural language, providing human-readable descriptions for AI assistants.
MCP Firebird
An MCP server for Firebird SQL databases, enabling LLMs to securely access, analyze, and manipulate database content.
MongoDB Lens
Full Featured MCP Server for MongoDB Database.
Cloudera Iceberg MCP Server (via Impala)
Provides read-only access to Apache Iceberg tables using Apache Impala.
Metabase MCP Server
Integrates AI assistants with the Metabase analytics platform.
supOS MCP Server
Provides access to supOS open APIs for querying topic structures, real-time and historical data, and executing SQL queries.
Cursor10x MCP
A memory system for the Cursor code editor, providing persistent context awareness for Claude via a Turso database.
STRING-MCP
Interact with the STRING protein-protein interaction database API.
Flexpa FHIR
An MCP server for interacting with FHIR (Fast Healthcare Interoperability Resources) servers, enabling access and search of healthcare data.