Skip to main content

servicex-mcp

MCP Server for ServiceX, the IRIS-HEP on-demand data-delivery service for ATLAS/CMS. Wraps the servicex Python client as MCP tools.

Install

pip install servicex-mcp

Usage (stdio)

servicex-mcp serve --backend <name-from-your-.servicex-file>

See docs/plans/ for the design and implementation plan.

Logging (HTTP transport)

serve --transport http writes one JSON object per line to stdout, including uvicorn's own lines. The AF MCP broker's X-Request-ID is logged as request_id on every line of the request (one is generated if absent), and each tool invocation writes a tool.call line with tool, duration_ms and outcome (success or error). The stdio transport keeps plain-text logs on stderr, because stdout carries the protocol.

Health probe (HTTP transport)

GET /healthz answers 200 {"status": "ok"} without authentication and is what the chart's liveness and readiness probes call. It reports this process only, not the ServiceX backend, so a ServiceX outage does not take the server out of rotation. A successful probe writes no access-log line; a failing one does.

Available tools

Tool Does Read/write
servicex_list_datasets List datasets cached on this ServiceX instance read-only
servicex_get_dataset Get the full detail of one cached dataset by its dataset ID read-only
servicex_info Return the ServiceX server version and its advertised capabilities read-only
servicex_list_code_generators List the code generators deployed on this ServiceX instance read-only
servicex_list_transforms List transforms you have submitted, with status and completion counts read-only
servicex_get_transform_status Get the full status of one transform by its request ID read-only
servicex_submit_query Submit a new transform (query) request against a dataset write
servicex_get_structure Run a 1-file transform and return the trees, branches and their types write
servicex_cancel_transform Cancel a running transform by its request ID destructive
servicex_delete_transform Delete a transform record (and its cache entry) by request ID destructive
servicex_delete_dataset Delete a cached dataset record by its dataset ID destructive

The six read-only tools query the external ServiceX server (read_only_hint=true, open_world_hint=true in their MCP tool annotations). servicex_submit_query mutates ServiceX state but never deletes anything (read_only_hint=false). servicex_get_structure submits a small python codegen transform over 1 file of a dataset and waits up to timeout_seconds for it, so an assistant can learn branch names before writing a query; if it is not done in time, calling again with the returned request_id resumes without resubmitting (read_only_hint=false, destructive_hint=false). The three destructive tools (servicex_cancel_transform, servicex_delete_transform, servicex_delete_dataset) act on real running/finished transforms and cached dataset records and cannot be undone (read_only_hint=false, destructive_hint=true). All five write/destructive tools are disabled when the server is started with --read-only (resuming servicex_get_structure by request_id only reads, and stays allowed).

Metadata

Release files for servicex-mcp 0.3.5

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

Source distribution (sdist)

Source distribution for servicex-mcp 0.3.5
File Size Uploaded Provenance Actions
servicex_mcp-0.3.5.tar.gz 293.7 kB With provenance Details for servicex_mcp-0.3.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for servicex-mcp 0.3.5
File Interpreter ABI Platform Actions
servicex_mcp-0.3.5-py3-none-any.whl Python 3 none any Details for servicex_mcp-0.3.5-py3-none-any.whl

Total release size: 349.6 kB

Release files / servicex_mcp-0.3.5.tar.gz

Download URL servicex_mcp-0.3.5.tar.gz
Size 293.7 kB
Tags Source
SHA-256 checksum
How to use checksums
a56245f7a40f2729c3c1089f4c99c1e331fa06432360e1127f9d06e0971f5368
BLAKE2b-256 checksum
How to use checksums
5fa810b71eb2d1593db2f46da68774462719844bd94abd50a37790f067ff2736
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Dec 3, 2026.

Transparency log

Release files / servicex_mcp-0.3.5-py3-none-any.whl

Download URL servicex_mcp-0.3.5-py3-none-any.whl
Size 55.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
648427a362b79bda475250e8827ab4f6dee3f7e0664f7f11aa58cce141b2f048
BLAKE2b-256 checksum
How to use checksums
5c87133d98c2c1eb05d5b7896f48693e3fbb7a10be853e1f899d1c99496c3ed1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Dec 3, 2026.

Transparency log

Security for servicex-mcp 0.3.5

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 servicex_mcp-0.3.5.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 Dec 3, 2026.

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.

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