New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

snipaya-mcp

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

snipaya-mcp

Stdio bridge to the local MCP server of Snipaya, the macOS image annotator

latest
Source
npmnpm
Version
1.2.2
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

Snipaya app icon

snipaya-mcp

CI npm version npm downloads MIT license snipaya-mcp on Glama

Connect any MCP client that speaks stdio to Snipaya, the image and screenshot annotator for macOS. Your assistant can read the canvas, add arrows, text, shapes and callouts, redact sensitive data, crop, and export, while you watch the result in Snipaya.

Snipaya has an MCP server built in, served over Streamable HTTP on 127.0.0.1. snipaya-mcp is a thin bridge for clients that only start local stdio servers: it forwards every MCP message between the client and Snipaya, unchanged.

Tools and prompts are listed even before Snipaya is open. Until Snipaya answers, the bridge lists them from a built-in catalog, and a tool call returns a message that says what to do.

An assistant documenting a ticket in Snipaya: four screenshots on one canvas with numbered steps, arrows and callouts

Listed on the MCP Registry as io.github.krzysztofsurdy/snipaya-mcp, on Glama and in TensorBlock awesome-mcp-servers.

Requirements

  • Snipaya for macOS. It comes with a 14-day free trial.
  • Node.js 20 or newer (for the npx setup).

Turn on the MCP server in Snipaya

The server is off by default.

  • Open Snipaya, then Settings > AI Assistants.
  • Turn on Allow AI assistants. The status changes to Running.

That is all the bridge needs. It reads the access token and port from the settings Snipaya saves on this Mac, so you do not have to copy them.

Setup

npx

npx -y snipaya-mcp

If Snipaya is not running but Allow AI assistants is on, the bridge opens Snipaya in the background and waits up to 10 seconds for its server.

To override what Snipaya saved, set these variables or flags. Flags win over variables, and variables win over the saved settings.

VariableFlagDefault
SNIPAYA_MCP_TOKEN--tokenToken Snipaya savedAccess token from Settings > AI Assistants.
SNIPAYA_MCP_URL--urlhttp://127.0.0.1:<saved port>/mcp, else http://127.0.0.1:47321/mcpServer URL from Snipaya. Only 127.0.0.1 and localhost are accepted.
SNIPAYA_MCP_NO_LAUNCHSet to 1 to never open Snipaya. While Snipaya is closed, tool calls then return Cannot reach Snipaya.

Prefer the environment variable over --token: command-line flags are visible to other processes on the Mac.

JSON config

For clients configured with an mcpServers JSON file:

{
  "mcpServers": {
    "snipaya": {
      "command": "npx",
      "args": ["-y", "snipaya-mcp"],
      "env": {
        "npm_config_registry": "https://registry.npmjs.org/"
      }
    }
  }
}

For a custom setup, pass the values in env instead:

{
  "mcpServers": {
    "snipaya": {
      "command": "npx",
      "args": ["-y", "snipaya-mcp"],
      "env": {
        "npm_config_registry": "https://registry.npmjs.org/",
        "SNIPAYA_MCP_TOKEN": "<access token>",
        "SNIPAYA_MCP_URL": "<server url>"
      }
    }
  }
}

If your client supports Streamable HTTP servers directly, you do not need this bridge: use Copy MCP config in Snipaya instead.

MCP Bundle (.mcpb)

  • Download snipaya-mcp-<version>.mcpb from the latest release.
  • Open it with an MCP client that supports MCP Bundles, or drag it into the client's extensions settings.
  • Leave the token and URL empty to use what Snipaya saved, or paste the values from Settings > AI Assistants for a custom setup.

Security model

  • Local only. Snipaya's server listens on 127.0.0.1 and accepts only loopback Host headers and requests without an Origin header, so websites in your browser cannot reach it. The bridge refuses any URL whose host is not 127.0.0.1 or localhost, and never sends an Origin header.
  • Off by default. Nothing listens until you turn on Allow AI assistants.
  • Token. Every request carries Authorization: Bearer <token>. Snipaya generates the token, and Regenerate in Settings revokes the old one. The bridge never writes the token to its logs.
  • Saved settings. Without SNIPAYA_MCP_TOKEN, the bridge reads the token and port from ~/Library/Application Support/Snipaya/mcp.json, which Snipaya writes readable only by your macOS user. The bridge never writes to it.
  • Opening Snipaya. Only on macOS and only when Allow AI assistants is on, the bridge first sends one request without the token to see whether Snipaya answers. If the connection is refused, it runs open -g -b dev.snipaya.app (no shell) and retries. It does this at start, and again for a tool call while Snipaya is not reachable. Any other failure, such as a rejected token, never opens the app. SNIPAYA_MCP_NO_LAUNCH=1 turns this off.
  • The bridge only forwards. It runs no tools itself, stores nothing, and connects only to Snipaya. While Snipaya is not reachable, it answers the tool and prompt lists from a catalog shipped in the package. All actions run inside Snipaya, which shows connected assistants and recent activity in Settings > AI Assistants.

Tools

The tools come from the Snipaya version you have installed. Until Snipaya answers, the bridge lists the tools of Snipaya 1.3.3 from its catalog, and once Snipaya answers, the list of your installed version applies. Snipaya 1.3 provides:

