DataSelf MCP+ Reference Guide

image-20260717-135108.png

Intro

DataSelf MCP+ connects an MCP-compatible AI client to your authorized DataSelf Data Warehouse and ETL+ environment. You can explore available entities, inspect warehouse objects and columns, and ask business questions using natural language.

Microsoft sign-in establishes your identity through OAuth 2.0. DataSelf permissions determine which entities and operations that identity can use. Warehouse queries and ETL actions have different capabilities: dw_run_query retrieves data through read-only SQL, while separate authorized ETL tools can change definitions or operate processes. See DataSelf Agentic ETL+ for the broader ETL workflow.

Key Concepts

  • Entities. A connection can expose several companies, divisions, or warehouses. Use etl_list_entity to find the entities available to the authenticated account, then use the returned Entity_Key as entity_key in tools that accept it. Select the intended entity explicitly instead of assuming the first entry is the right warehouse.

  • Per-entity access. Entity visibility and permission to use a particular tool are separate checks. Where the response includes AiAccess, interpret its capabilities as described below; do not infer warehouse access from metadata access.

  • Schema-qualified objects. Warehouse names use schema.object, such as dbo._T_Date. Discover the actual object and column names before composing SQL.

  • Warehouse queries. dw_run_query accepts one read-only SELECT statement, including a statement beginning with WITH and ending in SELECT. Its SQL validation excludes writes, DDL, stored-procedure execution, and multiple statements.

  • ETL operations. Supported ETL tools may read catalogue metadata, change ETL definitions, refresh source metadata, run scripts, or start and stop jobs. Check the specific tool's purpose, permissions, and side effects before approving it.

  • Bounded responses. Warehouse query results default to 1,000 rows and are capped at 10,000 rows. Responses around 500 KB can be truncated. A limited result is a sample or partial response, not a complete warehouse export.

Entity AI Access

Connections that return AiAccess report the following entity capabilities. These capabilities are independent: one does not imply another.

Value

Capability

Scope

MD

ETL+ catalogue metadata

Supported ETL metadata discovery, configuration/status lookup, and log-reading operations. This does not grant the dw_* warehouse tools.

TD

Data Warehouse access

The dw_* tools, including analytical object discovery, live warehouse column metadata, and read-only SQL queries.

AG

ETL actions

Supported changes and execution against the ETL+ environment, subject to the tool's requirements and the user's permissions. This is not an automatic grant of MD or TD.

No AI

No entity-scoped AI access

Do not select this entity for AI tool operations. Its presence in an entity list does not authorize a subsequent call.

Use the operation's actual permission requirements rather than its name alone; a tool that changes metadata is still a change operation. If a connection does not report access flags, ask the DataSelf administrator to confirm the required permissions. When returned, MetadataETLVersion identifies the ETL+ version that wrote the entity's metadata; it is not the MCP server or plugin package version.

SQL Server MCP — Setup Guide

Use the following four steps to connect an MCP-compatible client to the DataSelf service and begin with authorized warehouse exploration.

Prerequisites

  • A configured DataSelf Data Warehouse with MCP access enabled, whether hosted in the cloud, a private cloud, or on premises.

  • A Microsoft account provisioned for the intended DataSelf environment and entities.

  • A client that supports the server's remote MCP connection and OAuth flow.

  • The DataSelf permissions needed for the task: TD for warehouse tools, and the relevant separate permissions for ETL metadata or actions.

  1. Confirm access and the server URL.

  2. Add the MCP connection.

  3. Sign in and choose appropriate approvals.

  4. Explore and query the authorized data.

Step 1 — Confirm Access and Get the MCP Server URL

The shared DataSelf MCP server address is https://mcp.dataself.com. Your administrator or DataSelf account manager can confirm which Microsoft identity, DataSelf environment, entities, and capabilities are assigned to you.

Microsoft authentication does not itself grant access to every warehouse or ETL action. Confirm the intended entity and its DataSelf permissions before starting work.

Step 2 — Add a Custom MCP Connector in Your AI Assistant

Follow your client's documented flow for adding a remote MCP server. Enter the server address below and select OAuth authentication where the client requests it. The names of connection settings vary by client.

Field

Value

Name

A recognizable label, such as DataSelf.

Server URL

https://mcp.dataself.com

Authentication

OAuth with Microsoft sign-in.

Step 3 — Sign In With Your Microsoft Account (OAuth 2.0)

Start authentication from the MCP connection. Sign in to Microsoft with the account authorized for DataSelf, review the requested consent, and return to the client. Enter account credentials only in the identity provider's sign-in flow, not in an AI conversation. The MCP URL is a service endpoint rather than a standalone browser login form.

Use whoami to confirm the authenticated account and connection context. A client may retain an authorized session; sign in again when the client or your organization's policy requires it.

Grant tool access according to the task. For warehouse exploration, approve the required identity, entity, object, metadata, and read-only query calls. Where the client supports per-tool controls, scope them to those operations. Review the selected entity and SQL before approving a query.

Authorize ETL changes or process execution separately, after reviewing the target, proposed operation, and effects. Follow your organization's approval policy for production work. A broad client approval does not replace DataSelf authorization, and warehouse analysis does not require enabling every available ETL action.

Step 4 — Start Asking Questions

