Skip to main content
Glama
chatgpt-file-mcp

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: Convorel

快速开始

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。

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      B
      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
      Not graded
      quality
      B
      maintenance
      Provides local, read-only MCP tools that expose a specified workspace's directory listing, file contents, text search, git status, and git diff to AI clients.
      2
      Apache 2.0
    • A
      license
      Not graded
      quality
      A
      maintenance
      Enables AI agents to securely list, find, search, read, and stat files in selected Linux directories via read-only MCP tools, with no write, execute, or escape capabilities.
      6
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables MCP clients and AI agents to search, read, list, and reindex locally indexed private code repositories using read-only, path-confined tools.
      MIT