Skip to main content
Tabby integrates with the Windows MCP (Model Context Protocol) server to provide AI models with advanced desktop control capabilities beyond basic keyboard and clipboard automation.

What is MCP?

The Model Context Protocol is an open standard that allows AI models to interact with external tools and services in a structured way. Tabby’s Windows MCP integration gives AI access to:
  • Advanced window management
  • File system operations
  • Process control
  • System information
  • Extended automation capabilities
Windows MCP is optional but recommended for users who want AI to have more control over their desktop environment during complex workflows.

Architecture

Tabby’s MCP integration consists of three components:

1. Windows MCP Server

A standalone HTTP server that exposes Windows automation tools:
Default endpoint: http://localhost:8001/mcp

2. MCP Client (Next.js Backend)

Connects to the MCP server and manages tool access:

3. AI SDK Integration

Makes MCP tools available to AI models:

Setup

Windows MCP requires Python and the windows-mcp package:
1

Install uv (Python package manager)

2

Start the MCP Server

The server starts on port 8001 and logs available tools.
3

Configure Environment (Optional)

To use a different URL or port:
4

Verify Connection

The Next.js backend logs MCP connection status:

Available Tools

Once connected, AI models can access MCP tools prefixed with windows-mcp_:
The exact tools available depend on the windows-mcp package version. Run pnpm run windows-mcp and check the startup logs to see all available tools.

How AI Uses MCP Tools

When you chat with Tabby’s AI, it can automatically invoke MCP tools: User: “Switch to my browser window” AI thinks:
AI responds: “Switched to Chrome - Stack Overflow”

Security Considerations

MCP tools have powerful system access. Only run the Windows MCP server when you need it, and be aware of what you’re asking the AI to do.

Safeguards

  1. Local Only - MCP server runs on localhost by default
  2. Manual Start - Server must be explicitly started via pnpm run windows-mcp
  3. Tool Prefixing - All tools are prefixed with windows-mcp_ for clarity
  4. Graceful Degradation - If MCP server is offline, AI works without those tools

Connection Management

Connection failures are logged but don’t crash the application.

Use Cases

Windows MCP enables advanced workflows:

Workflow Automation

User: “Take a screenshot, save it to my Desktop, and open it in Paint” AI:
  1. Captures screenshot via MCP
  2. Writes file to ~/Desktop/screenshot.png
  3. Executes mspaint screenshot.png

Context Gathering

User: “What’s currently running on my system?” AI:
  1. Calls windows-mcp_list_processes
  2. Formats process list
  3. Returns summary of active applications

Multi-Window Coordination

User: “Arrange my windows side-by-side” AI:
  1. Lists all windows
  2. Calculates screen positions
  3. Moves/resizes each window

Debugging

Enable MCP debug logging:
Check the Next.js backend terminal for connection status and tool invocations.

Running in Production

For the packaged Electron app:
1

Start MCP Server Separately

2

Launch Tabby

The Electron app connects to http://localhost:8001/mcp automatically.
3

Optional: Auto-Start MCP

Add the MCP server to your system startup if you use it frequently.

Extending MCP

You can add additional MCP servers:
All servers are initialized in parallel, and their tools are merged with prefixes:
  • windows-mcp_tool_name
  • custom-tools_tool_name

Cleanup

The MCP client gracefully closes connections on shutdown: