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_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). 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 four write/destructive tools are disabled when the server is started with --read-only.

Metadata

Release files for servicex-mcp 0.3.1

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.1
File Size Uploaded Provenance Actions
servicex_mcp-0.3.1.tar.gz 184.3 kB With provenance Details for servicex_mcp-0.3.1.tar.gz

Built distribution (wheel)

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

Total release size: 232.8 kB

Release files / servicex_mcp-0.3.1.tar.gz

Download URL servicex_mcp-0.3.1.tar.gz
Size 184.3 kB
Tags Source
SHA-256 checksum
How to use checksums
c3642c42ef83d6741d4acf83ea6bc2134f74594e99cead263e18a0715bd24f61
BLAKE2b-256 checksum
How to use checksums
33a3970ecb542952d9c4c90253a6da5465c908667a6f944a7c18b605ee63f70d
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 Nov 16, 2026.

Transparency log

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

Download URL servicex_mcp-0.3.1-py3-none-any.whl
Size 48.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7a42b39a99de7f74753367f0757e3a072f5845a413610fdd6d2ddd2db2ddce9b
BLAKE2b-256 checksum
How to use checksums
5c87f8d40f3490fd4a1bd050c36509525026a357967ae1ecc7cd945b4b93b4de
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 Nov 16, 2026.

Transparency log

Security for servicex-mcp 0.3.1

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.1.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 Nov 16, 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