sql2odata-mcp
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
sql2odata-mcp
MCP server that translates SQL statements into OData v4 query syntax.
Use this as a tool in Claude Desktop, Cursor, Windsurf, or any MCP-compatible LLM client.
Install
npm install -g sql2odata-mcpRelated MCP server: sqlserver-mcp-colossal
Configuration
Claude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"sql2odata": {
"command": "npx",
"args": ["-y", "sql2odata-mcp"]
}
}
}Claude Code
claude mcp add sql2odata -- npx -y sql2odata-mcpCursor
Add to Cursor MCP settings:
{
"mcpServers": {
"sql2odata": {
"command": "npx",
"args": ["-y", "sql2odata-mcp"]
}
}
}Available Tools
translate-sql
Translate a single SQL statement to OData v4.
Parameters:
sql(string, required) — SQL statement (SELECT, INSERT, UPDATE, DELETE)encode(boolean, optional) — URL-encode the output
Example:
translate-sql({ sql: "SELECT Name, Age FROM Users WHERE Country = 'Germany' ORDER BY Name LIMIT 10" })Returns:
GET /Users?$select=Name,Age&$filter=Country eq 'Germany'&$orderby=Name asc&$top=10
Parameters:
$select = Name,Age
$filter = Country eq 'Germany'
$orderby = Name asc
$top = 10translate-batch
Translate multiple SQL statements at once.
Parameters:
queries(string[], required) — Array of SQL statementsencode(boolean, optional) — URL-encode the output
sql-syntax-help
Show all supported SQL syntax and their OData v4 equivalents.
Parameters: none
Available Prompts
sql-to-odata
Pre-built prompt template that translates SQL and explains the result.
Parameters:
sql(string) — SQL statement to translate
Supported SQL
SQL | OData v4 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| POST + JSON body |
| PATCH + JSON body |
| DELETE |
Related
sql2odata — VS Code Extension
sql2odata-cli — CLI Tool
License
MIT
Author
Ulrich Waldmann — moonraker@magenta.de
This server cannot be deployed
Maintenance
Related MCP Connectors
MCP server for querying and analyzing data from ad platforms, analytics tools, and spreadsheets
Cloud-hosted MCP server for secure AI access to enterprise data sources via CData Connect AI.
Hosted SQL Server MCP server for Claude, ChatGPT and Cursor, with each action switched per account.
MCP server for Translation Services
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceA FastMCP-based server that enables executing Microsoft SQL Server data queries and table structure queries through a standardized MCP protocol interface.7MIT
- AlicenseNot gradedqualityDmaintenanceA comprehensive MCP server for SQL Server database operations, enabling CRUD operations, schema exploration, and stored procedure execution through natural language.3 npmMIT
- AlicenseNot gradedqualityBmaintenanceMCP server for SAP S/4HANA via the ADT API, enabling querying and reading SAP systems with production write protection.8 npmMIT
- AlicenseNot gradedqualityDmaintenanceAn MCP server for OData v4 endpoints, especially Microsoft Dataverse/Dynamics 365, enabling authentication, schema discovery, querying, CRUD, and more via natural language.MIT