Tauri Plugin MCP
Enables AI assistants to automate and test Tauri desktop applications through the Model Context Protocol. It provides tools for app management, UI interaction, and state inspection across multiple platforms without requiring CDP dependencies.
What is Tauri Plugin MCP?
Tauri Plugin MCP is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to enables ai assistants to automate and test tauri desktop applications through the model context protocol. it provides tools for app management, ui interaction, and state inspection across multiple pla...
Enables AI assistants to automate and test Tauri desktop applications through the Model Context Protocol. It provides tools for app management, UI interaction, and state inspection across multiple platforms without requiring CDP dependencies.
This server falls under the Developer Tools category on MCPgee, the world's largest MCP server directory with 33,000+ servers.
Features
- Enables AI assistants to automate and test Tauri desktop app
Use Cases
Maintainer
Works with
Installation
Manual Installation
npx tauri-pluginConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
How to Set Up and Use Tauri Plugin MCP
tauri-plugin-mcp enables AI assistants like Claude to automate and test Tauri desktop applications through the Model Context Protocol, providing 14 tools covering app lifecycle management, UI interaction, screenshots, and log inspection across Windows, macOS, and Linux. Unlike browser-based automation tools, it works without Chrome DevTools Protocol dependencies, making it compatible with all WebView backends including macOS WKWebView. The plugin installs as both a Rust crate in the Tauri app and an npm package providing the MCP server, and integrates directly with Claude Code as a plugin so the setup can be automated with a single command.
Prerequisites
- Node.js 18 or later
- Rust with Cargo installed
- Tauri v2.x project set up and building
- pnpm (recommended) or npm
- Claude Code for the Claude Code plugin installation path, or any MCP-compatible client for manual setup
Add the Rust plugin to your Tauri app
Add the tauri-plugin-mcp crate as a dependency in your Tauri app's src-tauri/Cargo.toml.
# src-tauri/Cargo.toml
[dependencies]
tauri-plugin-mcp = { git = "https://github.com/DaveDev42/tauri-plugin-mcp" }Install the npm package for the MCP server
Add the npm package to your project. This provides the self-contained tauri-mcp MCP server bundle with no node_modules dependencies.
pnpm add github:DaveDev42/tauri-plugin-mcp#mainRegister the plugin in Rust and add permissions
Call tauri_plugin_mcp::init() in your Tauri builder and add the mcp:default permission to your capabilities config. For production safety, wrap the init in a #[cfg(feature = "dev-tools")] guard.
// src-tauri/src/lib.rs
pub fn run() {
tauri::Builder::default()
.plugin(tauri_plugin_mcp::init())
.run(tauri::generate_context!())
.expect("error while running tauri application");
}Initialize the MCP bridge in your frontend
Import and call initMcpBridge() from tauri-plugin-mcp in your frontend entry point (main.tsx or main.ts). Wrap it in a DEV guard so it only runs in development builds.
// main.tsx
if (import.meta.env.DEV) {
import('tauri-plugin-mcp').then(({ initMcpBridge }) => {
initMcpBridge().catch(err => {
console.warn('[MCP] Bridge initialization failed:', err);
});
});
}Configure Claude Code to connect to the MCP server
Create a .mcp.json file in your project root pointing at the tauri-mcp server bundle. The server uses dynamic port allocation automatically.
# .mcp.json
{
"mcpServers": {
"tauri-mcp": {
"command": "node",
"args": ["./node_modules/tauri-plugin-mcp/packages/tauri-mcp/dist/index.js"]
}
}
}Tauri Plugin MCP Examples
Client configuration
Project-level .mcp.json for connecting Claude Code to the tauri-mcp server. The server is a self-contained bundle with all dependencies inlined, so it runs without additional node_modules.
{
"mcpServers": {
"tauri-mcp": {
"command": "node",
"args": ["./node_modules/tauri-plugin-mcp/packages/tauri-mcp/dist/index.js"]
}
}
}Prompts to try
With your Tauri app running in dev mode and the MCP server connected, ask Claude to automate and inspect your application.
- "Start a session with my Tauri app and take a screenshot of the main window"
- "Click the Submit button in the main window and capture the result"
- "Get the console logs from the last 30 seconds of my Tauri app"
- "Find the element with text 'Settings' and click it"
- "Run a QA test that opens the app, navigates to the dashboard, and verifies the chart loads"Troubleshooting Tauri Plugin MCP
tauri-plugin-mcp not found error when building the Rust project
The crate is fetched from GitHub directly. Ensure you have internet access and that the git URL in Cargo.toml is correct. Run cargo fetch to pre-download crates, then retry cargo build.
MCP bridge initialization fails in the frontend
Confirm that tauri-plugin-mcp was initialized in the Rust plugin (step 3) before the frontend loads. Also check that the mcp:default permission is present in your capabilities file — without it, the IPC command the bridge calls will be rejected by Tauri.
Claude Code does not see the tauri-mcp server after config
Restart Claude Code — MCP servers are registered at startup. If the server still does not appear, check that node can execute the bundle: node ./node_modules/tauri-plugin-mcp/packages/tauri-mcp/dist/index.js and look for any module errors.
Frequently Asked Questions about Tauri Plugin MCP
What is Tauri Plugin MCP?
Tauri Plugin MCP is a Model Context Protocol (MCP) server that enables ai assistants to automate and test tauri desktop applications through the model context protocol. it provides tools for app management, ui interaction, and state inspection across multiple platforms without requiring cdp dependencies. It connects AI assistants to external tools and data sources through a standardized interface.
How do I install Tauri Plugin MCP?
Follow the installation instructions on the Tauri Plugin MCP GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.
Which AI clients work with Tauri Plugin MCP?
Tauri Plugin MCP works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.
Is Tauri Plugin MCP free to use?
Yes, Tauri Plugin MCP is open source and available under the MIT license. You can use it freely in both personal and commercial projects.
Tauri Plugin MCP Alternatives — Similar Developer Tools Servers
Looking for alternatives to Tauri Plugin MCP? Here are other popular developer tools servers you can use with Claude, Cursor, and VS Code.
Ecc
★ 188.2kThe agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.
Javaguide
★ 155.8kJava 面试 & 后端通用面试指南,覆盖计算机基础、数据库、分布式、高并发、系统设计与 AI 应用开发
Gemini CLI
★ 104.5kA secure MCP server that wraps the Google Gemini CLI, allowing clients to query Gemini models using local OAuth sessions without requiring an API key. It provides tools for model interaction and diagnostics with built-in protection against command in
Awesome MCP Servers
★ 87.3k⭐ Curated list of Model Context Protocol (MCP) servers - tools that extend Claude Desktop, Cursor, Windsurf, and other MCP clients with custom capabilities.
MCP Servers
★ 86.0kModel Context Protocol Servers
CC Switch
★ 77.5kA cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Gemini CLI & Hermes Agent. Only official website: ccswitch.io
Browse More Developer Tools MCP Servers
Explore all developer tools servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.
Set Up Tauri Plugin MCP in Your Editor
Choose your AI client for step-by-step setup instructions.
Quick Config Preview
Add this to your claude_desktop_config.json or .cursor/mcp.json
Ready to use Tauri Plugin MCP?
Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.