sapgateway_get_tablesLABSCO SUMMARY
SAP data reachable without an OData tour.
The gateway's services become tables, and the model's path is fixed: find the table, read its columns, then write one SELECT. That is a narrow surface, but narrow is the right shape for a system where a wrong write would matter — nothing here can write. The CData driver licence is the real prerequisite.
What it is
A local MCP server wrapping the CData JDBC Driver for SAP Netweaver Gateway, which exposes the gateway's services as relational SQL models. The model is handed table discovery, column discovery, and one read-only query tool. Transport is stdio, so client and server run on the same machine.
What you get
- The tables the driver exposes through the gateway, returned as CSV with a header row —
sapgateway_get_tables - The columns of a chosen table, so queries reference real field names —
sapgateway_get_columns - A SQL
SELECTexecuted against live SAP data —sapgateway_run_query - A
Tablessetting that only picks which tables also get a ready-made description (blank means none); it does not limit what the tools can list or query, so limit the connection or the account it signs in with
Requirements
Access to an SAP Netweaver Gateway plus a licensed CData JDBC Driver for SAP Netweaver Gateway — a trial licence is accepted via java -jar cdata.jdbc.sapgateway.jar --license. Java to run the server, Maven to build it (mvn clean install yields CDataMCP-jar-with-dependencies.jar). The .prp connection file supplies DriverClass as cdata.jdbc.sapgateway.SAPGatewayDriver, the driver jar path, a tool Prefix such as sapgateway, and the JDBC connection string from the driver's Connection String utility — OAuth-backed sources authenticate in a browser at that step. MIT licensed.
Setup effort
Build from source — git clone https://github.com/cdatasoftware/sap-netweaver-gateway-mcp-server-by-cdata.git
USE CASES
Answering a question about live SAP records
Ask in plain language; the model finds the table, checks its columns, and pulls the answer with a single SELECT.
Seeing what the gateway actually exposes
Enumerate tables and columns to map the surface before designing an integration around it.
3 tools
Listed in project docs. Your client may show a different list.
sapgateway_get_columnssapgateway_run_queryBEFORE YOU INSTALL
What to know first
Tools you get
3 tools named in the project's documentation. Tool names take the Prefix from your .prp file, so with the README's Prefix=sapgateway they are sapgateway_get_tables, sapgateway_get_columns and sapgateway_run_query. All three only read (run_query executes SELECT only); read-write access needs CData's separate MCP Server for SAP Netweaver Gateway.
Where it runs
The documented client runs the server on your machine.
INSTALLATION
Connect your client
You clone and build this one yourself.
Server setup
git clone https://github.com/cdatasoftware/sap-netweaver-gateway-mcp-server-by-cdata.git
cd sap-netweaver-gateway-mcp-server-by-cdata
mvn clean installDownload and install the CData JDBC Driver for SAP Netweaver Gateway from https://www.cdata.com/drivers/sapgateway/download/jdbc
License the driver: from the driver install's lib folder run java -jar cdata.jdbc.sapgateway.jar --license, then enter your name, email, and "TRIAL" (or your license key)
Build the connection string: run java -jar cdata.jdbc.sapgateway.jar to open the Connection String utility, click "Test Connection" (browser OAuth if the source needs it), and copy the connection string
Create sap-netweaver-gateway.prp with:
Prefix=sapgateway
ServerName=CDataSAPGateway
ServerVersion=1.0
DriverPath=<YOUR_DRIVER_PATH>
DriverClass=cdata.jdbc.sapgateway.SAPGatewayDriver
JdbcUrl=<YOUR_JDBC_URL>
Tables=Tables only picks which tables also get a ready-made description for your assistant, and empty means none; the server can still list and query every table your connection string reaches, so to keep data out of reach, limit that connection or the account it signs in with.
Add the mcpServers entry below to claude_desktop_config.json and fully restart the client
MCP Clients
Claude Desktop — macOS/Linux
{
"mcpServers": {
"sap-netweaver-gateway": {
"command": "<YOUR_PATH_TO_JAVA>",
"args": [
"-jar",
"<YOUR_PATH_TO_CDATA_MCP_JAR_WITH>",
"<YOUR_PATH_TO_SAP_NETWEAVER_GATEWAY>"
]
}
}
}