@delorenj/tauri-mcp-server
v0.2.2
Published
MCP server for Tauri applications, enabling AI agents to interact with desktop GUIs through screenshots, DOM access, and input simulation
Maintainers
Readme
Tauri MCP Server
A Model Context Protocol (MCP) server that enables AI agents to interact with Tauri desktop applications through standardized interfaces.
Features
- Screenshot Capture: Take screenshots of Tauri windows
- DOM Access: Retrieve HTML content from webview windows
- Mouse Control: Simulate mouse clicks, movements, and scrolling
- Text Input: Send text input to focused elements
- JavaScript Execution: Run arbitrary JavaScript in application context
- Local Storage Management: Get, set, remove, and clear localStorage entries
- Window Management: Control window position, size, focus, and state
Installation
npm install -g tauri-mcp-serverUsage
With Claude Desktop
Add to your Claude Desktop MCP settings:
{
"mcpServers": {
"tauri-mcp": {
"command": "tauri-mcp-server"
}
}
}With Cursor
Add to your Cursor MCP configuration:
{
"mcpServers": {
"tauri-mcp": {
"command": "npx",
"args": ["tauri-mcp-server"]
}
}
}Available Tools
take_screenshot- Capture window screenshotsget_dom- Retrieve DOM content from webviewsmouse_movement- Control mouse cursor and clickstext_input- Send text to focused elementsexecute_js- Run JavaScript in application contextmanage_local_storage- Handle localStorage operationsmanage_window- Control window propertiesget_element_position- Find element positions for interactionsend_text_to_element- Send text to specific elements
Requirements
- Node.js 18+
- A Tauri application with the MCP plugin installed
Architecture
The server communicates with Tauri applications through:
- IPC (Unix sockets/named pipes) for local communication
- TCP sockets for network communication
- Direct Tauri API integration
License
MIT - See LICENSE for details.
Repository
https://github.com/delorenj/tauri-plugin-mcp
