mcp-data-pipeline-connector

v1.0.1
io.github.dbsectrainer/mcp-data-pipeline-connector Checked 11 hours ago Published 28 days ago

Universal data connector for CSV, Postgres, and REST APIs via DuckDB

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

connect_source

Register a data source (CSV file, Postgres database, or REST API). Credentials must be in environment variables or a YAML config file — never pass connection strings directly.

ParameterTypeDescription
name *stringUnique name for this data source
type *stringType of the data source
pathstringFile path for CSV/JSON sources
source_config_pathstringPath to a YAML config file. If provided, all sources in the file are registered.
urlstringBase URL for REST API sources

list_sources

List all registered data sources and their connection status.

list_tables

List available tables across all sources, or just the named source.

ParameterTypeDescription
sourcestringOptional: name of a specific source to list tables for

get_schema

Return the column names and types for a specific table.

ParameterTypeDescription
source *stringName of the source that contains the table
table *stringName of the table

query

Execute a SQL query against a registered data source using DuckDB. Returns up to --max-rows rows (default 1000). In read-only mode (default), only SELECT statements are allowed. Use source='_all' to query across all CSV sources with cross-source joins. Supports limit and offset for pagination.

ParameterTypeDescription
sql *stringThe SQL query to execute
limitnumberMaximum number of rows to return (pagination)
max_rowsnumberOverride the default max row limit for this query
offsetnumberNumber of rows to skip before returning results (pagination)
sourcestringName of the source to query, or '_all' for cross-source joins. Required if multiple sources are registered.
sourcesarrayArray of source names for cross-source queries (alternative to source='_all')

transform

Apply aggregations, filters, renaming, or column selection to a source table and return or save results.

ParameterTypeDescription
operations *arrayList of transform operations to apply in order
source *stringName of the data source to transform
table *stringName of the table within the source to transform
output_formatstringOutput format (default: json)

check_health

Check whether registered data sources are still reachable and responsive.

ParameterTypeDescription
sourcestringOptional: name of a specific source to health-check