Enterprise6-minute read7 languages

Connect SAP to Cursor: S/4HANA, Business One, ECC and Concur

Connect SAP to Cursor with ready MCP connectors: S/4HANA on-premise via HANA SQL or OData, S/4HANA Cloud, Business One, ECC and Concur. Pick your system, no code.

HCBy HelpCode teamUpdated 6 min read Open-source on GitHub

No credit card · 7-day trial · Self-host alternative available

  • 7-day free trial
    No credit card required
  • GDPR & SOC 2 ready
    EU data residency, audit logs
  • Open-source on GitHub
    Open source · AGPL-3.0
  • Works with ChatGPT, Claude, Gemini
    Any MCP-compatible client

Summary

Connect SAP to Cursor with ready MCP connectors: S/4HANA on-premise via HANA SQL or OData, S/4HANA Cloud, Business One, ECC and Concur. Pick your system, no code.

TL;DR: Cursor reaches SAP through an MCP connector in AnythingMCP. Which connector depends on your SAP system: S/4HANA on-premise or Private Cloud reads the HANA database with SAP's own data dictionary (or the Gateway OData services), S/4HANA Cloud Public Edition uses SAP's released APIs, and Business One, ECC and Concur have their own routes. You install the connector, enter the credentials and add the MCP server to Cursor. The same server works in Claude, ChatGPT and Copilot.

Which SAP do you run?

HANA SQL
SAP S/4HANA on-premise or Private Cloud (RISE)

Read the HANA database with SQL, guided by SAP's own data dictionary. Read-only, 10 tools, verified on S/4HANA 2025.

Connect S/4HANA via HANA →
OData
SAP S/4HANA, ECC or BW with SAP Gateway

The Gateway's OData V2/V4 services become MCP tools, with SAP's authorization checks on every call.

OData to MCP →
S/4HANA Cloud
SAP S/4HANA Cloud Public Edition

SAP's released OData APIs through a BTP communication arrangement: business partners, orders, billing, journal entries.

Connect S/4HANA Cloud →
Service Layer
SAP Business One

The Service Layer (OData v4): business partners, items, quotations, orders, deliveries, invoices. It can also create sales orders.

Connect Business One →
REST
SAP Concur

Expense reports, approvals, attendees and itineraries, with OAuth 2.0.

Connect Concur →

Not sure which one fits your S/4HANA? It comes down to what you can reach:

Do you have direct database access to HANA?
Yes
Route
HANA SQL
SQL with SAP's data dictionary
Connect S/4HANA via HANA →
No
Is SAP Gateway exposed?
Yes
Route
OData
Gateway services as MCP tools
OData to MCP →
S/4HANA Cloud Public Edition
Route
S/4HANA Cloud APIs
Released APIs via BTP
Connect S/4HANA Cloud →

What people ask Cursor about SAP

These are the questions the connectors are built for. Each one runs against your own system, with the rights of the user you configured.

QuestionRoute
"What was our gross margin by month in 2025, per company code?"HANA SQL
"Which customers have invoices more than 60 days overdue, and how much?"HANA SQL, OData
"What is our DSO this quarter compared to last?"HANA SQL
"Top 10 customers by net sales in the last 12 months."HANA SQL, OData, S/4HANA Cloud
"Which purchase orders are still open and past their delivery date?"OData, S/4HANA Cloud
"Show stock value by plant and material group."HANA SQL

The HANA guide shows three of them end to end: the tools Cursor calls, the SAP tables it reads and the SQL it runs.

How it works

AI client
Claude
ChatGPT
Copilot
MCP over HTTPS · OAuth
Inside your network
AnythingMCP
self-hosted
  • Roles and tool access
  • Read-only by default
  • Audit log
SQL · OData · HTTPS
SAP
HANA SQL
SQL user · SELECT only
OData via SAP Gateway
S/4HANA or ECC
S/4HANA Cloud APIs
BTP communication arrangement
Cursor talks MCP to AnythingMCP. AnythingMCP runs next to SAP and is the only component that talks to it.

S/4HANA on-premise, Private Cloud and ECC sit inside your network or SAP's private cloud landing zone, so AnythingMCP runs there too: one Docker Compose file on a host that reaches SAP. Cursor runs on your computer and reaches the MCP endpoint inside your network; the SAP system is never published. SAP Business One, S/4HANA Cloud and Concur are reachable over the internet, so they also work from AnythingMCP Cloud.

curl -fsSL https://raw.githubusercontent.com/HelpCode-ai/anythingmcp/main/docker-compose.quickstart.yml -o docker-compose.yml
printf 'JWT_SECRET=%s\nENCRYPTION_KEY=%s\n' "$(openssl rand -hex 32)" "$(openssl rand -hex 32)" > .env
docker compose up -d   # then add the SAP host to SSRF_ALLOWED_HOSTS in .env

Then install the connector from Connectors → Marketplace, and add the MCP server to Cursor: in ~/.cursor/mcp.json, add an entry under mcpServers with the URL shown under MCP Servers and the header X-API-Key: <key>.

HANA SQL or OData?

Both routes reach S/4HANA on-premise and Private Cloud, and both can run side by side.

