mcp-code-snippets
Documentation
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/mcp-code-snippets.git
npm run build
npm link
# Or you can do
npx @ngeojiajun/code-snippet-serverUsage
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 buildLint
npm run lintContributing
Any PRs are welcome
Frequently asked questions
What is mcp-code-snippets?
mcp-code-snippets is a Model Context Protocol (MCP) server listed in the TrackMCP directory.
How do I install mcp-code-snippets?
Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.
Is mcp-code-snippets open source?
Yes — it is hosted on GitHub at https://github.com/ngeojiajun/mcp-code-snippets and has 7 stars.
Related MCP tools
Adb-mcp is a proof of concept project to enabled AI control of Adobe tools (Adobe Photoshop and Adobe Premiere) by providing an interface to LLMs via the MCP...
The all-in-one Desktop & Docker AI application with built-in RAG, AI agents, No-code agent builder, MCP compatibility, and more.
An AI-powered task-management system you can drop into Cursor, Lovable, Windsurf, Roo, and others. Built for the Model Context Protocol to enhance AI capabiliti
Fay是一个帮助数字人(2.5d、3d、移动、pc、网页)或大语言模型(openai兼容、deepseek)连通业务系统的mcp框架。 JavaScript-based implementation. Trusted by 12000+ developers.
CTTF: MCP integration between Cursor and Figma, allowing Cursor Agentic AI to communicate with Figma for reading designs and modifying them programmatically.
🔥 Official Firecrawl MCP Server - Adds powerful web scraping and search to Cursor, Claude and any other LLM clients. JavaScript-based implementation.
Run your own MCP server? See who uses it and what to fix.
Measure it with TrackMCP