mcpField
T
Tauri MCP Server

Tauri MCP Server

Local
github.com/hypothesiDeveloper Tools329Updated 6d ago

About Tauri MCP Server

Tauri MCP Server is an MCP server for Tauri v2 applications, letting AI assistants such as Claude and Cursor build, test and debug desktop and mobile apps. It targets developers using the Tauri framework and provides UI automation, IPC monitoring and log access. A companion command line tool, tauri-mcp, is also available.

Key features

  1. 01WebView UI automation for screenshots, clicks and typing
  2. 02Element lookup by CSS selector, XPath or text
  3. 03Real-time capture of Tauri IPC calls
  4. 04Console, logcat and iOS log streaming
  5. 05Listing of Android devices and iOS simulators
  6. 06Companion tauri-mcp command line tool

Use cases

  1. 01Letting an AI assistant test a Tauri app's interface
  2. 02Debugging IPC calls between Tauri frontend and backend
  3. 03Inspecting mobile devices and logs during troubleshooting

MCP support

This project is an MCP server that exposes 20 tools for Tauri app automation, IPC and logs to MCP clients. The app must include the Rust MCP Bridge plugin, which the server reaches over WebSocket.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json · Universal config
{
"mcpServers": {
"tauri": {
"command": "npx",
"args": [
"-y",
"@hypothesi/tauri-mcp-server"
]
}
}
}
Run commandnpx -y @hypothesi/tauri-mcp-server

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
npm@hypothesi/tauri-mcp-server0.13.2

Tools

24

Saved tool list · updated 2w ago

ParameterTypeRequiredDescription
argsarrayNoAdditional arguments to pass to the command
commandstringYesAny Tauri CLI command (e.g., "init", "dev", "build", "android dev", "migrate", "plugin add", etc.)
cwdstringYesThe project directory
timeoutnumberNoCommand timeout in milliseconds (default: 180000)

Details

From the project README

@hypothesi/tauri-mcp-server

npm version License: MIT

A Model Context Protocol (MCP) server that enables AI assistants like Claude, Cursor, and Windsurf to build, test, and debug Tauri® v2 applications.

📖 Full Documentation

Features

CategoryCapabilities
🎯 UI AutomationScreenshots, clicks, typing, scrolling, element finding, visual element picker
🔍 IPC MonitoringCapture and inspect Tauri IPC calls in real-time
📱 Mobile DevList Android emulators & iOS simulators
📋 LogsStream console, Android logcat, iOS, and system logs

Quick Start

1. Add the MCP Bridge Plugin to Your Tauri App
cargo add tauri-plugin-mcp-bridge
// src-tauri/src/main.rs
fn main() {
    let mut builder = tauri::Builder::default();

    #[cfg(debug_assertions)]
    {
        builder = builder.plugin(tauri_plugin_mcp_bridge::init());
    }

    builder
        .run(tauri::generate_context!())
        .expect("error while running tauri application");
}

Note: The npm package @hypothesi/tauri-plugin-mcp-bridge is optional—only needed if you want to call the plugin from your app's frontend code. The MCP server communicates with the Rust plugin directly via WebSocket.

2. Configure Your AI Assistant

Use aix to add the server to your AI assistant:

npx -y @a1st/aix add mcp tauri --command 'npx @hypothesi/tauri-mcp-server' --user

Supported clients: claude-code, cursor, windsurf, vscode, cline, roo-cline, claude, zed, goose, warp, codex

Terminal CLI

If you want to call the same tools directly from a shell, install the companion CLI package:

npm install -g @hypothesi/tauri-mcp-cli
tauri-mcp driver-session start --port 9223
tauri-mcp driver-session status --json

The CLI keeps the underlying MCP server warm in the background so stateful commands such as driver_session work across separate invocations.

Multi-App Support

The MCP server supports connecting to multiple Tauri apps simultaneously. Each app runs on a unique port, and the most recently connected app becomes the "default" app.

Key Features:

  • Connect to multiple apps on different ports
  • Default app used when no appIdentifier specified
  • Target specific apps using port number or bundle ID
  • Stop individual sessions or all sessions at once

Example Usage:

// Connect to first app
await driver_session({ action: "start", port: 9223 })

// Connect to second app
await driver_session({ action: "start", port: 9224 })

// Check status - shows both apps with default indicator
await driver_session({ action: "status" })

// Use default app (most recent - port 9224)
await webview_screenshot()

// Target specific app by port
await webview_screenshot({ appIdentifier: 9223 })

// Stop specific app
await driver_session({ action: "stop", appIdentifier: 9223 })

// Stop all apps
await driver_session({ action: "stop" })

Available Tools (20 total)

Setup & Configuration
ToolDescription
get_setup_instructionsGet setup/update instructions for the MCP Bridge plugin
UI Automation
ToolDescription
driver_sessionStart/stop/status automation session
webview_find_elementFind elements by CSS selector, XPath, text, or ref ID
read_logsRead console, Android, iOS, or system logs
webview_interactClick, scroll, swipe, focus, long-press
webview_screenshotCapture webview screenshots (JPEG default)
webview_keyboardType text or send key events
webview_wait_forWait for elements, text, or events
webview_get_stylesGet computed CSS styles
webview_execute_jsExecute JavaScript in webview
webview_dom_snapshotGet structured DOM snapshot (accessibility or structure)
webview_select_elementVisual element picker — user clicks an element, returns metadata + screenshot
webview_get_pointed_elementGet metadata for element user Alt+Shift+Clicked
manage_windowList windows, get info, or resize
IPC & Plugin
ToolDescription
ipc_execute_commandExecute Tauri IPC commands
ipc_get_backend_stateGet app metadata and state
ipc_monitorStart/stop IPC monitoring
ipc_get_capturedGet captured IPC traffic
ipc_emit_eventEmit custom events
Mobile Development
ToolDescription
list_devicesList Android devices and iOS simulators

Links

License

MIT © hypothesi


Trademark Notice

TAURI® is a registered trademark of The Tauri Programme within the Commons Conservancy. https://tauri.app/

This project is not affiliated with, endorsed by, or sponsored by The Tauri Programme within the Commons Conservancy.

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.