Getting Started with MCP Server Tauri
This guide will walk you through integrating MCP Server Tauri into your existing Tauri application.
Prerequisites
Before you begin, ensure you have:
- An existing Tauri 2.x application
- Node.js 20+ and npm
- Rust and Cargo
- An MCP-compatible AI Assistant (Claude Code, Cursor, Windsurf, VS Code, etc.)
Step 1: Configure Your AI Assistant
First, add the MCP server to your AI assistant using install-mcp:
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
Manual Configuration
If you prefer to configure manually, add to your MCP config:
{
"mcpServers": {
"tauri": {
"command": "npx",
"args": ["-y", "@hypothesi/tauri-mcp-server"]
}
}
}Config file locations:
- Claude Code: Cmd/Ctrl+Shift+P → "MCP: Edit Config"
- Cursor:
Cursor Settings→MCP→New MCP Server - VS Code: Add to
settings.jsonundermcp.servers - Windsurf: Cascade pane → MCPs icon → settings icon
- Cline: See Cline MCP configuration guide
Restart your AI assistant after adding the configuration.
Step 2: Configure Your Tauri App
Now add the MCP Bridge plugin to your Tauri app. Pick your path:
🚀 Start Building!
Run your app and start talking to your AI assistant:
cargo tauri devNow try these:
"Take a screenshot of my app"
"Click the submit button"
"Start monitoring IPC calls and show me what's happening"
"Find all the input fields in my app"
"Check the console for any JavaScript errors"
The AI connects to your running app and can see, click, type, and debug—just like a human tester, but faster.
More Slash Commands
| Command | What it does |
|---|---|
/setup | Configure the MCP bridge (you just used this!) |
/fix-webview-errors | Find and fix JavaScript errors automatically |
See the Prompts documentation for details.
Prompts Not Working?
Some MCP clients don't support slash commands yet. See the manual prompt instructions section above for a workaround.
Next Steps
- API Reference — Learn about all 17 available tools
- IPC & Plugin Tools — Debug your app's IPC layer
- UI Automation — Automate webview interactions
Troubleshooting
MCP Server Not Loading
If your AI assistant doesn't recognize the Tauri tools:
- Verify the MCP configuration is correct
- Restart your AI assistant application
- Check for error messages in the assistant's logs
Connection Failed
If the AI can't connect to your Tauri app:
- Make sure your app is running (
cargo tauri dev) - Verify
withGlobalTauriis enabled intauri.conf.json - Check that
mcp-bridge:defaultpermission is added - Look for WebSocket errors in your app's console (port 9223)