MCP Server for rucio
Project description
rucio-mcp v0.1.0
An MCP server that exposes Rucio distributed data management operations as tools for LLMs. Designed for ATLAS physicists working with grid data on analysis facilities, but usable with any Rucio instance.
What it does
rucio-mcp lets Claude (or any MCP-compatible LLM) query and manage your Rucio
data directly:
- Find data: search for datasets/containers by pattern, list files, browse DID hierarchies
- Check replicas: see where data is physically stored, which sites have a dataset, generate access URLs
- Manage rules: list, create, update, move, approve, and delete replication rules
- Monitor: check RSE storage usage, account quotas, proxy certificate validity
All tool descriptions include ATLAS dataset naming conventions so the LLM understands scope formats, AMI tags, and DID structure without extra prompting.
Installation
pip install rucio-mcp
Or with pixi (recommended for ATLAS facilities):
pixi add rucio-mcp
Requirements
- Python 3.10+
- A configured Rucio environment (
rucio.cfgand valid authentication) - For x509 proxy auth: a valid VOMS proxy (
voms-proxy-init -voms atlas)
Quick start
1. Set up authentication
x509 proxy (most common at ATLAS sites):
voms-proxy-init -voms atlas
export RUCIO_ACCOUNT=<your_atlas_account>
export RUCIO_AUTH_TYPE=x509_proxy
export RUCIO_HOME=/path/to/rucio-clients # directory containing etc/rucio.cfg
On CVMFS-based facilities (e.g. UChicago Analysis Facility):
voms-proxy-init -voms atlas
export RUCIO_ACCOUNT=<your_atlas_account>
export RUCIO_AUTH_TYPE=x509_proxy
export X509_CERT_DIR=/cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/etc/grid-security-emi/certificates
export RUCIO_HOME=/cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/rucio-clients/35.6.0
2. Test the server
rucio-mcp serve
The server speaks MCP over stdio. Configure your MCP client to launch it.
3. Configure Claude Code
Add to your .mcp.json (project) or ~/.claude.json (global):
{
"mcpServers": {
"rucio": {
"command": "rucio-mcp",
"args": ["serve"],
"env": {
"RUCIO_AUTH_TYPE": "x509_proxy",
"RUCIO_ACCOUNT": "youraccount",
"X509_CERT_DIR": "/cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/etc/grid-security-emi/certificates",
"RUCIO_HOME": "/cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/rucio-clients/35.6.0"
}
}
}
}
4. Configure Claude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS)
or %APPDATA%\Claude\claude_desktop_config.json (Windows):
{
"mcpServers": {
"rucio": {
"command": "rucio-mcp",
"args": ["serve"],
"env": {
"RUCIO_AUTH_TYPE": "x509_proxy",
"RUCIO_ACCOUNT": "youraccount",
"RUCIO_HOME": "/path/to/rucio-clients"
}
}
}
}
Read-only mode
Start the server with --read-only to block all write operations. Tools that
create, modify, or delete replication rules will return an error instead of
executing.
rucio-mcp serve --read-only
Or in your MCP config:
{
"mcpServers": {
"rucio": {
"command": "rucio-mcp",
"args": ["serve", "--read-only"],
"env": { "...": "..." }
}
}
}
Useful when you want the LLM to help explore data without the ability to accidentally create rules or modify existing ones.
Available tools
Connectivity
| Tool | Description |
|---|---|
rucio_ping |
Check server connectivity and version |
rucio_whoami |
Show authenticated account info |
rucio_voms_proxy_info |
Show VOMS proxy certificate status and expiry |
DID discovery
| Tool | Description |
|---|---|
rucio_list_dids |
Search for datasets/containers by wildcard pattern |
rucio_stat |
Get type, size, and timestamps for a DID |
rucio_list_content |
List immediate contents of a container or dataset |
rucio_list_files |
List all files within a DID |
rucio_get_metadata |
Retrieve metadata key-value pairs for a DID |
rucio_list_parent_dids |
Find containers that hold a given DID |
Replicas
| Tool | Description |
|---|---|
rucio_list_file_replicas |
Physical replica locations (PFNs) for files |
rucio_list_dataset_replicas |
Dataset availability summary across RSEs |
Replication rules
| Tool | Write? | Description |
|---|---|---|
rucio_list_rules |
— | List all rules for a DID |
rucio_rule_info |
— | Detailed info for a specific rule |
rucio_list_rule_history |
— | Full state history of rules for a DID |
rucio_add_rule |
✓ | Create a new replication rule |
rucio_delete_rule |
✓ | Delete a rule (optionally purge replicas) |
rucio_update_rule |
✓ | Update lifetime, locked flag, comment, activity |
rucio_reduce_rule |
✓ | Reduce the number of copies in a rule |
rucio_move_rule |
✓ | Move a rule to a different RSE expression |
rucio_approve_rule |
✓ | Approve a rule awaiting approval |
rucio_deny_rule |
✓ | Deny a rule awaiting approval |
RSEs and storage
| Tool | Description |
|---|---|
rucio_list_rses |
List RSEs matching an expression |
rucio_list_rse_attributes |
Key-value attributes for an RSE |
rucio_list_rse_usage |
Total, used, and free storage at an RSE |
Account
| Tool | Description |
|---|---|
rucio_list_scopes |
List all available scopes |
rucio_list_account_usage |
Storage used per RSE for an account |
rucio_list_account_limits |
Storage quota limits for an account |
Example prompts
Once configured, you can ask Claude things like:
- "Find all DAOD_PHYS containers for mc20_13TeV DSID 700320"
- "Which sites have dataset X available and how complete is each replica?"
- "Create a rule to replicate this dataset to a US Tier-1 disk site for 30 days"
- "Is my proxy still valid? How long do I have left?"
- "Show me the replication rules for this container and their current states"
- "What's my storage quota at CERN-PROD_DATADISK?"
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file rucio_mcp-0.1.0.tar.gz.
File metadata
- Download URL: rucio_mcp-0.1.0.tar.gz
- Upload date:
- Size: 100.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
08652b1044eb43b349b5002ed43ab8355431f981f36939a10e82214de5a4a954
|
|
| MD5 |
1c12f13714fad832f07aa635c34e3ae1
|
|
| BLAKE2b-256 |
7dc71514b73bfb7601a46e7e2bfbe878592cca653e80c98c0bcd4d886789f66f
|
Provenance
The following attestation bundles were made for rucio_mcp-0.1.0.tar.gz:
Publisher:
cd.yml on kratsg/rucio-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
rucio_mcp-0.1.0.tar.gz -
Subject digest:
08652b1044eb43b349b5002ed43ab8355431f981f36939a10e82214de5a4a954 - Sigstore transparency entry: 1185141040
- Sigstore integration time:
-
Permalink:
kratsg/rucio-mcp@76c4be96d80c782abdaab1ad8565077c86ec6c93 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/kratsg
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
cd.yml@76c4be96d80c782abdaab1ad8565077c86ec6c93 -
Trigger Event:
release
-
Statement type:
File details
Details for the file rucio_mcp-0.1.0-py3-none-any.whl.
File metadata
- Download URL: rucio_mcp-0.1.0-py3-none-any.whl
- Upload date:
- Size: 25.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
20d2e0475efbc1102bf2e0ccf7dc154739f1f27685bf757d9a86497d2e7c4d70
|
|
| MD5 |
d188602114e16567eb5cc4e46783e15b
|
|
| BLAKE2b-256 |
45afca1ecf8ada3ad82ab742708f20cd59d112046ce977c18e26f2a0a1375bdb
|
Provenance
The following attestation bundles were made for rucio_mcp-0.1.0-py3-none-any.whl:
Publisher:
cd.yml on kratsg/rucio-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
rucio_mcp-0.1.0-py3-none-any.whl -
Subject digest:
20d2e0475efbc1102bf2e0ccf7dc154739f1f27685bf757d9a86497d2e7c4d70 - Sigstore transparency entry: 1185141041
- Sigstore integration time:
-
Permalink:
kratsg/rucio-mcp@76c4be96d80c782abdaab1ad8565077c86ec6c93 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/kratsg
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
cd.yml@76c4be96d80c782abdaab1ad8565077c86ec6c93 -
Trigger Event:
release
-
Statement type: