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 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
Code Snippet
Project Details
- ngeojiajun/mcp-code-snippets
- MIT License
- Last Updated: 4/21/2025
Recomended MCP Servers
MCP server providing a knowledge graph implementation with semantic search capabilities powered by Qdrant vector database
A Model Context Protocol (MCP) server that provides enhanced file operation capabilities with streaming, patching, and change tracking...
Model Context Protocol (MCP) Server for Apify's Actors
Repository for MCP screenshot functionality
MCP server for programmatically creating and managing n8n workflows
A Model Context Protocol (MCP) server enabling AI assistants to interact with Outline documentation services.
The most powerful MCP Slack Server with Stdio and SSE transports, Proxy support and no permission requirements on...
Geocoding MCP server with GeoPY!
MCP Server for Apache Airflow
AI写的七牛上传MCP,以后各种音频图片上传都可以传上去引用,方便很多。





