Code Snippet Server
About
A MCP server for managing and storing code snippets in various programming languages, allowing users to create, list, and delete snippets via a standardized interface.
Details
- Author
- ngeojiajun
- Repository
- ngeojiajun/mcp-code-snippets
- GitHub stars
- 7
- Downloads
- 5
- License
- MIT License
- Categories
- Developer Tools, Productivity
Jump to
- 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
Setting up with Highlight
Follow these steps to add this server as a custom Highlight plugin:
- Download and install Highlight from highlightai.com/download
- Navigate to the plugins tab and select "Add Custom Plugin"
-
Configure the plugin with the settings below
Plugin Name
Code Snippet ServerCommand (node, npx, python, etc.)npxArguments-
Argument 1
-y -
Argument 2
@highlight/mcp-server
Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.
-
Argument 1
- Enable "Start Automatically" if you want the plugin to start when Highlight launches
From the repository
The server exposes three primary tools:
Create Snippet
Create a new code snippet with a title, language, and code. Parameters: title (string), language (string), code (string), tags (optional array)
List Snippets
Retrieve a list of snippets with optional filtering. Parameters: language (optional string), tag (optional string)
Delete Snippet
Remove a snippet from storage. Parameters: id (string)
Claude Desktop / Cursor
Paste into your MCP client config file to install this server.
{
"mcpServers": {
"code snippet server": {
"env": {},
"args": [
"-y",
"@highlight/mcp-server"
],
"command": "npx"
}
}
}
Linux
{
"env": [],
"args": [
"-y",
"@highlight/mcp-server"
],
"command": "npx"
}
Macos
{
"env": [],
"args": [
"-y",
"@highlight/mcp-server"
],
"command": "npx"
}
Windows
{
"env": [],
"args": [
"/c",
"npx",
"-y",
"@highlight/mcp-server"
],
"command": "cmd"
}
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.
<a href="https://glama.ai/mcp/servers/qt4j367mfk"></a>
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
```bash
git clone git@github.com:ngeojiajun/mcp-code-snippets.git
npm run build
npm link
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.





