Skip to main content
Glama
masscode-mcp

masscode-mcp

by MDizzleZA

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 install

Configure

Two environment variables (both optional):

Variable

Default

Purpose

MASSCODE_PORT

4321

Port massCode's local API is listening on

MASSCODE_API_KEY

(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_tags

  • masscode_list_snippets, masscode_get_snippet

  • masscode_create_folder, masscode_create_tag

  • masscode_create_snippet, masscode_update_snippet

License

MIT — see LICENSE.

Available Tools

8 tools
masscode_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

    A3.7/5.0

    Scored across 8 tools

    Disambiguation5/5

    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.

    Naming Consistency5/5

    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.

    Tool Count5/5

    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.

    Completeness3/5

    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

    Related MCP Servers