iterm-mcp
@ferrislucas
关于 iterm-mcp
A Model Context Protocol server that executes commands in the current iTerm session - useful for REPL and CLI assistance
基本信息
配置
使用下面的配置,将此服务器添加到你的 MCP 客户端。
{
"mcpServers": {
"iterm-mcp": {
"command": "npx",
"args": [
"-y",
"iterm-mcp"
]
}
}
}工具
3Writes to the active iTerm terminal, often used to run a command. Returns the number of lines of output produced by the command.
Reads the requested number of lines from the active iTerm terminal.
Sends a control character to the active iTerm terminal.
概览
What is iterm-mcp?
iterm-mcp is a Model Context Protocol server that provides access to your iTerm session. It allows large language models to inspect terminal output, write commands, and send control characters directly to iTerm2.
How to use iterm-mcp?
Install iterm-mcp via npx (npx -y iterm-mcp) and add the server configuration to your MCP client, such as the Claude Desktop config file (claude_desktop_config.json). For a one‑click install, you can also use Smithery (npx -y @smithery/cli install iterm-mcp --client claude). iTerm2 must be running and Node version 18 or higher is required.
Key features of iterm-mcp
- Efficient token use: model inspects only the output it needs.
- Natural integration: share iTerm with the model and watch it work.
- Full terminal control and REPL support with control characters.
- Minimal dependencies, runnable via npx.
- Easy setup with Claude Desktop and other MCP clients.
Use cases of iterm-mcp
- Inspect the last few lines of output from long‑running commands.
- Delegate multi‑step terminal tasks and observe each step.
- Start and interact with REPLs (e.g., Python, Node).
- Send control characters like ctrl‑c or ctrl‑z to manage processes.
FAQ from iterm-mcp
What are the safety considerations?
The user is responsible for using the tool safely. iterm‑mcp makes no attempt to evaluate the safety of commands, and models can behave unexpectedly. Users should monitor activity and abort when appropriate.
What are the system requirements?
iTerm2 must be running. Node version 18 or greater is required.
How do I install iterm-mcp for Claude Desktop?
Add the following entry to your Claude Desktop config file (~/Library/Application Support/Claude/claude_desktop_config.json): {"mcpServers":{"iterm-mcp":{"command":"npx","args":["-y","iterm-mcp"]}}}.
What tools does iterm-mcp provide?
Three tools: write_to_terminal (writes to the active terminal and returns line count), read_terminal_output (reads a requested number of lines), and send_control_character (sends control characters like ctrl‑c).
其他 分类下的更多 MCP 服务器
Unity MCP ✨
justinpbarnettUnity MCP acts as a bridge between AI assistants and your Unity Editor. Give your LLM tools to manage assets, control scenes, edit scripts, and automate tasks within Unity.
Codelf
unbugA search tool helps dev to solve the naming things problem.
Maestro
mobile-dev-incPainless E2E Automation for Mobile and Web
🚀 Model Context Protocol (MCP) Curriculum for Beginners
microsoftThis open-source curriculum introduces the fundamentals of Model Context Protocol (MCP) through real-world, cross-language examples in .NET, Java, TypeScript, JavaScript, Rust and Python. Designed for developers, it focuses on practical techniques for building modular, scalable,
Reactive Resume
amruthpillaiA one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!
评论