Skip to main content

Data Science MCP Server — Model training, evaluation, and evolution tools for agentic ML workflows. Integrates with agent-utilities IModelEvolver (CONCEPT:AHE-3.15).

Project description

Data Science MCP - A2A | AG-UI | MCP

PyPI - Version MCP Server PyPI - Downloads GitHub Repo stars GitHub forks GitHub contributors PyPI - License GitHub

GitHub last commit (by committer) GitHub pull requests GitHub closed pull requests GitHub issues

GitHub top language GitHub language count GitHub repo size GitHub repo file count (file type) PyPI - Wheel PyPI - Implementation

Version: 0.5.1

Overview

Data Science MCP MCP Server + A2A Agent

Data Science MCP Server — Model training, evaluation, and evolution tools for agentic ML workflows. Integrates with agent-utilities IModelEvolver (CONCEPT:AHE-3.15).

This repository is actively maintained - Contributions are welcome!

MCP

Using as an MCP Server

The MCP Server can be run in two modes: stdio (for local testing) or http (for networked access).

Environment Variables

  • DATA_SCIENCE_MCP_URL: The URL of the target service.
  • DATA_SCIENCE_MCP_TOKEN: The API token or access token.

Run in stdio mode (default):

export DATA_SCIENCE_MCP_URL="http://localhost:8080"
export DATA_SCIENCE_MCP_TOKEN="your_token"
data-science-mcp --transport "stdio"

Run in HTTP mode:

export DATA_SCIENCE_MCP_URL="http://localhost:8080"
export DATA_SCIENCE_MCP_TOKEN="your_token"
data-science-mcp --transport "http" --host "0.0.0.0" --port "8000"

A2A Agent

Run A2A Server

export DATA_SCIENCE_MCP_URL="http://localhost:8080"
export DATA_SCIENCE_MCP_TOKEN="your_token"
data-science-agent --provider openai --model-id gpt-4o --api-key sk-...

Security & Governance

This project is built on agent-utilities, inheriting enterprise-grade security and governance features.

Authentication & Authorization

Feature Description
OIDC Token Delegation RFC 8693 token exchange for user-context propagation from A2A → MCP
Eunomia Policies Fine-grained, policy-driven tool authorization (none, embedded, remote)
Scoped Credentials Tools execute with the caller's scoped identity where possible
3LO / OAuth / API Token Multiple auth strategies with graceful fallback

Eunomia Policy Enforcement

Eunomia provides a policy enforcement point for all tool calls:

  • Embedded mode: Load local mcp_policies.json for role-based access, sensitivity gating, and audit logging
  • Remote mode: Forward authorization decisions to a central Eunomia policy server for multi-agent governance
  • Enable via CLI: --eunomia-type embedded --eunomia-policy-file mcp_policies.json

Runtime Protections

Protection Description
Tool Guard Sensitivity detection with human-in-the-loop approval gating
Prompt Injection Defense Input scanning and repetition/loop guards
Content Filtering Output schema enforcement and cost budget controls
Stuck Loop Detection Automatic detection and recovery from agent loops
Context Limit Warnings Proactive alerts before context window exhaustion

Graph Agent Architecture

The A2A agent uses pydantic-graph orchestration with:

  • RouterNode: Lightweight classifier that routes queries to specialized domains
  • DomainNode: Focused executor with only relevant tools loaded, preventing tool hallucination
  • Approval Gates: Policy-driven approval workflows before sensitive operations
  • Usage Guards: Budget and rate limiting enforcement

Production Recommendation: Enable --eunomia-type embedded (or remote) + OIDC delegation + containerized deployment. See agent-utilities documentation for full policy configuration.

Docker

Build

docker build -t data-science-mcp .

Run MCP Server

docker run -d \
  --name data-science-mcp \
  -p 8000:8000 \
  -e TRANSPORT=http \
  -e DATA_SCIENCE_MCP_URL="http://your-service:8080" \
  -e DATA_SCIENCE_MCP_TOKEN="your_token" \
  knucklessg1/data-science-mcp:latest

Deploy with Docker Compose

services:
  data-science-mcp:
    image: knucklessg1/data-science-mcp:latest
    environment:
      - HOST=0.0.0.0
      - PORT=8000
      - TRANSPORT=http
      - DATA_SCIENCE_MCP_URL=http://your-service:8080
      - DATA_SCIENCE_MCP_TOKEN=your_token
    ports:
      - 8000:8000

Configure mcp.json for AI Integration (e.g. Claude Desktop)

{
  "mcpServers": {
    "data-science": {
      "command": "uv",
      "args": [
        "run",
        "--with",
        "data-science-mcp",
        "data-science-mcp"
      ],
      "env": {
        "DATA_SCIENCE_MCP_URL": "http://your-service:8080",
        "DATA_SCIENCE_MCP_TOKEN": "your_token"
      }
    }
  }
}

Install Python Package

python -m pip install data-science-mcp
uv pip install data-science-mcp

Repository Owners

GitHub followers GitHub User's stars

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

data_science_mcp-0.5.1.tar.gz (22.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

data_science_mcp-0.5.1-py3-none-any.whl (24.9 kB view details)

Uploaded Python 3

File details

Details for the file data_science_mcp-0.5.1.tar.gz.

File metadata

  • Download URL: data_science_mcp-0.5.1.tar.gz
  • Upload date:
  • Size: 22.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for data_science_mcp-0.5.1.tar.gz
Algorithm Hash digest
SHA256 fd0fda0fd7e2a6250919d006d14a6d4847a83b4b12d1dd957596b2e12fc1edb9
MD5 693f6b3f0c02c50a0d9cf85eda40d501
BLAKE2b-256 a96ec14734e601b94cad3a4aa4c69ffcd6ba4811e9d938fa2ede87f929599976

See more details on using hashes here.

File details

Details for the file data_science_mcp-0.5.1-py3-none-any.whl.

File metadata

File hashes

Hashes for data_science_mcp-0.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3b55975493dabdf560878ab6ebe9b281506e6188f48102ecb609fe93cf7bcbe1
MD5 5fad8306bc708d3bf62f0e857aa14845
BLAKE2b-256 3be52855364b0cfa480d83c2da3ddc4b47cf39040e3e7b324785c6f06834df3c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page