{"id":24350930,"url":"https://github.com/ferrislucas/iterm-mcp","last_synced_at":"2025-05-15T21:03:47.426Z","repository":{"id":271826194,"uuid":"914173426","full_name":"ferrislucas/iterm-mcp","owner":"ferrislucas","description":"A Model Context Protocol server that executes commands in the current iTerm session - useful for REPL and CLI assistance","archived":false,"fork":false,"pushed_at":"2025-04-30T03:35:36.000Z","size":1262,"stargazers_count":295,"open_issues_count":2,"forks_count":23,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-30T04:29:50.685Z","etag":null,"topics":["ai","claude","claude-ai","mcp","mcp-server","repl"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/iterm-mcp","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ferrislucas.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-01-09T04:49:23.000Z","updated_at":"2025-04-30T03:35:39.000Z","dependencies_parsed_at":"2025-01-27T18:31:12.488Z","dependency_job_id":"bf4bbce6-6a39-425d-8ddf-48326ae984dc","html_url":"https://github.com/ferrislucas/iterm-mcp","commit_stats":null,"previous_names":["ferrislucas/iterm-mcp"],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ferrislucas%2Fiterm-mcp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ferrislucas%2Fiterm-mcp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ferrislucas%2Fiterm-mcp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ferrislucas%2Fiterm-mcp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ferrislucas","download_url":"https://codeload.github.com/ferrislucas/iterm-mcp/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254422754,"owners_count":22068678,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","claude","claude-ai","mcp","mcp-server","repl"],"created_at":"2025-01-18T14:38:11.899Z","updated_at":"2025-05-15T21:03:47.416Z","avatar_url":"https://github.com/ferrislucas.png","language":"TypeScript","funding_links":[],"categories":["CLI Tools","Cloud Infrastructure","MCP 服务器精选列表","Uncategorized","Command Line","APIs and HTTP Requests","📚 Projects (1974 total)","Community Servers","Legend","🤖 AI/ML","TypeScript","MCP Servers","サーバー実装","カテゴリ","Mcp Server Directories \u0026 Lists","💻 Operating Systems \u0026 Command Line","Table of Contents","🗂️ Extensions by Category"],"sub_categories":["Playwright","🖥️ Command Line","🖥️ 命令行与 Shell 交互","Uncategorized","MCP Servers","🖥️ \u003ca name=\"command-line\"\u003e\u003c/a\u003eCommand Line","How to Submit","🛠️ \u003ca name=\"developer-tools\"\u003e\u003c/a\u003e開発者ツール","⚙️ \u003ca name=\"system-administration\"\u003e\u003c/a\u003eシステム管理","Command Line","🖥️ \u003ca name=\"command-line\"\u003e\u003c/a\u003eコマンドライン","🖥️ System Tools","Desktop Automation"],"readme":"# iterm-mcp \nA Model Context Protocol server that provides access to your iTerm session.\n\n![Main Image](.github/images/demo.gif)\n\n### Features\n\n**Efficient Token Use:** iterm-mcp gives the model the ability to inspect only the output that the model is interested in. The model typically only wants to see the last few lines of output even for long running commands. \n\n**Natural Integration:** You share iTerm with the model. You can ask questions about what's on the screen, or delegate a task to the model and watch as it performs each step.\n\n**Full Terminal Control and REPL support:** The model can start and interact with REPL's as well as send control characters like ctrl-c, ctrl-z, etc.\n\n**Easy on the Dependencies:** iterm-mcp is built with minimal dependencies and is runnable via npx. It's designed to be easy to add to Claude Desktop and other MCP clients. It should just work.\n\n\n## Safety Considerations\n\n* The user is responsible for using the tool safely.\n* No built-in restrictions: iterm-mcp makes no attempt to evaluate the safety of commands that are executed.\n* Models can behave in unexpected ways. The user is expected to monitor activity and abort when appropriate.\n* For multi-step tasks, you may need to interrupt the model if it goes off track. Start with smaller, focused tasks until you're familiar with how the model behaves. \n\n### Tools\n- `write_to_terminal` - Writes to the active iTerm terminal, often used to run a command. Returns the number of lines of output produced by the command.\n- `read_terminal_output` - Reads the requested number of lines from the active iTerm terminal.\n- `send_control_character` - Sends a control character to the active iTerm terminal.\n\n### Requirements\n\n* iTerm2 must be running\n* Node version 18 or greater\n\n\n## Installation\n\nTo use with Claude Desktop, add the server config:\n\nOn macOS: `~/Library/Application Support/Claude/claude_desktop_config.json`\nOn Windows: `%APPDATA%/Claude/claude_desktop_config.json`\n\n```json\n{\n  \"mcpServers\": {\n    \"iterm-mcp\": {\n      \"command\": \"npx\",\n      \"args\": [\n        \"-y\",\n        \"iterm-mcp\"\n      ]\n    }\n  }\n}\n```\n\n### Installing via Smithery\n\nTo install iTerm for Claude Desktop automatically via [Smithery](https://smithery.ai/server/iterm-mcp):\n\n```bash\nnpx -y @smithery/cli install iterm-mcp --client claude\n```\n[![smithery badge](https://smithery.ai/badge/iterm-mcp)](https://smithery.ai/server/iterm-mcp)\n\n## Development\n\nInstall dependencies:\n```bash\nyarn install\n```\n\nBuild the server:\n```bash\nyarn run build\n```\n\nFor development with auto-rebuild:\n```bash\nyarn run watch\n```\n\n### Debugging\n\nSince MCP servers communicate over stdio, debugging can be challenging. We recommend using the [MCP Inspector](https://github.com/modelcontextprotocol/inspector), which is available as a package script:\n\n```bash\nyarn run inspector\nyarn debug \u003ccommand\u003e\n```\n\nThe Inspector will provide a URL to access debugging tools in your browser.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fferrislucas%2Fiterm-mcp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fferrislucas%2Fiterm-mcp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fferrislucas%2Fiterm-mcp/lists"}