Skip to main content
Glama

Code Snippet Server

Overview

Code Snippet Server is a Model Context Protocol (MCP) server designed to manage and store code snippets across different programming languages. It provides a flexible and extensible way to create, list, and delete code snippets using a standardized server interface.

Features

  • Create code snippets with title, language, and code

  • List snippets with optional filtering by language or tag

  • Delete snippets by their unique ID

  • Localization support

  • Persistent local storage

Prerequisites

  • Node.js (18.x, 20.x, or 22.x)

  • npm

Installation

git clone git@github.com:ngeojiajun-deriv/mcp-code-snippets.git npm run build npm link

Usage

The server exposes three primary tools:

1. Create Snippet

Create a new code snippet with a title, language, and code.

Parameters:

  • title (required): Name of the snippet

  • language (required): Programming language

  • code (required): The actual code snippet

  • tags (optional): Array of tags for categorization

2. List Snippets

Retrieve a list of snippets with optional filtering.

Parameters:

  • language (optional): Filter snippets by programming language

  • tag (optional): Filter snippets by tag

3. Delete Snippet

Remove a snippet from storage.

Parameters:

  • id (required): Unique identifier of the snippet to delete

Development

Build

npm run build

Lint

npm run lint

Contributing

Any PRs are welcome

Deploy Server
A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

Related MCP Servers

  • A
    security
    A
    license
    A
    quality
    TypeScript-based MCP server designed to enhance code editing experiences by providing features such as hover information, code completion, and diagnostics.
    Last updated -
    3
    25
    MIT License
    • Apple
  • A
    security
    A
    license
    A
    quality
    MCP server for collecting code from files and directories into a single markdown document.
    Last updated -
    8
    MIT License
  • -
    security
    F
    license
    -
    quality
    An MCP server that enables generating scripts based on specified topics and keywords, while also providing functionality to store and summarize notes.
    Last updated -
    1
    • Apple

View all related MCP servers

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ngeojiajun/mcp-code-snippets'

If you have feedback or need assistance with the MCP directory API, please join our Discord server