ChatGPT Local Terminal MCP
Allows ChatGPT to run commands on your local machine through an OpenAI Secure MCP Tunnel, including executing commands, reading output, managing long-running processes, and sending input within a designated project directory.
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., "@ChatGPT Local Terminal MCPList the files in this workspace."
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.
ChatGPT Local Terminal Plugin
An unofficial, self-hosted MCP server that lets ChatGPT run commands on your computer through an OpenAI Secure MCP Tunnel.
It works similarly to Codex: ChatGPT can run commands, read output, manage long-running processes, send input, and work inside a chosen project directory.
Codex and ChatGPT Work have limited shared quotas, while the regular Chat interface pulls from a seperate quota pool. This lets you use high end models like Sol without cutting into your limited Work and Codex usage limits. Usage limits and model availability depend on your OpenAI account and may change; this tool does not guarantee extra or unlimited quota.
How it works
ChatGPT
→ OpenAI Secure MCP Tunnel
→ tunnel-client
→ local MCP server
→ commands on your computerThe folder where you run start.sh becomes the workspace.
Related MCP server: TermPipe MCP
Installation
Currently supported on Mac, untested on Linux.
1. Clone the repository
git clone https://github.com/Angad-D/ChatGPT-Local-Terminal-Plugin-Unofficial.git
cd ChatGPT-Local-Terminal-Plugin-Unofficial2. Run the installer
./install.shThe installer creates a local Python environment, installs the MCP server, and downloads the latest official OpenAI tunnel-client.
3. Create a Secure MCP Tunnel
Create your own tunnel and runtime API key in OpenAI Platform.
Tunnel settings:
https://platform.openai.com/settings/organization/tunnelsRuntime API keys:
https://platform.openai.com/settings/organization/api-keys4. Configure .env
Edit:
nano .envAdd:
CONTROL_PLANE_TUNNEL_ID=tunnel_your_id
CONTROL_PLANE_API_KEY=sk-your-runtime-api-key
MCP_SERVER_URL=http://127.0.0.1:8000/mcpDo not commit .env.
5. Choose an access mode
Edit:
nano config.tomlRecommended:
sandbox_mode = "workspace-write"
network_access = true
fail_if_sandbox_unavailable = trueAvailable modes:
sandbox_mode = "read-only"
sandbox_mode = "workspace-write"
sandbox_mode = "full-access"full-access disables filesystem sandboxing and should only be used when necessary.
Linux users need Bubblewrap for sandboxed modes:
sudo apt install bubblewrapConnect to ChatGPT
Start the tool from the project directory you want ChatGPT to access:
cd ~/Documents/projects/my-project
/path/to/chatgpt-terminal-mcp/start.shThen in ChatGPT:
Enable developer mode.
Create a custom app/plugin.
Choose Tunnel as the connection type.
Paste in the tunnel id.
Save and enable.
If it doesn't let you type in the tunnel id, and asks you to create a new one after you have already made one (previous step), click "Create" in the bottom right corner of the popup (for creating the plugin), and the create option for the tunnel will switch to a text box in which you can type in your tunnel id.
The exact ChatGPT interface may change over time.
Usage
Example prompts:
List the files in this workspace.Run the project's tests and fix any failures.Start the development server and keep it running.Read the latest output from the development server.Stop the running development server.Commands run in separate processes rather than one permanently shared shell. ChatGPT should specify the correct working directory for each command.
Stopping the tool
Normally, press:
Ctrl+CIf processes remain:
/path/to/chatgpt-terminal-mcp/stop.shSecurity warning
This tool gives ChatGPT the ability to execute commands on your computer.
Commands may:
modify or delete files;
install or execute software;
make network requests;
expose sensitive information through command output;
consume system resources.
Recommended precautions:
Use
workspace-write.Run it only from a project directory you are comfortable exposing.
Do not run it from your home directory or filesystem root.
Keep important projects under version control.
Do not send passwords, API keys, recovery codes, or MFA codes through ChatGPT.
Read all commands before allowing ChatGPT to run them (set permissions to "Always Ask")
Stop the server when it is not being used.
No sandbox is a complete security guarantee. full-access gives commands the same filesystem access as your user account.
Unofficial project
This is an independent, unofficial open-source project.
It is not affiliated with, endorsed by, approved by, or maintained by OpenAI.
Each user must create and secure their own:
Secure MCP Tunnel;
runtime API key;
custom ChatGPT developer app/plugin.
ChatGPT plans, models, usage limits, developer mode, and MCP availability vary and may change.
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
- Flicense-qualityDmaintenanceEnables AI assistants to securely execute shell commands on local machines through an SSH interface with session management, command execution, and sudo support.Last updated1
- Alicense-qualityDmaintenanceProvides AI assistants with direct terminal access to execute commands, manage files, and run persistent REPL sessions. It features automated installation scripts that educate AI assistants on its capabilities for seamless integration.Last updatedMIT
- AlicenseAqualityFmaintenanceEnables AI assistants to execute terminal commands on a host machine with configurable, granular permission controls and safety protections. It features multiple security modes, including allowlists and manual approval, to ensure safe command execution within specified directories.Last updated6Apache 2.0
- Alicense-qualityAmaintenanceEnables ChatGPT to inspect and edit local projects through a secure MCP interface, offering workspace management, file operations, git integration, and safe command execution.Last updated3MIT
Related MCP Connectors
Operate your Linux servers from your LLM. Every action runs through an auditable allowlist.
Let ChatGPT, Claude & Cursor use your Mac: email, calendar, iMessage, Teams, files. Local, free.
MCP connector that lets ChatGPT list, search, and run your Apple Shortcuts via a local Mac agent
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/Angad-D/ChatGPT-Local-Terminal-Plugin-Unofficial'
If you have feedback or need assistance with the MCP directory API, please join our Discord server