Code Snippet

Manage and store code snippets across different programming languages.

Installation

Installing for Claude Desktop

Manual Configuration Required

This MCP server requires manual configuration. Run the command below to open your configuration file:

npx mcpbar@latest edit -c claude

This will open your configuration file where you can add the Code Snippet MCP server manually.

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.

Code Snippet Server MCP server

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 [email protected]: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

Share:
Details:
  • Stars


    7
  • Forks


    3
  • Last commit


    6 months ago
  • Repository age


    6 months
  • License


    MIT
View Repository

Auto-fetched from GitHub .

MCP servers similar to Code Snippet:

 

 
 
  • Stars


  • Forks


  • Last commit


 

 
 
  • Stars


  • Forks


  • Last commit


 

 
 
  • Stars


  • Forks


  • Last commit


Code Snippet: MCP Server – MCP.Bar