MCP Server Tauri
Enables AI assistants to build, test, and debug Tauri v2 applications with UI automation, IPC monitoring, mobile device management, and real-time access to screenshots, DOM state, and console logs.
README
<div align="center">
<img src="docs/public/logo.svg" alt="MCP Server Tauri" width="120" height="120" />
MCP Server Tauri
Give your AI assistant superpowers for Tauri development
Documentation Β· Getting Started Β· Available Tools
</div>
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βall via WebSocket |
| π IPC Monitoring | Capture and inspect Tauri IPC calls in real-time |
| π± Mobile Dev | Manage Android emulators & iOS simulators |
| π οΈ CLI Integration | Run any Tauri command (init, dev, build, etc.) |
| βοΈ Configuration | Read/write Tauri config files with validation |
| π Logs | Stream Android logcat, iOS device logs, 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: Android SDK or Xcode (macOS)
1. Add the MCP Bridge Plugin to Your Tauri App
Add 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");
}
2. Configure Your AI Assistant
<details> <summary><strong>Claude Code</strong></summary>
Use the Claude Code CLI:
claude mcp add tauri npx @hypothesi/tauri-mcp-server
Or manually add to your config (Cmd/Ctrl+Shift+P β "MCP: Edit Config"):
{
"mcpServers": {
"tauri": {
"command": "npx",
"args": ["-y", "@hypothesi/tauri-mcp-server"]
}
}
}
</details>
<details> <summary><strong>Cursor</strong></summary>
Click to install:
<img src="https://cursor.com/deeplink/mcp-install-dark.svg" alt="Install in Cursor" height="32">
Or manually: Go to Cursor Settings β MCP β New MCP Server:
{
"mcpServers": {
"tauri": {
"command": "npx",
"args": ["-y", "@hypothesi/tauri-mcp-server"]
}
}
}
</details>
<details> <summary><strong>VS Code / Copilot</strong></summary>
Click to install:
Or via CLI:
code --add-mcp '{"name":"tauri","command":"npx","args":["-y","@hypothesi/tauri-mcp-server"]}'
Or manually add to settings.json:
{
"mcp.servers": {
"tauri": {
"command": "npx",
"args": ["-y", "@hypothesi/tauri-mcp-server"]
}
}
}
</details>
<details> <summary><strong>Windsurf</strong></summary>
Go to Settings β AI β MCP Servers:
{
"mcpServers": {
"tauri": {
"command": "npx",
"args": ["-y", "@hypothesi/tauri-mcp-server"]
}
}
}
</details>
<details> <summary><strong>Cline</strong></summary>
Follow the Cline MCP configuration guide and use:
{
"mcpServers": {
"tauri": {
"command": "npx",
"args": ["-y", "@hypothesi/tauri-mcp-server"]
}
}
}
</details>
That's it! Restart your AI assistant and you're ready to build Tauri apps. π
Note: See the plugin documentation for advanced configuration options.
π§° Available Tools
<details> <summary><strong>UI Automation</strong> β Screenshots, clicks, typing, and more</summary>
| Tool | Description |
|---|---|
tauri_webview_screenshot |
Capture webview screenshots |
tauri_driver_session |
Start/stop automation session |
tauri_webview_find_element |
Find elements by selector |
tauri_webview_interact |
Click, scroll, swipe, long-press |
tauri_webview_keyboard |
Type text or send key events |
tauri_webview_wait_for |
Wait for elements, text, or events |
tauri_webview_get_styles |
Get computed CSS styles |
tauri_webview_execute_js |
Execute JavaScript in webview |
tauri_webview_focus_element |
Focus on elements |
tauri_driver_get_console_logs |
Get browser console logs |
tauri_read_platform_logs |
Read Android/iOS/system logs |
</details>
<details> <summary><strong>IPC & Plugin</strong> β Deep Tauri integration</summary>
| Tool | Description |
|---|---|
tauri_plugin_execute_ipc |
Execute Tauri IPC commands |
tauri_plugin_get_window_info |
Get window information |
tauri_plugin_get_backend_state |
Get app metadata and state |
tauri_plugin_ipc_monitor |
Start/stop IPC monitoring |
tauri_plugin_ipc_get_events |
Get captured IPC events |
tauri_plugin_emit_event |
Emit custom events |
</details>
<details> <summary><strong>Mobile Development</strong> β Emulators and simulators</summary>
| Tool | Description |
|---|---|
tauri_list_devices |
List Android devices and iOS simulators |
tauri_launch_emulator |
Launch Android AVD or iOS Simulator |
</details>
<details> <summary><strong>Project Management</strong> β CLI, config, and docs</summary>
| Tool | Description |
|---|---|
tauri_run_command |
Run any Tauri CLI command |
tauri_read_config |
Read Tauri config files (including platform-specific) |
tauri_write_config |
Write config files with validation |
tauri_get_docs |
Fetch Tauri documentation |
</details>
ποΈ 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, and macOS
- β 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
<details> <summary><strong>Project Structure</strong></summary>
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
</details>
<details> <summary><strong>Releasing</strong></summary>
# Release plugin (Cargo + npm)
npm run release:plugin patch
# Release server (npm only)
npm run release:server patch
See specs/releasing.md for details.
</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
π License
MIT Β© hypothesi
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.
E2B
Using MCP to run code via e2b.
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Neon Database
MCP server for interacting with Neon Management API and databases