Tabby-MCP
An MCP server plugin for the Tabby Terminal that enables AI assistants to execute commands, read terminal buffers, and manage tabs and profiles. It features 18 specialized tools for comprehensive terminal control and session management with built-in security confirmations.
README
<div align="center">
🚀 Tabby-MCP
A Comprehensive MCP Server Plugin for Tabby Terminal
Connect AI assistants to your terminal with full control capabilities — 21 MCP tools included
</div>
✨ Features
<table> <tr> <td width="50%">
🖥️ Terminal Control
- Execute commands with output capture
- Send interactive input (vim, less, top)
- Read terminal buffer content
- Abort/monitor running commands
</td> <td width="50%">
📑 Tab Management
- Create/Close/Duplicate tabs
- Navigate between tabs
- Move tabs left/right
- Reopen closed tabs
</td> </tr> <tr> <td>
🔗 Profile Management
- List all terminal profiles
- Open new tabs with profiles
- SSH quick connect
- Profile selector dialog
</td> <td>
🔒 Security Features
- Pair programming mode
- Command confirmation dialogs
- Comprehensive logging
- Safe command execution
</td> </tr> </table>
📦 Installation
Method 1: Tabby Plugin Manager (Easiest)
Search for tabby-mcp-server directly in Tabby's built-in Plugin Manager:
- Open Tabby → Settings → Plugins
- Search for
tabby-mcp-server - Click Install
- Restart Tabby
Method 2: Quick Install Script
No Node.js required! Downloads pre-built release from GitHub.
<details open> <summary><b>🍎 macOS / 🐧 Linux</b></summary>
curl -fsSL https://raw.githubusercontent.com/GentlemanHu/Tabby-MCP/main/scripts/install.sh | bash
Or download and run:
wget https://raw.githubusercontent.com/GentlemanHu/Tabby-MCP/main/scripts/install.sh
bash install.sh
</details>
<details> <summary><b>🪟 Windows (PowerShell)</b></summary>
irm https://raw.githubusercontent.com/GentlemanHu/Tabby-MCP/main/scripts/install.ps1 | iex
Or download and run:
Invoke-WebRequest -Uri https://raw.githubusercontent.com/GentlemanHu/Tabby-MCP/main/scripts/install.ps1 -OutFile install.ps1
.\install.ps1
</details>
Method 3: Build from Source
Requires Node.js 18+.
# Clone
git clone https://github.com/GentlemanHu/Tabby-MCP.git
cd Tabby-MCP
# Build & Install
bash scripts/build-and-install.sh
Or manually:
npm install --legacy-peer-deps
npm run build
# Then copy dist/ and package.json to Tabby plugins folder
🔄 After Installation
- Restart Tabby
- Go to Settings → MCP
- Start the MCP server
🔌 Connecting AI Clients
SSE Mode (Cursor / Windsurf)
Add to ~/.cursor/mcp.json:
{
"mcpServers": {
"Tabby MCP": {
"type": "sse",
"url": "http://localhost:3001/sse"
}
}
}
STDIO Mode (Claude Desktop / VS Code)
For clients that don't support SSE, use the STDIO bridge:
Claude Desktop (~/Library/Application Support/Claude/claude_desktop_config.json):
{
"mcpServers": {
"tabby-mcp": {
"command": "node",
"args": ["/path/to/Tabby-MCP/scripts/stdio-bridge.js"]
}
}
}
VS Code / Other IDEs:
{
"mcp": {
"servers": {
"tabby-mcp": {
"type": "stdio",
"command": "node",
"args": ["scripts/stdio-bridge.js"],
"cwd": "/path/to/Tabby-MCP"
}
}
}
}
Note: STDIO mode requires Node.js installed. The bridge script connects to the SSE server running in Tabby.
Endpoints
| Endpoint | URL |
|---|---|
| SSE | http://localhost:3001/sse |
| Health | http://localhost:3001/health |
| Info | http://localhost:3001/info |
🛠️ Available Tools
Terminal Control (6)
| Tool | Description |
|---|---|
get_session_list |
List all terminal sessions |
exec_command |
Execute command with output |
send_input |
Send interactive input (Ctrl+C, etc) |
get_terminal_buffer |
Read terminal buffer |
abort_command |
Abort running command |
get_command_status |
Monitor active commands |
Tab Management (10)
| Tool | Description |
|---|---|
list_tabs |
List all open tabs |
select_tab |
Focus a specific tab |
close_tab |
Close a tab |
close_all_tabs |
Close all tabs |
duplicate_tab |
Duplicate a tab |
next_tab / previous_tab |
Navigate tabs |
move_tab_left / move_tab_right |
Reorder tabs |
reopen_last_tab |
Reopen closed tab |
Profile Management (4)
| Tool | Description |
|---|---|
list_profiles |
List terminal profiles |
open_profile |
Open tab with profile |
show_profile_selector |
Show profile dialog |
quick_connect |
SSH quick connect |
⚙️ Configuration
| Setting | Description | Default |
|---|---|---|
| Port | MCP server port | 3001 |
| Start on Boot | Auto-start server | true |
| Pair Programming | Confirm commands | true |
⚠️ Platform Support
| Platform | Status | Notes |
|---|---|---|
| macOS | ✅ Tested | Fully functional |
| Windows | ⚠️ Untested | Should work — please report issues |
| Linux | ⚠️ Untested | Should work — please report issues |
Note: This plugin has been developed and tested on macOS. Windows and Linux support should work but is unverified. Community testing and feedback welcome!
🤖 About This Project
<div align="center">
🎨 95%+ AI Generated
This project was created almost entirely by AI (Claude/Gemini) through pair programming.
The human's role was primarily to provide requirements and test the results.
</div>
Acknowledgments
This project builds upon the work of tabby-mcp-server by @thuanpham582002.
Improvements over the original:
| Feature | Original | This Project |
|---|---|---|
| MCP Tools | 4 | 18 |
| Tab Management | ❌ | ✅ |
| Profile/SSH | ❌ | ✅ |
| Init Bug | Has issue | ✅ Fixed |
| Install Script | Manual | ✅ One-liner |
🤝 Contributing
See CONTRIBUTING.md for guidelines.
📄 License
MIT License - see LICENSE
<div align="center">
Made with ❤️ by AI and GentlemanHu
⭐ Star this repo if you find it useful!
</div>
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。