HTN Planning as a Coordination Layer for Multi-Server MCP Tool Orchestration
Organizations: RIKEN, Kobe, Japan · Cosmic AI, France
Abstract
The Model Context Protocol (MCP) isolates servers by design: only the host can orchestrate cross-server workflows. When the host is a large language model, the resulting orchestrations are non-deterministic, non-reproducible, and pay one inference round-trip per tool call. We present a coordination architecture in which a Hierarchical Task Network (HTN) planner generates a verifiable cross-server plan once, and a runtime middleware executes it deterministically across multiple MCP servers, binding cross-action data dependencies via a template mechanism (\verb|${context.X}|) substituted at execution time. The architecture mirrors MCP's isolation constraint: each compound task decomposes into server-local primitive actions, and inter-server data flow is bound at execution time via JSON-path output extractors. We instantiate the architecture on five HTN domains spanning laboratory robotics, bioinformatics and multiscale modelling, and demonstrate end-to-end execution from a browser-based plan controller against eight live third-party MCP servers querying real biological databases.
Figures & tables
| Evidence category | Server(s) | Tools |
|---|---|---|
| Disease–target associations | OpenTargets | 6 |
| Protein characterisation | UniProt | 26 |
| Mechanism (pathways) | Reactome, KEGG | 8 + 33 |
| Structure (experimental, predicted) | PDB, AlphaFold | 5 + 19 |
| Chemistry (compounds, bioactivity) | ChEMBL | 27 |
| Literature (cross-cutting) | PubMed | 16 |
| Run | Subprocesses | Wall-clock | Executed |
|---|---|---|---|
| 1 | cold (just spawned) | 35 s | 8/8 |
| 2 | warm (reused) | 29 s | 8/8 |
| 3 | warm (reused) | 15 s | 8/8 |