local-drive-mcp
MCP server enabling ChatGPT to interact with local filesystem via controlled file operations like read, write, edit, and search, with configurable guardrails for safety.
README
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
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=none
Deletes require both:
LOCAL_DRIVE_ALLOW_DELETE=1
confirm=DELETE
The server refuses to delete a mounted drive root or a configured allowed root.
Install
cd "path\to\local-drive-mcp"
npm install
Run Locally
cd "path\to\local-drive-mcp"
npm start
Local endpoint:
http://127.0.0.1:7331/mcp
Health check:
http://127.0.0.1:7331/health
Test
npm run check
npm run smoke
Connect From ChatGPT Developer Mode
ChatGPT requires a public HTTPS MCP endpoint.
For development, tunnel this local server:
ngrok http 7331
Then use the HTTPS /mcp URL in ChatGPT:
https://<your-ngrok-host>/mcp
In 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=1
The server publishes:
/.well-known/oauth-protected-resource
and returns a WWW-Authenticate challenge when protected requests lack a valid bearer token.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
Neon Database
MCP server for interacting with Neon Management API and databases
E2B
Using MCP to run code via e2b.
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.