List all available SAP Datasphere MCP tools with descriptions and usage examples
Provides 45 tools for SAP Datasphere tenant management, data discovery, and analytics.
/plugin marketplace add secondsky/sap-skills/plugin install sap-datasphere@sap-skillsDisplay available MCP tools for SAP Datasphere integration.
The SAP Datasphere MCP Server (@mariodefe/sap-datasphere-mcp) provides 45 tools for direct tenant interaction.
GitHub: https://github.com/MarioDeFelipe/sap-datasphere-mcp Package: npm install -g @mariodefe/sap-datasphere-mcp
Purpose: Verify connectivity to SAP Datasphere tenant Returns: Connection status, latency, tenant URL Use when: Setting up MCP integration, troubleshooting connectivity
Purpose: Get authenticated user details Returns: User ID, email, permissions, authentication status Use when: Verifying authentication, checking user context
Purpose: Retrieve tenant configuration and capabilities Returns: Tenant URL, version, features, region Use when: Discovering tenant features, checking version compatibility
Purpose: List available permission scopes Returns: Scopes array with descriptions Use when: Understanding permission model, configuring OAuth clients
Purpose: Discover all spaces in tenant Returns: Space names, IDs, storage info, owners Use when: Finding available spaces, discovering data domains
Purpose: Search business catalog for objects Returns: Matching objects with metadata Use when: Finding existing views, tables, models by name or description
Purpose: Find data assets by column name Returns: Objects containing specified column Use when: Discovering which tables/views contain specific columns
Purpose: Profile data distribution in columns Returns: Statistics, distinct values, nulls, distribution Use when: Data quality analysis, understanding data patterns
Purpose: Retrieve detailed asset metadata Returns: Complete object definition, lineage, usage Use when: Deep dive into object structure and dependencies
Purpose: Get space configuration and settings Returns: Storage allocation, members, permissions, priority Use when: Understanding space setup, auditing configuration
Purpose: List all objects in a space Returns: Tables, views, models, flows by type Use when: Discovering space content, cataloging objects
Purpose: Review space access controls Returns: User permissions, role assignments Use when: Auditing security, understanding access levels
Purpose: Create new database user Parameters: Username, password, permissions Use when: Setting up technical users, ETL accounts
Purpose: Modify database user properties Parameters: Username, new permissions Use when: Changing user permissions, updating configuration
Purpose: Remove database user Parameters: Username Use when: Deprovisioning users, cleanup
Purpose: Reset database user password Parameters: Username Returns: New password (encrypted) Use when: Password recovery, security incidents
Purpose: List all database users Returns: Usernames, permissions, status Use when: Auditing users, permission review
Purpose: Get table structure and properties Returns: Columns, data types, keys, partitions Use when: Designing integrations, understanding table structure
Purpose: Get view definition and dependencies Returns: SQL definition, source tables, columns Use when: Understanding view logic, tracing lineage
Purpose: Get analytic model structure Returns: Dimensions, measures, associations, variables Use when: Building SAC stories, understanding model capabilities
Purpose: Get comprehensive entity information Returns: Full metadata, relationships, lineage Use when: Detailed analysis, documentation generation
Purpose: Query analytic models for consumption Parameters: Model name, filters, dimensions, measures Returns: Aggregated data Use when: Testing analytic models, validating calculations
Purpose: Get analytic model definition Returns: Model structure, available dimensions/measures Use when: Building queries, understanding model capabilities
Purpose: Run SQL queries with aggregation support Parameters: SQL statement Returns: Query results with automatic aggregation Use when: Ad-hoc analysis, testing transformations
Purpose: Sample data from tables/views Parameters: Object name, row limit Returns: Sample rows Use when: Quick data inspection, validation
Purpose: Query relational data efficiently Parameters: Entity name, filters Returns: Relational data without aggregation Use when: ETL operations, data extraction
Purpose: Run SQL queries via OData Parameters: SQL statement Returns: Query results Use when: Standard SQL operations, data retrieval
Purpose: Extract large datasets Parameters: Source, filters, batch size Returns: Data in batches Use when: Migrating data, large-scale exports
Purpose: Stream data for real-time processing Parameters: Source, streaming configuration Returns: Data stream Use when: Real-time pipelines, continuous processing
Purpose: AI-powered semantic search across catalog Parameters: Natural language query Returns: Relevant objects ranked by relevance Use when: Finding objects by description, fuzzy search
Purpose: Fast object lookup by name Parameters: Object name (exact or partial) Returns: Matching objects Use when: Quick navigation, autocomplete scenarios
Configure environment variables (create .env file):
DATASPHERE_BASE_URL=https://your-tenant.eu10.hcs.cloud.sap
DATASPHERE_CLIENT_ID=your-oauth-client-id
DATASPHERE_CLIENT_SECRET=your-oauth-client-secret
DATASPHERE_TOKEN_URL=https://your-tenant.authentication.eu10.hana.ondemand.com/oauth/token
Type: OAuth 2.0 Client Credentials Token Refresh: Automatic (60 seconds before expiration) Storage: Encrypted with Fernet encryption Permissions: Based on OAuth scope (READ, WRITE, ADMIN, SENSITIVE)
Use MCP tool test_connection to verify Datasphere tenant connectivity
Result: Connection OK, latency 45ms, tenant version 2025.24
Use MCP tool execute_smart_query with SQL: SELECT REGION, SUM(REVENUE) FROM fact_sales GROUP BY REGION
Result: Aggregated sales by region
Use MCP tool create_database_user to create ETL_READER with READ permissions
Result: User created, credentials returned
Use MCP tool find_assets_by_column to find all objects containing CUSTOMER_ID
Result: List of tables/views with CUSTOMER_ID column
Use MCP tool preview_data from table dim_product with limit 10
Result: First 10 rows of product dimension
| Operation Type | Response Time | Notes |
|---|---|---|
| Metadata queries | < 100ms | Cached |
| Catalog queries | 100-500ms | Indexed search |
| OData queries | 500-2,000ms | Depends on data volume |
| Batch operations | Varies | Up to 50,000 records |
Common errors and solutions:
Authentication Failed:
Connection Timeout:
Permission Denied:
datasphere-modeler:
datasphere-integration-advisor:
datasphere-admin-helper:
Run diagnostics:
npx @mariodefe/sap-datasphere-mcp --test
Enable debug mode (add to .env):
LOG_LEVEL=debug
Check MCP server status:
# From Claude Code, use:
/mcp
Real-World Use Cases: For comprehensive examples of how these MCP tools are used in practice, see:
Total ROI: $159,100+/year for mid-sized teams
Each use case includes: