ChatGPT Local Terminal MCP

ChatGPT Local Terminal MCP

An unofficial self-hosted MCP server that enables ChatGPT to run commands on your computer through a secure tunnel, manage processes, and work within a specified project directory.

Category
Visit Server

README

ChatGPT Local Terminal Plugin

ChatGPT chat has a separate, near-unlimited quota from Codex and Work—but it can’t control your computer like Codex. Until now.

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 computer

The folder where you run start.sh becomes the workspace.

Installation

Currently supported on Mac, untested on Linux. Winodws support available via WSL (manual installation, untested).

1. Clone the repository

git clone https://github.com/Angad-D/ChatGPT-Local-Terminal-Plugin-Unofficial.git
cd ChatGPT-Local-Terminal-Plugin-Unofficial

2. Run the installer

./install.sh

The 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/tunnels

Runtime API keys:

https://platform.openai.com/settings/organization/api-keys

4. Configure .env

Edit:

nano .env

Add:

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/mcp

Do not commit .env.

5. Choose an access mode

Edit:

nano config.toml

Recommended:

sandbox_mode = "workspace-write"
network_access = true
fail_if_sandbox_unavailable = true

Available 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 bubblewrap

Connect to ChatGPT

Start the tool from the project directory you want ChatGPT to access:

cd ~/Documents/projects/my-project
/path/to/ChatGPT-Local-Terminal-Plugin-Unofficial/start.sh

Then in ChatGPT:

  1. Enable developer mode.
  2. Create a custom app/plugin.
  3. Choose Tunnel as the connection type.
  4. Paste in the tunnel id.
  5. Choose "No Auth"
  6. Save and enable.
  7. Change the plugin settings to "Always Ask"

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+C

If processes remain:

/path/to/chatgpt-terminal-mcp/stop.sh

Security 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.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured
E2B

E2B

Using MCP to run code via e2b.

Official
Featured