Experiences with Model Context Protocol Servers for Science and High Performance Computing

Haochen Pan, Ryan Chard, Reid Mello, Christopher Grams, Tanjin He, Alexander Brace, Owen Price Skelly, Will Engler, Hayden Holbrook, Song Young Oh, Maxime Gonthier, Michael E. Papka, Ben Blaiszik, Kyle Chard, Ian T. FosterarXiv 2025 · OpenReview

Abstract

Large language model (LLM)-powered agents are increasingly used to plan and execute scientific workflows, yet most research cyberinfrastructure (CI) exposes heterogeneous APIs and implements security models that present barriers for use by agents. We report on our experience using the Model Context Protocol (MCP) as a unifying interface that makes research capabilities discoverable, invokable, and composable. Our approach is pragmatic: we implement thin MCP servers over mature services, including Globus Transfer, Compute, and Search; status APIs exposed by computing facilities; Octopus event fabric; and domain-specific tools such as Garden and Galaxy. We use case studies in computational chemistry, bioinformatics, quantum chemistry, and filesystem monitoring to illustrate how this MCP-oriented architecture can be used in practice. We distill lessons learned and outline open challenges in evaluation and trust for agent-led science.

Introduction

Modern scientific research relies on a fragmented ecosystem of cyberinfrastructure (CI). Executing a single experiment often involves a complex sequence of tasks: moving data via Globus, querying specialized databases, and running simulations on high-performance computing (HPC) resources like Polaris or Perlmutter. Each service typically presents its own unique API and security model, creating a significant barrier for AI agents intended to autonomously plan and execute these workflows. Currently, such "agentic science" requires extensive custom "glue code" for every integration.

This paper explores the Model Context Protocol (MCP) as a universal adapter to bridge this gap. By implementing thin MCP servers over existing infrastructure, we demonstrate that LLM-powered agents can act as the unifying "glue," discovering and invoking heterogeneous research tools through a standardized interface.

Methods

Our approach focuses on building lightweight MCP adapters around mature, existing scientific services rather than re-engineering the services themselves.

Architecture and Integration

The architecture leverages three core MCP primitives: Resources (read-only data like system status), Tools (executable actions like file transfers), and Prompts (reusable templates). We developed MCP servers for Globus (Transfer, Compute, Search), facility status endpoints for ALCF and NERSC, and the Octopus event fabric for real-time monitoring. These servers were deployed as Docker containers using streamable-HTTP transport to ensure cross-domain security.

Dynamic Tool Discovery with Rhea

To manage large-scale toolsets like the Galaxy Toolshed, which contains over 10,000 tools, we implemented Rhea. Rhea is an MCP server that utilizes Retrieval-Augmented Generation (RAG). Instead of saturating an LLM's context window with a static list of tools, Rhea performs semantic search based on natural language queries to dynamically expose only the most relevant tools to the agent.

Results

We evaluated the MCP-oriented architecture through four application case studies and a quantitative benchmark for tool discovery.

Application Case Studies

The system successfully coordinated complex workflows across diverse domains. In a molecular design scenario, an agent discovered a machine-learning model via the Garden MCP server to optimize a copper structure, transitioning from cloud prototypes to HPC batch jobs.

Workflow for the molecular design case study, illustrating the transition from discovery to cloud testing and HPC scaling.

Other successful demonstrations included managing multi-site phylogenetics workflows between ALCF and NERSC, and autonomously calculating HOMO-LUMO gaps for battery electrolytes in a quantum chemistry task.

Rhea Discovery Performance

We benchmarked Rhea using 380 queries from Galaxy training tutorials. Results indicate that providing richer textual context is critical for accurate tool discovery. As shown in Figure 5, using only tool names results in poor recall, whereas including descriptions and README documentation significantly boosts performance, allowing the system to achieve high Recall@k scores.

Recall@k for tool discovery using Rhea. Performance improves significantly as more textual context (descriptions, documentation, READMEs) is added to the RAG index.

Discussion and Conclusion

Our experiences highlight several key insights for agent-led science. Agents can effectively serve as dynamic "glue code" generators, reducing the need for manual integration scripting. Furthermore, the use of RAG for tool discovery provides a scalable path for managing the proliferation of scientific tools. We also observed surprising resilience, with agents identifying and self-correcting errors during execution.

However, challenges remain. Authentication across administrative domains is complex, and agents occasionally exhibit repetitive mistakes or inconsistent outputs. Future work will focus on improving long-term memory for multi-day workflows and refining trust models for autonomous scientific execution.

Summary updated

BibTeX
@misc{pan2025experiences,
  author = {Haochen Pan and Ryan Chard and Reid Mello and Christopher Grams and Tanjin He and Alexander Brace and Owen Price Skelly and Will Engler and Hayden Holbrook and Song Young Oh and Maxime Gonthier and Michael E. Papka and Ben Blaiszik and Kyle Chard and Ian T. Foster},
  title = {{Experiences with Model Context Protocol Servers for Science and High Performance Computing}},
  year = {2025},
  eprint = {2508.18489},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2508.18489},
}
Figure