datanika-mcp

v0.2.0
io.datanika/datanika-mcp Checked 22 hours ago Published 4 months ago

Read-only-by-default MCP for Datanika: browse data, run dbt transforms, manage ELT pipelines.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

get_agent_tiers

Get the 5-tier agent capability stack — describes what the API can do.

get_connection_types

List all supported connection types with their config schemas.

list_connections

List all connections in the organization.

get_connection

Get details of a specific connection by ID.

ParameterTypeDescription
connection_id *integer

introspect_connection

List schemas and tables of a source connection. Args: connection_id: The connection to introspect. schema: Optional schema name to filter tables.

ParameterTypeDescription
connection_id *integer
schema

preview_connection

Preview the first N rows of a table from a source connection. Args: connection_id: The connection to query. table: Table name to preview. schema: Optional schema name. limit: Max rows to return (default 100).

ParameterTypeDescription
connection_id *integer
table *string
limitinteger
schema

query_connection

Execute a read-only SQL query against a source connection. Args: connection_id: The connection to query. query: A single SELECT statement (no mutations allowed).

ParameterTypeDescription
connection_id *integer
query *string

compile_transformation

Compile a dbt transformation — resolves Jinja, ref(), source(). No execution. Args: transformation_id: The transformation to compile.

ParameterTypeDescription
transformation_id *integer

preview_transformation

Compile and execute a transformation, returning preview rows. Args: transformation_id: The transformation to preview. limit: Max rows to return (default 100, max 1000).

ParameterTypeDescription
transformation_id *integer
limitinteger

list_uploads

List all uploads (extract + load jobs) in the organization.

list_pipelines

List all pipelines (dbt transform orchestration) in the organization.

list_transformations

List all dbt transformations in the organization.

list_runs

List pipeline/upload/transformation runs with optional filters. Args: target_type: Filter by type — 'upload', 'pipeline', or 'transformation'. status: Filter by status — 'pending', 'running', 'success', 'failed', 'cancelled'. limit: Max results (default 50, max 200).

ParameterTypeDescription
limitinteger
status
target_type

get_run

Get details of a specific run by ID. Args: run_id: The run ID to look up.

ParameterTypeDescription
run_id *integer

get_run_logs

Get the logs of a specific run. Args: run_id: The run ID whose logs to fetch.

ParameterTypeDescription
run_id *integer

list_catalog

List all catalog entries (source tables and dbt models).

get_catalog_entry

Get details of a specific catalog entry. Args: entry_id: The catalog entry ID.

ParameterTypeDescription
entry_id *integer

create_connection

Create a new data connection. Requires --allow-write. Args: name: Human-readable name for the connection. connection_type: One of the supported types (e.g. 'postgres', 'mysql', 'stripe'). config: Connection-specific configuration (host, port, credentials, etc.).

ParameterTypeDescription
config *object
connection_type *string
name *string

create_upload

Create a new upload (extract + load job). Requires --allow-write. Args: name: Upload name. source_connection_id: ID of the source connection. destination_connection_id: ID of the destination connection. dlt_config: Optional dlt extraction config (load_mode, table_name, etc.). description: Optional description.

ParameterTypeDescription
destination_connection_id *integer
name *string
source_connection_id *integer
description
dlt_config

create_pipeline

Create a new pipeline (dbt transform orchestration). Requires --allow-write. Args: name: Pipeline name. destination_connection_id: ID of the destination connection. command: dbt command — 'run', 'build', 'test', 'seed', 'snapshot', 'compile'. description: Optional description.

ParameterTypeDescription
destination_connection_id *integer
name *string
commandstring
description

create_transformation

Create a new dbt SQL transformation. Requires --allow-write. Args: name: Model name (letters, digits, underscores, hyphens; must start with letter or _). sql_body: dbt-compatible SQL (supports ref(), source(), Jinja). materialization: 'view', 'table', 'incremental', 'ephemeral', or 'snapshot'. description: Optional description. schema_name: Target schema (default 'staging').

ParameterTypeDescription
name *string
sql_body *string
description
materializationstring
schema_namestring

bulk_import

Bulk-import connections, uploads, pipelines, and transformations in one call. Requires --allow-write. Uses the JSON v2 import format. Validates everything first — if any errors, nothing is created. Args: payload: JSON v2 import payload with version, connections, uploads, pipelines, transformations sections. See AI_IMPORT_GUIDE.md.

ParameterTypeDescription
payload *object

trigger_upload

Trigger an upload run. Requires --allow-write. Args: upload_id: The upload to run. wait: If true, block until the run completes (up to 120s).

ParameterTypeDescription
upload_id *integer
waitboolean

trigger_pipeline

Trigger a pipeline run (dbt build/run/test). Requires --allow-write. Args: pipeline_id: The pipeline to run. wait: If true, block until the run completes (up to 120s).

ParameterTypeDescription
pipeline_id *integer
waitboolean

trigger_transformation

Trigger a transformation run. Requires --allow-write. Args: transformation_id: The transformation to run. wait: If true, block until the run completes (up to 120s).

ParameterTypeDescription
transformation_id *integer
waitboolean