remote-fs-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@remote-fs-mcp Search my projects folder for TODO comments and list the files they're in"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
remote-fs-mcp
Give any AI access to your computer's files and terminal, from anywhere.
Run this MCP server on your PC, a VPS, or in Docker. Then connect Claude, Cursor, VS Code, or your own agent to it. The AI can read, write, edit and search files, and run terminal commands on that machine. That works even when you're only using a browser or your phone.
Features
Files and folders: read, write, edit, list, search, copy, move and delete
Terminal: run commands, plus start long-running processes like dev servers and watch their output
Fast: stateless HTTP; uses ripgrep for search when it's installed
Secure: token auth, every file locked to one folder, read-only and no-commands modes
Works everywhere: Windows, macOS and Linux, Docker, VPS, or your PC through a tunnel
Any MCP client: Claude (web, desktop and Code), Cursor, VS Code, or your own code
Related MCP server: remote-access-mcp
Quick start
1. Install
git clone https://github.com/RaheesAhmed/remote-fs-mcp.git
cd remote-fs-mcpThen install:
uv sync2. Configure
Copy the example config:
cp .env.example .env # Windows: copy .env.example .envOpen .env and set at least these two values:
MCP_FS_TOKEN=put-a-long-random-string-here
MCP_FS_ROOT=D:\projects # the folder the AI is allowed to work inGenerate a strong token with:
python -c "import secrets; print(secrets.token_urlsafe(32))"3. Run
uv run remote-fs-mcpThe server is now running at http://localhost:8765/mcp.
Check that it's up by opening http://localhost:8765/health.
Use it from anywhere (browser or phone)
Your PC has to be reachable from the internet. Pick one of these options.
Option A: Tunnel from your PC (easiest)
Use ngrok or cloudflared. Add these lines to .env:
MCP_FS_ALLOWED_HOSTS=*.ngrok-free.app # cloudflared: *.trycloudflare.com
MCP_FS_ALLOWED_ORIGINS=https://claude.ai
MCP_FS_URL_TOKEN=trueStart the server, then start the tunnel in a second terminal:
remote-fs-mcp
ngrok http 8765 # or: cloudflared tunnel --url http://localhost:8765Your server URL is the address ngrok gives you, for example https://abc123.ngrok-free.app.
Option B: VPS with your own domain
Run the server on the VPS with
MCP_FS_HOST=127.0.0.1.Put Caddy in front of it for free HTTPS. A ready config is in
deploy/Caddyfile.Set
MCP_FS_ALLOWED_HOSTS=mcp.yourdomain.com.Optional: run it as a background service with
deploy/remote-fs-mcp.service.
Option C: Docker (safest)
Commands run inside the container, not directly on your machine.
cp .env.example .env
mkdir workspace
docker compose up -d --buildPut the files you want the AI to work on in ./workspace.
Connect your AI
In every example below:
Replace
https://YOUR-URLwith your server address (local:http://localhost:8765).Replace
YOUR_TOKENwith yourMCP_FS_TOKEN.
Claude (web and mobile)
Go to Settings → Connectors → Add custom connector.
Paste this URL:
https://YOUR-URL/YOUR_TOKENLeave the auth settings empty.
This needs MCP_FS_URL_TOKEN=true in .env, as shown in Option A.
Claude Code
claude mcp add --transport http remote-fs https://YOUR-URL/mcp \
--header "Authorization: Bearer YOUR_TOKEN"Cursor
Add this to ~/.cursor/mcp.json:
{
"mcpServers": {
"remote-fs": {
"url": "https://YOUR-URL/mcp",
"headers": { "Authorization": "Bearer YOUR_TOKEN" }
}
}
}VS Code / GitHub Copilot
Add this to .vscode/mcp.json:
{
"servers": {
"remote-fs": {
"type": "http",
"url": "https://YOUR-URL/mcp",
"headers": { "Authorization": "Bearer YOUR_TOKEN" }
}
}
}Claude Desktop (and other apps that only support local commands)
{
"mcpServers": {
"remote-fs": {
"command": "npx",
"args": ["-y", "mcp-remote", "https://YOUR-URL/mcp",
"--header", "Authorization: Bearer YOUR_TOKEN"]
}
}
}Same computer, no network
{
"mcpServers": {
"remote-fs": {
"command": "remote-fs-mcp",
"args": ["--stdio", "--root", "/path/to/project"]
}
}
}Your own Python code
import asyncio
from fastmcp import Client
async def main():
async with Client("https://YOUR-URL/mcp", auth="YOUR_TOKEN") as ai:
result = await ai.call_tool("run_command", {"command": "dir"})
print(result.structured_content["stdout"])
asyncio.run(main())Any language (plain HTTP)
curl -s https://YOUR-URL/mcp \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"list_directory","arguments":{"path":"."}}}'Usage
Once connected, talk to your AI normally. It picks the right tools on its own.
Example prompts:
"Show me what's in my project folder."
"Find every file that uses
fetchUserand rename it togetUser.""Read
src/app.pyand fix the bug on line 40.""Create a new Next.js app in a folder called
my-site.""Run
npm install, then start the dev server and tell me when it's ready.""Run the tests and fix whatever fails."
"Check git status and commit my changes with a good message."
"Zip the
reportsfolder."
All paths are relative to MCP_FS_ROOT, so src/app.py means <root>/src/app.py.
Tools
Files and folders
Tool | What it does |
| Read a file, or a range of lines ( |
| Read up to 50 files in one call. |
| Create or overwrite a file. Modes: |
| Find and replace exact text in a file and get back a diff. Supports |
| List a folder. Use |
| Size, type, permissions and dates. |
| Create a folder, including any missing parents. |
| Copy a file or a whole folder. |
| Move or rename a file or folder. |
| Delete a file or folder. A folder that isn't empty needs |
Search
Tool | What it does |
| Find files by name, e.g. |
| Search inside files, as plain text or regex, with optional context lines. |
Terminal
Tool | What it does |
| Run a command and wait for it to finish. Returns output and exit code. Has a timeout. |
| Start something that keeps running (dev server, watcher) and return its id. |
| Read new output from a running process. |
| Type into a running process, e.g. to answer a prompt. |
| Stop a process and everything it started. |
| Show the processes that are running. |
Info
Tool | What it does |
| Root folder, OS, shell, and which features are enabled. |
Configuration
All settings go in .env.
Setting | Default | What it does |
| auto-generated | Access token. |
| – | Several tokens, comma separated, so each AI gets its own. |
| current folder | The only folder the file tools can access. |
|
| Allow reading only. Hides all write, delete and command tools. |
|
| Turn the terminal tools on or off. |
|
| Turn deleting on or off. |
| – | Files the AI can never touch, e.g. |
|
| Allow access to dotfiles. |
| – | Your public domain. Wildcards work, e.g. |
| – | Allowed web origins, e.g. |
|
| Accept the token in the URL: |
|
| Address to listen on. |
|
| Port. |
| bash / cmd.exe | Shell used for commands, e.g. |
|
| Default command timeout in seconds. |
|
| Longest timeout a command can ask for. |
|
| Maximum size of each tool response. |
|
| Maximum background processes at once. |
Command-line flags (these override .env):
remote-fs-mcp --root D:\projects --port 9000
remote-fs-mcp --read-only # AI can only look, not change anything
remote-fs-mcp --no-commands # files only, no terminal
remote-fs-mcp --stdio # local use, no networkSecurity
⚠️ This gives an AI real control over a computer. Treat your token like a password.
Every request needs your token. Requests without it are rejected.
File tools only work inside
MCP_FS_ROOT. Paths using../, other drives, and symlinks that point outside are all blocked.Terminal commands are not limited to the root folder. They can do anything your user account can do. If others might use the server, run it in Docker or a VM, or use
--no-commands.Always use HTTPS on the internet. Tunnels and Caddy give you HTTPS automatically.
If you use
MCP_FS_URL_TOKEN, the URL itself is the password. Don't share it. If it leaks, changeMCP_FS_TOKENand restart.Your token is hidden from the commands the AI runs.
Use
MCP_FS_DENY_GLOBSto protect secrets like.envfiles and keys.
Troubleshooting
Error | Fix |
| Add your domain to |
| Add the site to |
| The token is missing or wrong. |
| Set |
Search is slow | Install ripgrep: |
AI can't find my files | Check |
Development
pip install -e ".[dev]"
python tests/test_e2e.pyThe tests start a real server and check every tool, the auth, and the sandbox.
License
MIT. Use it, change it, ship it.
Available Tools
19 toolscopy_pathCopy PathB
Copy a file or a whole folder.
Inputs: source (required), destination (required), overwrite. Returns: object
create_directoryCreate DirectoryBIdempotent
Create a folder and any missing parents.
Inputs: path (required). Returns: object
delete_pathDelete PathBDestructive
Permanently delete a file or folder.
Inputs: path (required), recursive. Returns: object
edit_fileEdit FileA
Surgical edit: replace exact text blocks and return a unified diff. Much cheaper than rewriting a whole file.
Inputs: path (required), edits (required), dry_run. Returns: object
find_filesFind FilesBRead-onlyIdempotent
Find files by name/glob, fast (uses ripgrep when installed).
Inputs: pattern (required), path, max_results, include_ignored. Returns: object
get_file_infoGet File InfoCRead-onlyIdempotent
Size, type, permissions and timestamps for a path.
Inputs: path (required). Returns: object
list_directoryList DirectoryBRead-onlyIdempotent
List a folder (optionally recursive). Returns compact lines: 'd name/' for folders, 'f name size' for files.
Inputs: path, depth, pattern, skip_heavy, +2 more. Returns: object
list_processesList ProcessesARead-onlyIdempotent
List background processes started by this server.
Inputs: no named parameters. Returns: result
move_pathMove PathC
Move or rename a file or folder.
Inputs: source (required), destination (required), overwrite. Returns: object
process_outputProcess OutputARead-onlyIdempotent
Read output from a background process (incrementally with since).
Inputs: process_id (required), since, wait_ms. Returns: object
read_fileRead FileARead-onlyIdempotent
Read a file. Text is returned by line range; binary files can be returned as base64.
Inputs: path (required), limit, offset, as_base64, +1 more. Returns: object
read_many_filesRead Many FilesARead-onlyIdempotent
Read several text files in one round-trip. Errors are reported per file, not raised.
Inputs: paths (required), max_chars_each. Returns: result
run_commandRun CommandADestructive
Run a shell command and wait for it to finish. Returns exit code, stdout and stderr. For servers/watchers that never exit, use start_process instead.
Inputs: command (required), cwd, env, stdin, +1 more. Returns: object
search_textSearch TextBRead-onlyIdempotent
Grep across files (ripgrep speed when installed). Returns 'path:line: text' lines.
Inputs: query (required), path, regex, file_glob, +3 more. Returns: object
send_process_inputSend Process InputADestructive
Type into a running process's stdin (answer prompts, REPLs).
Inputs: text (required), process_id (required), newline. Returns: object
server_infoServer InfoARead-onlyIdempotent
Server root, OS/shell, enabled features and limits. Call once at the start.
Inputs: no named parameters. Returns: object
start_processStart ProcessADestructive
Start a background process and return its id. Poll it with process_output.
Inputs: command (required), cwd, env, wait_ms. Returns: object
stop_processStop ProcessBDestructive
Stop a background process and all its children.
Inputs: process_id (required), force, forget. Returns: object
write_fileWrite FileA
Create or replace a file atomically (never leaves a half-written file).
Inputs: path (required), content (required), mode, is_base64. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 19 tools
Each tool targets a distinct resource+action pair: read/write/edit/move/copy/delete operate on clearly different file operations, and the filesystem search trio (list_directory, find_files, search_text) is well separated by what each returns. The process set (start_process, process_output, send_process_input, stop_process, list_processes) maps cleanly onto distinct lifecycle stages, and run_command explicitly documents its boundary against start_process.
The overwhelming majority follow a verb_noun pattern (read_file, create_directory, delete_path, start_process, list_processes). Two outliers break it: server_info (noun-only) and process_output (noun_verb), a minor but noticeable deviation from the otherwise uniform convention.
19 tools is on the heavy side of the ideal range, but nearly every one earns its place across two coherent sub-domains (filesystem and process control). Nothing looks redundant or padded, though the process tooling adds bulk an agent may rarely use.
Full CRUD plus metadata, recursive listing, glob find, and text grep cover the filesystem domain thoroughly, and the background process lifecycle is complete (start/output/input/stop/list). Minor gaps remain: no append/tail, no permission or timestamp mutation (chmod/touch), and no symlink or archive handling.
Related MCP Connectors
Remote MCP server exposing your Node Command fleet (files, shell, processes, browser) to AI hosts.
Remote MCP access to user-authorized Linux, Windows and Intel Mac devices for AI assistants.
Remote MCP server for supportsheep: run AI interviews and manage support content for your blog.
Remote MCP server for supportsheep: run AI interviews and manage support content for your blog.
Related MCP Servers
- AlicenseAqualityDmaintenanceA secure, Dockerized MCP server enabling AI assistants to perform file and directory CRUD operations like read, write, edit, search, and manage local files via natural language.11MIT
- AlicenseNot gradedqualityBmaintenanceTurns any Linux server into an AI-agent-accessible machine over HTTPS, allowing MCP clients like ChatGPT, Claude, and Grok to securely control files, run shell commands, inspect system state, query SQLite, and work with git behind a bearer token.149 npm7MIT
- AlicenseNot gradedqualityCmaintenanceGives MCP-compatible AI clients a controlled bridge to local files, processes, search, and document utilities, including reading/writing and moving files, text block editing, directory listing, content search, starting and managing terminal processes, and PDF/Excel/DOCX/image handling. It serves these tools over MCP Streamable HTTP at a configurable endpoint, with optional Bearer-token authentication and read-only or restricted-directory modes for safer remote exposure.1MIT
- AlicenseNot gradedqualityBmaintenanceTurns your own computer into a remotely reachable MCP server so AI clients anywhere can read, write, and run commands against its files, toolchains, and local services. Includes a built-in Cloudflare tunnel, bearer-token auth, and switchable read-only, workspace, and full permission tiers with call logging.5MIT