SAP NetWeaver Gateway MCP server

Bridges SAP NetWeaver Gateway systems through JDBC connectivity, enabling natural language queries of SAP business data with table discovery, metadata retrieval, and SQL execution capabilities.
Back to servers
Setup instructions
Provider
CData Software
Release date
Jul 26, 2025
Stats
2 stars

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.

Installation Guide

Prerequisites

  • Java runtime environment
  • CData JDBC Driver for SAP Netweaver Gateway

Step 1: Get the MCP Server

git clone https://github.com/cdatasoftware/sap-netweaver-gateway-mcp-server-by-cdata.git
cd sap-netweaver-gateway-mcp-server-by-cdata

Step 2: Build the Server

mvn clean install

This creates the CDataMCP-jar-with-dependencies.jar file.

Step 3: Install the CData JDBC Driver

  1. Download and install the CData JDBC Driver from CData's website

  2. License the driver:

    java -jar path/to/cdata.jdbc.sapgateway.jar --license
    

    Enter your name, email, and "TRIAL" (or your license key).

Step 4: Configure Your Connection

  1. Run the Connection String utility:

    java -jar path/to/cdata.jdbc.sapgateway.jar
    
  2. Configure your connection parameters and test the connection.

  3. Once successful, copy the connection string for the next step.

Step 5: Create Configuration File

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.

Configuring with Claude Desktop

Create Configuration for Claude

Create a claude_desktop_config.json file or modify your existing one:

Windows

{
  "mcpServers": {
    "sapgateway": {
      "command": "PATH\\TO\\java.exe",
      "args": [
        "-jar",
        "PATH\\TO\\CDataMCP-jar-with-dependencies.jar",
        "PATH\\TO\\sap-netweaver-gateway.prp"
      ]
    }
  }
}

Mac/Linux

{
  "mcpServers": {
    "sapgateway": {
      "command": "/PATH/TO/java",
      "args": [
        "-jar",
        "/PATH/TO/CDataMCP-jar-with-dependencies.jar",
        "/PATH/TO/sap-netweaver-gateway.prp"
      ]
    }
  }
}

Place Configuration File

Windows

cp C:\PATH\TO\claude_desktop_config.json %APPDATA%\Claude\claude_desktop_config.json

Mac

cp /PATH/TO/claude_desktop_config.json ~/Library/Application\ Support/Claude/claude_desktop_config.json

Restart Claude Desktop

Completely exit Claude Desktop and relaunch it to load the new MCP server.

Using the MCP Server

Running Manually

You can run the server independently with:

java -jar /PATH/TO/CDataMCP-jar-with-dependencies.jar /PATH/TO/sap-netweaver-gateway.prp

Available Tools

The MCP Server provides these tools for Claude to use:

  • sapgateway_get_tables - Lists all available tables in your SAP Gateway
  • sapgateway_get_columns - Retrieves column information for a specific table
  • sapgateway_run_query - Executes SQL SELECT queries against your data

Using with Claude

Simply ask Claude questions about your SAP data, such as:

  • "What SAP tables are available?"
  • "Show me the first 5 sales orders from this month"
  • "How many open purchase orders do we have?"

Claude will automatically use the appropriate tools to fetch the information.

Troubleshooting

  • 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.

How to install this MCP server

For Claude Code

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.

For Cursor

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.

Adding an MCP server to Cursor globally

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"
            ]
        }
    }
}

Adding an MCP server to a project

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.

How to use the MCP server

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.

For Claude Desktop

To add this MCP server to Claude Desktop:

1. Find your configuration file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json

2. 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

Want to 10x your AI skills?

Get a free account and learn to code + market your apps using AI (with or without vibes!).

Nah, maybe later