masscode-mcp
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., "@masscode-mcp show me my snippets in the 'API' folder"
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.
masscode-mcp
An MCP (Model Context Protocol) stdio server for massCode, the open-source snippet manager. It exposes your massCode library to any MCP client (Claude Code, Claude Desktop, etc.) so an AI assistant can list, read, create and update your snippets, folders and tags.
massCode runs a local HTTP API; this server talks to it on localhost and speaks
MCP over stdio.
Requirements
massCode running, with its local API/DB server enabled
Node.js 18+
Related MCP server: GitCode MCP Server
Install
npm installConfigure
Two environment variables (both optional):
Variable | Default | Purpose |
|
| Port massCode's local API is listening on |
| (none) | Bearer token, if your massCode build requires one |
Use with an MCP client
Register it as a stdio server, e.g. in Claude Code:
{
"mcpServers": {
"masscode": {
"command": "node",
"args": ["path/to/masscode-mcp/index.js"],
"env": { "MASSCODE_PORT": "4321" }
}
}
}Tools
masscode_list_folders,masscode_list_tagsmasscode_list_snippets,masscode_get_snippetmasscode_create_folder,masscode_create_tagmasscode_create_snippet,masscode_update_snippet
License
MIT — see LICENSE.
Available Tools
8 toolsmasscode_create_folderB
Create a new snippet folder.
Inputs: name (required), parentId.
masscode_create_snippetA
Create a new snippet in MassCode.
Inputs: name (required), content (required), tagIds, folderId, +2 more.
masscode_create_tagC
Create a new tag.
Inputs: name (required).
masscode_get_snippetA
Get a single snippet by its ID, including all content fragments.
Inputs: id (required).
masscode_list_foldersA
List all snippet folders as a tree structure.
Inputs: no named parameters.
masscode_list_snippetsA
Search or list snippets from MassCode. Optionally filter by search query, folderId, or tagId.
Inputs: tagId, search, folderId.
masscode_list_tagsA
List all tags in MassCode.
Inputs: no named parameters.
masscode_update_snippetA
Update an existing snippet by ID. Only provide fields you want to change.
Inputs: id (required), name, folderId, isFavorite, +1 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 8 tools
Each tool targets a distinct resource (snippet, folder, tag) and action (create, list, get, update). No two tools have overlapping purposes; list_snippets and get_snippet are clearly differentiated by search/list vs single-fetch by ID.
All tools follow a consistent snake_case pattern of masscode_<verb>_<noun>, with verbs limited to create, list, get, and update. The naming is uniform and predictable.
Eight tools is an appropriate size for a snippet management server. Each tool serves a clear function and covers the main resources without unnecessary bloat or missing essentials.
The set provides create, read, and update for snippets, but lacks delete operations for snippets, folders, and tags. Folders and tags only support create and list, leaving update and delete holes. These are notable gaps for a comprehensive snippet management tool.
Related MCP Connectors
Shared memory MCP server for Claude Code, Codex, Gemini CLI and Cursor. Cited, editable.
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
An MCP server that gives your AI access to the source code and docs of all public github repos
Nifty's MCP server — exposes tasks, projects, messages, and files as tools for AI agents.
Related MCP Servers
- AlicenseAqualityDmaintenanceMCP server to expose VS Code editing features to an LLM for AI coding9257 npm392MIT
- AlicenseNot gradedqualityDmaintenanceMCP server for the GitCode API, enabling AI assistants to interact with GitCode repositories, issues, pull requests, and more.1MIT
- AlicenseAqualityDmaintenanceAn MCP server that enables AI coding tools to save, list, and read code snippets as files in the local filesystem.3MIT
- FlicenseAqualityDmaintenanceA portable MCP server enabling AI assistants to operate VS Code, including file management, extension control, and workspace automation.6-