What are Model Context Protocol (MCP) roots?

MCP roots are a Model Context Protocol client feature by which the client tells a server, with file:// URIs, which directories and files are relevant so it can focus its work. It is deprecated as of revision 2026-07-28.

Roots are not access control: the specification calls them informational guidance and the protocol does not enforce that servers stay within them, so real limits need operating system permissions and host policies. Unlike MCP resources, offered by servers, roots come from the client.

Topic
Agents and protocols
Also known as
Roots
Origin
Model Context Protocol specification, 2024

How Model Context Protocol (MCP) roots work

  1. The user picks a workspace or project directory in the host application.
  2. The client declares the roots capability; while handling a request the server asks for the root list.
  3. The client returns directories with a URI and optional name.
  4. The server focuses file operations on these directories; new implementations pass directories via tool parameters, resource URIs or server configuration.

In more detail

Why roots are being deprecated and migration patterns

MCP roots were deprecated in revision 2026-07-28 largely because advisory client-level boundaries led to a false sense of security and broke down in multi-root or stateless remote server architectures. Passing workspace paths explicitly via tool parameters, resource URIs or server startup configuration makes scope binding deterministic per request and easier to audit.

Dynamic update notifications

If a client declares 'roots.listChanged', it can send 'notifications/roots/list_changed' whenever the user opens, switches or closes workspace folders, prompting the server to re-query 'roots/list'. Legacy implementations still supporting roots must handle these dynamic updates without caching stale directory lists across project switches.

Symlinks and canonical path validation

Simple prefix string checks on 'file://' URIs are vulnerable to directory traversal ('..'), URL encoding tricks and symbolic links pointing outside the workspace. Hosts and servers enforcing directory boundaries must canonicalise paths (resolving symlinks with 'realpath') before verifying containment and pair this with OS-level container mount isolation.

Commonly confused terms

TermHow it differs
Explicit tool parametersExplicit tool parameters (e.g., passing a 'path' or 'workspace' argument in tools/call) bind the directory scope per invocation, replacing the deprecated session-wide MCP roots mechanism in new implementations.

Why Model Context Protocol (MCP) roots matter for on-premises AI

Roots tell a server which project to work on. The specification requires clients to expose only appropriately permitted roots, validate URIs against path traversal and get user consent first; servers should respect root boundaries. Revision 2026-07-28 deprecates the feature: it stays for at least twelve months, new implementations should not adopt it and existing ones should pass directories or files via tool parameters, resource URIs or server configuration.

ON-PREMISES EXAMPLE

A games studio used roots to keep an MCP server in its code editor within the chosen repository; after the protocol update it moved the path into server configuration and limited file access with operating system permissions.

Common questions

Do MCP roots provide access control?

No. The specification treats roots as informational; the protocol does not enforce that servers stay within them. Set access limits with operating system permissions and host policies.

Should MCP roots still be used?

They are deprecated as of revision 2026-07-28. New implementations should pass directories via tool parameters, resource URIs or server configuration.

Sources

In the glossary: Glossary, M to Q

What does this term mean for your infrastructure?

We can work out together in a technical assessment how it maps onto your data, hardware and security requirements.

Request a technical assessment →

This site sets no cookies. Visitor numbers are counted in aggregate using a cookieless method that does not identify anyone. See the Privacy Policy for details.