MCP Serverfor Tauri
An MCP server that empowers AI assistants to build, test, and debug Tauri applications.
An MCP server that empowers AI assistants to build, test, and debug Tauri applications.
Capture and analyze screenshots to understand UI state and help with visual debugging
Access console logs, window state, and system logs in real-time
Capture and inspect Tauri IPC calls between frontend and backend in real-time
List Android emulators and iOS simulators for mobile testing
Click, type, scroll, find elements, and verify UI state in your app's webview
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. Please note that this project is not affiliated with, endorsed by, or sponsored by The Tauri Programme within the Commons Conservancy.
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 - test UI, debug issues, monitor IPC calls, and inspect your app's state.
npm install -g @tauri-apps/cli@nextAdd the Rust crate (from your src-tauri directory):
cargo add tauri-plugin-mcp-bridgeOr manually add to Cargo.toml: tauri-plugin-mcp-bridge = "0.7"
Register in 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");
}Required Configuration
You must enable withGlobalTauri in your tauri.conf.json:
{
"app": {
"withGlobalTauri": true
}
}This exposes window.__TAURI__ which the MCP bridge plugin requires to communicate with your app.
Optional: TypeScript Bindings
The npm package @hypothesi/tauri-plugin-mcp-bridge is optional. It provides TypeScript bindings if you want to call the plugin from your app's frontend code. The MCP server communicates with the Rust plugin directly via WebSocket—no npm package needed.
Use install-mcp to add the server to your AI assistant:
npx -y install-mcp @hypothesi/tauri-mcp-server --client claude-codeSupported clients: claude-code, cursor, windsurf, vscode, cline, roo-cline, claude, zed, goose, warp, codex
If you prefer to configure manually, add to your MCP config:
{
"mcpServers": {
"tauri": {
"command": "npx",
"args": ["-y", "@hypothesi/tauri-mcp-server"]
}
}
}Config file locations:
Cursor Settings → MCP → New MCP Serversettings.json under mcp.serversThe MCP server communicates with your Tauri application through:
The server provides slash commands (prompts) for guided workflows:
The server exposes tools across 4 categories: