MCP server · Audited from source
SAP Datasphere MCP server
by mariodefelipe/sap-datasphere-mcpMIT licenceAudited 8 Oct 2026 · source 8bb60c4d850b
Is it safe? With care — CAUTION, grade B (83/100). It exposes 21 tools: 20 read, 1 write and 0 destructive. The audit recorded 22 findings (0 critical, 0 high, 2 medium, 20 low). Maintainer's description: SAP Datasphere MCP Server - AI-powered access to SAP Datasphere APIs
Cite
Cite this page
ModelsAtlas. “SAP Datasphere MCP server (mariodefelipe/sap-datasphere-mcp)”. Retrieved 8 Oct 2026. https://modelsatlas.com/mcp/mariodefelipe/sap-datasphere
Trust audit
Audit 0.4.1 · full source read 8 Oct 2026
22 findings, listed below with the file and line each was found on. Grade A needs a sandboxed behavioural run too; this audit read the source only.
What the source does
- FilesystemDeclared1 observation
- NetworkDeclared6 observations
- ShellNone observedNothing seen in the source
- DependenciesNot pinnedSome ranges float
- SecretsNone foundNo keys in source
“Declared” means the server says it does this and the source agrees. Browser, file and shell access are expected of some kinds of server.
Five audit layers
| Layer | What we check | Result |
|---|---|---|
L0 Provenance | Repo owner, licence, archive status, activity | PASS 3 findings |
L1 Static source | Secrets, path traversal, supply chain | WARN 11 findings |
L2 Instructions | Prompt injection and authority framing in docs and tool descriptions | PASS 8 findings |
L3 Inventory | Declared tools match the source | PASS |
L4 Sandbox | Run in isolation and watch behaviour | SKIPPED |
Provenance & runtime
Who published it, and what the audit could and could not run
Provenance
- Repository owner
mariodefelipeUser accountAccount type recorded when we read the repository. - PackagePublished on npm
@mariodefe/sap-datasphere-mcpat version 2.0.3 - LicenceMITFrom the repository, as read at the audited commit.
- Last push3 days agoActivity of the repository when we read it.
- Source commit read8bb60c4d850bThe audit covers exactly this commit, read on 8 Oct 2026.
Runtime
- Sandbox runNot run yetThis audit read the source only; it did not execute the server.
- Tool inventory21 declaredRead from the source and classed read, write or destructive.
Every value here is read from the record's own repository and audit.Suggest a correction
Findings (22)
Sorted by severity
MEDIUMInformation disclosuredisclose.log_secret · auth/oauth_handler.py:203
logger.info(f"Access token acquired successfully (expires in {token.expires_in}s)")- Why
- No further detail recorded for this rule.
- Fix
- —
MEDIUMInformation disclosuredisclose.log_secret · auth/oauth_handler.py:283
logger.info(f"Token refreshed successfully (expires in {token.expires_in}s)")- Why
- No further detail recorded for this rule.
- Fix
- —
LOWFilesystem / pathfs.traversal · tests/test_input_validation.py:132
"SPACE/../../admin",
- Why
- No further detail recorded for this rule.
- Fix
- —
LOWFilesystem / pathfs.traversal · tests/test_input_validation.py:133
"../../etc/passwd",
- Why
- No further detail recorded for this rule.
- Fix
- —
LOWFilesystem / pathfs.traversal · tests/test_sdk_v2_protocol.py:136
return await c.call_tool("get_space_info", {"space_id": "SPACE/../../admin"})- Why
- No further detail recorded for this rule.
- Fix
- —
LOWNetwork egressnet.raw_ip · README.md:128
# Streamable HTTP on http://127.0.0.1:8080/mcp
- Why
- No further detail recorded for this rule.
- Fix
- —
LOWNetwork egressnet.raw_ip · README.md:152
curl -N -X POST http://127.0.0.1:8080/mcp/ \
- Why
- No further detail recorded for this rule.
- Fix
- —
LOWNetwork egressnet.raw_ip · tests/test_sdk_v2_protocol.py:221
base = f"http://127.0.0.1:{port}"- Why
- No further detail recorded for this rule.
- Fix
- —
LOWObfuscation / stealthobf.decode_call · tests/test_no_live_tenant_data.py:52
DENYLIST = [base64.b64decode(t).decode() for t in _DENIED_B64]
- Why
- No further detail recorded for this rule.
- Fix
- —
LOWSupply chainsupply.unpinned · requirements-dev.txt
pytest, pytest-asyncio, black, ruff, mypy, pre-commit
- Why
- 6 requirement(s) not pinned with ==
- Fix
- pin exact versions
LOWSupply chainsupply.unpinned · requirements.txt
mcp, fastapi, uvicorn, PyYAML
- Why
- 4 requirement(s) not pinned with ==
- Fix
- pin exact versions
LOWPrompt injectionprompt.authority_framing · AUTHORIZATION_FIX_COMPLETE.md:52
Administrative operations requiring elevated permissions:
- Why
- No further detail recorded for this rule.
- Fix
- —
LOWPrompt injectionprompt.authority_framing · OAUTH_PERMISSIONS_GUIDE.md:29
- **DW Space Administrator** - Full access to space data and APIs
- Why
- No further detail recorded for this rule.
- Fix
- —
LOWPrompt injectionprompt.credential_read · DEPLOYMENT.md:180
cat > .env << EOF
- Why
- asks the agent to read credentials
- Fix
- —
LOWPrompt injectionprompt.credential_read · OAUTH_REAL_CONNECTION_SETUP.md:74
Open `.env` in a text editor and fill in your actual values:
- Why
- asks the agent to read credentials
- Fix
- —
LOWPrompt injectionprompt.credential_read · OAUTH_REAL_CONNECTION_SETUP.md:119
The MCP server needs to be updated to load OAuth configuration from environment variables.
- Why
- asks the agent to read credentials
- Fix
- —
LOWPrompt injectionprompt.credential_read · OAUTH_REAL_CONNECTION_SETUP.md:137
1. Load `.env` configuration on startup
- Why
- asks the agent to read credentials
- Fix
- —
LOWPrompt injectionprompt.credential_read · OAUTH_REAL_CONNECTION_SETUP.md:161
# Load environment variables
- Why
- asks the agent to read credentials
- Fix
- —
LOWPrompt injectionprompt.transfer_instruction · EXACT_API_FLOW.md:10
POST https://ailien-test.authentication.eu20.hana.ondemand.com/oauth/token
- Why
- an instruction to move sensitive data to an outside destination
- Fix
- remove; a skill never needs the user's secrets off the machine
Tools it exposes
21 declared in source · 0 destructive
| Tool | Risk | What it does |
|---|---|---|
execute_query | write | Execute a SQL query against Datasphere data (simulated) |
get_analytical_metadata | read | Retrieve CSDL metadata for analytical consumption of a specific asset. Returns analytical schema with dimensions, measures, hierarchies, and aggregation information for BI and analytics integration. Automatically identifies analytical elements based on SAP annotations. |
get_analytical_service_document | read | Get the OData service document for a specific analytical asset. Returns the service root with available entity sets and their URLs. Lightweight endpoint to discover what data is available without retrieving full metadata. |
get_available_scopes | read | List available OAuth2 scopes for the current user, showing which scopes are granted and which are available but not granted. Includes scope descriptions and the token |
get_catalog_metadata | read | Get CSDL metadata for the SAP Datasphere catalog service. Retrieves the OData metadata document (CSDL XML) that describes the catalog service schema including entity types, properties, relationships, and available operations. Essential for understanding the catalog structure. |
get_consumption_metadata | read | Get CSDL metadata for SAP Datasphere consumption models. Retrieves the overall consumption service schema including entity types, properties, navigation relationships, and complex types. Essential for understanding the consumption layer structure and planning data integrations. |
get_current_user | read | Get authenticated user information including user ID, email, display name, roles, permissions, and account status. Use this to understand the current user |
get_relational_entity_metadata | read | Get detailed metadata for a specific relational entity including column definitions, data types, SQL type mappings, and ETL extraction capabilities. Optimized for data warehouse loading and transformation workflows. |
get_relational_metadata | read | Retrieve CSDL metadata for relational consumption of a specific asset. Returns complete schema information including tables, columns, data types, primary/foreign keys, and relationships for relational data access and ETL planning. Includes SQL type mapping. |
get_relational_odata_service | read | Get the OData service document for a relational asset showing available entity sets, navigation properties, function imports, and query capabilities. Essential for ETL planning and understanding data extraction options. |
get_repository_search_metadata | read | Get metadata for repository search capabilities. Retrieves information about searchable object types, searchable fields, available filters, and entity definitions. Essential for building advanced search queries and understanding repository structure. |
get_space_info | read | Get detailed information about a specific Datasphere space |
get_tenant_info | read | Retrieve SAP Datasphere tenant configuration and system information including tenant ID, region, version, license type, storage quota/usage, user count, space count, enabled features, and maintenance windows. Use this for system administration and capacity planning. |
list_analytical_datasets | read | List all available analytical datasets within a specific asset. Discovers analytical models that can be queried for business intelligence and reporting. Returns entity sets with their names, types, and URLs for data access. |
list_connections | read | List all data source connections and their status |
list_relational_entities | read | List all available relational entities (tables/views) within a specific SAP Datasphere asset for row-level data access and ETL operations. Returns OData entity sets that can be queried for detailed data extraction. |
list_spaces | read | List all Datasphere spaces with their status and metadata |
search_catalog | read | Universal search across all catalog items in SAP Datasphere using advanced search syntax. Supports searching across KPIs, assets, spaces, models, views, and tables. Use SCOPE:<scope_name> prefix for targeted searches. Boolean operators (AND, OR, NOT) supported. |
search_repository | read | Global search across all repository objects in SAP Datasphere. Search through tables, views, analytical models, data flows, and transformations. Provides comprehensive object discovery with lineage and dependency information. |
search_tables | read | Search for tables and views across Datasphere spaces |
test_connection | read | Test the connection to SAP Datasphere and verify OAuth authentication status. Use this tool to check if the MCP server can successfully connect to SAP Datasphere. |
Install
Package version 2.0.3 · audited commit 8bb60c4
Read the findings first. The most severe is Information disclosure (medium) at auth/oauth_handler.py.
One-click links open your editor with the config below filled in, exactly as the snippets show it, pinned to version 2.0.3. The audit covers commit 8bb60c4 only.
claude mcp add sap-datasphere-mcp --env DATASPHERE_CLIENT_SECRET=${DATASPHERE_CLIENT_SECRET} --env DATASPHERE_TOKEN_URL=${DATASPHERE_TOKEN_URL} --env MCP_HTTP_AUTH_TOKEN=${MCP_HTTP_AUTH_TOKEN} -- npx -y @mariodefe/[email protected]{
"mcpServers": {
"sap-datasphere-mcp": {
"command": "npx",
"args": [
"-y",
"@mariodefe/[email protected]"
],
"env": {
"DATASPHERE_CLIENT_SECRET": "${DATASPHERE_CLIENT_SECRET}",
"DATASPHERE_TOKEN_URL": "${DATASPHERE_TOKEN_URL}",
"MCP_HTTP_AUTH_TOKEN": "${MCP_HTTP_AUTH_TOKEN}"
}
}
}
}The command pins the package version recorded in the source (2.0.3); the audit covers commit 8bb60c4d850b. Transport: stdio · streamable-http. Reads these environment variables: DATASPHERE_CLIENT_SECRET, DATASPHERE_TOKEN_URL, MCP_HTTP_AUTH_TOKEN. Give it the narrowest token it needs.
Audit history
- !CAUTION B 83 / 100
First audit ·
8bb60c4d850b
README badge
For maintainers · updates on every re-audit
[](https://modelsatlas.com/mcp/mariodefelipe/sap-datasphere/)
The badge always shows the latest audit; a maintainer cannot pin an old verdict.
Other ratings
Cited, never blended into our score
No third-party security ratings are recorded for this server yet. When they exist they appear here with their source and date, beside, not inside, our grade.
Questions about SAP Datasphere MCP server
What is the SAP Datasphere MCP server?
What tools does SAP Datasphere expose?
Is SAP Datasphere safe to connect to an agent?
What credentials does SAP Datasphere need?
How does SAP Datasphere run?
How current is this page?
Sources
- mariodefelipe/sap-datasphere-mcp on GitHub — the source we read, its licence, stars and activityObserved · 8 Oct 2026
- ModelsAtlas trust audit — CAUTION verdict for commit 8bb60c4d850bObserved · 8 Oct 2026
Spotted something wrong? Report a correction · Methodology
Keep going in your AI
Opens with this page as the source. We add nothing else to the prompt.
- What is the SAP Datasphere MCP server?
- What tools does SAP Datasphere expose?
- Is SAP Datasphere safe to connect to an agent?