ToolTitle
snipaya_get_canvasGet canvas
snipaya_renderRender canvas
snipaya_add_imageAdd image
snipaya_add_arrowAdd arrow or line
snipaya_add_shapeAdd shape
snipaya_add_textAdd text
snipaya_add_stepAdd step number
snipaya_add_emojiAdd emoji
snipaya_add_freehandAdd freehand stroke
snipaya_add_magnifierAdd magnifier
snipaya_add_calloutAdd callout
snipaya_add_spotlightAdd spotlight
snipaya_add_measureAdd measurement
snipaya_pick_colorPick color
snipaya_read_textRead text
snipaya_redactRedact sensitive data
snipaya_update_itemsUpdate elements
snipaya_delete_itemsDelete elements
snipaya_selectSelect elements
snipaya_arrangeArrange images
snipaya_set_cropSet crop
snipaya_undoUndo
snipaya_redoRedo
snipaya_tabsManage tabs
snipaya_exportExport image
snipaya_list_destinationsList export destinations
snipaya_export_toExport to destination
snipaya_save_projectSave project

Prompts

PromptTitleOptional argument
explain_bugExplain a bug in a screenshotissue
redact_before_sharingRedact secrets before sharingalso_hide
finish_screenshotMake a screenshot look finishedbackground
copy_textCopy text out of an imagearea
make_walkthroughTurn screenshots into a walkthroughtopic
compare_before_afterCompare before and afterchange

Troubleshooting

The bridge writes the problem to stderr (never stdout, which carries the protocol). While Snipaya is not reachable, it still lists the tools, and returns the same text as the result of each tool call. When Snipaya starts answering, for example after you open it or accept the license agreement, the next tool call reaches it without a restart.

MessageFix
Snipaya's settings were not foundInstall Snipaya, open it once and turn on Allow AI assistants. Or set SNIPAYA_MCP_TOKEN.
Snipaya is a macOS appThe bridge runs on another system. It lists the tools, but they work only with Snipaya on a Mac.
Snipaya's MCP server is offTurn on Allow AI assistants in Settings > AI Assistants.
Snipaya's settings ... cannot be read or hold no valid tokenOpen Snipaya, which rewrites its settings, then check Allow AI assistants. Or set SNIPAYA_MCP_TOKEN.
Cannot open SnipayaSnipaya is not installed in a place macOS can find. Install it from snipaya.app or open it yourself.
Opened Snipaya, but its MCP server starts only after you accept the license agreementSnipaya 1.1 and newer start the MCP server only after you accept the license agreement. Accept it in the Snipaya window, then call the tool again.
Opened Snipaya, but its MCP server did not answerOpen Settings > AI Assistants and fix the error shown under the status.
Cannot reach Snipaya at ...Open Snipaya and turn on Allow AI assistants. If the message mentions the license agreement, accept it in Snipaya first. If the status shows an error, fix that first. Check that the URL matches Server URL.
Snipaya rejected the tokenThe token changed, for example after Regenerate. Remove SNIPAYA_MCP_TOKEN to use the saved token, or copy the current one.
Snipaya ended the sessionSnipaya restarted or the token changed. Restart the snipaya server in your client.
Refusing <host>The URL must point to 127.0.0.1 or localhost. Copy Server URL from Snipaya.
CONNECTION_CLOSED or Failed to connect, with npm error 404 ... is not in this registry in the MCP logThe bridge never started: a project .npmrc points npm at a private registry, and MCP clients start the server in the project folder. Set npm_config_registry to https://registry.npmjs.org/ for the snipaya server, in env as in the JSON config above. In Claude Code, add the server once for every project with claude mcp add --scope user snipaya -e npm_config_registry=https://registry.npmjs.org/ -- npx -y snipaya-mcp. Claude Code keeps MCP server logs in ~/Library/Caches/claude-cli-nodejs/<project>/mcp-logs-snipaya/.

Run npx -y snipaya-mcp --help to see the options.

Development

npm ci
npm run lint
npm run typecheck
npm test          # builds, then runs the bridge over stdio against a local test server
npm run pack:mcpb # builds snipaya-mcp-<version>.mcpb with the official mcpb CLI

Catalog

catalog.json holds the tools, prompts and instructions the bridge serves while Snipaya is not reachable, and manifest.json lists the same tools and prompts. Regenerate both from a checkout of the Snipaya app (default ../snipaya) with Node 22.6 or newer, and commit the result:

npm run sync:catalog -- ../snipaya

Without a token or URL, the bridge reads the settings of the installed Snipaya in ~/Library/Application Support/Snipaya. Development builds of Snipaya keep their settings in their own Snipaya Dev profile folder, so to bridge to one, set SNIPAYA_MCP_TOKEN and SNIPAYA_MCP_URL to the values shown in its Settings > AI Assistants.

Releasing

Pushing a v* tag runs .github/workflows/release.yml. It runs the CI checks, checks that the tag matches the version in package.json, package-lock.json, server.json and manifest.json, stages the version on npm (with provenance), waits up to 60 minutes for a maintainer to approve it, then creates the GitHub release with the .mcpb attached, and publishes server.json to the MCP Registry.

One-time setup

On npmjs.com, open snipaya-mcp > Settings > Trusted publishing, choose GitHub Actions and enter:

FieldValue
Organization or userkrzysztofsurdy
Repositorysnipaya-mcp
Workflow filenamerelease.yml
Environment nameleave empty
Allowed actionsnpm stage publish only

npm expires a trusted publisher that has not published within 2 days, so add it shortly before the first release. The MCP Registry and the GitHub release need no setup: they use the workflow's own GitHub token.

Cut a release

npm version minor        # or patch, major: bumps all four files, commits and tags v<version>
git push --follow-tags

When the workflow reaches Publish to npm, approve the staged version with a 2FA prompt: npm stage approve snipaya-mcp@<version>, or on the package page on npmjs.com. The rest of the release continues on its own.

Re-running a failed release is safe: it skips the npm and MCP Registry publish when that version is already there, and replaces the bundle on an existing GitHub release.

License

MIT

Keywords

mcp

FAQs

Package last updated on 23 Oct 2026

Related posts