SAP MCP Command Center
Enables querying three synthetic SAP systems (ERP, S/4HANA, BW) for master data, transactions, and analytics via natural language or MCP tools, with a live dashboard.
README
SAP MCP Command Center
Three synthetic SAP systems behind one Model Context Protocol (MCP) gateway, wrapped in a Next.js dashboard and a plain-English "command center" with a live MCP tool-call feed.
Open the web app, type a question like "Which materials are below reorder point in Frankfurt?", and watch it become a real MCP tool call that returns SAP-like data as tables and charts — the same tools are simultaneously connectable from Claude Desktop.
Synthetic data — no real SAP required. All data is generated locally with a fixed seed. Rule-based NL — no LLM, no API key. Plain-English routing is 100% deterministic, so a live demo never hits a rate limit or "the API is down" moment.
Screenshots
Dashboard — KPIs & Sales Trend

Dashboard — Inventory, Top Customers & Materials

Command Center — Plain English → Live MCP Tool Calls

Systems — Auto-registered from systems.config.json

The 3-layer story
The same MCP pattern, applied at three layers of the SAP stack:
| System | Layer | Stands in for | Example tools |
|---|---|---|---|
sap_erp |
master data | the "MySQL" layer (ECC) | sap_erp_get_material, sap_erp_list_materials, sap_erp_get_customer |
sap_s4 |
transactional | S/4HANA OData | sap_s4_get_sales_orders, sap_s4_get_purchase_orders, sap_s4_get_deliveries |
sap_bw |
analytics | BW / BICS (BEx queries) | sap_bw_list_queries, sap_bw_run_query |
Each is exposed as MCP tools through one gateway, and every tool returns flat JSON with a top-level
status field — echoing a real BEx server's contract.
Architecture
Browser (Next.js :3000)
plain English │ │ dashboard data
▼ ▼
Claude Desktop ┌─────────────────────────────────┐
│ MCP SSE │ Express gateway (:3041) │
└───────────────────▶ /sse /api/ask │
│ /api/dashboard /api/activity │
└──────────────┬──────────────────┘
│ the SAME tool handlers
┌─────────────────┼─────────────────┐
▼ ▼ ▼
sap_erp sap_s4 sap_bw
(master data) (transactional) (analytics)
└─────────────────┴─────────────────┘
▼
SQLite (synthetic, seeded)
A plain-English question and an MCP client call land on the same config-driven tool handlers, which read from a local SQLite database seeded with realistic, German-plant SAP data.
Quickstart
git clone <your-repo-url> sap-mcp-command-center
cd sap-mcp-command-center
npm install # installs server + web workspaces
npm run seed # build the synthetic SQLite database (stable, fixed seed)
npm run dev # start the gateway and the web app together
Then open:
- Web app → http://localhost:3000
- Gateway → http://localhost:3041 (
/health,/api/systems, MCP SSE at/sse)
Ports are configurable:
PORTfor the gateway,NEXT_PUBLIC_API_BASEfor the web app. (The gateway defaults to 3041 to avoid colliding with other local dev servers on 3000/3001.)
Scripts
| Command | What it does |
|---|---|
npm run dev |
Start gateway + web together (via concurrently) |
npm run seed |
Wipe + rebuild the synthetic database, print row counts |
npm run reset |
Alias for seed — restore the demo to a known state |
npm run smoke |
Run the backend smoke suite (data → gateway → NL router → REST) |
npm run build |
Production build of the web app |
Try it in plain English
Type these into the Command Center (or POST /api/ask {"text": "..."}):
- "Which materials are below reorder point in Frankfurt?"
- "Top 5 customers by revenue"
- "Show open purchase orders"
- "Sales trend this year"
- "List FERT materials in Munich"
- "Deliveries for order 4500000123"
- "Ping all systems"
Each one routes deterministically to a tool, dispatches it through the gateway, and lights up the live tool-call feed.
What's interesting technically
- Config-driven MCP tool registration. Tools are generated from
server/src/systems.config.json. Adding a fourth system entry registers all of its tools ({system}_{capability}) with zero code changes — great for a live "watch me add a system" demo. - One set of handlers, two front doors. The exact same tool handlers serve both the MCP SSE transport (real protocol, connectable from Claude Desktop) and the REST bridge the web UI calls. That's what lets this be a real MCP server and a slick web app from one codebase.
- Live tool-call telemetry. Every invocation — whether from MCP or REST — is timed and pushed through a ring buffer + event emitter, then streamed to the UI over Server-Sent Events.
- Deterministic NL routing. A small ordered set of intent rules + entity extractors (plant names → codes, statuses, time phrases, document numbers) maps English to tool calls. No model, no key, fully reproducible.
- Stable demo data. A fixed
@faker-js/fakerseed means the numbers are identical on everynpm run seed, so your screenshots and talk track always match.
Connect Claude Desktop
The gateway exposes a real MCP SSE endpoint at http://localhost:3041/sse, so a technical
reviewer can drive the same synthetic systems from Claude Desktop in plain English.
Option A — Connectors UI (recommended): Claude Desktop → Settings → Connectors → Add custom connector, then paste the SSE URL:
http://localhost:3041/sse
Option B — config file (claude_desktop_config.json), bridging SSE via mcp-remote:
{
"mcpServers": {
"sap-mcp-command-center": {
"command": "npx",
"args": ["-y", "mcp-remote", "http://localhost:3041/sse"]
}
}
}
A ready-to-copy version lives in claude_desktop_config.example.json.
Make sure the gateway is running (npm run dev), then restart Claude Desktop. You'll see
list_systems plus the per-system tools (sap_erp_get_material, sap_bw_run_query, …). Verify the
endpoint is reachable any time with:
curl http://localhost:3041/health
curl -N http://localhost:3041/sse # opens the event stream (Ctrl-C to stop)
Project structure
server/
src/
data/ db.js · generate.js (faker seed) · analytics.js (BW-style queries)
mcp/ tools.js (capability registry) · gateway.js (config-driven registration)
transport.js (SSE) · telemetry.js (ring buffer + emitter)
nl/ router.js (rule-based plain-English → tool call)
rest.js REST bridge (/api/*)
index.js Express app: MCP SSE + REST
systems.config.json
test/ *.smoke.js — one per backend stage
web/
app/ dashboard · command-center · systems (App Router)
components/ charts, panels, the live ActivityFeed, shape-aware ResultView
lib/ typed API client + formatting
Notes on choices
- Rule-based NL keeps the demo key-free and 100% reliable — no rate limits in front of a reviewer.
- Shared tool handlers across MCP SSE and the REST bridge are what make "this is a real MCP server" and "here's a polished web UI" both true at once.
- SQLite + fixed seed means stable numbers every run.
Synthetic data only. This project never connects to a real SAP system and uses no LLM API key.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。