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: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 thewindows-mcp package:
1
Install uv (Python package manager)
2
Start the MCP Server
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 withwindows-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:Security Considerations
Safeguards
- Local Only - MCP server runs on
localhostby default - Manual Start - Server must be explicitly started via
pnpm run windows-mcp - Tool Prefixing - All tools are prefixed with
windows-mcp_for clarity - Graceful Degradation - If MCP server is offline, AI works without those tools
Connection Management
Use Cases
Windows MCP enables advanced workflows:Workflow Automation
User: “Take a screenshot, save it to my Desktop, and open it in Paint” AI:- Captures screenshot via MCP
- Writes file to
~/Desktop/screenshot.png - Executes
mspaint screenshot.png
Context Gathering
User: “What’s currently running on my system?” AI:- Calls
windows-mcp_list_processes - Formats process list
- Returns summary of active applications
Multi-Window Coordination
User: “Arrange my windows side-by-side” AI:- Lists all windows
- Calculates screen positions
- Moves/resizes each window
Debugging
Enable MCP debug logging: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:windows-mcp_tool_namecustom-tools_tool_name
Cleanup
The MCP client gracefully closes connections on shutdown:Related Features
- Desktop Control - Built-in keyboard and window automation
- Typewriter Mode - Human-like typing simulation
- Context Capture - Automatic screenshot memory