CData's Model Context Protocol (MCP) Server for SAP Netweaver Gateway allows Large Language Models (like Claude Desktop) to query live data from your SAP system using natural language instead of SQL. This read-only server leverages the CData JDBC Driver to expose SAP Netweaver Gateway data through a simple MCP interface.
git clone https://github.com/cdatasoftware/sap-netweaver-gateway-mcp-server-by-cdata.git
cd sap-netweaver-gateway-mcp-server-by-cdata
mvn clean install
This creates the CDataMCP-jar-with-dependencies.jar file.
Download and install the CData JDBC Driver from CData's website
License the driver:
java -jar path/to/cdata.jdbc.sapgateway.jar --license
Enter your name, email, and "TRIAL" (or your license key).
Run the Connection String utility:
java -jar path/to/cdata.jdbc.sapgateway.jar
Configure your connection parameters and test the connection.
Once successful, copy the connection string for the next step.
Create a .prp file (e.g., sap-netweaver-gateway.prp) with the following properties:
Prefix=sapgateway
ServerName=CDataSAPGateway
ServerVersion=1.0
DriverPath=PATH/TO/cdata.jdbc.sapgateway.jar
DriverClass=cdata.jdbc.sapgateway.SAPGatewayDriver
JdbcUrl=jdbc:sapgateway:InitiateOAuth=GETANDREFRESH;
Tables=
Replace the JdbcUrl with your actual connection string from Step 4.
Create a claude_desktop_config.json file or modify your existing one:
{
"mcpServers": {
"sapgateway": {
"command": "PATH\\TO\\java.exe",
"args": [
"-jar",
"PATH\\TO\\CDataMCP-jar-with-dependencies.jar",
"PATH\\TO\\sap-netweaver-gateway.prp"
]
}
}
}
{
"mcpServers": {
"sapgateway": {
"command": "/PATH/TO/java",
"args": [
"-jar",
"/PATH/TO/CDataMCP-jar-with-dependencies.jar",
"/PATH/TO/sap-netweaver-gateway.prp"
]
}
}
}
cp C:\PATH\TO\claude_desktop_config.json %APPDATA%\Claude\claude_desktop_config.json
cp /PATH/TO/claude_desktop_config.json ~/Library/Application\ Support/Claude/claude_desktop_config.json
Completely exit Claude Desktop and relaunch it to load the new MCP server.
You can run the server independently with:
java -jar /PATH/TO/CDataMCP-jar-with-dependencies.jar /PATH/TO/sap-netweaver-gateway.prp
The MCP Server provides these tools for Claude to use:
Simply ask Claude questions about your SAP data, such as:
Claude will automatically use the appropriate tools to fetch the information.
Server not appearing in Claude: Completely quit Claude Desktop (use Task Manager on Windows or Activity Monitor on Mac) and restart it.
Connection issues: Verify your connection string using the Connection String builder tool.
Data source problems: Contact CData Support for assistance with driver connectivity.
MCP server questions: Join the CData Community for help.
To add this MCP server to Claude Code, run this command in your terminal:
claude mcp add-json "sap-netweaver-gateway" '{"command":"java","args":["-jar","PATH/TO/CDataMCP-jar-with-dependencies.jar","PATH/TO/sap-netweaver-gateway.prp"]}'
See the official Claude Code MCP documentation for more details.
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json file.
To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".
When you click that button the ~/.cursor/mcp.json file will be opened and you can add your server like this:
{
"mcpServers": {
"sap-netweaver-gateway": {
"command": "java",
"args": [
"-jar",
"PATH/TO/CDataMCP-jar-with-dependencies.jar",
"PATH/TO/sap-netweaver-gateway.prp"
]
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.
To add this MCP server to Claude Desktop:
1. Find your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json%APPDATA%\Claude\claude_desktop_config.json~/.config/Claude/claude_desktop_config.json2. Add this to your configuration file:
{
"mcpServers": {
"sap-netweaver-gateway": {
"command": "java",
"args": [
"-jar",
"PATH/TO/CDataMCP-jar-with-dependencies.jar",
"PATH/TO/sap-netweaver-gateway.prp"
]
}
}
}
3. Restart Claude Desktop for the changes to take effect