mcp-sac-tools
Click on "Deploy 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., "@mcp-sac-tools List all users"
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.
mcp-sac-tools
MCP (Model Context Protocol) server for SAP Analytics Cloud — enables AI assistants to interact with SAC stories, models, data, users, and audit logs via the SAC REST API.
27 tools across 7 categories: stories, data export, data import, user/team management (SCIM 2.0), audit, resources, and diagnostics.
Features
Stories & Resources
sac_list_stories / sac_get_story — Browse stories with optional model metadata
sac_list_resources / sac_get_resource — List content resources (stories, models, folders)
Data Export (Read)
sac_list_models — List all models/providers on the tenant
sac_get_model_metadata — Get model schema (dimensions, measures, types)
sac_read_fact_data — Query fact data with OData filtering, paging, column selection
sac_read_master_data — Read dimension member master data
sac_read_audit_data — Read model-level change logs
Data Import (Write)
sac_create_import_job — Allocate a staging area for data import
sac_post_import_data — Push rows to staging (does not touch model yet)
sac_validate_import — Validate staged data before committing
sac_run_import — Execute import (async)
sac_import_status — Check import job progress
sac_import_invalid_rows — Retrieve rejected rows
User & Team Management (SCIM 2.0)
sac_list_users / sac_get_user / sac_create_user / sac_update_user / sac_delete_user
sac_list_teams / sac_get_team / sac_create_team / sac_update_team / sac_delete_team
Audit & Diagnostics
sac_export_audit_activities — Export tenant audit/login activities
sac_server_status — MCP server health check
Related MCP server: SAP Datasphere MCP Server
Prerequisites
SAP Analytics Cloud tenant with API access enabled
OAuth 2.0 client configured in SAC (Administration → App Integration → OAuth Clients)
Grant type: Client Credentials
Note down: Client ID, Client Secret, Token URL
Node.js v18+
Setup
# Install dependencies
npm install
# Copy and fill in your credentials
cp .env.example .env
# Edit .env with your SAC tenant details
# Build
npm run build
# Test with MCP Inspector
npm run inspectConfiguration
Environment Variables
Variable | Required | Description |
| Yes | SAC tenant URL (e.g. |
| Yes | OAuth token endpoint (e.g. |
| Yes | OAuth client ID |
| Yes | OAuth client secret |
| No | Cache TTL in seconds (default: 300) |
| No | Log level: info, debug, error (default: info) |
Claude Desktop
Add to claude_desktop_config.json:
{
"mcpServers": {
"sap-analytics-cloud": {
"command": "node",
"args": ["c:\\path\\to\\mcp-sac-tools\\dist\\index.js"],
"env": {
"SAC_TENANT_URL": "https://mytenant.eu10.sapanalytics.cloud",
"SAC_TOKEN_URL": "https://mytenant.authentication.eu10.hana.ondemand.com/oauth/token",
"SAC_CLIENT_ID": "your-client-id",
"SAC_CLIENT_SECRET": "your-client-secret"
}
}
}
}Example Usage
"Show me all stories" → calls sac_list_stories
"What data is in the Revenue model?" → calls sac_list_models → sac_get_model_metadata → sac_read_fact_data
"List all users" → calls sac_list_users
"Import this sales data into model X" → calls sac_create_import_job → sac_post_import_data → sac_validate_import → sac_run_import
Architecture
src/
├── index.ts # Entry point (stdio transport)
├── server.ts # Server factory (wires APIs → handlers)
├── auth/
│ ├── oauth.ts # OAuth 2.0 client credentials
│ └── token-manager.ts # Token caching with auto-refresh
├── api/
│ ├── sac-client.ts # Authenticated HTTP client (CSRF handling)
│ ├── stories.ts # /api/v1/stories
│ ├── data-export.ts # /api/v1/dataexport (OData CDI)
│ ├── data-import.ts # /api/v1/dataimport
│ ├── scim.ts # /api/v1/scim2
│ ├── audit.ts # /api/v1/audit
│ └── resources.ts # /api/v1/Resources
├── handlers/
│ ├── BaseHandler.ts # Abstract base (jsonResponse/errorResponse)
│ ├── StoryHandlers.ts
│ ├── DataExportHandlers.ts
│ ├── DataImportHandlers.ts
│ ├── ScimHandlers.ts
│ ├── AuditHandlers.ts
│ ├── ResourceHandlers.ts
│ └── DiagnosticHandlers.ts
├── cache/
│ └── cache-manager.ts # TTL-based in-memory cache
└── types/
└── sac.ts # TypeScript interfacesContributing
Fork the repository
Create a feature branch (
git checkout -b feature/my-feature)Commit your changes (
git commit -am 'Add my feature')Push to the branch (
git push origin feature/my-feature)Open a Pull Request
License
ISC — see LICENSE for details.
Available Tools
34 toolssac_create_import_jobA
Create a new data import job for a model. This allocates a staging area. Specify dataType='factData' (default) or 'masterData'. Returns a jobId for subsequent operations.
Inputs: modelId (required), dataType, dimensionName.
sac_create_teamB
Create a new team in SAC with optional initial members.
Inputs: displayName (required), memberIds.
sac_create_userC
Create a new user in SAC.
Inputs: userName (required), email, active, givenName, +2 more.
sac_delete_teamB
Delete a team from SAC.
Inputs: teamId (required).
sac_delete_userA
Delete a user from SAC. This action cannot be undone.
Inputs: userId (required).
sac_diagnose_tokenA
Mint a fresh OAuth token (bypassing the cache) and report its decoded JWT payload — scopes, authorities, audience, expiry. Use this to verify that an OAuth client scope change has propagated to the issued bearer token. Never returns the raw token; only a 16-char prefix for traceability.
Inputs: no named parameters.
sac_export_audit_activitiesB
Export audit/login activities from the SAC tenant. Filter by date range and activity type. Useful for compliance and monitoring.
Inputs: to, from, pageSize, pageNumber, +1 more.
sac_export_downloadA
Download the result package of a completed Content Network export job. Returns base64-encoded bytes plus size and content type. The package is typically a TGZ archive containing the story definition.
Inputs: jobId (required), downloadUrl (required).
sac_export_statusA
Get the current status of a Content Network export job. Returns status, progress, and (when complete) the downloadUrl.
Inputs: jobId (required).
sac_export_story_startA
Start a Content Network export job for a story (or other resource type). Returns the jobId. Use sac_export_status to poll until COMPLETED, then sac_export_download to fetch the package.
Inputs: storyId (required), resourceType.
sac_get_model_metadataA
Get the metadata/schema of a model — dimensions, measures, and data types. Use a model ID from sac_list_models.
Inputs: modelId (required).
sac_get_resourceB
Get details of a specific content resource by ID.
Inputs: resourceId (required).
sac_get_storyC
Get details of a specific story by its ID, including associated models.
Inputs: storyId (required), includeModels.
sac_get_story_contentA
End-to-end: start an export job for a story, poll until complete, then download the package. Returns the export package as base64 bytes plus job metadata. Defaults to a 60-second wait; raise maxWaitSeconds for large stories.
Inputs: storyId (required), maxWaitSeconds, pollIntervalMs.
sac_get_story_detailA
Fetch the structural pages and widgets of a story via the Resources('id')/storyPages OData navigation. Returns the parsed payload when JSON, otherwise the raw body and content type so the caller can decide on next steps. Use this when sac_get_story metadata is not enough — e.g. to inspect widget definitions or page layouts.
Inputs: storyId (required), rawBody, maxRawChars.
sac_get_story_model_mappingB
Resolve the link between a SAC story and its underlying source model/CDS view name. Cross-references embedded model descriptions from the Stories API with the data export provider list to identify the source model name (e.g. CDS view or BW query). Also infers the source system type (S4, BW, SAC_IMPORT) from naming conventions.
Inputs: storyId (required).
sac_get_teamA
Get details of a specific team including its members.
Inputs: teamId (required).
sac_get_userB
Get details of a specific user by their SCIM user ID.
Inputs: userId (required).
sac_import_invalid_rowsB
Get the invalid/rejected rows from a validated import job.
Inputs: jobId (required), modelId (required), dataType, dimensionName.
sac_import_statusC
Check the status of an import job.
Inputs: jobId (required), modelId (required), dataType, dimensionName.
sac_list_modelsA
List all available models (providers) in the SAC tenant. Returns model IDs and descriptions.
Inputs: no named parameters.
sac_list_resourcesB
List content resources (stories, models, folders, etc.) in the SAC tenant. Can filter by type or parent folder.
Inputs: top, skip, parentId, resourceType.
sac_list_storiesB
List all stories in the SAP Analytics Cloud tenant. Optionally include model information used by each story.
Inputs: includeModels.
sac_list_teamsC
List teams (groups) in the SAC tenant.
Inputs: count, filter, startIndex.
sac_list_usersA
List users in the SAC tenant. Supports SCIM filtering (e.g. filter='userName eq "john"').
Inputs: count, filter, startIndex.
sac_post_import_dataA
Post rows of data to an import job's staging area. Data does not touch the model until the job is run. Rows should be an array of objects with column names as keys.
Inputs: rows (required), jobId (required), modelId (required), dataType, +1 more.
sac_read_audit_dataB
Read audit/change log data for a model. Shows who changed what data and when.
Inputs: modelId (required), top, skip, filter.
sac_read_fact_dataA
Read fact data from a model. Supports OData query options: $top, $skip, $filter, $select, $orderby. Returns rows as JSON.
Inputs: modelId (required), top, skip, filter, +2 more.
sac_read_master_dataB
Read master data for a specific dimension from a model. Returns dimension members with attributes.
Inputs: modelId (required), dimensionName (required), top, skip, +1 more.
sac_run_importA
Execute the import — moves data from staging into the model. Runs asynchronously. Use sac_import_status to check progress.
Inputs: jobId (required), modelId (required), dataType, dimensionName.
sac_server_statusA
Check the MCP server status including uptime and connection configuration (no secrets exposed).
Inputs: no named parameters.
sac_update_teamA
Update a team — change its name or replace its member list.
Inputs: teamId (required), memberIds, displayName.
sac_update_userC
Update an existing user's attributes.
Inputs: userId (required), email, active, givenName, +2 more.
sac_validate_importA
Validate the staged data in an import job. Returns validation result including any rejected rows.
Inputs: jobId (required), modelId (required), dataType, dimensionName.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 34 tools
Each tool has a clearly distinct purpose, with descriptive names and descriptions that avoid overlap. For instance, story tools are split into get_story (metadata), get_story_detail (structure), and export tools (export pipeline), while import tools cover the full staging-to-execution workflow.
All tools follow the consistent pattern 'sac_verb_noun' (e.g., sac_list_users, sac_create_team, sac_read_fact_data). Verbs are standard and descriptive, making tool purpose immediately clear.
With 34 tools, the set is comprehensive but slightly above the typical range for a single-purpose server. However, the count is justified by the variety of domains covered (users, teams, stories, models, imports, resources, audits, utilities).
The tool surface covers core CRUD for users and teams, story export and detail inspection, model data access and import pipeline, plus resource listing and diagnostics. Missing are story update/delete and permission management, but the primary data operations are well-covered.
Related MCP Connectors
MCP server unifying ERPs, CRMs, APIs and knowledge base for Claude, ChatGPT and Gemini.
Cloud-hosted MCP server for secure AI access to enterprise data sources via CData Connect AI.
MCP server that lets AI assistants use all OneSchema features exposed via the public API.
MCP server exposing klokin time-tracking operations (employees, time entries, stores) to AI clients.
Related MCP Servers
- FlicenseBqualityNot gradedmaintenanceAn MCP server that enables AI assistants to interact with SAP systems via the ABAP Development Tools (ADT) REST API. It allows users to read ABAP source code, inspect DDIC objects, and execute SQL queries directly.66-
- AlicenseAqualityCmaintenanceProduction-ready MCP server that enables AI assistants to seamlessly interact with SAP Datasphere environments for real tenant data discovery, metadata exploration, analytics operations, ETL data extraction, database user management, data lineage analysis, and column-level data profiling.39114 npm333 PyPI51MIT
- 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 gradedqualityCmaintenanceA 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.33MIT