SAP Analytics Cloud MCP Server
Provides tools for interacting with SAP Analytics Cloud's REST API, enabling management of stories and resources, data import/export, multi actions, calendar events, content transport, users and teams, monitoring, schedules and publications, translations, and smart queries with per-user OAuth SSO.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
SAP Analytics Cloud MCP Server
Forked from JumenEngels/sap_analytics_cloud_mcp.
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
Each person signs in to SAC as themselves with corporate SSO (OAuth 2.0 Authorization Code grant), so every call runs with that person's SAC permissions. The server manages tokens, refresh, 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, sac_login / sac_logout sign-in tools, and Prompt support for guided workflows.
Related MCP server: SAP MCP Server
Prerequisites
Node.js >= 18.0 (required for native
fetchandHeaders.getSetCookie)npm
An SAP Analytics Cloud tenant with an Authorization Code OAuth client (see below).
A browser on the same machine as the server, for the SSO sign-in.
SAC Tenant Setup (admin, once per tenant)
Open your SAC tenant and go to System > Administration > App Integration > Add a New OAuth Client.
Set Purpose to Interactive Usage.
Set Authorization Grant to Authorization Code, keep it Confidential, and enter a Secret.
Set Redirect URI to
http://localhost:8765/callback(or the value you will put inSAC_REDIRECT_URI; it must match exactly).Set Token Lifetime and Refresh Token Lifetime. The refresh token lifetime is how long a user stays signed in before SSO is needed again.
Note down these values (the URLs are listed at the top of the App Integration page):
Base URL --
https://<tenant>.<datacenter>.sapanalytics.cloudToken URL
Authorization URL
Client ID
Client Secret
The Client ID and Secret only identify this app to SAC. They grant nothing on their own: data access comes from the person who signs in.
Sign in (each user)
Put the variables from the Configuration section in a .env file in the repo root (it is gitignored), then:
node --env-file=.env build/index.js loginA browser window opens at your SAC tenant, which hands you to the corporate IdP for SSO. After you sign in, the tokens are stored in your user profile under ~/.sac-mcp/ and refreshed silently. If you skip this step, the first SAC tool call opens the browser for you and asks you to retry; the sac_login tool does the same and waits. node build/index.js logout (or sac_logout) deletes the stored tokens.
Installation & Build
git clone https://github.com/dane-hd/sac-mcp
cd sac-mcp
npm install
npm run buildQuick 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 setupThis 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 startThe 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 these environment variables at runtime:
Variable | Required | Description | Example |
| yes | Tenant root URL |
|
| yes | OAuth token endpoint |
|
| yes | Client ID of the Authorization Code OAuth client |
|
| yes | Secret of that OAuth client |
|
| no | Authorization URL. Default: |
|
| no | Redirect URI registered on the OAuth client. Must be on |
MCP Client Configuration
Claude Desktop
To automatically generate a configuration file with the correct absolute path:
npm run setupThis 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 environment variables above 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 RegionPrompts
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-serverDevelopment
Watch mode recompiles on every file change:
npm run devSecurity Notes
Write Operations: All tools that modify data require
allowalteration=trueargument.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Query your warehouse or a CSV with Claude/ChatGPT over MCP, governed by table-level ACL + audit.
Unified MCP Server is a remote MCP connector for AI agents and vertical AI products that provides access to 22,000+ authorized SaaS tools across 400+ integrations and 24 categories directly inside LLMs (Claude, GPT, Gemini, Cohere). Tools operate only on explicitly authorized customer connections, enabling agents to safely read and write against live third-party systems.
Query your org's data in natural language — read-only MCP access to SQL, NoSQL, files & warehouses.
Governed data discovery, exact queries, decisions, simulations, and runtime utilities over MCP.
Related MCP Servers
- AlicenseCqualityDmaintenanceEnables 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.29021MIT
- AlicenseNot gradedqualityAmaintenanceEnables AI assistants to securely connect with SAP ABAP and BTP services, allowing execution of function modules, BAPIs, table reads, and various BTP operations through MCP.1Apache 2.0
- AlicenseAqualityDmaintenanceMCP server for SAP Analytics Cloud, enabling AI assistants to interact with SAC stories, models, data, users, and audit logs via the SAC REST API.34ISC
- -licenseNot gradedqualityCmaintenanceMCP server for SAP Datasphere that enables AI assistants to perform data discovery, metadata exploration, analytics queries, ETL data extraction, database user management, and data profiling with built-in PII masking.-