Skip to main content
Glama
limars874

chatgpt-file-mcp

by limars874

chatgpt-file-mcp

一个本地、只读的 MCP 服务器,将明确授权的目录暴露给本地 ChatGPT/OpenAI MCP 客户端。

它提供什么

  • macOS/Linux 上的 Node.js >=20

  • 仅支持 MCP stdio 传输;无公共监听器

  • 六个只读工具:list_roots、list_directory、search_files、search_text、read_file 和 read_file_range

  • 根相对路径、策略检查、有界读取/搜索以及无内容的审计记录

Related MCP server: Secure Local Workspace MCP

快速开始

npm ci --ignore-scripts --audit=false --fund=false
npm run build
npm test
npm run security:check

使用一个明确的绝对配置路径启动:

node /absolute/path/to/dist/main.js --config /absolute/path/to/config.yaml

最小配置:

version: 1
roots:
  - name: project
    path: /absolute/path/to/project
audit:
  path: /absolute/path/to/audit.jsonl

请勿将凭据、审计日志或私有配置文件放入仓库。有关安全范围和已知限制,请参阅 SECURITY_REVIEW.md。

Related MCP Connectors

Related MCP Servers

  • A
    license
    A
    quality
    B
    maintenance
    Enables ChatGPT and Codex to safely work with explicitly authorized local project folders through MCP, providing constrained file reading, searching, patch editing, Git inspection, and whitelisted tasks without exposing arbitrary shell, deletion, or deployment capabilities.
    17
    MIT
  • A
    license
    Not graded
    quality
    A
    maintenance
    Enables ChatGPT, Codex, and compatible MCP clients to read bounded UTF-8 text and create files or directories in operator-selected folders, with strict protections against overwrites, deletes, and path escapes.
    Apache 2.0
  • A
    license
    A
    quality
    C
    maintenance
    Enables ChatGPT Web to inspect a single local workspace read-only via the OpenAI Secure MCP Tunnel, with tools for listing files, reading text, searching, and viewing Git status/diff.
    6
    MIT