Terminal Renamer MCP
Click on "Deploy 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., "@Terminal Renamer MCP rename this terminal to backend-api"
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.
Terminal Renamer MCP
An MCP (Model Context Protocol) server for Claude Code that lets you name your terminal tabs and monitor RAM usage.
The Problem
When working with multiple Claude Code sessions, it's hard to tell which terminal is which:
Terminal | Terminal | Terminal | Terminal
??? ??? ??? ???Related MCP server: mcp-terminal-server
The Solution
Name your terminals and see RAM usage at a glance:
Frontend | 256MB | free: 11Gi Backend API | 312MB | free: 11GiFeatures
Easy terminal naming - Just say "rename terminal to my-project"
Multi-language support - Works in English, Czech, German, Spanish, French, and more
RAM monitoring - Shows terminal's RAM usage and free system RAM
Auto-detection - Automatically detects which terminal to rename
Multiple terminals - Each terminal maintains its own name
Installation
1. Clone the repository
git clone https://github.com/kvicala888/terminal-renamer-mcp.git
cd terminal-renamer-mcp2. Install and build
npm install
npm run build3. Add to Claude Code settings
Add to your ~/.claude.json:
{
"mcpServers": {
"terminal-renamer": {
"command": "node",
"args": ["/path/to/terminal-renamer-mcp/dist/index.js"]
}
}
}4. Add the terminal watcher to your shell
Add to ~/.zshrc or ~/.bashrc:
# Terminal Renamer - background watcher (updates terminal title)
_claude_terminal_watcher() {
local my_tty=$(tty 2>/dev/null)
local tty_id=$(echo "$my_tty" | tr '/' '-' | sed 's/^-dev-//')
local config_file="$HOME/.claude-terminal-name-${tty_id}"
while true; do
if [[ -f "$config_file" ]]; then
local name=$(cat "$config_file" 2>/dev/null)
if [[ -n "$name" ]]; then
local term_ram=$(ps -t ${my_tty##*/} -o rss= 2>/dev/null | awk '{sum+=$1} END {printf "%.0f", sum/1024}')
local free_ram=$(free -h 2>/dev/null | awk '/^Mem:/ {print $7}')
printf '\e]0;%s | %sMB | free: %s\a' "$name" "$term_ram" "$free_ram"
fi
fi
sleep 2
done
}
_claude_terminal_watcher &!For Oh My Zsh users, also add this before the source $ZSH/oh-my-zsh.sh line:
DISABLE_AUTO_TITLE="true"5. Restart your terminal and Claude Code
Usage
In Claude Code, just say:
Language | Command |
English | "rename terminal to backend" |
Czech | "přejmenuj terminal na backend" |
German | "benenne terminal um zu backend" |
Spanish | "renombrar terminal a backend" |
French | "renommer terminal en backend" |
Other commands:
"list terminals" - Show all named terminals
"clear terminal name" - Remove the current terminal's name
How It Works
┌─────────────────┐ ┌─────────────────┐
│ MCP Server │──── detects TTY via ────────▶│ /proc/PID/ │
│ │ process tree │ (Linux) │
└────────┬────────┘ └─────────────────┘
│ writes name
▼
┌──────────────────┐
│ ~/.claude-term- │◀─────── reads ──────┐
│ inal-name-* │ │
└──────────────────┘ ┌──────┴────────┐
│ Shell Watcher │
│ (updates title)│
└───────────────┘MCP server detects its own TTY by walking up the process tree (no race conditions!)
Config file is written for that specific terminal
Shell watcher picks up the change and updates the terminal title
Available MCP Tools
Tool | Description |
| Rename the current terminal tab |
| List all named terminal sessions |
| Clear the current terminal's name |
Requirements
Node.js 18+
Linux (Ubuntu, Debian, Fedora, etc.) or macOS
Bash or Zsh
Claude Code CLI
Terminal Title Format
<name> | <terminal RAM>MB | free: <system free RAM>Example: Backend API | 312MB | free: 11Gi
Troubleshooting
Terminal title not updating?
Make sure you restarted your terminal after adding the watcher
Check if watcher is running:
ps aux | grep _claude_terminal_watcherCheck if config file exists:
ls ~/.claude-terminal-name-*
"Could not detect terminal TTY" error?
This happens on non-Linux systems or non-standard environments
The MCP server uses
/procfilesystem to detect the terminalMake sure Claude Code is running in a real terminal (not piped)
Oh My Zsh overwriting title?
Add
DISABLE_AUTO_TITLE="true"to your.zshrc
License
MIT
Contributing
PRs welcome! Ideas for improvement:
macOS support improvements
Windows support
CPU usage monitoring
Custom title format configuration
Available Tools
3 toolsclear_terminal_nameB
Clear/reset the current terminal name
Inputs: no named parameters.
list_terminalsB
List all named terminal sessions
Inputs: no named parameters.
rename_terminalB
Rename the current terminal tab. The active terminal is automatically detected.
Inputs: name (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
Each tool has a clearly distinct action: rename the current terminal, list named terminals, and clear the current name. There is no meaningful overlap in purpose.
All names use snake_case with a verb-first pattern, making them predictable. However, clear_terminal_name adds an extra noun compared with rename_terminal, creating a slight asymmetry.
Three tools are well matched to the narrow terminal-renaming purpose, with each operation earning its place. There is no unnecessary surface area.
The set covers the core lifecycle of naming, listing, and clearing terminal names. Minor gaps exist, such as retrieving the current terminal's name or targeting a specific terminal by identifier.
Maintenance
Related MCP Connectors
Shared long-term memory & Stop-hook task handoff across Claude Code, Codex, Cursor, and mobile.
Persistent memory for Claude Code and Cursor. Stop re-explaining your project every session.
Shared memory MCP server for Claude Code, Codex, Gemini CLI and Cursor. Cited, editable.
Shared work memory for Claude Code, Codex, Cursor and chat, scoped to each repository.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables Claude to execute commands and manage directory-aware panes within tmux sessions for a shared terminal experience. It features smart output capture, interactive prompt detection, and background task management.2MIT
- FlicenseNot gradedqualityCmaintenanceEnables running interactive terminals inside Claude Code and Claude Desktop, supporting multiple sessions for different tasks.-
- FlicenseNot gradedqualityDmaintenanceEnables interactive terminal sessions within Claude Code and Desktop, allowing users and AI to execute commands and manage multiple tabs.2-
- AlicenseNot gradedqualityDmaintenanceGives Claude Code terminal control and multi-agent coordination through tmux sessions.4MIT