MCP Serverfor Tauri
An MCP server that provides AI assistants with tools to interact with Tauri applications during development.
An MCP server that provides AI assistants with tools to interact with Tauri applications during development.
Capture and analyze screenshots to understand UI state and help with visual debugging
Access console logs, window state, and system logs in real-time
Execute Tauri CLI commands like build, dev, and init through the AI assistant
List and launch Android emulators and iOS simulators for mobile testing
Automate UI testing through native Tauri IPC for element interaction and verification
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.
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.
npm install -g @tauri-apps/cli@nextAdd to Cargo.toml:
[dependencies]
tauri-plugin-mcp-bridge = "0.1"Register in src-tauri/src/main.rs:
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:
{
"app": {
"withGlobalTauri": true
}
}This exposes window.__TAURI__ which the MCP bridge plugin requires to communicate with your app.
Add the MCP server to your assistant's configuration:
Use the Claude Code CLI to add the Tauri MCP server:
claude mcp add tauri npx @hypothesi/tauri-mcp-serverOr manually add to your config (Cmd/Ctrl+Shift+P → "MCP: Edit Config"):
{
"mcpServers": {
"tauri": {
"command": "npx",
"args": ["-y", "@hypothesi/tauri-mcp-server"]
}
}
}Click the button to install:
Or install manually:
Go to Cursor Settings → MCP → New MCP Server:
{
"mcpServers": {
"tauri": {
"command": "npx",
"args": ["-y", "@hypothesi/tauri-mcp-server"]
}
}
}Click the button to add the MCP server in VS Code:
Or install using the VS Code CLI:
code --add-mcp '{"name":"tauri","command":"npx","args":["-y","@hypothesi/tauri-mcp-server"]}'Or manually add to your workspace or user settings.json:
{
"mcp.servers": {
"tauri": {
"command": "npx",
"args": ["-y", "@hypothesi/tauri-mcp-server"]
}
}
}Go to Settings → AI → MCP Servers:
{
"mcpServers": {
"tauri": {
"command": "npx",
"args": ["-y", "@hypothesi/tauri-mcp-server"]
}
}
}Follow the Cline MCP configuration guide and use:
{
"mcpServers": {
"tauri": {
"command": "npx",
"args": ["-y", "@hypothesi/tauri-mcp-server"]
}
}
}The MCP server communicates with your Tauri application through:
The server exposes tools across 4 categories: