Skip to content

MCP Serverfor Tauri

An MCP server that provides AI assistants with tools to interact with Tauri applications during development.

Visual Context

Capture and analyze screenshots to understand UI state and help with visual debugging

Live Debugging

Access console logs, window state, and system logs in real-time

Tauri CLI Commands

Execute Tauri CLI commands like build, dev, and init through the AI assistant

Device Management

List and launch Android emulators and iOS simulators for mobile testing

Native UI Automation

Automate UI testing through native Tauri IPC for element interaction and verification

Plugin Bridge

Execute IPC commands and interact with the Tauri plugin system

Community Project

This is an unofficial community project, independently developed to enhance Tauri development through AI assistance.

What Is This?

MCP Server for Tauri bridges AI assistants with your Tauri development environment via the Model Context Protocol. Control your entire dev workflow through natural language - run commands, edit configs, test UI, and debug issues.

Quick Start

1. Prerequisites

  • Node.js 20+ and npm
  • Rust and Cargo
  • Tauri CLI: npm install -g @tauri-apps/cli@next

2. Add the MCP Bridge Plugin to Your Tauri App

Add to Cargo.toml:

toml
[dependencies]
tauri-plugin-mcp-bridge = "0.1"

Register in src-tauri/src/main.rs:

rust
fn main() {
    tauri::Builder::default()
        .plugin(tauri_plugin_mcp_bridge::init())
        .run(tauri::generate_context!())
        .expect("error while running tauri application");
}

Required Configuration

You must enable withGlobalTauri in your tauri.conf.json:

json
{
  "app": {
    "withGlobalTauri": true
  }
}

This exposes window.__TAURI__ which the MCP bridge plugin requires to communicate with your app.

3. Configure Your AI Assistant

Add the MCP server to your assistant's configuration:

Claude Code

Use the Claude Code CLI to add the Tauri MCP server:

bash
claude mcp add tauri npx @hypothesi/tauri-mcp-server

Or manually add to your config (Cmd/Ctrl+Shift+P → "MCP: Edit Config"):

json
{
  "mcpServers": {
    "tauri": {
      "command": "npx",
      "args": ["-y", "@hypothesi/tauri-mcp-server"]
    }
  }
}
Cursor

Click the button to install:

Install in Cursor

Or install manually:

Go to Cursor SettingsMCPNew MCP Server:

json
{
  "mcpServers": {
    "tauri": {
      "command": "npx",
      "args": ["-y", "@hypothesi/tauri-mcp-server"]
    }
  }
}
VS Code / Copilot

Click the button to add the MCP server in VS Code:

Add Tauri MCP server in VS Code

Or install using the VS Code CLI:

bash
code --add-mcp '{"name":"tauri","command":"npx","args":["-y","@hypothesi/tauri-mcp-server"]}'

Or manually add to your workspace or user settings.json:

json
{
  "mcp.servers": {
    "tauri": {
      "command": "npx",
      "args": ["-y", "@hypothesi/tauri-mcp-server"]
    }
  }
}
Windsurf

Go to SettingsAIMCP Servers:

json
{
  "mcpServers": {
    "tauri": {
      "command": "npx",
      "args": ["-y", "@hypothesi/tauri-mcp-server"]
    }
  }
}
Cline

Follow the Cline MCP configuration guide and use:

json
{
  "mcpServers": {
    "tauri": {
      "command": "npx",
      "args": ["-y", "@hypothesi/tauri-mcp-server"]
    }
  }
}

Architecture

The MCP server communicates with your Tauri application through:

  • Plugin Client (WebSocket port 9223) - Native IPC for UI automation, DOM interaction, and direct commands via mcp-bridge plugin

23 Powerful Tools

The server exposes tools across 4 categories:

UI Automation & WebView (11 tools) - Gestures, screenshots, JS execution, element finding
IPC & Plugins (6 tools) - IPC commands, monitoring, events
Mobile Development (2 tools) - Device listing, emulator launch
Project Management (4 tools) - CLI commands, config management

This is an unofficial community project. Not affiliated with, endorsed by, or associated with the Tauri project or CrabNebula Ltd.