Tauri Plugin MCP

v1.0.0Developer Toolsstable

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.

mcpmcp-servertauri
Share:
96
Stars
0
Downloads
0
Weekly
0/5

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

Automate and test Tauri desktop applications through MCP. Manage app lifecycle, interact with UI, and inspect state across platforms.
DaveDev42

Maintainer

LicenseMIT
Languagerust
Versionv1.0.0
UpdatedMay 16, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx tauri-plugin

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

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
1

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" }
2

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#main
3

Register 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");
}
4

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);
    });
  });
}
5

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.

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.

Quick Config Preview

{ "mcpServers": { "tauri-plugin": { "command": "npx", "args": ["-y", "tauri-plugin"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

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.

33,000+ ServersFree & Open SourceStep-by-Step Guides