# sniptide

Connects your Sniptide snippet manager to an AI agent. Useful for pulling code templates, configs, and environment files straight into your editor chat.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 9 repo stars
- Author: Dino-Kupinic
- License: AGPL-3.0 · policy=link-only · description only; the file stays with the author
- Source: https://github.com/Dino-Kupinic/sniptide
- Updated: 2026-10-29
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/mcp/sniptide

## What it does

This tool lets coding assistants search, retrieve, and store code snippets hosted on Sniptide. Agents can access team collections, reference configuration files, or upload multi-file pastes without leaving the prompt.

You can point it to the hosted platform or run a self-hosted instance using Docker Compose with Postgres. Connection works via HTTP with browser OAuth or over stdio using `npx -y @sniptide/mcp`.

Without an OAuth-capable client, you must generate a personal API token in the web interface and supply it through `SNIPTIDE_TOKEN`.

## Requirements
- Needs: Node.js (commands run via npx)
- Remote server: `https://app.sniptide.com/api/mcp`
- Environment variables: `SNIPTIDE_TOKEN`, `SNIPTIDE_BASE_URL` — keys and tokens: ask the human for the values, never commit them or put them in shared files.

## Install

### Claude Code (native platform)

1. **Platform CLI**
```bash
claude mcp add --env SNIPTIDE_TOKEN=<SNIPTIDE_TOKEN> --env SNIPTIDE_BASE_URL=<SNIPTIDE_BASE_URL> --transport stdio sniptide -- npx -y @sniptide/mcp
```
Replace <…> with your own values

2. **Platform CLI: remote server**
```bash
claude mcp add --transport http sniptide https://app.sniptide.com/api/mcp
```

### Codex

1. **Platform CLI: remote server**
```bash
codex mcp add sniptide --url https://app.sniptide.com/api/mcp
```

2. **Platform CLI**
```bash
codex mcp add sniptide --env SNIPTIDE_TOKEN=<SNIPTIDE_TOKEN> --env SNIPTIDE_BASE_URL=<SNIPTIDE_BASE_URL> -- npx -y @sniptide/mcp
```
Replace <…> with your own values

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "sniptide": {
            "url": "https://app.sniptide.com/api/mcp"
        }
    }
}
```
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "sniptide": {
            "command": "npx",
            "args": [
                "-y",
                "@sniptide/mcp"
            ],
            "env": {
                "SNIPTIDE_TOKEN": "<SNIPTIDE_TOKEN>",
                "SNIPTIDE_BASE_URL": "<SNIPTIDE_BASE_URL>"
            }
        }
    }
}
```
Replace <…> with your own values

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "sniptide": {
            "type": "http",
            "url": "https://app.sniptide.com/api/mcp"
        }
    }
}
```
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "sniptide": {
            "type": "stdio",
            "command": "npx",
            "args": [
                "-y",
                "@sniptide/mcp"
            ],
            "env": {
                "SNIPTIDE_TOKEN": "<SNIPTIDE_TOKEN>",
                "SNIPTIDE_BASE_URL": "<SNIPTIDE_BASE_URL>"
            }
        }
    }
}
```
Replace <…> with your own values

### Gemini CLI

1. **Platform CLI: remote server**
```bash
gemini mcp add -t http sniptide https://app.sniptide.com/api/mcp
```

2. **Platform CLI**
```bash
gemini mcp add -e SNIPTIDE_TOKEN=<SNIPTIDE_TOKEN> -e SNIPTIDE_BASE_URL=<SNIPTIDE_BASE_URL> sniptide npx -y @sniptide/mcp
```
Replace <…> with your own values

## When to use it
- search stored code snippets and collections from the chat
- fetch `.env` secrets and configuration files into the project
- publish multi-file code pastes directly from agent sessions
- link self-hosted snippet storage to your local coding assistant

## Example prompts
- Search my Sniptide library for the database migration helper
- Fetch the staging `.env` config from my Sniptide collection
- Save this helper script to Sniptide as an expiring snippet

## Similar
- [snippets](https://affpapa.org/en/nevibecode/skills/snippets.md) — skill · 1800 installs
- [obsidian-layout-adjustment](https://affpapa.org/en/nevibecode/skills/obsidian-layout-adjustment.md) — skill · 487 installs
- [snipgrapher](https://affpapa.org/en/nevibecode/skills/snipgrapher.md) — skill · 1000 installs
- [paste](https://affpapa.org/en/nevibecode/skills/paste.md) — skill · 380 installs
- [convex-env](https://affpapa.org/en/nevibecode/skills/convex-env.md) — skill · 44000 installs
- [Smithery](https://affpapa.org/en/nevibecode/mcp/smithery.md) — MCP server · 690 installs

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
