Command Palette

Search for a command to run...

UnylyUnyly
Весь каталог

Xrootd

БесплатноНе проверен

An MCP server that allows for querying XRootD servers by LLM agents.

GitHubEmbed

Описание

An MCP server that allows for querying XRootD servers by LLM agents.

README

A Model Context Protocol (MCP) server that provides access to XRootD file systems. This server allows LLMs to interact with XRootD servers to list directories, read file metadata, access file contents, and more.

📚 View Full Documentation

Features

  • List directories: Browse XRootD file system hierarchy
  • File metadata: Get detailed information about files (size, modification time, permissions)
  • Read file contents: Access file data from XRootD servers with byte-range support
  • File operations: Check file existence, calculate directory sizes
  • Search & filtering: Find files by pattern (glob/regex), filter by size/date
  • Statistics & analytics: Comprehensive directory statistics and usage reports
  • Campaign discovery: List available production campaigns and datasets
  • Recent changes: Track newly added files and monitor production progress
  • ROOT file analysis: Inspect ROOT file structure, extract metadata, analyze events and collections
  • Dataset aggregation: Aggregate event statistics across multiple ROOT files
  • Protocol support: Connect to XRootD servers via root:// protocol

Installation

Using Docker (Recommended)

docker pull ghcr.io/eic/xrootd-mcp-server:latest

docker run -i --rm \
  -e XROOTD_SERVER="root://dtn-eic.jlab.org" \
  -e XROOTD_BASE_DIR="/volatile/eic/EPIC" \
  ghcr.io/eic/xrootd-mcp-server:latest

See Docker Usage Guide for detailed instructions.

From Source

npm install
npm run build

Configuration

Set the XRootD server URL using the XROOTD_SERVER environment variable:

export XROOTD_SERVER="root://dtn-eic.jlab.org"

Optionally, set a base directory to restrict access and simplify paths:

export XROOTD_BASE_DIR="/volatile/eic/EPIC"

When XROOTD_BASE_DIR is set:

  • Relative paths are resolved relative to the base directory
  • Absolute paths must be within the base directory (access control)
  • For example, with base /volatile/eic/EPIC, the path EVGEN refers to /volatile/eic/EPIC/EVGEN

Transports

The server speaks stdio by default (for clients that spawn it themselves). Two HTTP transports are available via MCP_TRANSPORT:

# Streamable HTTP: MCP endpoint at http://127.0.0.1:9102/mcp
MCP_TRANSPORT=http XROOTD_SERVER="root://dtn-eic.jlab.org" node build/src/index.js

# Legacy SSE: endpoints at /sse and /messages
MCP_TRANSPORT=sse XROOTD_SERVER="root://dtn-eic.jlab.org" node build/src/index.js

MCP_HOST (default 127.0.0.1) and MCP_PORT (default 9102) control the bind address. The server binds loopback by default; binding any other address prints a warning because the tools carry no authentication.

An HTTP client config then looks like:

{
  "mcpServers": {
    "xrootd": {
      "type": "http",
      "url": "http://127.0.0.1:9102/mcp"
    }
  }
}

Caching

Directory listing results are cached for improved performance:

export XROOTD_CACHE_ENABLED=true      # default: true
export XROOTD_CACHE_TTL=60            # minutes, default: 60
export XROOTD_CACHE_MAX_SIZE=1000     # max entries, default: 1000

The cache uses a time-based expiration strategy (TTL):

  • Directory listings are cached in memory
  • Cache entries expire after the configured TTL
  • Automatic cleanup removes expired entries every 15 minutes
  • LRU eviction when cache size exceeds 1000 entries

Note: Cached data may be up to TTL minutes old. For production data that changes infrequently, a 60-minute TTL provides good performance with acceptable staleness.

Usage

With MCP Client

Add to your MCP client configuration:

{
  "mcpServers": {
    "xrootd": {
      "command": "node",
      "args": ["/path/to/xrootd-mcp-server/build/index.js"],
      "env": {
        "XROOTD_SERVER": "root://dtn-eic.jlab.org",
        "XROOTD_BASE_DIR": "/volatile/eic/EPIC",
        "XROOTD_CACHE_ENABLED": "true",
        "XROOTD_CACHE_TTL": "60"
      }
    }
  }
}

Available Tools

Basic File Operations:

  • list_directory: List contents of an XRootD directory
  • get_file_info: Get detailed metadata about a file
  • read_file: Read contents of a file (with optional byte range)
  • check_file_exists: Check if a file or directory exists
  • get_directory_size: Calculate total size of a directory

Advanced Search & Analysis:

  • search_files: Search for files by glob pattern or regex
  • list_directory_filtered: List directory with advanced filtering (size, date, extension, pattern)
  • find_recent_files: Find files modified within a time period
  • get_statistics: Get comprehensive statistics about files in a directory

Campaign & Dataset Discovery:

  • list_campaigns: List available production campaigns
  • list_datasets: List datasets within a specific campaign
  • summarize_recent_changes: Summarize files added in a time period with detailed statistics

Development

# Build
npm run build

# Watch mode
npm run watch

Requirements

  • Node.js 18 or higher
  • Access to an XRootD server
  • xrdfs command-line tool installed (from xrootd-client package)

License

MIT

from github.com/eic/xrootd-mcp-server

Установка Xrootd

У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.

▸ github.com/eic/xrootd-mcp-server

FAQ

Xrootd MCP бесплатный?

Да, Xrootd MCP бесплатный — установка в пару кликов через Unyly без оплаты.

Нужен ли API-ключ для Xrootd?

Нет, Xrootd работает без API-ключей и переменных окружения.

Xrootd — hosted или self-hosted?

Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.

Как установить Xrootd в Claude Desktop, Claude Code или Cursor?

Открой Xrootd на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.

Похожие MCP

Fetch

Web content fetching and conversion for efficient LLM usage.

автор: Community

Roblox Studio

Enables AI coding tools to control Roblox Studio for workspace exploration, instance manipulation, and script management. It provides tools for playtesting, sce

paralovавтор: paralov

AWS KB Retrieval

Retrieval from AWS Knowledge Base using Bedrock Agent Runtime.

modelcontextprotocolавтор: modelcontextprotocol

Spring AI MCP Server

Provides auto-configuration for setting up an MCP server in Spring Boot applications.

автор: Community

llm-analysis-assistant

A very streamlined mcp client that supports calling and monitoring stdio/sse/streamableHttp, and can also view request responses through the /logs page. It also

xuzexin-hzавтор: xuzexin-hz

MCP-Agent

A simple, composable framework to build agents using Model Context Protocol by [LastMile AI](https://www.lastmileai.dev)

lastmile-aiавтор: lastmile-ai

Spring AI MCP Client

Provides auto-configuration for MCP client functionality in Spring Boot applications.

автор: Community

mcp.natoma.ai

A Hosted MCP Platform to discover, install, manage and deploy MCP servers by [Natoma Labs](https://www.natoma.ai)

автор: Community

MCPHub

Website to list high quality MCP servers and reviews by real users. Also provide online chatbot for popular LLM models with MCP server support.

автор: Community

MCP Servers Rating and User Reviews

Website to rate MCP servers, write authentic user reviews, and [search engine for agent & mcp](http://www.deepnlp.org/search/agent)

автор: Community

Compare Xrootd with

Не уверен что выбрать?

Найди свой стек за 60 секунд

Автор?

Embed-бейдж для README

Похожее

Все в категории ai