Skip to main content

Production-grade MCP server for CERN ROOT file analysis

Project description

MCP Server for CERN ROOT Files

CI PyPI License Language

A Model Context Protocol (MCP) server that provides AI models with safe, high-level access to CERN ROOT files and their contents (TFile, TDirectory, TTree, TBranch, histograms). Enables declarative, tool-based interaction with ROOT data without requiring users to write low-level C++ or PyROOT code.

Quick Start

Install

pip install root-mcp

Optional XRootD support:

pip install "root-mcp[xrootd]"

Generate sample ROOT files

python examples/create_sample_data.py

Configure

Create a config (example):

resources:
  - name: "local_data"
    uri: "file:///absolute/path/to/data/root_files"
    description: "Sample ROOT files"
    allowed_patterns: ["*.root"]

security:
  allowed_roots:
    - "/absolute/path/to/data/root_files"
    - "/tmp/root_mcp_output"
  allowed_protocols: ["file"]

You can start from the repository example config at config.yaml.

Run

ROOT_MCP_CONFIG=/path/to/config.yaml root-mcp

Documentation

  • docs/README.md: complete documentation (tools reference, configuration, Claude Desktop)
  • docs/ARCHITECTURE.md: architecture and design notes
  • docs/CONTRIBUTING.md: contributing guidelines

Citation

If you use ROOT-MCP in your research, please cite:

@software{root_mcp,
  title = {ROOT-MCP: Production-Grade MCP Server for CERN ROOT Files},
  author = {Mohamed Elashri},
  year = {2025},
  url = {https://github.com/MohamedElashri/root-mcp}
}

References

License

MIT License - see LICENSE for details.

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

root_mcp-0.1.0.tar.gz (28.5 kB view details)

Uploaded Source

Built Distribution

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

root_mcp-0.1.0-py3-none-any.whl (32.2 kB view details)

Uploaded Python 3

File details

Details for the file root_mcp-0.1.0.tar.gz.

File metadata

  • Download URL: root_mcp-0.1.0.tar.gz
  • Upload date:
  • Size: 28.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for root_mcp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 9c4e936d6bd01fe8f9531bb6aee79dc64bee09e44a47991780736bd3a2d97ed0
MD5 08034c2b59f57263788e24f9ad880275
BLAKE2b-256 ef6e1648ea185c7ee82879a0102175edf74d9aeb187bc803ea80f21b0f93e128

See more details on using hashes here.

Provenance

The following attestation bundles were made for root_mcp-0.1.0.tar.gz:

Publisher: release.yml on MohamedElashri/root-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file root_mcp-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: root_mcp-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 32.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for root_mcp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f2469c12cfcc71d15d09d90b7a7d39b21d2e25795e1fd9e35eb9ffba60d6c6e8
MD5 9117faa35707553d4dc2591dec3d3049
BLAKE2b-256 4ba878480432d25caf0e856528ce46351fceda824ba03be76ec5019cf804a37c

See more details on using hashes here.

Provenance

The following attestation bundles were made for root_mcp-0.1.0-py3-none-any.whl:

Publisher: release.yml on MohamedElashri/root-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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