Begin with identity and entity discovery, then select the warehouse you intend to use. Useful requests include:

  • “Confirm my DataSelf connection and list the entities I can access.”

  • “Show the analytical objects in the entity I selected.”

  • “Inspect the actual columns and data types before writing a query.”

  • “Show a five-row calendar sample from an available table using one read-only query.”

  • “Use the discovered sales model to explain monthly sales for the period I specify.”

Base queries on discovered names and available business definitions. If the required entity, table, permission, or metric definition is missing, resolve that gap rather than guessing or switching to another company's data.

Tool Reference

The five tools below cover identity, entity discovery, and warehouse exploration. They do not describe every tool that an Agentic ETL connection may expose. The warehouse tools require the selected entity's warehouse capability; MD metadata access alone is insufficient.

whoami

Returns the authenticated user, user type, and connection metadata. Use it to confirm which identity and DataSelf environment the client is using. It does not establish permission to use every tool.

Parameters: none.

etl_list_entity

Lists the enabled entities available to the authenticated account, ordered by EntityID. Preserve the complete returned list and use its Entity_Key values in subsequent entity-scoped calls.

The core identity fields are Entity_Key, EntityID, and Name_Entity. Connections may also return MetadataETLVersion and AiAccess; interpret the latter using the entity access table.

Parameters: none.

dw_list_object

Reads the warehouse's analytical tables and views and returns schema-qualified names. The supported analytical object names begin with _D_, _F_, _T_, or _S_; this is not an inventory of every SQL Server object.

Parameter

Type

Required

Description

entity_key

integer

Optional

The target entity's key, obtained from etl_list_entity. Pass it explicitly when selecting among warehouses.

dw_describe_object

Reads the actual warehouse columns for a table or view. Use this live schema when constructing dw_run_query statements. ETL catalogue descriptions of how an object is built serve a different purpose from its current warehouse column definitions.

Parameter

Type

Required

Description

table_name

string

Required

The discovered schema.table or table name. If the schema is omitted, dbo is assumed.

entity_key

integer

Optional

The selected authorized entity's key.

dw_run_query

Runs one read-only T-SQL SELECT or WITH … SELECT statement. Validation rejects data-changing statements, DDL, SELECT … INTO, EXEC, and multiple statements. This restriction belongs to the warehouse query tool; it does not make separate ETL actions read-only.

Parameter

Type

Required

Description

sql

string

Required

The single read-only SQL statement.

entity_key

integer

Optional

The selected authorized entity's key.

limit

integer

Optional

Maximum returned rows. Default: 1,000. Maximum: 10,000.

When the query has no TOP clause, the tool adds a row bound. Keep queries filtered and request the rows needed for the task. Inspect truncation and row-count information before describing a result as complete.

Calendar example. First discover an authorized entity and confirm that it contains dbo._T_Date with the columns below. If those names are unavailable, use the actual discovered model instead of assuming the example applies. Pass the selected entity's returned Entity_Key as entity_key and use limit: 5.

SQL
SELECT TOP (5) [Date], [FYr], [FQtr], [FMo]
FROM [dbo].[_T_Date]
WHERE [Date] >= '2026-10-01'
  AND [Date] < '2026-10-06'
ORDER BY [Date] ASC

This illustrates a bounded, ordered query; it does not promise that every warehouse has the same calendar schema, fiscal values, or date coverage.

ETL Metadata and Actions

An authorized connection may expose additional tools for ETL catalogue discovery, job/status inspection, supported definition changes, source-metadata refreshes, script execution, and job operations. These can have side effects, including changes to warehouse data. Consult the current tool descriptions and Agentic ETL+ documentation for the supported operations. Metadata-reading access, warehouse-reading access, and permission to act are distinct.

Security & Access

  • Authentication and authorization. Microsoft sign-in authenticates the user; DataSelf permissions and entity capabilities determine access. Confirm the identity with whoami and resolve the intended entity with etl_list_entity.

  • Warehouse query validation. The dw_run_query path enforces its single read-only statement contract. Permissioned ETL tools are separate operations and may modify the environment.

  • Scoped approvals. Approve tools for the requested work and review proposed changes before authorizing execution. Client approvals do not expand the authenticated account's DataSelf permissions.

  • Entity boundaries. Do not select an entity lacking the capability required by a tool or attempt to bypass an access refusal. Missing scope should be addressed by the DataSelf administrator.

  • Result boundaries. Row and response-size limits constrain individual warehouse query results. Report partial or truncated responses accurately.

For data handling and user controls, read the DataSelf MCP+ Privacy Policy. The AI-assisted and agentic feature guide explains how tool availability, permissions, and human oversight affect supported operations.

Privacy Policy

See the DataSelf MCP+ Privacy Policyfor connector-specificDataSelf MCP+ Privacy Policyinformation andDataSelf MCP+ Privacy Policythe DataSelf Corporation Privacy Policy for the broader service policy.

Limits

The following limits apply to dw_run_query; they do not describe the effects or limits of separate ETL actions.

Limit

Value

Default returned rows

1,000 per query

Maximum returned rows

10,000 per query

Response size

Responses around 500 KB may be truncated.

Statement type

One read-only SELECT or WITH … SELECT statement

Target scope

The authenticated account's authorized entity and warehouse capability

Support

Email: info@dataself.com

Phone: 888-910-9802

Knowledge Base: kb.dataself.com

Website: www.dataself.com