Permissions · troubleshooting record
MCP server cannot read a file or execute a command (EACCES)
The server process lacks operating-system permission for a file, directory, socket, or executable. This is an environment boundary problem: adding scopes to an MCP configuration does not change filesystem permissions.
Symptoms
- Startup fails with EACCES or permission denied.
- The server can read some paths but not the configured one.
- The same config works under one user account but not another.
Confirmed causes
These causes have a documented basis. They may not be the cause of your specific failure.
The client launches the server as a different user than the one that owns the files
Child processes inherit the client's user and permissions; a GUI app may run with different access than a terminal.
The configured path is inside a protected system directory
Operating-system permissions still apply to every stdio MCP server.
The executable or Docker socket is not accessible to the user
Docker socket access is restricted to specific groups or users on many systems.
Possible causes
- macOS Full Disk Access or sandbox restrictions.
- Windows ACLs on the target folder.
- A container bind mount with read-only or missing permissions.
What still needs verification
- The user identity of the client and the server process.
- Filesystem permissions and ACLs on the configured path.
- Whether the client applies an OS sandbox to child processes.
Affected environments
Fixes
Align the process identity and path permissions
- Run the client as the user that owns the working files when appropriate.
- Grant the minimum read/write permission on the specific directory, not the whole disk.
- On macOS, review Full Disk Access and sandbox permissions for the client.
Test outside the client
- Run a simple read command as the same user in a terminal.
- Inspect the error path and file ownership.
- Avoid fixing permissions by making secrets world-readable.
Verify the fix
- The server can access only the intended paths.
- No unrelated directory permissions were broadened.
- The client starts the server without EACCES.
Paste the configuration into the Config Doctor. It runs in your browser, never uploads the file, and can show structural issues and safe fixes.
Why we believe this
- nodejs.org/api/errors.htmlOfficial documentation · checked Oct 23, 2026 · documented
Node.js documents EACCES as a permission failure for filesystem or resource access.