Data Platform MCP Server
This server provides a governed, read-only MCP tool layer for enterprise data platforms, exposing PostgreSQL/Vertica catalog, SQL analysis, Airflow/logs/runbooks, and identity-aware access.\n\n- Health & identity: health (version/status), whoami (principal, tenant, RBAC scopes).\n- Catalog exploration: list_data_sources, list_schemas, list_tables, describe_table, table_statistics, get_table_metadata – tenant-visible metadata.\n- Lineage & SQL analysis: get_table_lineage (catalog-backed), analyze_sql_lineage (SQLGlot AST extraction), explain_sql (validated read-only EXPLAIN).\n- Operations & logs: list_dags, get_dag_status (Airflow), search_etl_logs (OpenSearch/Loki), search_runbooks (troubleshooting knowledge).\n- Security & governance: OIDC/JWT, RBAC scopes, tenant source isolation, read-only SQL policy, audit/telemetry.\n- Deployment: Streamable HTTP or stdio transport, Kubernetes/Helm ready, OTel metrics/traces, air-gapped bundle.
Provides read-only ETL log search using Grafana Loki query_range.
Provides read-only ETL log search across OpenSearch indexes.
Provides read-only catalog and SQL access to PostgreSQL, including listing schemas, tables/views, column metadata, table statistics, and read-only query explain plans.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Data Platform MCP Server what tables are in the analytics schema?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Data Platform MCP Server
目前版本:v0.5.0
互動式架構與專案總覽
GitHub Pages · Repository HTML
這是一套 production-oriented Tool / Integration Layer,將 PostgreSQL、Vertica、Airflow、logs、metadata、lineage 與 normalized ETL metadata,透過受治理的 Model Context Protocol(MCP)tools 提供給 AI Agent、IDE 與 MCP Host。
預設使用 synthetic demo data,不需要公司 / 客戶資料、真實 credential 或 internal URL。
專案定位
本 Repository 負責 Portfolio 中的 Canonical MCP Access Layer:
MCP protocol transport 與 tool contracts
PostgreSQL / Vertica catalog access
read-only SQL guardrails
Airflow 與 log integrations
metadata 與 lineage access
OIDC/JWT authentication
RBAC 與 per-tool scopes
tenant-aware source isolation
structured audit events
OpenTelemetry observability
消費
enterprise-etl-platform產生的 normalized ETL metadata
本專案刻意不實作 autonomous agent orchestration、RAG chat、model routing,或 ETL parsing / migration truth。
Related MCP server: dagsmith
架構
ChatGPT / Claude / Codex / MCP Host
|
| MCP Streamable HTTP
v
+----------------------+
| MCP SDK Bearer Gate |
| Static / OIDC JWT |
+----------+-----------+
|
Role / Scope
|
Tenant Policy
|
Audit + OTel
|
+----------v-----------+
| DataPlatformService |
+-----+-----------+----+
| |
Catalog layer DataOps layer
| |
+------+-----+ +----------------+
| | | |
PostgreSQL Vertica Airflow Logs/Runbooks核心能力
MCP SDK v2 / Streamable HTTP
PostgreSQL + Vertica catalog adapters
multi-source catalog abstraction
metadata 與 table / projection inspection
catalog-backed 與 SQL AST lineage
SQLGlot-based read-only SQL policy
database read-only session enforcement
Airflow 3
/api/v2integrationOpenSearch / Loki log search
OIDC/JWT + JWKS validation
roles:
reader、analyst、operator、adminper-tool scopes
tenant-aware source isolation
structured audit JSONL
Kubernetes Helm deployment
NetworkPolicy / PDB / optional HPA
External Secrets examples
OpenTelemetry traces + metrics
air-gapped bundle support
ETL Metadata Contract
enterprise-etl-platform 是 ETL metadata 與 lineage truth 的 producer;本 Server 只消費已發布的 normalized artifacts。
Enterprise ETL Platform
parser / migration / lineage truth
|
| normalized artifact
v
Data Platform MCP Server
governed read-only access
|
v
AI Agent / IDE / MCP HostMCP layer 會保留 producer 的 structural、inferred-deterministic 與 capability boundary 等分類,不會自行補出缺失的 lineage。
關鍵工程決策
決策 | 原因 / 效益 | Trade-off |
MCP Tool Contract 作為 integration boundary | Client 使用受治理 capability,而不是直接取得 raw backend credentials / APIs | 增加 protocol / schema compatibility 維護成本 |
Adapter Pattern 隔離 platform backends | Tool contract 穩定,backend 可獨立替換 | Backend-specific behavior 仍需在 adapter 層維護 |
Read-only by design + AST policy + DB session | 安全控制位於 prompt 之下,形成 defense in depth | 保守 policy 可能拒絕部分複雜但合法的 SQL |
RBAC 決定 what,tenant policy 決定 which source | operation authorization 與 data-source isolation 分離 | Source-level tenant isolation 不等同 row-level RLS |
OIDC/JWT 在 resource boundary 驗證 | 集中處理 identity 與 role mapping | IdP / JWKS availability 成為 auth dependency |
Producer-owned ETL metadata contract | 避免 parser / lineage truth 被複製成第二套 | 需要維護 schema / version compatibility |
失敗語意與復原原則
malformed 或 mutation-capable SQL 在 database execution 前直接拒絕
cross-tenant source access 直接 deny,不 fallback 到 unrestricted access
OIDC / JWKS 驗證失敗時 fail closed
backend outage 回傳 bounded tool failure,不升高權限
invalid ETL metadata artifact fail closed
lineage 缺失時維持缺失,不由 MCP Server fabricate edge
可驗證 Evidence
Claim | Repository Evidence |
OIDC / RBAC / audit regression |
|
MCP protocol contract |
|
PostgreSQL / Vertica boundary |
|
Observability / audit correlation |
|
Kubernetes baseline |
|
Security gate |
|
ETL metadata contract |
|
ETL MCP integration |
|
快速開始
git clone https://github.com/kewinall/data-platform-mcp-server.git
cd data-platform-mcp-server
python -m venv .venv
source .venv/bin/activate
pip install -e '.[dev]'
cp .env.example .envstdio:
DPMCP_TRANSPORT=stdio data-platform-mcpHTTP:
DPMCP_TRANSPORT=streamable-http data-platform-mcpEndpoint:http://127.0.0.1:8000/mcp
主要 Tools
Tool | Scope | 用途 |
|
| health / version |
|
| identity、role、tenant、scopes |
|
| tenant-visible sources |
|
| column metadata |
|
| catalog lineage |
|
| SQL AST lineage |
|
| guarded EXPLAIN |
|
| Airflow DAG discovery |
|
| ETL log search |
|
| normalized ETL pipeline discovery |
|
| producer lineage + capability boundary |
工程文件
docs/ 內包含 OIDC、MCP protocol、ETL metadata integration、deployment、observability、security 與 operational guidance。
Portfolio 責任邊界
Data Platform MCP Server:standardized governed tool / integration access
Enterprise ETL Platform:ETL metadata producer、migration truth、lineage truth
Agentic DataOps Copilot:operational reasoning client
Enterprise RAG Platform:enterprise knowledge 與 retrieval
Multi-LLM AI Gateway:model control plane
授權
MIT
Available Tools
21 toolsanalyze_sql_lineageA
Parse read-only SQL and extract referenced input tables and CTEs.
Inputs: sql (required). Returns: object
describe_tableC
Describe table columns and data types.
Inputs: table (required), schema (required), source (required). Returns: object
explain_sqlB
Explain tenant-authorized read-only SQL after SQLGlot AST validation.
Inputs: sql (required), source (required). Returns: result
get_dag_statusB
Return the latest known state of a DAG.
Inputs: dag_id (required). Returns: object
get_etl_pipelineC
Return the producer-owned normalized ETL metadata document.
Inputs: pipeline_id (required). Returns: object
get_etl_pipeline_dependenciesC
Return producer-classified ETL step/workflow dependencies.
Inputs: pipeline_id (required). Returns: result
get_etl_pipeline_stepsB
Return deterministic ETL step metadata for one pipeline.
Inputs: pipeline_id (required). Returns: result
get_etl_table_lineageC
Return producer-owned ETL lineage edges and capability boundaries.
Inputs: table (required). Returns: object
get_table_lineageC
Return catalog-backed upstream lineage within the tenant source boundary.
Inputs: table (required), schema (required), source (required). Returns: object
get_table_metadataC
Return governed metadata for a tenant-authorized table or view.
Inputs: table (required), schema (required), source (required). Returns: object
healthA
Return MCP server health and version.
Inputs: no named parameters. Returns: object
list_dagsA
List ETL orchestration DAGs known to the server.
Inputs: no named parameters. Returns: result
list_data_sourcesA
List data sources visible to the current tenant.
Inputs: no named parameters. Returns: result
list_etl_pipelinesA
List normalized ETL pipeline IDs published by the ETL metadata producer.
Inputs: no named parameters. Returns: result
list_schemasB
List schemas in a configured and tenant-authorized data source.
Inputs: source (required). Returns: result
list_tablesB
List tables or views in a tenant-authorized schema.
Inputs: schema (required), source (required). Returns: result
search_etl_logsC
Search the configured read-only ETL log backend.
Inputs: query (required), limit. Returns: result
search_etl_metadataC
Search ETL pipeline, step, table, and dependency names.
Inputs: query (required), limit. Returns: result
search_runbooksC
Search operational runbooks and troubleshooting knowledge.
Inputs: query (required), limit. Returns: result
table_statisticsA
Return lightweight table statistics without scanning business rows.
Inputs: table (required), schema (required), source (required). Returns: object
whoamiA
Return the authenticated principal, tenant, and effective RBAC scopes.
Inputs: no named parameters. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 21 tools
Tools generally target distinct resources or aspects: data source/schema/table discovery, ETL pipeline metadata, lineage, SQL analysis, and observability. The closest overlap is among get_etl_table_lineage, get_table_lineage, and analyze_sql_lineage, but their producer/catalog/SQL scopes are described enough to avoid frequent misselection.
Most tools follow a consistent snake_case verb_noun pattern (list_*, get_*, search_*, describe_*). Minor deviations are health and whoami, which are bare commands, and table_statistics, which lacks a get_ prefix.
21 tools is slightly above the ideal 3-15 range, but the server spans several coherent subdomains: metadata discovery, ETL, lineage, SQL analysis, and operations. Each tool maps to a distinct operation, so the count does not feel padded.
For a governed, read-only metadata server the surface covers listing/discovery, table details, ETL lifecycle metadata, lineage, DAG status, logs, and runbooks. Minor gaps such as no dedicated getters for individual data sources/schemas and no downstream lineage are workaround-able but would improve full coverage.
Maintenance
Related MCP Connectors
Query your warehouse or a CSV with Claude/ChatGPT over MCP, governed by table-level ACL + audit.
MCP server for your apps' tools and custom tools, plus hosted AI agents and approval-gated workflows
Governed data discovery, exact queries, decisions, simulations, and runtime utilities over MCP.
Query your org's data in natural language — read-only MCP access to SQL, NoSQL, files & warehouses.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to query live schema, lineage, and query-context across data warehouses, dbt projects, orchestration systems, and BI tools via MCP tools.Apache 2.0
- AlicenseNot gradedqualityDmaintenanceMCP server providing read-only Snowflake metadata tools (schemas, tables, queries, lineage) for agentic data pipeline generation, enabling natural-language-to-pipeline workflows with dbt, Airflow, and Great Expectations.1MIT
- AlicenseNot gradedqualityAmaintenanceEnables LLMs to orchestrate AI agents and tasks, inspect DAG workflows, monitor cluster metrics, and perform safe database queries and statements through standardized MCP tools.189Apache 2.0
- AlicenseNot gradedqualityCmaintenanceEnables language models to safely explore lakehouse tables and governed metrics, run guarded read-only SQL, and inspect pipeline health and data-contract violations through MCP tools.MIT