Tabby-MCP-Server logo

Tabby-MCP-Server

Community
thuanpham582002

MCP server for control Tabby terminal

Publisherthuanpham582002
Repositorytabby-mcp-server
LanguageTypeScript
Forks
11
Stars
89
Available tools
0
Transport typestdio
Categories
LicenseMIT
Links
  • Connect tools to AI workflows

    Tabby-MCP-Server exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 0 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    89 stars and 11 forks from the linked repository.

Tabby MCP Server

npm version License: MIT GitHub issues GitHub stars

A Tabby Terminal plugin that exposes your active terminal sessions through the Model Context Protocol (MCP). It lets MCP-compatible AI clients discover terminal tabs, execute commands, read terminal buffers, and retrieve long command output.

Tabby stays the terminal UI. Your AI client connects to Tabby through MCP.

Highlights

  • MCP server inside Tabby — exposes an SSE endpoint at http://localhost:3001/sse
  • Terminal session discovery — list local and SSH-backed Tabby terminal sessions
  • Command execution — run commands in a selected Tabby terminal tab
  • Robust output capture — simple marker protocol with exit-code parsing
  • Terminal buffer access — read visible/history buffer ranges from a tab
  • Long output pagination — retrieve full command output by outputId
  • Pair programming mode — optional confirmation dialogs and user feedback
  • Docker-based build — reproducible local plugin builds for Tabby

Demo

Tabby MCP Plugin - AI Terminal Integration Demo

Table of Contents

Requirements

  • Tabby Terminal installed and running
  • Docker, for local builds
  • macOS for the provided install script path
  • An MCP-compatible client with SSE support, such as Claude Code, Cursor, Windsurf, Codex, or another SSE-capable MCP client

Installation

Option 1: Tabby Plugin Store

  1. Open Tabby
  2. Go to Settings → Plugins
  3. Install Tabby MCP
  4. Restart Tabby
  5. Open Settings → Plugins → MCP and confirm the server configuration

Option 2: Local Docker Build

bash
git clone https://github.com/thuanpham582002/tabby-mcp-server.git
cd tabby-mcp-server

make build-dist
bash scripts/copy_to_plugin_folder.sh

The install script copies the plugin to:

text
~/Library/Application Support/tabby/plugins/node_modules/tabby-mcp

Restart Tabby after installing or updating the plugin.

If your local Tabby installation requires bundled plugin dependencies, build the full package:

bash
make build-dist-with-deps
bash scripts/copy_to_plugin_folder.sh

Quick Start

  1. Start or restart Tabby
  2. Open at least one terminal tab
  3. Verify the MCP server is running:
bash
curl http://localhost:3001/health
# OK
  1. List Tabby terminal sessions:
bash
curl -X POST http://localhost:3001/api/tool/get_ssh_session_list \
  -H 'Content-Type: application/json' \
  -d '{}'
  1. Execute a command in a session:
bash
curl -X POST http://localhost:3001/api/tool/exec_command \
  -H 'Content-Type: application/json' \
  -d '{"command":"pwd","tabId":"0"}'

Connecting MCP Clients

Tabby-MCP provides:

text
SSE endpoint:    http://localhost:3001/sse
Health endpoint: http://localhost:3001/health
HTTP test API:   http://localhost:3001/api/tool/<tool-name>

The Tabby plugin must be running before clients can connect.

SSE clients

Use this configuration for clients that support SSE MCP servers directly:

json
{
  "mcpServers": {
    "tabby-mcp": {
      "type": "sse",
      "url": "http://localhost:3001/sse"
    }
  }
}

For Cursor-style clients, place it in the MCP config file, for example:

text
~/.cursor/mcp.json

Claude Code

If your Claude Code version supports SSE MCP servers:

bash
claude mcp add --transport sse tabby-mcp http://localhost:3001/sse

If your setup uses JSON config, use the SSE clients configuration.

Codex / OpenAI Codex CLI

Use the SSE MCP server configuration supported by your Codex client:

json
{
  "mcpServers": {
    "tabby-mcp": {
      "type": "sse",
      "url": "http://localhost:3001/sse"
    }
  }
}

For TOML-based configs, map the same SSE URL using your client's supported SSE MCP syntax.

Tools

ToolDescriptionParameters
get_ssh_session_listList available Tabby terminal sessionsnone
exec_commandExecute a shell command in a terminal tabcommand, tabId, commandExplanation
get_terminal_bufferRead terminal buffer contenttabId, startLine, endLine
get_command_outputRetrieve full/paginated command outputoutputId, startLine, maxLines

Configuration

Default plugin configuration:

json
{
  "mcp": {
    "enabled": true,
    "startOnBoot": true,
    "port": 3001,
    "serverUrl": "http://localhost:3001",
    "enableDebugLogging": true,
    "pairProgrammingMode": {
      "enabled": true,
      "showConfirmationDialog": true,
      "autoFocusTerminal": true
    }
  }
}

Configure these options in Tabby under Settings → Plugins → MCP.

Pair Programming Mode

Pair Programming Mode adds safety prompts when an AI client executes commands:

  • confirmation before command execution
  • optional terminal auto-focus
  • command rejection with feedback
  • command result dialog and history tracking

Development

Clone and build:

bash
git clone https://github.com/thuanpham582002/tabby-mcp-server.git
cd tabby-mcp-server
make build-dist

Install into local Tabby:

bash
bash scripts/copy_to_plugin_folder.sh

Restart Tabby and verify:

bash
curl http://localhost:3001/health

Build targets

bash
make build-dist            # Build dist only
make build-dist-with-deps  # Build dist and copy node_modules
make help                  # Show available targets

License

MIT — see LICENSE.


Installation

TypingMind
Prerequisites:

Node.js 18+

{
  "mcpServers": {
    "thuanpham582002-tabby-mcp-server": {
      "command": "",
      "args": []
    }
  }
}

Use Tabby-MCP-Server MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once Tabby-MCP-Server is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add Tabby-MCP-Server as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the Tabby-MCP-Server MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "thuanpham582002-tabby-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "tabby-mcp"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the Tabby-MCP-Server MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the Tabby-MCP-Server MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use Tabby-MCP-Server to help me with this task?
Tabby-MCP-Server
Sure. I read it.
Here is what I found using Tabby-MCP-Server.

Frequently asked questions

What is the Tabby-MCP-Server MCP server used for?

Tabby-MCP-Server is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use Tabby-MCP-Server MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use Tabby-MCP-Server with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use Tabby-MCP-Server MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With Tabby-MCP-Server connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect Tabby-MCP-Server MCP to TypingMind?

Tabby-MCP-Server runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does Tabby-MCP-Server MCP provide in TypingMind?

Tabby-MCP-Server exposes MCP capabilities that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use Tabby-MCP-Server MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If Tabby-MCP-Server requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