npm @hypothesi/tauri-mcp-serverstdioMITupdated 10d ago
Give your AI assistant superpowers for Tauri development
What can you do with mcp server tauri?
MCP Server Tauri
Give your AI assistant superpowers for Tauri development
Documentation ยท Getting Started ยท Available Tools
A Model Context Protocol (MCP) server that enables AI assistants like Claude, Cursor, and Windsurf to build, test, and debug Tauriยฎ v2 applications. Screenshots, DOM state, and console logs from your running app give the AI rich context to understand what's happeningโand tools to interact with it.
โจ Features
| Category | Capabilities |
|---|---|
| ๐ฏ UI Automation | Screenshots, clicks, typing, scrolling, element finding, visual element picker |
| ๐ IPC Monitoring | Capture and inspect Tauri IPC calls in real-time |
| ๐ฑ Mobile Dev | List iOS simulators & Android emulators |
| ๐ Logs | Stream console, Android logcat, iOS, and system logs |
Disclaimer: This MCP was developed using agentic coding tools. It may contain bugs.
๐ Quick Start
Prerequisites
- Node.js 20+ and npm
- Rust and Cargo (for Tauri development)
- Tauri CLI:
npm install -g @tauri-apps/cli@next - For mobile: Xcode (macOS) or Android SDK
1. 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
[!TIP]
aixautomatically detects your installed AI assistants and configures them.
Restart your AI assistant after adding the configuration.
CLI Usage
If you want to call the tools directly from a terminal instead of from an MCP client:
npm install -g @hypothesi/tauri-mcp-cli
tauri-mcp driver-session start --port 9223
tauri-mcp webview-screenshot --file screenshot.png
The CLI uses MCPorter keep-alive support so driver_session state survives across separate commands.
2. Set Up the MCP Bridge Plugin
Ask your AI assistant to help configure your Tauri app:
"Help me set up the Tauri MCP Bridge plugin"
Your AI will:
- Examine your project to see what's already configured
- Show you what changes are needed (Cargo.toml, plugin registration, etc.)
- Ask for your permission before making any modifications
That's it! The AI handles all the setup details while keeping you in control. ๐
If you prefer to set up manually, see the Getting Started guide or the plugin documentation.
๐ฌ Slash Commands (Prompts)
| Command | Description |
|---|---|
/setup |
Set up or update the MCP bridge plugin in your Tauri project |
/fix-webview-errors |
Find and fix JavaScript errors in your webview |
/select |
Visually select an element in your app โ returns metadata and screenshot |
Just type the command in your AI assistant to start a guided workflow.
๐งฐ Available Tools (21 total)
| Tool | Description |
|---|---|
get_setup_instructions |
Get setup/update instructions for the MCP Bridge plugin |
| Tool | Description |
|---|---|
driver_session |
Start/stop/status automation session |
webview_find_element |
Find elements by selector |
read_logs |
Read console, Android, iOS, or system logs |
webview_interact |
Click, scroll, swipe, focus, long-press |
webview_screenshot |
Capture webview screenshots |
webview_keyboard |
Type text or send key events |
webview_wait_for |
Wait for elements, text, or events |
webview_get_styles |
Get computed CSS styles |
webview_execute_js |
Execute JavaScript in webview |
webview_dom_snapshot |
Get structured accessibility tree snapshot |
webview_select_element |
Visual element picker โ user clicks an element, returns metadata + screenshot |
webview_get_pointed_element |
Get metadata for element user Alt+Shift+Clicked |
manage_window |
List windows, get info, or resize |
Multi-Window Support: All webview tools accept an optional
windowIdparameter to target specific windows. Usemanage_windowwithaction: "list"to discover available windows.
| Tool | Description |
|---|---|
ipc_execute_command |
Execute Tauri IPC commands |
ipc_get_backend_state |
Get app metadata and state |
ipc_monitor |
Start/stop IPC monitoring |
ipc_get_captured |
Get captured IPC traffic |
ipc_emit_event |
Emit custom events |
| Tool | Description |
|---|---|
list_devices |
List Android devices and iOS simulators |
๐๏ธ Architecture
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ AI Assistant โ
โ (Claude, Cursor, Windsurf) โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ MCP Protocol (stdio)
โผ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ MCP Server (Node.js) โ
โ โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ Manager โ โ Driver โ โ Monitor โ โ
โ โ CLI/Config โ โ UI Automationโ โ Logs/IPC Events โ โ
โ โโโโโโโโโโโโโโโโ โโโโโโโโฌโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโโ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ WebSocket (port 9223)
โผ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Tauri Application โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ MCP Bridge Plugin (Rust) โ โ
โ โ IPC Commands โข Events โข Backend State โ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ Webview (DOM/UI) โ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Why this approach?
- โ Rich AI context โ Screenshots, DOM, and logs help the AI understand your app's state
- โ Cross-platform โ Works on Linux, Windows, macOS, Android, and iOS
- โ No external drivers โ No Selenium, Playwright, or browser automation needed
- โ Native integration โ Direct access to Tauri's IPC and backend
๐งโ๐ป Development
# Clone and install
git clone https://github.com/hypothesi/mcp-server-tauri.git
cd mcp-server-tauri
npm install
# Build all packages
npm run build
# Run tests
npm test
# Development mode
npm run dev -w @hypothesi/tauri-mcp-server
mcp-server-tauri/
โโโ packages/
โ โโโ mcp-server/ # MCP server (TypeScript)
โ โโโ tauri-plugin-mcp-bridge/ # Tauri plugin (Rust + JS bindings)
โ โโโ test-app/ # Test Tauri application
โโโ docs/ # VitePress documentation
โโโ specs/ # Architecture specs
# Release plugin (Cargo + npm)
npm run release:plugin patch
# Release server (npm only)
npm run release:server patch
See specs/releasing.md for details.
๐ Documentation
- Full Documentation โ Guides, API reference, and examples
- MCP Server Package โ Server implementation details
- MCP Bridge Plugin โ Tauri plugin documentation
๐ค Contributing
Contributions are welcome! Please:
- Follow existing code patterns
- Add tests for new features
- Update documentation
- Ensure
npm testandnpm run standardspass
Other Notes
This project is tested with BrowserStack.
๐ 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.
Install
Add mcp server tauri to your client. Pick the one you use.
claude mcp add tauri-mcp-server -- npx -y @hypothesi/tauri-mcp-servercodex mcp add tauri-mcp-server -- npx -y @hypothesi/tauri-mcp-serveramp mcp add tauri-mcp-server -- npx -y @hypothesi/tauri-mcp-server{
"mcpServers": {
"tauri-mcp-server": {
"command": "npx",
"args": [
"-y",
"@hypothesi/tauri-mcp-server"
]
}
}
}Add to `claude_desktop_config.json`, then restart Claude Desktop.
{
"mcpServers": {
"tauri-mcp-server": {
"command": "npx",
"args": [
"-y",
"@hypothesi/tauri-mcp-server"
]
}
}
}Add to `~/.cursor/mcp.json`, or `.cursor/mcp.json` for a single project.
code --add-mcp '{"name":"tauri-mcp-server","command":"npx","args":["-y","@hypothesi/tauri-mcp-server"]}'Or add the block manually to `.vscode/mcp.json` under `servers`.
{
"mcpServers": {
"tauri-mcp-server": {
"command": "npx",
"args": [
"-y",
"@hypothesi/tauri-mcp-server"
]
}
}
}Add to `~/.codeium/windsurf/mcp_config.json`.
{
"mcpServers": {
"tauri-mcp-server": {
"command": "npx",
"args": [
"-y",
"@hypothesi/tauri-mcp-server"
]
}
}
}Add to `cline_mcp_settings.json` via the MCP Servers panel.
{
"mcpServers": {
"tauri-mcp-server": {
"command": "npx",
"args": [
"-y",
"@hypothesi/tauri-mcp-server"
]
}
}
}Add to `~/.gemini/settings.json`.
{
"mcpServers": {
"tauri-mcp-server": {
"type": "local",
"command": "npx",
"args": [
"-y",
"@hypothesi/tauri-mcp-server"
],
"tools": [
"*"
]
}
}
}Add to `~/.copilot/mcp-config.json`, or run `/mcp add` inside the CLI.
{
"context_servers": {
"tauri-mcp-server": {
"command": {
"path": "npx",
"args": [
"-y",
"@hypothesi/tauri-mcp-server"
]
}
}
}
}Add to your Zed `settings.json`.
npx -y @hypothesi/tauri-mcp-serverRun `goose configure`, choose **Add Extension โ Command-line Extension**, and paste this command.
Score
39 / 100
Incomplete
- Documentation25/25
- Maintenance25/25
- Trust16/20
- Capability0/15
- Install experience12/15
- Documents what it does and how to connect
- Has a resolvable package or endpoint
- Exposes at least one tool, prompt or resource
- README has substantive content
- Includes a code example
- Documents its configuration
- Mentions credentials or security posture
- Last commit 3 days ago
- Has a release history
- Repository is not archived
- Licensed MIT
- Namespace verified in the official MCP registry
- Claimed by its owner
- Published under an organisation
- 0 tool(s) documented
- Provides prompt templates
- Provides resources
- 12 documented install method(s)
- Published to a package registry
- Offers a hosted endpoint โ no local install
Version history
| Versions | Published |
|---|---|
| 0.13.0Latest | Aug 28, 2026 |
| 0.12.0 | Jul 6, 2026 |
| 0.9.0 | Feb 21, 2026 |
| 0.8.3 | Feb 18, 2026 |
| 0.8.2 | Feb 10, 2026 |
| 0.8.1 | Jan 25, 2026 |
| 0.8.0 | Jan 15, 2026 |
| 0.6.4 | Dec 28, 2025 |