Live survey315 models · 14 providers · 23,592 auditsAudited implement · SAFE →What changedHow we verifyllms.txt

MCP server · Audited from source

SAP Datasphere MCP server

by mariodefelipe/sap-datasphere-mcpMIT licenceAudited 8 Oct 2026 · source 8bb60c4d850b

npm @mariodefe/sap-datasphere-mcp 2.0.3stdiostreamable-http★ 48
!CAUTIONGrade B · 83/100 · 8 Oct 2026 · 8bb60c4
48GitHub stars

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

Ask an AI about this pageGChatGPTCClaudePPerplexityGeGeminiXGrok
More
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

Trust score83/100!CAUTION B
0 critical0 high2 medium20 low0 info

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

LayerWhat we checkResult
L0 ProvenanceRepo owner, licence, archive status, activityPASS 3 findings
L1 Static sourceSecrets, path traversal, supply chainWARN 11 findings
L2 InstructionsPrompt injection and authority framing in docs and tool descriptionsPASS 8 findings
L3 InventoryDeclared tools match the sourcePASS
L4 SandboxRun in isolation and watch behaviourSKIPPED

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-mcp at 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
F-12 Information disclosureCWE-209 · CWE-532Layer L1
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
F-12 Information disclosureCWE-209 · CWE-532Layer L1
logger.info(f"Token refreshed successfully (expires in {token.expires_in}s)")
Why
No further detail recorded for this rule.
Fix
—
LOWInventory / provenanceinv.hidden_file · .pre-commit-config.yaml
F-13 Inventory / provenanceCWE-1104Layer L0
.pre-commit-config.yaml
Why
hidden member outside the usual dotfiles
Fix
review its purpose
LOWInventory / provenanceinv.hidden_file · .ruff.toml
F-13 Inventory / provenanceCWE-1104Layer L0
.ruff.toml
Why
hidden member outside the usual dotfiles
Fix
review its purpose
LOWInventory / provenanceinv.hidden_file · .secrets.baseline
F-13 Inventory / provenanceCWE-1104Layer L0
.secrets.baseline
Why
hidden member outside the usual dotfiles
Fix
review its purpose
LOWFilesystem / pathfs.traversal · tests/test_input_validation.py:132
F-05 Filesystem / pathCWE-22 · CWE-59Layer L1
"SPACE/../../admin",
Why
No further detail recorded for this rule.
Fix
—
LOWFilesystem / pathfs.traversal · tests/test_input_validation.py:133
F-05 Filesystem / pathCWE-22 · CWE-59Layer L1
"../../etc/passwd",
Why
No further detail recorded for this rule.
Fix
—
LOWFilesystem / pathfs.traversal · tests/test_sdk_v2_protocol.py:136
F-05 Filesystem / pathCWE-22 · CWE-59Layer L1
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
F-04 Network egressCWE-200 · CWE-319Layer L1
# 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
F-04 Network egressCWE-200 · CWE-319Layer L1
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
F-04 Network egressCWE-200 · CWE-319Layer L1
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
F-07 Obfuscation / stealthCWE-506 · CWE-94Layer L1
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
F-08 Supply chainCWE-829 · CWE-1357Layer L1
pytest, pytest-asyncio, black, ruff, mypy, pre-commit
Why
6 requirement(s) not pinned with ==
Fix
pin exact versions
LOWSupply chainsupply.unpinned · requirements.txt
F-08 Supply chainCWE-829 · CWE-1357Layer L1
mcp, fastapi, uvicorn, PyYAML
Why
4 requirement(s) not pinned with ==
Fix
pin exact versions
LOWPrompt injectionprompt.authority_framing · AUTHORIZATION_FIX_COMPLETE.md:52
F-01 Prompt injectionCWE-94 · CWE-1427Layer L2
Administrative operations requiring elevated permissions:
Why
No further detail recorded for this rule.
Fix
—
LOWPrompt injectionprompt.authority_framing · OAUTH_PERMISSIONS_GUIDE.md:29
F-01 Prompt injectionCWE-94 · CWE-1427Layer L2
- **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
F-01 Prompt injectionCWE-94 · CWE-1427Layer L2
cat > .env << EOF
Why
asks the agent to read credentials
Fix
—
LOWPrompt injectionprompt.credential_read · OAUTH_REAL_CONNECTION_SETUP.md:74
F-01 Prompt injectionCWE-94 · CWE-1427Layer L2
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
F-01 Prompt injectionCWE-94 · CWE-1427Layer L2
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
F-01 Prompt injectionCWE-94 · CWE-1427Layer L2
1. Load `.env` configuration on startup
Why
asks the agent to read credentials
Fix
—
LOWPrompt injectionprompt.credential_read · OAUTH_REAL_CONNECTION_SETUP.md:161
F-01 Prompt injectionCWE-94 · CWE-1427Layer L2
# Load environment variables
Why
asks the agent to read credentials
Fix
—
LOWPrompt injectionprompt.transfer_instruction · EXACT_API_FLOW.md:10
F-01 Prompt injectionCWE-94 · CWE-1427Layer L2
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

20 read1 write0 destructive
ToolRiskWhat it does
execute_querywriteExecute a SQL query against Datasphere data (simulated)
get_analytical_metadatareadRetrieve 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_documentreadGet 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_scopesreadList 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_metadatareadGet 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_metadatareadGet 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_userreadGet authenticated user information including user ID, email, display name, roles, permissions, and account status. Use this to understand the current user
get_relational_entity_metadatareadGet 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_metadatareadRetrieve 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_servicereadGet 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_metadatareadGet 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_inforeadGet detailed information about a specific Datasphere space
get_tenant_inforeadRetrieve 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_datasetsreadList 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_connectionsreadList all data source connections and their status
list_relational_entitiesreadList 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_spacesreadList all Datasphere spaces with their status and metadata
search_catalogreadUniversal 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_repositoryreadGlobal 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_tablesreadSearch for tables and views across Datasphere spaces
test_connectionreadTest 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]

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

  1. !CAUTION B 83 / 100

    First audit · 8bb60c4d850b

README badge

For maintainers · updates on every re-audit

ModelsAtlas: CAUTION BMODELSATLASCAUTION · B
[![ModelsAtlas: CAUTION B](https://modelsatlas.com/mcp/mariodefelipe/sap-datasphere/badge.svg)](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?
SAP Datasphere MCP Server - AI-powered access to SAP Datasphere APIs
What tools does SAP Datasphere expose?
21 in total: 20 read-only, 1 that write, and 0 that can delete or overwrite. Every one is listed on this page with its risk.
Is SAP Datasphere safe to connect to an agent?
With care. The audit graded it B (83/100) and found 22 things worth knowing before you trust this server, listed below with the exact line each was found on.
What credentials does SAP Datasphere need?
It reads DATASPHERE_CLIENT_SECRET, DATASPHERE_TOKEN_URL and MCP_HTTP_AUTH_TOKEN from the environment. Give it a token scoped to the least it needs — an agent that can be talked into calling a tool can be talked into calling it with your credentials.
How does SAP Datasphere run?
It speaks stdio and streamable-http, so it runs as a local process your client starts. It is published on npm as @mariodefe/sap-datasphere-mcp at 2.0.3.
How current is this page?
The grade is for one exact copy of the source (8bb60c4d850b), read on 2026-10-08. The repository is watched and re-audited when it changes.

Sources

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.