local-drive-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., "@local-drive-mcplist files in my documents folder"
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.
Local Drive MCP
Standalone Streamable HTTP MCP server for ChatGPT Developer Mode.
This is not a Codex plugin. Codex already has local filesystem access. This server exists so ChatGPT can call controlled local-drive tools through an MCP endpoint.
Tools
list_rootsstat_pathlist_directoryread_fileread_many_fileswrite_fileappend_fileedit_filecreate_directorycopy_pathmove_pathdelete_pathsearch_fileshash_file
Related MCP server: DevSpace
Guardrails
The server only touches paths inside configured roots unless LOCAL_DRIVE_ALLOW_ALL=1.
Current local .env defaults:
LOCAL_DRIVE_ALLOW_ALL=1
LOCAL_DRIVE_ALLOW_WRITE=0
LOCAL_DRIVE_ALLOW_DELETE=0
LOCAL_DRIVE_AUTH_MODE=noneDeletes require both:
LOCAL_DRIVE_ALLOW_DELETE=1
confirm=DELETEThe server refuses to delete a mounted drive root or a configured allowed root.
Install
cd "path\to\local-drive-mcp"
npm installRun Locally
cd "path\to\local-drive-mcp"
npm startLocal endpoint:
http://127.0.0.1:7331/mcpHealth check:
http://127.0.0.1:7331/healthTest
npm run check
npm run smokeConnect From ChatGPT Developer Mode
ChatGPT requires a public HTTPS MCP endpoint.
For development, tunnel this local server:
ngrok http 7331Then use the HTTPS /mcp URL in ChatGPT:
https://<your-ngrok-host>/mcpIn ChatGPT:
Open
Settings -> Apps & Connectors -> Advanced settings.Confirm Developer Mode is on.
Go to
Settings -> Connectors -> Create.Use a name like
Local Drive MCP.Use the tunnel URL ending in
/mcp.Create, inspect the tool list, and test with
List my allowed local drive roots.
Authentication
For a private development tunnel, LOCAL_DRIVE_AUTH_MODE=none allows ChatGPT to connect without a custom auth flow. In that mode this server does not advertise write or delete tools because .env sets LOCAL_DRIVE_ALLOW_WRITE=0.
For static reverse-proxy or bearer-token testing, set:
LOCAL_DRIVE_AUTH_MODE=bearer
LOCAL_DRIVE_MCP_TOKEN=<long-random-token>Requests then require:
Authorization: Bearer <long-random-token>ChatGPT production use should move to OAuth or a locked-down reverse proxy.
For OAuth 2.1 resource-server mode, set:
LOCAL_DRIVE_AUTH_MODE=oauth
LOCAL_DRIVE_MCP_PUBLIC_BASE_URL=https://your-public-host
LOCAL_DRIVE_OAUTH_AUTHORIZATION_SERVER=https://auth.example.com
LOCAL_DRIVE_OAUTH_ISSUER=https://auth.example.com
LOCAL_DRIVE_OAUTH_AUDIENCE=https://your-public-host
LOCAL_DRIVE_OAUTH_JWKS_URL=https://auth.example.com/.well-known/jwks.json
LOCAL_DRIVE_ALLOW_WRITE=1The server publishes:
/.well-known/oauth-protected-resourceand returns a WWW-Authenticate challenge when protected requests lack a valid bearer token.
This server cannot be deployed
Maintenance
Related MCP Connectors
Nifty's MCP server — exposes tasks, projects, messages, and files as tools for AI agents.
Hosted MCP server connecting claude.ai, ChatGPT and other AI apps to your own computer
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Search your AI chat history (ChatGPT, Claude, Codex) from any MCP client. Remote, private, read-only
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceLocal MCP server bridging ChatGPT Web to local tools for file, shell, git, test, and process management with secure policy controls.MIT
- AlicenseNot gradedqualityDmaintenanceA self-hosted MCP server that gives ChatGPT a secure connection to your local machine, enabling it to read, edit, search, and run code in your projects.1,249 npmMIT
- FlicenseNot gradedqualityCmaintenanceLocal MCP server enabling ChatGPT to reference large files by path, manage long-running jobs, and register local resources like screenshots and logs without modifying source files.-
- AlicenseNot gradedqualityCmaintenanceLocal MCP server enabling Codex and ChatGPT to read/write files, execute commands, manage processes, use Git, and inspect images on the user's machine with full privileges.Apache 2.0