sql2odata-mcp
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., "@sql2odata-mcpTranslate SELECT Name FROM Employees WHERE Department = 'Sales' to OData"
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.
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: Universal Database MCP Server
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 installed
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 Servers
- Alicense-qualityBmaintenanceA FastMCP-based server that enables executing Microsoft SQL Server data queries and table structure queries through a standardized MCP protocol interface.6MIT
- Flicense-qualityDmaintenanceA versatile MCP server that connects to multiple relational databases (MySQL, PostgreSQL, Oracle, SQL Server, SQLite) and enables secure read-only SQL query execution and metadata access.4
- Alicense-qualityDmaintenanceA comprehensive MCP server for SQL Server database operations, enabling CRUD operations, schema exploration, and stored procedure execution through natural language.8MIT
- Alicense-qualityBmaintenanceMCP server for SAP S/4HANA via the ADT API, enabling querying and reading SAP systems with production write protection.4MIT
Related MCP Connectors
GibsonAI MCP server: manage your databases with natural language
MCP server for AI access to Swagger by SmartBear.
MCP server for managing Prisma Postgres.
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/moonraker46/sql2odata-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server