Codex Free
Provides tools for interacting with Git repositories, including viewing status, committing changes, pushing commits to a remote, and viewing commit history.
Click on "Install 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., "@Codex FreeCheck the git log and show me the last 5 commits"
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.
Codex Free
Codex Free (but you still have to buy ChatGPT Plus)
A local MCP bridge server that lets ChatGPT Web Pro call tools on your machine: read/write files, run shell commands, git operations, search. Built with Bun + TypeScript, using @modelcontextprotocol/sdk over Streamable HTTP.
ChatGPT talks to a public tunnel URL, which forwards to this server running on your machine, which operates on a project directory you choose.
Architecture
flowchart LR
ChatGPT["ChatGPT Web Pro"]
Tunnel["Public Tunnel\n(ngrok / cloudflared)"]
Server["Codex Free\nMCP Bridge\n:3000"]
Tools["Tool Registry"]
FS["read_file\nwrite_file\nlist_directory\ntree"]
Search["glob\ngrep"]
Shell["run_command"]
Git["git_status\ngit_push\ngit_commit\ngit_log"]
WorkDir[("Project\nDirectory")]
ChatGPT -- "HTTPS" --> Tunnel
Tunnel -- "HTTP\n/mcp" --> Server
Server -- "Streamable HTTP\n(MCP Protocol)" --> Tools
Tools --> FS
Tools --> Search
Tools --> Shell
Tools --> Git
FS --> WorkDir
Search --> WorkDir
Shell --> WorkDir
Git --> WorkDirRelated MCP server: webgpt MCP
Quick start
bun install
bun run main.ts --work-dir /path/to/your/projectServer starts on http://localhost:3000. MCP endpoint is /mcp.
CLI flags
Flag | Required | Default | Description |
| Yes | - | Project directory the tools operate on |
| No |
| Server port |
| No | - | Bearer token for auth |
| No |
| Config file path |
Tools
Tool | Description |
| Read a file's contents, with optional line offset/limit |
| Write content to a file, creating parent directories if needed |
| Execute a command in the work directory (allowlist-restricted) |
| Show git status, parsed into changed files with status codes |
| Push commits to a remote |
| Create a commit, optionally staging all tracked changes |
| Show recent commit history |
| Find files matching a glob pattern |
| Search file contents by regex, with optional context lines |
| List files and directories with name, type, and size |
| Print directory tree as ASCII art |
All paths are resolved relative to --work-dir.
Config file
codex.config.json in the project root, or pass a custom path with --config:
{
"allowedCommands": ["bun", "npm", "npx", "node", "git", "python", "pip", "cargo", "make"],
"port": 3000,
"tree": {
"defaultDepth": 3,
"ignore": ["node_modules", ".git", "dist", ".next", "__pycache__", ".venv", "venv"]
},
"command": {
"defaultTimeout": 30000,
"maxTimeout": 120000
}
}CLI flags override values from the config file.
Connecting to ChatGPT
Start the server:
bun run main.ts --work-dir /path/to/your/projectExpose it with a tunnel (ngrok, Cloudflare Tunnel, etc.):
ngrok http 3000In ChatGPT, go to Settings > Connectors > Add MCP Server.
Enter the tunnel URL with
/mcpappended, e.g.https://<your-tunnel>/mcp.
If --api-key is set, add an Authorization: Bearer <key> header when configuring the connector.
Security
Path traversal prevention: every filesystem tool resolves paths through a guard that rejects anything outside
--work-dir.Command allowlist:
run_commandonly runs binaries listed inallowedCommands; everything else is rejected.Optional bearer token auth: set
--api-keyto require anAuthorization: Bearer <key>header on all requests (except/health). Without it, anyone who can reach the port can use the tools.
This server has no sandboxing beyond the above. Anyone with access to the tunnel URL and API key can read, write, and execute commands in your work directory. Don't expose it without an API key, and don't point it at directories you don't trust ChatGPT with.
Dev commands
bun run dev # watch mode
bun test # tests
bunx tsc --noEmit # type checkLicense
MIT - see LICENSE.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityCmaintenanceLocal MCP server bridging ChatGPT Web to local tools for file, shell, git, test, and process management with secure policy controls.Last updatedMIT
- Flicense-qualityCmaintenanceLocal MCP server for Codex to send prompts to ChatGPT Web Pro extension and manage repository tasks safely.Last updated
- Alicense-qualityBmaintenanceA 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.Last updated999MIT
- FlicenseBqualityBmaintenanceA local MCP server that bridges ChatGPT to a Windows PC, offering filesystem, shell, Git, and diagnostic tools via a secure tunnel.Last updated17
Related MCP Connectors
An MCP server that gives your AI access to the source code and docs of all public github repos
A MCP server built for developers enabling Git based project management with project and personal…
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/hypnguyen1209/codex-free'
If you have feedback or need assistance with the MCP directory API, please join our Discord server