mcp-server-tauri — Claude Code MCP server
An MCP server for Tauri v2 apps that lets AI agents inspect the UI, read logs, monitor IPC, and run debugging actions.
claude mcp add mcp-server-tauri -- npx -y @hypothesi/tauri-mcp-serverWhat mcp-server-tauri does
mcp-server-tauri gives an AI assistant tools for Tauri v2 development. It can take webview screenshots, find elements, click, type, scroll, wait for UI changes, inspect computed styles, and run JavaScript. The same server reads console, Android, iOS, and system logs, while its IPC tools capture traffic, execute commands, and inspect backend state.
A Tauri app needs the Rust bridge plugin before the server can connect. Add it with cargo add tauri-plugin-mcp-bridge, then initialize tauri_plugin_mcp_bridge::init() in src-tauri/src/main.rs under #[cfg(debug_assertions)]. The server talks to the Rust plugin over WebSocket. Without that bridge, the app connection will not work.
Multiple Tauri apps can stay connected on separate ports. The most recently connected app is the default; appIdentifier can target another app by port or bundle ID. A companion CLI keeps the MCP server warm so stateful driver_session calls work across shell invocations.
What it helps with
- inspect and operate a Tauri webview with an agent
- capture screenshots while testing the app UI
- trace and inspect Tauri IPC traffic
- read desktop and mobile application logs
- connect several Tauri apps on separate ports
Example prompts for the agent
- Inspect the current webview, find the login button, and click it.
- Connect to the app on port
9223, then show its recent IPC traffic. - Take a screenshot after entering the test email in the webview.
How to install mcp-server-tauri
Platform CLI
claude mcp add mcp-server-tauri -- npx -y @hypothesi/tauri-mcp-serverPlatform CLI
codex mcp add mcp-server -- npx -y @hypothesi/tauri-mcp-serverConfig file
{
"mcpServers": {
"mcp-server": {
"command": "npx",
"args": [
"-y",
"@hypothesi/tauri-mcp-server"
]
}
}
}Config file
{
"servers": {
"mcp-server": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@hypothesi/tauri-mcp-server"
]
}
}
}Platform CLI
gemini mcp add mcp-server npx -y @hypothesi/tauri-mcp-serverStep by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about mcp-server-tauri
How do I install mcp-server-tauri in Claude Code?
Run claude mcp add mcp-server-tauri -- npx -y @hypothesi/tauri-mcp-server. Then add the Rust tauri-plugin-mcp-bridge plugin to the Tauri app.
What does mcp-server-tauri do?
It exposes tools for webview automation, log reading, IPC monitoring, Tauri command execution, and device discovery for Android and iOS development.
What does a Tauri v2 app need before it can connect?
Add tauri-plugin-mcp-bridge with cargo add tauri-plugin-mcp-bridge, then initialize tauri_plugin_mcp_bridge::init() in src-tauri/src/main.rs for debug builds.