MCPHallu: Benchmarking Reasoning, Execution, and Memory Hallucinations in MCP Agents

Yizhen Jiang, Haowei Guo, Tianyi Bai, Zengjie Hu, Lu Ma +4 more
11/5/2026
cs.AI
benchmark-dataset

Official code: J1zz/mcp_hallu (4 stars, Python, Apache-2.0, last commit 2026-05-07).

Abstract

Large language model agents are increasingly deployed through the Model Context Protocol (MCP), which allows them to discover and invoke tools across multiple servers at runtime. Existing MCP benchmarks primarily measure task completion; where they diagnose failures, they do so after execution rather than building specific reasoning, execution, and memory failure risks into task construction.

Show full abstract

We introduce MCPHallu, a benchmark for diagnosing hallucination-prone agent failures in MCP environments along three axes: reasoning, execution, and memory. MCPHallu contains 358 tasks across five capability domains and runs on 36 production MCP servers in isolated containers. Each task is designed with a structural trigger that makes one of four subtypes the dominant failure risk: Branch Collapse, Unreachable Goal, Tool Misuse, or Context Forgetting. This design enables subtype-level analysis rather than aggregate task success alone. We evaluate fourteen frontier LLM agents from eight vendors on 5{,}012 trajectories. Current MCP agents remain vulnerable to hallucination-inducing tool environments, achieving an average score of 0.642 on a $[0,1]$ scale (higher is better). Failures concentrate on Unreachable Goal tasks, where the average score drops to 0.458 and 23.2\% of runs pass, indicating that agents often continue issuing tool calls or claim successful completion rather than recognizing infeasible goals. Subtype rankings diverge sharply: a model's rank shifts by 6.9 of 13 positions on average across subtypes, and Branch Collapse is uncorrelated with Unreachable Goal across models ($r = -0.12$). MCPHallu is released at https://github.com/J1zz/mcp_hallu.

View on arXivView PDF

Code Implementations(1)

J1zz/mcp_halluOfficial100%
Apache-2.0
40Python, ShellFeb 27, 20266 months agoApache-2.0

Similar Papers

Cite this paper

@article{jiang2026mcphallu,
  title  = {MCPHallu: Benchmarking Reasoning, Execution, and Memory Hallucinations in MCP Agents},
  author = {Yizhen Jiang and Haowei Guo and Tianyi Bai and Zengjie Hu and Lu Ma and Zhengyang Zhao and Haoze Sun and Peng Pei and Wentao Zhang},
  year   = {2026},
  eprint = {2611.07689},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2611.07689v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2611.07689.svg)](https://codeofpaper.com/paper/2611.07689)

Discussion