SAP MCP Gateway
Integrates with SAP Business One via Service Layer for read-only data access and SQL analysis, with a guarded workflow for authorized SAP actions including draft, preflight, review, and explicit execution.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@SAP MCP Gatewayshow me the top 10 customers by revenue"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
SAP MCP Gateway
A sanitized reference implementation for connecting SAP Business One to MCP-compatible AI clients.
This repository demonstrates a gateway architecture for Service Layer access, read-only SQL analysis, OAuth/PKCE client flows, local action drafts and explicit write gates. It is a public competence showcase and not a production deployment package.
Included
MCP over stdio and HTTP
SAP Business One Service Layer reads with bounded pagination
Optional read-only SQL analysis with query and result limits
Draft, preflight, review and explicit execution workflow for SAP actions
OAuth discovery, dynamic client registration and PKCE authorization flow
Audit logging, stream-size protections and defensive error handling
Unit and integration-style tests with synthetic data
Related MCP server: sap-hana-mcp
Quick start
npm ci
npm run typecheck
npm run build
npm test
npm run lintCopy .env.example to .env for local experimentation. The values in that file are placeholders; never commit credentials or live endpoints.
For a container build:
docker compose -f docker-compose.example.yml up --buildArchitecture
src/server.ts— process entry pointsrc/http/— HTTP and MCP transportsrc/mcp/— MCP server constructionsrc/sap/— Service Layer and SQL client adapterssrc/tools/— tool schemas, read operations and guarded action workflowssrc/security/— authentication, OAuth and write safety gatessrc/store/— local draft and audit persistencetests/— automated tests using synthetic fixtures
See docs/architecture.md and docs/security.md for the public design notes.
Public boundary
This split intentionally excludes customer data, generated deployment output, live validation scripts, SSH/Tailscale instructions, server names, production URLs, private operational runbooks and company-specific domain templates. The examples use reserved .invalid hostnames and synthetic values.
The gateway defaults to read-only behavior. Enabling SAP writes requires deliberate configuration and should only be done in an isolated development environment after an independent review.
License
Licensed under the PolyForm Noncommercial License 1.0.0. Private and noncommercial use is permitted; commercial or business use is not permitted under this license. Dependencies and any third-party code remain subject to their own licenses.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-quality-maintenanceAn enterprise-grade MCP server that enables AI agents to execute SAP RFC functions and read business data securely through the Model Context Protocol.
- Alicense-qualityDmaintenanceAn MCP server for SAP HANA that enables listing tables, columns, running SQL queries, and looking up SAP table descriptions, all through natural language via AI assistants.MIT
- Alicense-qualityFmaintenanceA config-driven MCP server that exposes OData and REST APIs as MCP tools, enabling AI assistants to query, manage, and monitor SAP backends through natural language.4027MIT
- Alicense-qualityCmaintenanceProduction-ready MCP server enabling AI assistants to interact with SAP Datasphere for real tenant data discovery, metadata exploration, analytics operations, ETL data extraction, database user management, data lineage analysis, and column-level data profiling.MIT
Related MCP Connectors
Self-hosted MCP gateway: turn any API, database or MCP server into AI connectors — no code.
Read-only MCP connector serving the Run It on AI book; index and Implementation Blocks are free.
Hosted MCP server exposing US hospital procedure cost data to AI assistants
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Joekay9223/sap-mcp-gateway'
If you have feedback or need assistance with the MCP directory API, please join our Discord server