Skip to main content
Glama
kkaustubhvyas

iterm-logs-mcp

iterm-logs-mcp

Local MCP server exposing iTerm2 tab/session logs to any MCP-capable agent. Reads terminal state via AppleScript — the agent decides which tab to read by matching on cwd/job, no built-in fuzzy-matching logic on the server side.

macOS + iTerm2 only. Local stdio server — not deployed anywhere.

Tools

  • list_iterm_tabs() — enumerates every open window/tab/session: session_id, window_index, tab_index, name, tty, cwd, job.

  • get_iterm_tab_logs(session_id, max_lines=500) — returns the last max_lines lines of scrollback for that session.

Related MCP server: it2mcp

First run

The first AppleScript call against iTerm2 triggers a one-time macOS Automation permission prompt for whichever process runs this script (Terminal, iTerm2, or your MCP client host). Grant it once in System Settings → Privacy & Security → Automation.

Run it

uv run --directory /Users/kaustubh/development/personal/iterm-logs-mcp server.py

Register with Claude Code

claude mcp add iterm-logs -- uv run --directory /Users/kaustubh/development/personal/iterm-logs-mcp server.py

Register with Claude Desktop

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "iterm-logs": {
      "command": "uv",
      "args": [
        "run",
        "--directory",
        "/Users/kaustubh/development/personal/iterm-logs-mcp",
        "server.py"
      ]
    }
  }
}
Install Server
F
license - not found
A
quality
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/kkaustubhvyas/iterm-logs-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server