mcp-sap-cpi
Connects Claude to SAP Cloud Platform Integration (CPI) to diagnose failed messages, review iFlows, deploy artifacts, and check credentials directly from your conversation.
README
mcp-sap-cpi
An open-source MCP (Model Context Protocol) server that connects Claude to SAP Cloud Platform Integration (CPI). Ask Claude to diagnose failed messages, review iFlows, deploy artifacts, check credentials, and more — directly from your conversation.
What it does
| Category | Tools |
|---|---|
| Message Monitoring | List failed messages, get full MPL details, retrieve trace logs |
| Integration Content | Browse packages, list artifacts, deploy/undeploy iFlows |
| Security Artifacts | List credentials, keystores, OAuth2 configurations |
| Runtime Status | Check deployed artifact status, system health summary |
Requirements
- Node.js 18+
- SAP CPI tenant (Integration Suite or standalone CPI)
- BTP service key with Process Integration Runtime role (
it-rtplan)
Installation
npm install -g mcp-sap-cpi
Or run without installing:
npx mcp-sap-cpi
Configuration
1. Get your BTP service key
In SAP BTP Cockpit:
- Go to your subaccount → Services → Instances and Subscriptions
- Create a service instance:
Process Integration Runtime→ planit-rt - Create a service key → copy the JSON
From the service key JSON, extract:
url→CPI_TENANT_URLtokenurl→CPI_TOKEN_URLclientid→CPI_CLIENT_IDclientsecret→CPI_CLIENT_SECRET
2. Set environment variables
Create a .env file (or set in your Claude Desktop config — see below):
CPI_TENANT_URL=https://<tenant>.it-cpi.cfapps.<region>.hana.ondemand.com
CPI_TOKEN_URL=https://<subdomain>.authentication.<region>.hana.ondemand.com/oauth/token
CPI_CLIENT_ID=sb-<your-client-id>
CPI_CLIENT_SECRET=<your-client-secret>
3. Register with Claude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):
{
"mcpServers": {
"sap-cpi": {
"command": "npx",
"args": ["mcp-sap-cpi"],
"env": {
"CPI_TENANT_URL": "https://<tenant>.it-cpi.cfapps.<region>.hana.ondemand.com",
"CPI_TOKEN_URL": "https://<subdomain>.authentication.<region>.hana.ondemand.com/oauth/token",
"CPI_CLIENT_ID": "your-client-id",
"CPI_CLIENT_SECRET": "your-client-secret"
}
}
}
}
4. Register with Claude Code
claude mcp add sap-cpi npx mcp-sap-cpi \
-e CPI_TENANT_URL=https://<tenant>.it-cpi.cfapps.<region>.hana.ondemand.com \
-e CPI_TOKEN_URL=https://<subdomain>.authentication.<region>.hana.ondemand.com/oauth/token \
-e CPI_CLIENT_ID=your-client-id \
-e CPI_CLIENT_SECRET=your-client-secret
Tools Reference
Message Monitoring
get_failed_messages
List failed messages from the Message Processing Log.
| Parameter | Type | Required | Description |
|---|---|---|---|
top |
number | No | Max results (default: 20) |
artifactName |
string | No | Filter by iFlow name |
fromDate |
string | No | ISO date — messages after this date |
Example prompt: "Show me the last 10 failed messages in CPI"
get_message_details
Get full MPL details for a specific message.
| Parameter | Type | Required | Description |
|---|---|---|---|
messageId |
string | Yes | The CPI message GUID |
Example prompt: "Get details for message ID abc-123-def"
get_trace_log
Get step-by-step payload trace for a message (requires trace mode enabled on the iFlow).
| Parameter | Type | Required | Description |
|---|---|---|---|
messageId |
string | Yes | The CPI message GUID |
Example prompt: "Show me the trace log for message abc-123-def"
Integration Content
list_packages
List all integration packages in the tenant.
Example prompt: "What integration packages do I have in CPI?"
list_artifacts
List all artifacts in a package.
| Parameter | Type | Required | Description |
|---|---|---|---|
packageId |
string | Yes | The integration package ID |
Example prompt: "List all iFlows in the HR_Integration package"
get_artifact
Get metadata and configuration for a specific artifact.
| Parameter | Type | Required | Description |
|---|---|---|---|
artifactId |
string | Yes | The artifact ID |
artifactType |
string | Yes | IntegrationFlow, MessageMapping, ScriptCollection, or ValueMapping |
deploy_artifact
Deploy an artifact version to the runtime.
| Parameter | Type | Required | Description |
|---|---|---|---|
artifactId |
string | Yes | The artifact ID |
artifactType |
string | No | Default: IntegrationFlow |
Example prompt: "Deploy the Employee_Sync iFlow"
undeploy_artifact
Undeploy an artifact from the runtime.
| Parameter | Type | Required | Description |
|---|---|---|---|
artifactId |
string | Yes | The artifact ID |
Security Artifacts
list_credentials
List all user credential (basic auth) aliases.
Example prompt: "What credentials are configured in CPI?"
list_keystores
List all keystore entries with alias and expiry date.
Example prompt: "Are any of my CPI certificates expiring soon?"
list_oauth_credentials
List all OAuth2 client credential configurations.
Runtime Status
get_runtime_artifacts
List all deployed runtime artifacts with status (STARTED, STOPPED, ERROR).
Example prompt: "Which iFlows are currently in ERROR state?"
get_system_status
Get a summary of deployed artifact health.
Example prompt: "Give me a CPI system health check"
Example conversations
Diagnose a failed message:
"Why did my HR_Employee_Sync iFlow fail? Show me the last error."
Check certificates:
"List all keystore entries in CPI and flag any expiring within 90 days."
Deploy after a fix:
"Deploy the Order_Processing iFlow to the runtime."
Audit credentials:
"What OAuth2 credentials are configured in my CPI tenant?"
System overview:
"Give me a health check — how many iFlows are running vs in error?"
Local development
git clone https://github.com/prudvigit/mcp-sap-cpi.git
cd mcp-sap-cpi
npm install
cp .env.example .env
# fill in your CPI credentials in .env
npm run dev
Roadmap
- [ ] Value mapping query tool
- [ ] Alert management tools
- [ ] iFlow content download (for AI-assisted review)
- [ ] Integration with tics-sap-ai-suite
License
MIT
推荐服务器
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 模型以安全和受控的方式获取实时的网络信息。