npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

tauri-plugin-mcp-server

v0.1.0

Published

This is a Model Context Protocol (MCP) server that connects to a Tauri application's socket server to provide tools for controlling and interacting with the Tauri application.

Readme

Tauri MCP Server

This is a Model Context Protocol (MCP) server that connects to a Tauri application's socket server to provide tools for controlling and interacting with the Tauri application.

Overview

The server bridges MCP clients (like LLMs) with a Tauri application by:

  1. Connecting to the Tauri socket server via a Unix socket/named pipe
  2. Providing MCP tools that map to Tauri functionality
  3. Running as a stdio-based MCP server that any MCP client can use

Available Tools

The server provides the following MCP tools:

take_screenshot

Take a screenshot of a Tauri application window.

Parameters:

  • window_label (optional): The label of the window to capture (default: "main")
  • quality (optional): JPEG quality from 1-100
  • max_width (optional): Maximum image width in pixels
  • max_size_mb (optional): Maximum file size in MB

Returns:

  • Image content with base64-encoded data

execute_js

Execute JavaScript code in a Tauri window.

Parameters:

  • code: JavaScript code to execute
  • window_label (optional): The window to execute in (default: "main")
  • timeout_ms (optional): Maximum execution time in milliseconds

Returns:

  • The result of the JavaScript execution, serialized as a string

get_dom

Get the HTML DOM content of a Tauri window.

Parameters:

  • window_label (optional): The window to get the DOM from (default: "main")

Returns:

  • HTML content as a string

manage_window

Control Tauri application windows.

Parameters:

  • operation: Operation to perform (e.g., "focus", "minimize", "maximize", "setPosition", "setSize")
  • window_label (optional): Target window (default: "main")
  • x (optional): X position for setPosition
  • y (optional): Y position for setPosition
  • width (optional): Width for setSize
  • height (optional): Height for setSize

Returns:

  • Success message

manage_local_storage

Manage localStorage in the Tauri webview.

Parameters:

  • action: Action to perform ("get", "set", "remove", "clear", or "keys")
  • key (optional): Key to get, set, or remove
  • value (optional): Value to set
  • window_label (optional): Target window (default: "main")

Returns:

  • Operation result

Setup and Usage

  1. Ensure the Tauri application is running with the socket server active
  2. Start this MCP server
  3. Connect your MCP client to this server
  4. Use the tools to interact with the Tauri application

The server connects to the Tauri socket at /private/tmp/tauri-mcp.sock.

Error Handling

All tools follow the MCP error reporting convention:

  • If a tool succeeds, it returns a result object with content
  • If a tool fails, it returns an object with isError: true and an error message in content

Example

Using the take_screenshot tool from an MCP client:

{
  "name": "take_screenshot",
  "arguments": {
    "window_label": "main",
    "quality": 90,
    "max_width": 1920
  }
}

The response will include base64-encoded image data that can be rendered or saved as a JPEG file.