
forge
MCP server giving AI coding agents persistent PTY terminals to run and monitor in parallel
forge is an open-source MCP server for developer tools. It is available on CLI, API, Self-hosted, macOS, Linux, Windows and Web.
- Pricing
- Open source
- Platforms
- CLI, API, Self-hosted
- What it can do
- Can change data (5 tools)
- GitHub stars
- 29
- Last commit
- Language
- TypeScript
Similar MCP servers
About forge
Forge lets an AI coding assistant keep several real terminal sessions open at once instead of running one command at a time. A developer can start a frontend dev server, a backend API and database migrations side by side, and the agent can check on each one without re-reading everything.
Each session runs in a pseudo-terminal, so interactive programs, colours and full-screen text interfaces behave as they would in a normal shell. Output is read incrementally from a per-session ring buffer, and a headless terminal emulator can return the current screen as plain text, which keeps context usage down.
Forge is aimed at developers who use MCP-compatible agents such as Claude Code or Codex for multi-service or multi-agent work. It can also run as an optional web dashboard for watching sessions and browsing past agent chats.
Tools this server provides (24)
Taken from the project documentation; the running server may differ.
From the tool list in its README, going by the names, 5 of 24 tools change data; 12 names don't say.
From the server's own tool labels and tool names; not verified by us.
- create_terminalName suggests: changes
- Spawn a PTY session with optional name, tags, buffer size
- create_from_templateName suggests: changes
- Spawn from a built-in template
- spawn_claude
- Launch a Claude Code sub-agent in a dedicated session
- spawn_codex
- Launch a Codex sub-agent in a dedicated session
- spawn_gemini
- Launch a Gemini CLI sub-agent in a dedicated session
- close_terminal
- Kill a session and free resources
- close_group
- Close all sessions matching a tag
- list_terminalsName suggests: reads
- List sessions, optionally filtered by tag
- list_templatesName suggests: reads
- Show available session templates
- write_terminalName suggests: changes
- Send input to a session
- read_terminalName suggests: reads
- Read new output since last read
- read_screenName suggests: reads
- Get rendered viewport as clean text
- read_multipleName suggests: reads
- Batch read from up to 20 sessions
- send_controlName suggests: changes
- Send control keys such as Ctrl+C or arrow keys
- resize_terminal
- Change terminal dimensions
- grep_terminal
- Regex search across a session's output buffer
- wait_for
- Block until output matches a pattern or process exits
- run_commandName suggests: changes
- Run a command to completion and return output
- subscribe_events
- Get notified when a session exits or matches a pattern
- unsubscribe_events
- Cancel an event subscription
- delegate_task
- Delegate a task to another agent
- health_checkName suggests: reads
- Server version, uptime, session count, memory usage
- get_session_historyName suggests: reads
- Tool call history for agent sessions
- clear_history
- Clear persisted stale session entries
What it does
- Persistent terminal sessions
- Spawn named PTY sessions that stay alive between agent calls, with tags for grouping.
- Incremental output reads
- Each consumer receives only output produced since its last read, reducing repeated context.
- Clean screen capture
- Returns the rendered terminal viewport as plain text without escape codes.
- Pattern waiting and search
- Block until output matches a regex or the process exits, and grep session buffers.
- Sub-agent spawning
- Launch Claude, Codex or Gemini CLI sessions, optionally in isolated git worktrees.
- Web dashboard
- Optional browser UI for live terminal output, activity logs and chat history.
Good for
- Run a frontend dev server, API and test watcher in parallel while an agent works
- Run builds and tests and return only the result to the agent
- Coordinate several sub-agents working on different parts of one codebase
- Monitor long-running processes and react when a given log line appears
Pricing
Open source
Free and open source under MIT.
forge FAQ
Which AI clients can connect to Forge?
Any MCP-compatible client over its HTTP endpoint, with setup steps given for Claude Code, Codex, Gemini CLI and generic MCP clients.
What license is Forge released under?
MIT.
Which platforms does Forge run on?
Node.js 18 or later on macOS, Linux or Windows, anywhere node-pty builds.
How many sessions can run at once?
The default maximum is 10 concurrent sessions, configurable with a flag or environment variable.
Is forge free?
Yes. forge is open source, so you can use and self-host it for free.
What are the best alternatives to forge?
The closest alternatives to forge are Forge by UI8, Aiterm MCP, Aiterm MCP, Unterm and Interactive Terminal.
Where this comes from
- Description: written from the project's README.