Skip to main content


MCPStack Tool
MCPStack AutoDDG MCP

Automatic dataset topics & descriptions — powered by AutoDDG and MCPStack

💡 About The MCPStack AutoDDG Tool

This repository provides a native MCP around the AutoDDG library for dataset description and discovery:

  • Load a CSV and keep a deterministic sample (by size or percentage).
  • Profile a dataframe (datamart-style notes).
  • Infer a semantic profile for columns.
  • Generate a concise topic.
  • Produce a readable dataset description.
  • Expand that description for search/discovery (tune the temperature etc.).
  • Optionally evaluate the description with a separate evaluator key.

AutoDDG official library (without the MCP wrapper): https://github.com/VIDA-NYU/AutoDDG

Installation

The tool is distributed as a standard Python package. MCPStack will auto-discover it.

uv add mcpstack-autoddg

Via pip

pip install mcpstack-autoddg

(Dev) Pre-commit hooks

uv run pre-commit install
# or: pre-commit install

Using With MCPStack — CLI workflow

This tool declares entry points so MCPStack can see it automatically:

[project.entry-points."mcpstack.tools"]
autoddgtool = "mcpstack_autoddg.tool:AutoDDGTool"

[project.entry-points."mcpstack.tool_clis"]
autoddgtool = "mcpstack_autoddg.cli:AutoDDGCLI.get_app"

1) (Optional) Configure environment

AutoDDG requires an OpenAI-compatible key. You may optionally provide a separate evaluator key:

AUTO_DDG_OPENAI_API_KEY: "<your key>" (required for generation)
AUTO_DDG_EVALUATOR_API_KEY: "<your key>" (optional; falls back to AUTO_DDG_OPENAI_API_KEY)

Use the CLI to generate a config file (useful for CI or sharing defaults):

uv run mcpstack tools autoddg configure
# Then is followed an interactive prompt to config and set parameters.

Or you can pass parameters directly, e.g.:

uv run mcpstack tools autoddg configure \
  --model-name gpt-4o-mini \
  --description-words 120 \
  --description-temperature 0.0 \
  --topic-temperature 0.0 \
  --api-key sk-... \
  --evaluator-key sk-... \
  -o autoddg_config.json \
  --verbose

For others, feel free to uv run mcpstack tools autoddg --help to see all options.

2) Add to a pipeline

Create or extend a pipeline with AutoDDG:

# New pipeline
uv run mcpstack pipeline autoddg --new-pipeline my_pipeline.json --tool-config autoddg_config.json
# Or append to an existing one
uv run mcpstack pipeline autoddg --to-pipeline my_pipeline.json --tool-config autoddg_config.json

Programmatic API Workflow

Use the AutoDDG tool directly in a stack:

from MCPStack.stack import MCPStackCore
from mcpstack_autoddg import AutoDDGTool

pipeline = (
    MCPStackCore()
    .with_tool(AutoDDGTool(
        model_name="gpt-4o-mini",
        search_model_name=None,
        semantic_model_name=None,
        description_words=120,
        description_temperature=0.0,
        topic_temperature=0.0,
        evaluator_model_name="gpt-4o",
    ))
    .build(type="fastmcp", save_path="autoddg_pipeline.json")
    .run()
)

AutoDDG Actions Supported

  • load_dataset(csv_path|csv_text, sample_size?, sample_percent?, random_state=9) → load CSV and store a sampled CSV string in state
  • profile_dataset() → datamart-like profile; may also return semantic notes
  • generate_semantic_profile() → infer semantic metadata for columns
  • generate_topic(title, original_description?, dataset_sample?) → concise dataset topic
  • generate_description(dataset_sample?, use_profile=True, use_semantic_profile=True, use_topic=True) → readable description; enforces prerequisites if the flags are left on
  • expand_description_for_search() → search-oriented variant of the last description (needs a topic)
  • evaluate_description() → runs evaluator (requires evaluator key or reuse of generation key)
  • get_state_summary() → booleans for which artifacts exist in state

License

MIT — see LICENSE.

Metadata

Release files for mcpstack-autoddg 0.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mcpstack-autoddg 0.0.0
File Size Uploaded Provenance Actions
mcpstack_autoddg-0.0.0.tar.gz 12.4 kB With provenance Details for mcpstack_autoddg-0.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mcpstack-autoddg 0.0.0
File Interpreter ABI Platform Actions
mcpstack_autoddg-0.0.0-py3-none-any.whl Python 3 none any Details for mcpstack_autoddg-0.0.0-py3-none-any.whl

Total release size: 24.5 kB

Release files / mcpstack_autoddg-0.0.0.tar.gz

Download URL mcpstack_autoddg-0.0.0.tar.gz
Size 12.4 kB
Tags Source
SHA-256 checksum
How to use checksums
7c9d00cd087770e916923cd4407b042815902ab178c1fcdfc180b6e8cafb7332
BLAKE2b-256 checksum
How to use checksums
863bdcd0b6a328f5f854e5c65ddff9b283155529694152135cb62802f6902495
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 19, 2025.

Transparency log

Release files / mcpstack_autoddg-0.0.0-py3-none-any.whl

Download URL mcpstack_autoddg-0.0.0-py3-none-any.whl
Size 12.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a850f16b75629883f97692c0136f2c2320fe346715340bdea6bb34eb17494ae8
BLAKE2b-256 checksum
How to use checksums
62d375434ed477a644d9bdfcf5aea544d7106c584ffacff22eb65c8fa0e050b2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 19, 2025.

Transparency log

Security for mcpstack-autoddg 0.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for mcpstack_autoddg-0.0.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 19, 2025.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page