Code Snippet Server

Provides a code snippet MCP server to create, list, and delete code snippets with persistent local storage.
  • javascript

7

GitHub Stars

javascript

Language

4 months ago

First Indexed

3 weeks ago

Catalog Refreshed

Documentation & install

Readme and setup notes from the catalogue, plus a client-ready config you can copy for your MCP host.

Installation

Add the following to your MCP client configuration file.

Configuration

View docs
{
  "mcpServers": {
    "ngeojiajun-mcp-code-snippets": {
      "command": "npx",
      "args": [
        "@ngeojiajun/code-snippet-server"
      ]
    }
  }
}

Code Snippet Server is an MCP server that manages code snippets across languages. It lets you create, list, and delete snippets with simple commands, and it stores data locally for quick access and offline use. This guide shows you how to install, run, and use the server from your MCP client.

How to use

You interact with the Code Snippet MCP server from an MCP client by performing three core actions: create a snippet, list snippets, and delete a snippet. Create a snippet by providing a title, choosing a language, and supplying the code content. List snippets to see what you have stored, with optional filtering by language or tags. When you no longer need a snippet, delete it by its unique identifier. You can also take advantage of localization and persistent storage to access your snippets across sessions.

How to install

Prerequisites: You need Node.js installed on your system. Supported major versions are 18.x, 20.x, or 22.x, and you should also have npm available.

Step by step commands to set up the server locally:

# Clone the project repository
git clone git@github.com:ngeojiajun/mcp-code-snippets.git

# Build the project
npm run build

# Install globally for convenient access
npm link

# Alternatively, run directly with npx
npx @ngeojiajun/code-snippet-server

Notes

The Code Snippet MCP server exposes its functionality through a simple command-line entrypoint that can be invoked via npx for quick testing or linked into your environment for ongoing use. Ensure you run the final startup flow before attempting to manage snippets.

If you want a self-contained MCP configuration snippet to reuse, you can define it like this in your MCP environment:

{
  "mcpServers": {
    "code_snippet": {
      "command": "npx",
      "args": ["@ngeojiajun/code-snippet-server"]
    }
  }
}

Available tools

createSnippet

Create a new code snippet with a title, language, and code. Optional tags help categorize the snippet.

listSnippets

Retrieve a list of stored snippets with optional filters for language or tag.

deleteSnippet

Remove a stored snippet using its unique identifier.

Built by
VeilStrat
AI signals for GTM teams
© 2026 VeilStrat. All rights reserved.All systems operational