Fire in da houseTop Tip:Paying $100+ per month for Perplexity, MidJourney, Runway, ChatGPT and other tools is crazy - get all your AI tools in one site starting at $15 per month with Galaxy AI Fire in da houseCheck it out free

tabby-mcp-server

MCP.Pizza Chef: thuanpham582002

Tabby-MCP-Server is a powerful MCP server plugin for the Tabby terminal that enables AI-driven terminal control and automation. It integrates the Model Context Protocol to allow LLMs to interact with the terminal environment in real time, facilitating complex workflows, command execution, and terminal management through natural language or programmatic interfaces. This server enhances terminal usability by bridging AI capabilities with terminal operations securely and efficiently.

Use This MCP server To

Automate terminal command execution via natural language Integrate AI-driven workflows within Tabby terminal Enable real-time terminal environment context for LLMs Control terminal sessions programmatically through MCP Streamline repetitive terminal tasks with AI automation Monitor terminal output and trigger AI responses Facilitate multi-step reasoning in terminal operations Enhance developer productivity with AI terminal integration

README

🚀 Tabby-MCP-Server

npm version License: MIT GitHub issues GitHub stars

Powerful Tabby plugin that implements Model Context Protocol (MCP) server, enabling AI-powered terminal control and automation.

Demo

📹 Video Demo

Watch the full video demonstration of Tabby-MCP in action:

Tabby MCP Plugin - AI Terminal Integration Demo

✨ Features

  • 🤖 AI Connection: Seamlessly connect AI assistants to your terminal
  • 🔌 MCP Server: Built-in Model Context Protocol server implementation
  • 🖥️ Terminal Control: Allow AI to execute commands and read terminal output
  • 🔍 Session Management: View and manage SSH sessions
  • 🚫 Command Abort: Safely abort running commands
  • 📋 Buffer Access: Retrieve terminal buffer content with flexible options

📋 Table of Contents

🔧 Installation

Using Docker

You can build and install the plugin using Docker with the following command:

git clone https://github.com/thuanpham582002/tabby-mcp-server.git
cd tabby-mcp-server
# Build the Docker image
docker build -t tabby-mcp . && docker run -v $(pwd)/build:/output tabby-mcp
bash scripts/copy_to_plugin_folder.sh

This command builds a Docker image tagged as 'tabby-mcp' and runs a container from this image, mounting your local 'build' directory to '/output' in the container. The script scripts/copy_to_plugin_folder.sh will copy the built files to the Tabby plugin folder.

Note: Our CI/CD workflows on GitHub also use this Docker-based build process to ensure consistency between local development and production releases.

🚀 Quick Start

  1. Install the plugin
  2. Configure your Tabby environment
  3. Connect to MCP server from any of the supported clients listed at https://modelcontextprotocol.io/clients

💻 Usage Examples

Connect an AI to Control Your Terminal

Retrieve SSH Session List

⚙️ Configuration

Configure the MCP server through the Tabby settings:

{
  "mcp": {
    "port": 3001,
    "host": "http://localhost:3001", // note: in development
    "enableLogging": false,
    "startOnBoot": true
  }
}

MCP Client Configuration

When connecting to the Tabby MCP server from an AI client (like Claude, GPT, etc.), use the following configuration:

{
  "mcpServers": {
    "Tabby MCP": {
      "url": "http://localhost:3001/sse"
    }
  }
}

You may need to adjust the url parameter if you've configured a different host or port in your server settings.

📚 API Reference

Available Tools

Tool Description Parameters
getSshSessionList Get list of SSH sessions None
execCommand Execute a command in terminal command, tabId
getTerminalBuffer Get terminal content tabId, startLine, endLine
abortCommand Abort a running command None

🤝 Contributing

Contributions are welcome! Here's how you can help:

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

See the contributing guidelines for more details.

Continuous Integration

Our project uses GitHub Actions for CI/CD with Docker-based builds:

  • Pull Requests: Automatically built and tested using Docker to ensure compatibility
  • Main Branch: Builds with Docker, publishes to npm, and creates GitHub releases
  • Benefits: Consistent environment across development, testing, and production

To set up the CI/CD pipeline in your fork:

  1. Configure the required secrets in your repository settings:

    • NPM_TOKEN: Your npm access token for publishing
    • GITHUB_TOKEN: Automatically provided by GitHub Actions
  2. The workflows will automatically run on push and pull request events.

📝 License

This project is licensed under the MIT License - see the LICENSE file for details.


Made with ❤️ by Pham Tien Thuan

tabby-mcp-server FAQ

How do I install the Tabby-MCP-Server?
You can install it via npm using 'npm install tabby-mcp' and follow the GitHub setup instructions.
Can Tabby-MCP-Server work with different LLM providers?
Yes, it supports OpenAI, Anthropic Claude, and Google Gemini models through the MCP protocol.
Is the Tabby-MCP-Server secure for production use?
Yes, it follows MCP's built-in principles for secure, scoped, and observable model interactions to ensure safe terminal control.
How does Tabby-MCP-Server handle multi-step terminal commands?
It leverages MCP's real-time context feeding to enable models to perform multi-step reasoning and command execution.
Can I customize the commands and workflows controlled by Tabby-MCP-Server?
Yes, it is extensible and allows customization of terminal commands and AI-driven workflows.
Does Tabby-MCP-Server support automation of terminal monitoring?
Yes, it can monitor terminal output and trigger AI responses or scripts based on defined conditions.
What platforms does Tabby-MCP-Server support?
It supports any platform where the Tabby terminal runs, including Windows, macOS, and Linux.
How can I contribute to Tabby-MCP-Server development?
Contributions are welcome via GitHub; you can submit issues or pull requests on the repository.