logali-mcp-odata
Generic OData v2/v4 to MCP bridge
- OData / Gateway
- TypeScript
- stdio
- MIT
- 8 tools
- Read and write
Overview
Turns any SAP OData service (v2 or v4) into MCP tools. It introspects the $metadata, detects the protocol version, and lets you query any entity set with filtering, selection, ordering, and expansion, plus write operations with CSRF token handling.
Clean-room implementation by Logali Tech (original code, MIT license), inspired by the open-source ecosystem of SAP MCP servers.
Tools
What your assistant can call. Writes stay disabled unless you enable them.
-
list_entity_setsList the service entity sets with their type and keys. Read -
get_metadataSummary of the $metadata (types, properties, navigations) or raw XML. Read -
query_entitiesQuery entities with filter/select/top/skip/orderby/expand/count. Read -
get_entityRead one entity by its key (single or composite). Read -
count_entitiesCount entities with optional filter. Read -
create_entityCreate an entity (requires LOGALI_MCP_ALLOW_WRITE). Write -
update_entityUpdate an entity via PATCH/PUT (gated). Write -
delete_entityDelete an entity (gated). Write
Installation
Clone and build, then point your MCP client at the binary. Pick your client:
Paste into claude_desktop_config.json
{
"mcpServers": {
"odata": {
"command": "node",
"args": [
"/path/to/logali-mcp-odata/dist/index.js"
],
"env": {
"ODATA_SERVICE_URL": "<odata_service_url>"
}
}
}
} Paste into ~/.cursor/mcp.json
{
"mcpServers": {
"odata": {
"command": "node",
"args": [
"/path/to/logali-mcp-odata/dist/index.js"
],
"env": {
"ODATA_SERVICE_URL": "<odata_service_url>"
}
}
}
} Paste into .vscode/mcp.json
{
"servers": {
"odata": {
"type": "stdio",
"command": "node",
"args": [
"/path/to/logali-mcp-odata/dist/index.js"
],
"env": {
"ODATA_SERVICE_URL": "<odata_service_url>"
}
}
}
} In your terminal
git clone https://github.com/logalitech/logali-mcp-odata
cd logali-mcp-odata
npm install && npm run build Configuration
Server environment variables.
| Variable | Required | Description |
|---|---|---|
| ODATA_SERVICE_URL | Yes | OData service root URL. |
| ODATA_USERNAME / ODATA_PASSWORD | No | Basic auth (or use a bearer token). |
| ODATA_BEARER_TOKEN | No | Bearer token as an alternative to basic auth. |
| ODATA_CLIENT | No | Adds the sap-client parameter. |
| ODATA_EXTRA_HEADERS | No | Extra headers (JSON map). |
| LOGALI_MCP_ALLOW_WRITE | No | Enables create/update/delete (default false). |
Related servers