sap_analytics_cloud_mcp
Enables interaction with SAP Analytics Cloud through an MCP server, exposing 90 tools for content management, data export/import, user management, and more via natural language.
README
SAP Analytics Cloud MCP Server
An MCP (Model Context Protocol) server that exposes the SAP Analytics Cloud REST API as 90 tools consumable by any MCP-compatible client (Custom Agent, Claude Desktop, Claude Code, Cursor, etc.).
What it does
The server authenticates against an SAC tenant using OAuth 2.0 Client Credentials and manages CSRF tokens and session cookies automatically. It then exposes the full SAC REST API surface as discrete MCP tools grouped into 11 service areas:
| Module | Tools | Covers |
|---|---|---|
| Content | 10 | Stories, Resources, File Repository, Repositories, Widget Query |
| Data Export | 22 | Namespaces, Providers, Subscriptions, FactData, MasterData, AuditData, Aggregation, Difference, Currency/Unit tables, Public Dimensions |
| Data Import | 24 | Models, Import Jobs lifecycle (create/upload/validate/run/status), One-click Import, Public Dimensions, Currency Conversions, Unit Conversions |
| Multi Actions | 2 | Execute and poll status |
| Calendar | 3 | Get, update, copy calendar events |
| Content Transport | 7 | Export/import jobs, packages, permissions |
| User Management | 10 | SCIM v2 Users, Teams/Groups, Bulk operations |
| Monitoring | 2 | Audit activity export, model monitoring |
| Schedule & Publication | 4 | Schedule CRUD |
| Translation | 4 | Artifact metadata, XLIFF download (single + bulk) |
| Smart Query | 1 | Intelligent routing (Relational vs Analytical) |
Plus a ping connectivity check tool (90 total), and Prompt support for guided workflows.
Prerequisites
- Node.js >= 18.0 (required for native
fetchandHeaders.getSetCookie) - npm
- An SAP Analytics Cloud tenant with an OAuth client (see below).
SAC Tenant Setup
- Open your SAC tenant and go to System > Administration > App Integration > Add a New OAuth Client.
- Set the purpose to Interactive Usage and API Access.
- Note down the following four values:
- Base URL --
https://<tenant>.<datacenter>.sapanalytics.cloud - Token URL -- shown on the OAuth client detail page
- Client ID
- Client Secret
- Base URL --
Installation & Build
git clone https://github.com/JumenEngels/sap_analytics_cloud_mcp
cd sap_analytics_cloud_mcp
npm install
npm run build
Quick Start: Agent Client
The easiest way to test the server locally (after doing mcp setup above) is using the included Agent Client. It connects to the server and uses an LLM (SAP AI Core, Anthropic, OpenAI, etc.) to interact with your SAC tenant.
1. Setup Configuration
Navigate to the client directory and run the setup script:
cd AgentClient
npm install
npm run setup
This creates mcp_agentclient.json. Open this file and fill in your credentials:
- SAC Credentials: Fill in
sacsection with the values from "SAC Tenant Setup". - LLM Credentials: Fill in
aicore,anthropic, oropenaisections. - Default Provider: Set
"defaultProvider"to your preferred LLM (e.g.,"genaicore","anthropic").
2. Run the Client
npm run build
npm start
The client will automatically load all necessary configuration (both for the LLM and the SAC Server) from your JSON file.
Configuration (For standard MCP Clients)
If you are using Claude Desktop, Cursor, or another MCP client, you need to configure the server environment variables directly.
The server reads four required environment variables at runtime:
| Variable | Description | Example |
|---|---|---|
SAC_BASE_URL |
Tenant root URL (no trailing slash) | https://mytenant.eu10.sapanalytics.cloud |
SAC_TOKEN_URL |
OAuth token endpoint | https://mytenant.authentication.eu10.hana.ondemand.com/oauth/token |
SAC_CLIENT_ID |
OAuth Client ID | sb-abc123-def456 |
SAC_CLIENT_SECRET |
OAuth Client Secret | AbC123... |
MCP Client Configuration
Claude Desktop
To automatically generate a configuration file with the correct absolute path:
npm run setup
This creates an mcp_config.json file in the project root. fill in your SAC credentials there and copy the content to your Claude Desktop config file.
Cursor / Other Clients
Add the server with the command node build/index.js and set the 4 environment variables in the client's configuration UI.
Smart Query
The smart_query tool simplifies data access by intelligently routing your request:
- Relational: Simple
SELECT *queries are routed to the OData API for raw entity data. - Analytical: Queries with aggregations (
SUM,COUNT,GROUP BY) are analyzed and routed to the Widget Query API.
SELECT SUM(Amount) FROM Model123 GROUP BY Region
Prompts
The server provides pre-defined prompts to guide users through common workflows:
- explore_content: Discover stories and files in your tenant.
- analyze_story: Deep dive into a specific story's metadata and dependencies.
- system_health_check: Quick status check of connectivity and recent failures.
Deployment
Docker
docker build -t sac-mcp-server .
docker run -e SAC_BASE_URL="..." ... sac-mcp-server
Development
Watch mode recompiles on every file change:
npm run dev
Security Notes
- Write Operations: All tools that modify data require
allowalteration=trueargument.
推荐服务器
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 模型以安全和受控的方式获取实时的网络信息。