The simplest way is to have a command that the MCP server can hit to interface with the filesystem.

This is the simplest way I know of to get started with it.

https://modelcontextprotocol.io/quickstart/user

Yeah, I guess my question was: that assumes the MCP server is running on the same machine as your files? Otherwise, if it's a remote MCP server then you would have to be developing on that remote machine? That may be an obvious "yes" so I just wonder why there are so many posts around hosting MCP servers via Cloudfare or what have you if they can't even edit your files on your machine.