Back to blog

How to Give Claude Access to Your Code Snippets

4 min read·mcp, ai, claude, snipperapp-3

You have a snippet library because you got tired of rewriting the same thirty lines of code. The pagination helper. The retry-with-backoff wrapper. The docker-compose.yml that actually works with the local Postgres setup.

Then you started using an AI assistant, and it began confidently generating its own version of all of them. Slightly different. Not wrong exactly, but not yours — not the one you already debugged, already hardened, already know works in production.

That is the gap the Model Context Protocol closes.

What MCP actually is

MCP is an open standard for connecting AI assistants to tools and data that live outside the chat window. An MCP server exposes a set of capabilities; an MCP client — Claude Code, Claude Desktop, Cursor — calls them when the conversation needs them.

The important part is what it is not. It is not embedding your code into a model, not uploading a folder, not pasting files into context and hoping. The assistant queries your library on demand, the same way it might read a file or run a command, and only pulls what the current task needs.

For a snippet library, that means the model stops guessing at code you already own.

Setting it up

SnipperApp 3 ships an MCP server inside the app bundle. There is nothing to install and no service to run — the binary is already on disk when the app is.

For Claude Code, it is one command:

claude mcp add snipper /Applications/SnipperApp\ 3.app/Contents/MacOS/snipper-mcp

For Claude Desktop, add it to ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "snipper": {
      "command": "/Applications/SnipperApp 3.app/Contents/MacOS/snipper-mcp",
      "args": []
    }
  }
}

Restart Claude Desktop and the tools appear in its tool list.

Two things worth knowing. If you installed via Setapp, the app lives under /Applications/Setapp/, so adjust the path accordingly. And the server talks over stdio, not a network port — there is no localhost address to configure and nothing listening for outside connections.

Cursor, Windsurf, and Raycast all work too. Full instructions for each are in the MCP integration docs.

What changes afterwards

The setup is five minutes. The interesting part is what the workflow becomes.

You stop describing code you already have. Instead of explaining your error-handling convention, you say "use my standard retry wrapper" and the assistant finds it, reads it, and matches it. The convention propagates because the model can see it, not because you remembered to paste it.

Your library becomes writable from the conversation. When you work out a fix worth keeping, "save that as a snippet in my Utilities folder" puts it in the library, tagged and filed, without leaving the terminal. In practice this matters more than reading, because the moment you want to save something is exactly the moment you least want to context-switch to another app.

Search gets semantic. Your snippet manager searches text. The assistant searches intent. "Find the thing I wrote for parsing those weird timestamps" tends to work even when you have long forgotten what you titled it.

The tools cover the whole library — searching and reading snippets, creating and updating them, and managing folders, tags, workspaces, and attachments. There are twenty-five in total, so an assistant can do essentially anything you can do in the UI.

The part people ask about first

Your snippets stay on your Mac.

The MCP server reads the same local database the app uses. It does not upload your library, does not require an account, and does not phone home. When Claude calls a tool, the data travels the same path as anything else you put in that conversation — and nothing you do not ask for travels at all.

That is a deliberate design choice and the reason the feature works with no configuration. There is no service to sign into because there is no service.

Worth doing?

If you already keep snippets and already use an AI assistant, the answer is straightforward: those two habits currently do not know about each other, and connecting them takes five minutes.

If you keep snippets in a Gist, a notes app, or a folder of files, MCP is a decent reason to reconsider. The value of a snippet library goes up sharply once something other than you can read it — and once saving to it costs nothing.

SnipperApp 3 is a one-time purchase with a 7-day trial, so you can test the workflow before deciding. If you are coming from another app, the SnippetsLab export guide covers getting your library out first.