MCP-Secure: A Runtime Access Control Layer for Privilege-Aware LLM Agent Tooling

Read full text
Authors: Gamini Singh, Vijay K. Madisetti
Cited by: 3
References: 6

Abstract

Tool-enabled language-model agents introduce new security risks because their behavior evolves over multi-step workflows, yet existing defenses primarily rely on static allowlists or infrastructure isolation. This paper presents MCP-Secure, a lightweight, host-side enforcement layer for the Model Context Protocol (MCP) that applies scoped access, read-only defaults, and approval-gated privilege elevation at runtime. MCP-Secure tracks permissions through a session-level state machine and mediates every tool invocation without modifying agents or MCP servers. We evaluate the framework across 1,080 executions spanning multiple models, tasks, and adversarial simulations. Results show that scoped access alone blocks most unsafe behaviors, read-only enforcement reliably neutralizes all mutating attack vectors, and approval-gated elevation maintains strong safety while enabling controlled write operations. Across configurations, the wrapper also shapes agent planning, reducing unsafe attempts as policies tighten. These findings demonstrate that MCP-Secure provides a practical, reproducible mechanism for enforcing least-privilege constraints in tool-enabled LLM systems, offering strong adversarial resistance with interpretable safety-utility trade-offs.

Fields of Study & Subjects

Security and Verification in Computing Mobile Agent-Based Network Management Access Control and Trust

Publication details

Journal / source
IEEE Open Journal of the Computer Society
Publisher
Institute of Electrical and Electronics Engineers (IEEE)
Volume
7
Pages
504–513
Publication date
1 January 2026