Code Snippet Server
コードスニペットサーバー
概要
コードスニペットサーバーは、異なるプログラミング言語間でコードスニペットを管理・保存するために設計されたモデルコンテキストプロトコル(MCP)サーバーです。標準化されたサーバーインターフェースを使用して、コードスニペットを作成、一覧表示、削除するための柔軟で拡張性の高い方法を提供します。
Related MCP server: CodeBot MCP Server v2
特徴
タイトル、言語、コードを含むコードスニペットを作成する
言語またはタグによるフィルタリングが可能なリストスニペット
一意のIDでスニペットを削除する
ローカリゼーションサポート
永続的なローカルストレージ
前提条件
Node.js (18.x、20.x、または 22.x)
npm
インストール
git clone git@github.com:ngeojiajun-deriv/mcp-code-snippets.git
npm run build
npm link使用法
サーバーは 3 つの主要なツールを公開します。
1. スニペットを作成する
タイトル、言語、コードを含む新しいコード スニペットを作成します。
パラメータ:
title(必須): スニペットの名前language(必須): プログラミング言語code(必須): 実際のコードスニペットtags(オプション): 分類用のタグの配列
2. リストスニペット
オプションのフィルタリングを使用してスニペットのリストを取得します。
パラメータ:
language(オプション): プログラミング言語でスニペットをフィルタリングしますtag(オプション):タグでスニペットをフィルタリングする
3. スニペットを削除する
ストレージからスニペットを削除します。
パラメータ:
id(必須): 削除するスニペットの一意の識別子
発達
建てる
npm run build糸くず
npm run lint貢献
PRは大歓迎です
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.
Maintenance
Related MCP Connectors
A MCP server built for developers enabling Git based project management with project and personal…
One MCP server for all your MCP servers: code mode, per-tool permissions, approvals and audit.
Shared memory MCP server for Claude Code, Codex, Gemini CLI and Cursor. Cited, editable.
Related MCP Servers
- AlicenseBqualityDmaintenanceMCP Server for running code snippet and show the result.11,865 npm241MIT
- 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.-
- AlicenseAqualityDmaintenanceAn MCP server that enables AI coding tools to save, list, and read code snippets as files in the local filesystem.3MIT
- AlicenseAqualityDmaintenanceMCP server for massCode that lets AI assistants list, read, create, and update snippets, folders, and tags via the local massCode API.8MIT