MCP Roots

MCP

Definition

An MCP security mechanism where clients define allowed filesystem paths (roots) that servers can access. Servers request which roots they need; clients enforce boundaries. Prevents MCP servers from accessing files outside designated directories.

Example Usage

Set roots to the project directory only, preventing an MCP file server from reading sensitive files outside the workspace.