Allows AI assistants to control the Tabby terminal on Linux, providing tools to execute commands, read terminal buffers, and manage tabs and sessions.
Allows AI assistants to control the Tabby terminal on macOS, providing tools to execute commands, read terminal buffers, and manage tabs and sessions.
Click on "Install 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., "@Tabby-MCPlist all my open tabs and tell me what's in the current buffer"
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.
π Tabby-MCP
A Comprehensive MCP Server Plugin for Tabby Terminal
Connect AI assistants to your terminal with full control β 34 MCP tools including SFTP support
π Tabby-MCP is a powerful plugin for Tabby Terminal, bridging the gap between AI agents and your terminal environment. It provides a standardized MCP interface for AI to execute commands, manage tabs, and handle file operations securely.
Give your AI hands to work with.
β¨ Features
π¦ 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-serverClick Install
Restart Tabby
Method 2: Quick Install Script
No Node.js required! Downloads pre-built release from GitHub.
Or download and run:
Or download and run:
Method 3: Build from Source
Requires Node.js 18+.
Or manually:
π After Installation
Restart Tabby
Go to Settings β MCP
Start the MCP server
π Connecting AI Clients
SSE Mode (Cursor / Windsurf)
Add to ~/.cursor/mcp.json:
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):
VS Code / Other IDEs:
Note: STDIO mode requires Node.js installed. The bridge script connects to the SSE server running in Tabby.
Endpoints
Endpoint | URL | Protocol |
Streamable HTTP |
| 2025-03-26 (recommended) |
Legacy SSE |
| 2024-11-05 |
Health |
| - |
Info |
| - |
π οΈ Available Tools
Terminal Control (7)
Tool | Description |
| List all terminal sessions with stable UUIDs and metadata |
| Execute command with flexible session targeting |
| Send interactive input (Ctrl+C, etc) |
| Read terminal buffer (defaults to active session) |
| Abort running command |
| Monitor active commands |
| Focus a specific pane in split view |
New in v1.1: All terminal tools now support flexible session targeting:
sessionId(stable UUID, recommended)
tabIndex(legacy, may change)
title(partial match)
profileName(partial match)No parameters = use active session
Tab Management (11)
Tool | Description |
| List all open tabs with stable IDs |
| Focus a specific tab (defaults to active) |
| Close a tab |
| Close all tabs |
| Duplicate a tab |
| Navigate tabs |
| Reorder tabs |
| Reopen closed tab |
| Split current tab (horizontal/vertical) |
Profile Management (4)
Tool | Description |
| List terminal profiles |
| Open tab with profile |
| Show profile dialog |
| SSH quick connect |
SFTP Operations (12) π
Requires
tabby-sshplugin. If not installed, SFTP tools are disabled automatically.
Basic Operations:
Tool | Description | Key Parameters |
| List remote directory |
|
| Read remote file (text) |
|
| Write text to remote file |
|
| Create remote directory |
|
| Delete remote file/directory |
|
| Rename/move remote file |
|
| Get file/directory info |
|
File Transfer (supports sync/async):
Tool | Description | Key Parameters |
| Upload local file β remote |
|
| Download remote β local file |
|
| Query transfer progress |
|
| List all transfers |
|
| Cancel active transfer |
|
Transfer Modes:
sync=true(default) waits for completion.sync=falsereturns immediately withtransferId.Size Limits: Configurable in Settings β MCP β SFTP.
βοΈ Configuration
Setting | Description | Default |
Port | MCP server port | 3001 |
Start on Boot | Auto-start server | true |
Pair Programming | Confirm commands | true |
Session Tracking | Use stable UUIDs | true |
Background Execution | Run without focus | false |
SFTP Enabled | Enable SFTP tools | true |
π Background Execution Mode
Enable this mode to allow MCP commands to run without switching focus to the terminal. This lets you continue working on other tabs while AI executes commands in the background.
Settings β MCP β Background Execution
β οΈ Risks:
You won't see commands executing in real-time
If you type in the target terminal while AI is running, input will conflict
For split panes, commands go to the
sessionIdtarget, not the focused paneDangerous commands could run without you noticing
β Recommended: Keep "Pair Programming Mode" enabled with confirmation dialogs for safety.
β οΈ 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
π¨ 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.
Acknowledgments
This project builds upon the work of tabby-mcp-server by @thuanpham582002.
Improvements over the original:
Feature | Original | This Project |
MCP Tools | 4 | 34 |
Tab Management | β | β |
Profile/SSH | β | β |
SFTP Support | β | β |
Stable Session IDs | β | β |
Streamable HTTP | β | β |
Init Bug | Has issue | β Fixed |
Install Script | Manual | β One-liner |
π Changelog
v1.2.0 (2026-01-24)
π§ Critical Bug Fixes:
π΄ SFTP Session ID Mismatch - Fixed critical bug where SFTP tools operated on wrong SSH server
Root cause: SFTP had separate session registry from Terminal, causing ID mismatch
Fix: SFTP now shares session registry with Terminal tools
SFTP no longer silently falls back to first SSH tab when sessionId doesn't match
π΄ Local Directory Auto-Creation - SFTP downloads now automatically create missing local directories
π΄ Error Reporting - Fixed misleading "Remote file not found" when local directory was missing
π¨ UI Improvements:
π Connection Monitor - Added "Connections" button to settings (always visible)
π οΈ Server Lifecycle - Improved server restart with forced socket cleanup
π Session Tracking - Added session metadata with activity history
π§ Terminal Improvements:
π Heredoc Support - Fixed complex shell commands (Python heredoc) execution
π Detailed Logging - Added
[findSSHSession]debug logs for troubleshooting
v1.1.6 (2026-01-22)
Improvements:
π¨ Enhanced Settings UI - Redesigned header with compact social links (GitHub, npm)
π Smart Links - All external links now open correctly in default browser
π’ Auto-versioning - Plugin version is now automatically read from
package.jsonπ§Ή Cleaner UI - Optimized layout and removed redundant sections
v1.1.5 (2026-01-22)
New Features:
π Internationalization (i18n) - Settings UI now supports multiple languages
English (
en-US,en-GB)Chinese Simplified (
zh-CN,zh-TW)Auto-follows Tabby's language setting
Extensible: easily add new languages by adding JSON files
v1.1.4 (2026-01-22)
New Features:
π Background Execution Mode - Run MCP commands without switching terminal focus
Settings UI with comprehensive risk warnings
Split pane focus handling for proper pane targeting
π Multi-shell Compatibility -
exec_commandnow supports Fish, Bash, Zsh, and shAuto-detects shell type from terminal buffer patterns
Shell-specific command wrappers for exit code capture
Bug Fixes:
π§ Fixed
open_profileSSH readiness detection - no longer returns prematurely before SSH is connectedFixed shell detection for non-bash shells (Fish shell
$statusvs$?)
v1.1.3 (2026-01-22)
Bug Fixes:
π§ Fixed
open_profilesessionId inconsistency - now returns same sessionId asget_session_listFixed SSH connection state detection -
readynow correctly reflects overall connection status
Improvements:
Clearer state fields in
open_profileresponse:tabReady: Tab/frontend initializedsshConnected: SSH connection established (SSH profiles only)ready: Overall ready state (for SSH: tabReady AND sshConnected)
Marked all peerDependencies as optional to prevent unnecessary package downloads
Added
tabby-sshto devDependencies for developer build stability
v1.1.2 (2026-01-22)
Optimization:
π¦ Reduced npm package size by moving bundled dependencies to devDependencies
All dependencies (express, zod, @modelcontextprotocol/sdk) are now bundled into dist/index.js
Installing from npm/Tabby store no longer downloads unnecessary packages
v1.3.0 (2026-02-04)
Bug Fixes:
π§ Fixed session disconnect false positives -
exec_commandandsend_inputno longer incorrectly report "Session disconnected"Root cause:
tab.destroyedis aSubject<void>(RxJS Observable), NOT a booleanNow correctly uses
session.open === falsefor disconnect detection
Cleanup:
ποΈ Removed non-functional SFTP "Advanced Tuning" settings (Chunk Size, Concurrency)
These had no effect with Tabby's
russh-based SFTP implementation
ποΈ Removed obsolete
fastPut/fastGetdetection code
i18n:
βοΈ Fixed SFTP size descriptions: corrected "10 MB" β "10 GB" in all translations
v1.1.1 (2026-01-21)
Bug Fixes:
π§ Fixed Streamable HTTP connection leak - connections were not being cleaned up when clients disconnected
Added
transport.onclosehandler to properly remove closed sessions from trackingEnhanced SSE stream close logging for better debugging
v1.1.0 (2026-01-20)
Major Fixes:
SFTP tools completely rewritten - Fixed all SFTP tools that were returning "No SSH session found"
Fixed SSH tab detection to properly handle tabs inside
SplitTabComponentFixed
get_terminal_bufferandselect_tabreturning error when called without parametersFixed
select_tabtool not finding tabs by tabId (bidirectional lookup)Fixed
quick_connectandopen_profileparameter validation issues
Improvements:
All tools now use smart defaults: no parameters = use active session/tab/first SSH session
Updated documentation: tool count corrected to 34 (Terminal 7 + Tab 11 + Profile 4 + SFTP 12)
Added detailed debug logging and better error messages
Added
focus_paneandsplit_tabto documentationAdded Streamable HTTP transport support (protocol 2025-03-26)
Settings: SFTP size limits now use MB instead of bytes
Settings: Updated SFTP notes (removed outdated base64 warning)
π€ Contributing
See CONTRIBUTING.md for guidelines.
π License
MIT License - see LICENSE
Made with β€οΈ by AI and GentlemanHu
β Star this repo if you find it useful!