Manages persistent PTY sessions, terminal output, local coding agents, and concurrent development workflows over MCP.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent ā or use 1-click editor setup below.
This server is confirmed live ā we successfully called its tools/list endpoint directly (see the verified badge above). We haven't yet sandbox-tested the stdio install command below specifically, which is a separate, ongoing check.
š” Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Inspect callable tools, capabilities, and parameters exposed to AI agents by Forge.
create_terminalSpawn a new PTY terminal session. Returns session ID for subsequent operations.
revive_terminalRecreate a previously exited terminal session with the same command, working directory, name, tags, and dimensions. The old session is removed and a fresh one is spawned.
create_from_templateCreate a terminal session from a pre-configured template (e.g., shell, next-dev, vite-dev, npm-test).
list_templatesList all available session templates.
spawn_claudeSpawn a Claude Code agent in a new terminal session. IMPORTANT: cwd must be set explicitly ā there is no session inheritance. By default runs in interactive mode ā the session stays alive and accepts follow-up messages via the dashboard. Use oneShot: true for autonomous --print mode. Use worktree + branch to run in an isolated git worktree.
spawn_codexSpawn a Codex agent in a new terminal session. By default runs in interactive mode ā the session stays alive and accepts follow-up messages via the dashboard. Use oneShot: true for autonomous `codex exec` mode (requires prompt).
The ferodrigop/forge MCP server exposes real terminal sessions through the Model Context Protocol. Each session runs in a pseudo-terminal, allowing interactive programs, colored output, and terminal user interfaces to operate as they would in a normal terminal. Agents can create sessions with commands, working directories, names, tags, dimensions, and buffer settings, then reuse the returned session IDs for later operations.
It supports both long-lived workflows and disposable commands. run_command creates a session, waits for the process to finish, returns its output, and cleans up automatically. Persistent sessions are suited to development servers, test watchers, shells, and other processes that need follow-up input.
The ferodrigop/forge MCP server keeps terminal output in a ring buffer and tracks read positions per consumer. read_terminal therefore returns output added since the previous read rather than repeatedly returning the complete buffer. read_screen instead returns the current viewport as rendered text without ANSI escape sequences. grep_terminal searches buffered output with a regular expression, while wait_for can block until a pattern appears or a process exits.
Sessions can be monitored individually or in batches with read_multiple, filtered by tags, and grouped for cleanup. Event subscriptions emit MCP logging notifications when a session exits or matches a pattern. Terminal input can be written as text or sent as control sequences such as Ctrl+C, arrow keys, Enter, and Tab. The server also reports uptime, version, session count, and memory usage through health_check.
Install the published package with a package manager that provides npx, then start the local daemon:
The documented HTTP endpoint is http://127.0.0.1:3141/mcp. Clients connect to that endpoint after the daemon starts. The README also documents global npm or Bun installation and a standalone install script. A dashboard can be enabled with --dashboard, and the listening port can be changed with --port; the MCP client URL must match the selected port.
The project requires Node.js 18 or newer when using its npm installation path. MCP clients load server configuration at process startup, so clients need to be restarted after adding or removing the server.
The tool set covers:
When launching an agent session, the working directory must be supplied explicitly. Claude Code sessions can use a worktree and branch for isolated Git work; one-shot modes require the relevant prompt where documented.
The material describes a local daemon and local HTTP MCP endpoint rather than a hosted service. It does not document authentication, remote hosting, or environment variables. Commands executed through terminal sessions depend on the tools and permissions available in the host environment. Interactive agent sessions remain alive for follow-up work, while one-shot execution exits after processing its prompt. Forge is MIT-licensed.
The ferodrigop/forge MCP server is intended for MCP-compatible clients, with setup examples for Claude Code, Codex, and Gemini CLI. Those clients must be restarted when their MCP configuration changes.
Factual signals from GitHub, npm, and our automated checks ā not a rating.
No reviews yet ā be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/ferodrigop-forge)<a href="https://allmcps.com/mcp/ferodrigop-forge"><img src="https://allmcps.com/api/badge/ferodrigop-forge?style=directory" alt="Forge on AllMCPs" /></a>