Code Snippet Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Code Snippet Server create a Python snippet for sorting a list with title 'Quick Sort Example'"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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.
Related MCP server: Trello Knowledge 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 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 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 buildLint
npm run lintContributing
Any PRs are welcome
Available Tools
3 toolscreate_snippetC
Create a snippet (specify title, language, and code)
Inputs: code (required), language (required), title (required), tags.
delete_snippetC
Delete a snippet (specify ID)
Inputs: id (required).
list_snippetsC
List snippets (can filter by language or tags)
Inputs: language, tag.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
Each tool has a clearly distinct purpose: create_snippet for creation, delete_snippet for deletion, and list_snippets for listing with optional filtering. There is no overlap or ambiguity between these operations.
All tool names follow a consistent verb_noun pattern (create_snippet, delete_snippet, list_snippets) using snake_case throughout. This makes the set predictable and easy to understand.
With only 3 tools, the set feels thin for a snippet management server. While it covers basic operations, it lacks tools for updating snippets or retrieving a single snippet by ID, which are common needs in such domains.
The server provides create, delete, and list operations, but there are notable gaps: no update_snippet tool to modify existing snippets and no get_snippet tool to retrieve a specific snippet by ID. This limits functionality and may cause agent workarounds.
Related MCP Connectors
A MCP server built for developers enabling Git based project management with project and personal…
Shared memory MCP server for Claude Code, Codex, Gemini CLI and Cursor. Cited, editable.
An MCP server that used to create notes
Related MCP Servers
- AlicenseBqualityDmaintenanceMCP Server for running code snippet and show the result.1967 npm242MIT
- AlicenseNot gradedqualityFmaintenanceAn MCP server that utilizes Trello as a knowledge base for storing, searching, and retrieving code snippets and notes. It enables full CRUD operations and organized categorization of information using Trello boards and labels.120 npmMIT
- FlicenseNot gradedqualityDmaintenanceAn extended MCP server for managing code snippets, performing code analysis, and handling deployments via Render and GitHub. It enables users to perform code reviews, track issues, and manage service operations through natural language interactions.-
- FlicenseAqualityDmaintenanceAn MCP server that wraps the rustypaste API, allowing users to upload text, files, and URLs to a rustypaste instance. It supports features such as single-use links, file expiration, and URL shortening.742 npm-