gpt-repo-mcp
GPT Repo MCP gives ChatGPT direct context from approved local repos, then lets it write files, update code, prepare plans, review diffs, and carry context into the next chat.
A TypeScript server that connects ChatGPT to your local code repositories so you can ask it in plain language to read files, plan edits, and write code directly into your project, safely, with no push or shell access.
GPT Repo MCP is a TypeScript server that connects ChatGPT to code repositories on your local machine. Once set up, you can ask ChatGPT in plain language to read files, inspect the current state of changes, plan edits, and write code directly into your project. It acts as a bridge between the ChatGPT web interface and your local file system.
The connection works through a tunneling service that gives ChatGPT a URL it can reach from outside your machine. You approve which repositories ChatGPT can access and choose a permission level for each one. The read mode lets ChatGPT look at files and git history but change nothing. The write mode adds the ability to create or update files, with safety checks for file size, path boundaries, and accidental inclusion of secrets. The ship mode further allows staging and committing changes locally, but never pushing to a remote or running arbitrary shell commands.
The main workflow the tool supports is having ChatGPT plan a change, optionally implement it directly by writing files, review the resulting git diff, and then recommend the next step. There is also a coordination flow for working with other AI coding agents: ChatGPT can prepare a task description for a tool like Codex or Claude, save it to a file in the repository, and later read back whatever that agent wrote as a result.
The tool provides a structured set of named operations covering repository browsing, file reading, planning, git review, file writing, and local commit preparation. There are no tools for operations like push, rebase, branch deletion, or running shell commands. The project is not affiliated with OpenAI or Anthropic. It requires Node.js version 20 or later and is released as an open-source TypeScript project.
Where it fits
- Ask ChatGPT in plain language to read and summarize files in your local project without leaving the chat interface.
- Have ChatGPT plan a code change, write it directly into your repo, and show you the git diff for review.
- Coordinate between ChatGPT and another AI coding agent by saving task descriptions to files and reading back their output.
- Grant read-only access to ChatGPT so it can inspect your codebase and git history without risk of changes.