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
Server Terkait
DEMO Country MCP Server
A modular server providing tools for country and state lookups, usable as a CLI or plug-in agent.
SqlAugur
MCP server providing AI assistants with safe, read-only access to SQL Server databases. Built with C#/.NET 10, it uses AST-based query validation (Microsoft's T-SQL parser) to ensure only SELECT statements execute - blocking INSERT/UPDATE/DELETE/DROP/EXEC at the syntax tree level. Features include schema exploration, PlantUML/Mermaid ER diagram generation, rate limiting, and integrated DBA diagnostic toolsets (First Responder Kit, DarlingData, sp_WhoIsActive).
dbt-docs
MCP server for dbt-core (OSS) users as the official dbt MCP only supports dbt Cloud. Supports project metadata, model and column-level lineage and dbt documentation.
IBANforge
IBAN validation, BIC/SWIFT lookup, Swiss clearing, and compliance risk scoring for AI agents. 121K+ bank entries, 84 countries, 85 EMI/vIBAN classifications.
Knowledge Graph Memory Server
Enables project memory using a Kuzu-powered knowledge graph.
SingleStore MCP Server
An MCP server for interacting with SingleStore databases, requiring environment variables for connection.
ODBC MCP Server
Enables LLM tools to query databases using ODBC connections.
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.
Elasticsearch/OpenSearch
An MCP Server for interacting with Elasticsearch and OpenSearch clusters.
Eka MCP Server
Access medical knowledge-bases and drug information from eka.care. Requires API credentials.