- Explore MCP Servers
- mcp-code-snippets
Mcp Code Snippets
What is Mcp Code Snippets
mcp-code-snippets is a Model Context Protocol (MCP) server designed to manage and store code snippets across various programming languages, providing a standardized interface for creating, listing, and deleting snippets.
Use cases
Use cases include developers storing reusable code snippets, educators sharing code examples with students, and teams collaborating on code projects by managing shared snippets.
How to use
To use mcp-code-snippets, clone the repository, install dependencies using npm, and run the server. You can create snippets by providing a title, language, and code, list snippets with optional filters, and delete snippets using their unique ID.
Key features
Key features include the ability to create code snippets with titles, languages, and code; list snippets with filtering options; delete snippets by unique ID; support for localization; and persistent local storage.
Where to use
mcp-code-snippets can be used in software development environments, educational platforms, and collaborative coding tools where managing code snippets is essential.
Clients Supporting MCP
The following are the main client software that supports the Model Context Protocol. Click the link to visit the official website for more information.
Overview
What is Mcp Code Snippets
mcp-code-snippets is a Model Context Protocol (MCP) server designed to manage and store code snippets across various programming languages, providing a standardized interface for creating, listing, and deleting snippets.
Use cases
Use cases include developers storing reusable code snippets, educators sharing code examples with students, and teams collaborating on code projects by managing shared snippets.
How to use
To use mcp-code-snippets, clone the repository, install dependencies using npm, and run the server. You can create snippets by providing a title, language, and code, list snippets with optional filters, and delete snippets using their unique ID.
Key features
Key features include the ability to create code snippets with titles, languages, and code; list snippets with filtering options; delete snippets by unique ID; support for localization; and persistent local storage.
Where to use
mcp-code-snippets can be used in software development environments, educational platforms, and collaborative coding tools where managing code snippets is essential.
Clients Supporting MCP
The following are the main client software that supports the Model Context Protocol. Click the link to visit the official website for more information.
Content
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 [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 snippetlanguage(required): Programming languagecode(required): The actual code snippettags(optional): Array of tags for categorization
2. List Snippets
Retrieve a list of snippets with optional filtering.
Parameters:
language(optional): Filter snippets by programming languagetag(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
Dev Tools Supporting MCP
The following are the main code editors that support the Model Context Protocol. Click the link to visit the official website for more information.