HANA SQLOData
ReadsAny table or CDS view the database user may readThe Gateway services the SAP user may call
SAP authorizationsNot applied: the database grants are the boundaryChecked by SAP on every call
Good atTotals over millions of rows, finance and cross-module analysisPublished APIs, business objects, SAP's own checks
Works withS/4HANA on HANAS/4HANA, ECC, BW
You needA HANA database user and a licence that allows third-party SQLA technical SAP user and active Gateway services

Direct connection, Joule or a generic HANA server?

Three ways to put an AI model in front of SAP data.

Direct connection (AnythingMCP)SAP Joule with ClaudeGeneric HANA MCP servers
Works on-premise and on Private Cloud todayYesDepends on your SAP product, edition and releaseYes, with database access
Delivered and licensed byYou (open source, AGPL-3.0)SAP, on the SAP Business AI platformThe project you pick
Understands SAP tablesYes: SAP's data dictionary and CDS views as toolsSAP-managedNo: raw table and column names
Read-only guardrailsYes: single SELECT, 1,000 rows, timeout, denied tablesSAP-managedVaries
Works in any MCP clientClaude, ChatGPT, Copilot, CursorInside SAP's applicationsUsually

Joule is SAP's own assistant, and SAP and Anthropic have announced Claude inside it. The direct route is for teams that want Claude, ChatGPT or Copilot on their SAP data now, on systems they run themselves.

FAQ

How do I connect SAP to Cursor? Install the AnythingMCP connector for your SAP system (S/4HANA via HANA SQL or OData, S/4HANA Cloud, Business One or Concur), enter the credentials and add the MCP server URL to Cursor. For S/4HANA on-premise and Private Cloud, run AnythingMCP inside the network that reaches SAP.

How do I connect SAP Business One to Cursor? Install the SAP Business One connector, enter the Service Layer URL, the company database, a user and its password, and add the MCP server to Cursor. It has 12 tools for business partners, items, quotations, orders, deliveries and invoices, and it can create sales orders. Step by step: Connect SAP Business One to Cursor.

How do I connect SAP HANA to ChatGPT? The same way as to Cursor: install the SAP S/4HANA (HANA SQL) connector in a self-hosted AnythingMCP and add its MCP server to ChatGPT as a connector (developer mode, paid plans). The tools and their read-only limits are identical in both. See SAP to ChatGPT.

Is there an SAP MCP server? Yes. AnythingMCP ships SAP S/4HANA (HANA SQL, 10 tools), S/4HANA (OData), S/4HANA Cloud (15 tools), Business One (12 tools) and Concur (10 tools) as ready MCP connectors, open source and self-hosted. The sap-mcp-server repository lists them; sap-hana-mcp-server is the HANA one on its own.

Does it work with SAP ECC? Yes, through ECC's SAP Gateway OData services: create an OData connector and import the services you want from $metadata. The HANA SQL route needs S/4HANA, because it reads S/4HANA's tables and CDS views.

Can Cursor change data in SAP? Only where the connector allows it. SAP Business One can create sales orders and Concur can act on expense reports; the S/4HANA connectors only read. Give each MCP role the tools it needs and nothing more.

Does Cursor support custom MCP servers on the free tier? Yes — MCP is available on Hobby, Pro and Business plans.

Next steps

Was this guide helpful?

Ship MCP to your stack in 60 seconds.

Spin up AnythingMCP on managed Cloud or self-host it on your infrastructure. Free for 7 days, no credit card.

Related guides

GR
Connectors

How to Connect Georgian Railway to Cursor — via MCP

Search Georgian Railway trains from Cursor via MCP: stations, timetables, live seat availability and fares in GEL. No account and no API key needed.

Connectors

How to Connect Google Calendar to Cursor via MCP

Let your AI work with Google Calendar: see the calendars you have, list and search events in any time range, read event details and guests, create and reschedule meetings with guests and Google Meet links, answer invitations, add events from a sentence and check when people are free. Personal Google accounts and Google Workspace.

Connectors

How to Connect Google Docs to Cursor via MCP

Let your AI work with Google Docs: read a document as plain text or as headings and paragraphs with positions, create new documents, append or insert text and replace text everywhere, for example to fill a template. Personal Google accounts and Google Workspace.

Connectors

How to Connect Google Drive to Cursor via MCP

Let your AI work in Google Drive: search files and folders in My Drive and shared drives, read Google Docs, Sheets and Slides as text, see details, comments and who has access, create folders and text files (or new Docs and Sheets from text), copy, rename, move, share and trash. Personal Google accounts and Google Workspace.

Connectors

How to Connect Google Sheets to Cursor via MCP

Let your AI work with Google Sheets: read any range or several at once, see a spreadsheet's tabs and sizes, append rows to a table, write and update cells and formulas, create spreadsheets and add or rename tabs. Personal Google accounts and Google Workspace.

Connectors

How to Connect Google Tasks to Cursor via MCP

Let your AI manage Google Tasks: see your task lists and what is open or due, add tasks and subtasks with due dates, update, complete and reorder them or move them to another list. The same tasks you see in Gmail, Google Calendar and the Tasks app. Personal Google accounts and Google Workspace.