# forge

> forge is an open-source MCP server for developer tools. MCP server giving AI coding agents persistent PTY terminals to run and monitor in parallel. It is available on CLI, API, Self-hosted, macOS, Linux, Windows and Web.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, API, Self-hosted, macOS, Linux, Windows, Web
- **Repository:** https://github.com/ferodrigop/forge
- **GitHub stars:** 29
- **License:** MIT
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-01

## About

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.

## Features

- **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

## Tools

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_terminal` (name suggests: changes): Spawn a PTY session with optional name, tags, buffer size
- `create_from_template` (name 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_terminals` (name suggests: reads): List sessions, optionally filtered by tag
- `list_templates` (name suggests: reads): Show available session templates
- `write_terminal` (name suggests: changes): Send input to a session
- `read_terminal` (name suggests: reads): Read new output since last read
- `read_screen` (name suggests: reads): Get rendered viewport as clean text
- `read_multiple` (name suggests: reads): Batch read from up to 20 sessions
- `send_control` (name 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_command` (name 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_check` (name suggests: reads): Server version, uptime, session count, memory usage
- `get_session_history` (name suggests: reads): Tool call history for agent sessions
- `clear_history`: Clear persisted stale session entries

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

## Alternatives

- [Forge by UI8](https://ai-powered.com/mcp/forge-by-ui8): Forge by UI8 is a freemium MCP server for developer tools.
- [Aiterm MCP](https://ai-powered.com/mcp/aiterm-mcp-2): Aiterm MCP is an open-source MCP server for developer tools.
- [Aiterm MCP](https://ai-powered.com/mcp/aiterm-mcp): Aiterm MCP is an open-source MCP server for developer tools.
- [Unterm](https://ai-powered.com/mcp/unterm): Unterm is an open-source MCP server for developer tools.
- [Interactive Terminal](https://ai-powered.com/mcp/interactive-terminal): Interactive Terminal is an open-source MCP server for developer tools.
- [Terminal MCP](https://ai-powered.com/mcp/terminal-mcp): Terminal MCP is an open-source MCP server for developer tools.
- [agent](https://ai-powered.com/mcp/agent-2): agent is an open-source MCP server for developer tools.
- [agentforge](https://ai-powered.com/mcp/agentforge-4): agentforge is a freemium MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/forge-5
