modelcontextprotocol / modelcontextprotocol/servers

Filesystem cannot read large file

Open
#478 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

bug server-filesystem
Dominant language
TypeScript
Stars
90.5k
Forks
11.7k
Avg merge
2d 2h
Merged PRs (30d)
5

Description

Describe the bug
Claude could not read the file data.csv with error:

Error

File not found: No file named "d:/mcp_sandbox/data.csv"

I created a truncated version data1.csv which is read out

To Reproduce
Steps to reproduce the behavior:

  1. put both the attached file into the same directory that file system is allowed to access.
  2. prompt claude to read each file

Expected behavior
I would expect both files to be readable.

Logs
If applicable, add logs to help explain your problem.

Additional context
Add any other context about the problem here.
data.csv
data1.csv

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the behavior with the attached data.csv and data1.csv files in the permitted directory, following the two reproduction steps. Compare how the filesystem server handles each file and trace the error for data.csv. Done means both files can be read successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.