SuperAPIAI Directory

gx-mcp-server

github.com · AI developer platforms

gx-mcp-server is a Python-based server that exposes Great Expectations' data quality tools to LLM agents through the Model Context Protocol (MCP). It allows agents to programmatically load datasets, define data quality rules (Expectations), run validation checks, and interpret results, thereby integrating data quality checks into automated workflows. It supports CSV files, Snowflake, and BigQuery data sources, provides multiple transport modes (STDIO, HTTP, Inspector), and optionally offers Basic or Bearer token authentication, rate limiting, Prometheus metrics, and OpenTelemetry tracing.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsLinux

About this tool

gx-mcp-server is a Python server designed to expose Great Expectations' data quality capabilities to Large Language Model (LLM) agents through the Model Context Protocol (MCP). Great Expectations is a powerful open-source data quality tool, but it does not natively support access by LLM agents; this server fills that gap.

Key capabilities include:

  • Load CSV data from files, URLs, or inline data (up to 1 GB, configurable).
  • Load tables from Snowflake or BigQuery using URI prefixes.
  • Define and modify ExpectationSuites (the profiler flag is deprecated).
  • Validate data and obtain detailed results (synchronous or asynchronous).
  • Choose in-memory (default) or SQLite storage for datasets and results.
  • Provide optional Basic or Bearer token authentication for HTTP clients.
  • Configure per-minute HTTP rate limits.
  • Restrict origins via --allowed-origins.
  • Provide Prometheus metrics on --metrics-port.
  • Enable OpenTelemetry tracing (OTLP exporter) via --trace.
  • Support multiple transport modes: STDIO, HTTP, Inspector (GUI).

Usage: Running with Docker is recommended. The default container runs in stdio mode; HTTP mode can be enabled by setting the MCP_MODE environment variable to http. It can also be built and run from source. Configure any MCP-compatible client (such as Claude Desktop, Claude CLI, or a custom application) to connect to the server.

Authentication: By default, the server does not enable authentication. For production or secure environments, Basic or Bearer authentication can be enabled. Basic authentication uses a username and password, which can be provided via command-line arguments or environment variables. Bearer authentication uses JWT; the server acts as a resource server that validates JWTs and does not issue tokens; clients must first obtain a JWT from an identity provider (such as Auth0, Okta, or a custom authentication service). Relevant parameters include --bearer-public-key-file, --bearer-jwks,--bearer-issuer, --bearer-audience.

CSV file size limit: Default 50 MB, can be overridden via environment variables.

Data warehouse connectors: Additional dependencies must be installed; URI prefixes are used, and load_dataset automatically detects and delegates to the corresponding connector.

Metrics and tracing: Prometheus metrics are located at http://localhost:9090/metrics;OpenTelemetry enabled via uv run python -m gx_mcp_server --http --trace.

Current limitations:

  • Only the most recent 100 datasets/results are stored.
  • In-process asyncio concurrency (no external queue).
  • The API may evolve as the project stabilizes.
  • In production, it should run behind a reverse proxy (Nginx, Caddy, cloud load balancer).
  • Provide --ssl-certfile / --ssl-keyfile only when the proxy cannot terminate TLS.
  • Anonymous sessions use UUIDv4; persistent applications should use secrets.token_urlsafe(32).

The project is licensed under the MIT License.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools