SQL-Transpiler MCP Tool
Provides tools to transpile SQL queries between MySQL and other supported dialects, ensuring query compatibility across different database environments.
Provides tools to transpile SQL queries between PostgreSQL and other supported dialects, ensuring query compatibility across different database environments.
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., "@SQL-Transpiler MCP ToolConvert this MySQL query to PostgreSQL: SELECT * FROM users LIMIT 10"
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.
π 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.
Related MCP server: Python MSSQL MCP Server
π¦ 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-transpilerInstall UV
pip install uvSync dependencies (using
uv.lock)uv sync --frozenRun 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-transpilerBuild 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
Available Tools
2 toolsDialectsB
List all available SQL dialects supported by sqlglot.
| Name | Required | Description | Default |
|---|---|---|---|
No parameters | |||
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries the full burden. It indicates a read-only listing operation ('List all available SQL dialects'), which implies no destructive actions, but does not disclose details like rate limits, authentication needs, or output format. The description adds basic behavioral context but lacks depth for a tool with no annotations.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, efficient sentence that directly states the tool's purpose without unnecessary words. It is front-loaded and appropriately sized for a simple listing tool, with zero waste.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the tool's simplicity (0 parameters, no output schema, no annotations), the description is adequate but minimal. It covers the basic purpose but lacks details on output format or behavioral traits, which could be helpful for an agent despite the low complexity. It meets minimum viability with clear gaps in completeness.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The tool has 0 parameters, and the schema description coverage is 100%, so no parameter information is needed. The description does not add parameter semantics, but this is acceptable given the absence of parameters, warranting a baseline score of 4.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the verb ('List') and resource ('all available SQL dialects supported by sqlglot'), making the purpose specific and understandable. However, it does not explicitly differentiate from the sibling tool 'Transpiler', which might handle SQL translation rather than listing dialects.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides no guidance on when to use this tool versus the sibling 'Transpiler', nor does it mention any prerequisites or alternative contexts. It lacks explicit usage instructions, leaving the agent to infer based on tool names alone.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
TranspilerA
Transpile SQL queries from one dialect to another using sqlglot. First, run the Dialects tool to check if both the source and target dialects are supported.
| Name | Required | Description | Default |
|---|---|---|---|
| sql_query | Yes | The SQL query to transpile. | |
| from_dialect | Yes | The dialect of the input SQL query. | |
| to_dialect | Yes | The target dialect for the output SQL query. |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries the full burden. It mentions the underlying library (sqlglot) and a prerequisite check, which adds useful context. However, it lacks details on error handling, performance, or output format (e.g., whether it returns a string or structured data), leaving behavioral gaps for a tool with no annotations.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is two sentences with zero waste: the first states the core purpose, and the second provides essential usage guidance. It is front-loaded with the main action and efficiently includes only necessary information.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given no annotations and no output schema, the description is moderately complete. It covers purpose and usage prerequisites but lacks details on output (e.g., what the transpiled query looks like) and error cases (e.g., unsupported dialects). For a tool with 3 parameters and no structured output info, more behavioral context would be beneficial.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, so the schema fully documents all three parameters. The description does not add any parameter-specific details beyond what the schema provides (e.g., no examples of dialect values or query formatting). Baseline 3 is appropriate as the schema handles the heavy lifting.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the specific action ('transpile SQL queries from one dialect to another') and the resource ('SQL queries'), using the verb 'transpile' which is precise. It distinguishes from the sibling 'Dialects' tool by mentioning it as a prerequisite check rather than a direct alternative, establishing clear functional separation.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description explicitly provides usage guidance: 'First, run the Dialects tool to check if both the source and target dialects are supported.' This gives a clear prerequisite step and references the sibling tool, indicating when to use it (before this tool) and why (to verify dialect support).
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
2 tool updates
- First observed
Dialects - First observed
Transpiler
TDQS
The two tools have perfectly distinct purposes: Dialects lists available SQL dialects, while Transpiler converts queries between dialects. There is no overlap in functionality, and the descriptions clearly differentiate their roles, making misselection impossible.
Both tools use clear, descriptive noun-based names (Dialects and Transpiler) that align with their functions. While not following a strict verb_noun pattern, they are consistently styled and immediately understandable within the server's domain.
With only two tools, the server feels thin for its stated purpose of SQL transpilation. While the tools cover core functionality (listing dialects and transpiling), additional tools for validation, parsing, or error handling could enhance completeness. The count is borderline but workable.
The tools cover the essential workflow of checking dialects and transpiling queries, but there are notable gaps. Missing operations include validating SQL syntax, optimizing queries, or handling errors during transpilation. The surface is functional but minimal, potentially requiring workarounds for advanced use cases.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
The grounded data layer for any LLM: governed SQL, metrics, lineage and catalog over your data.
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yoβ¦
The BigQuery remote MCP server is a fully managed service that uses the Model Context Protocol to connect AI applications and LLMs to BigQuery data sources. It provides secure, standardized tools for AI agents to list datasets and tables, retrieve schemas, generate and execute SQL queries through natural language, and analyze dataβenabling direct access to enterprise analytics data without requiring manual SQL coding.
Enable secure connectivity between Sentry issues and debugging data, and LLM clients, using a Model Context Protocol (MCP) server.
Related MCP Servers
- AlicenseAqualityCmaintenanceEnables interaction with Microsoft SQL Server databases through a Model Context Protocol interface, supporting database connections, switching between databases, and executing secure SELECT queries.822MIT
- FlicenseNot gradedqualityDmaintenanceEnables Language Models to interact with Microsoft SQL Server databases by inspecting table schemas, executing SQL queries, and reading table data through a standardized Model Context Protocol interface.27-
- AlicenseNot gradedqualityDmaintenanceTranslates natural language to SQL/GraphQL queries and executes them, enabling AI agents to interact with databases through the Model Context Protocol.1Apache 2.0
- FlicenseAqualityDmaintenanceEnables AI assistants to query SQL Server databases and retrieve schema information securely through the Model Context Protocol.2-
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/Baronco/SQL-Transpiler-MCP-Tool'
If you have feedback or need assistance with the MCP directory API, please join our Discord server