# projectmind [Health: Active]

**Category:** 🧠 Knowledge & Memory  
**Repository:** https://github.com/Nodemint-dev/projectmind  
**GitHub Stars:** 2  
**npm Downloads (last month):** 248  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/projectmind

## Description
Persistent project memory for AI coding agents: one compact digest instead of re-reading the repo.

## Tools
Capabilities this server exposes over MCP:

- **mind_digest** — Call this BEFORE running ls, find, glob, grep, tree, or reading any file, whenever the task is to explain, describe, summarize, or give an overview of this project or its architecture, or when you otherwise need to orient yourself in an unfamiliar codebase. This includes questions like "what is this project", "explain this codebase", "what's the tech stack", or "how is this structured" — call mind_digest first, THEN use its output to decide whether further file exploration is even needed. Returns a compact map of modules, dependencies, decisions, and conventions in a few hundred tokens, replacing what would otherwise be many file reads.
- **mind_context** — Call this BEFORE reading/greping files, when you're about to work on specific files or a module and want its purpose, notes, and direct dependencies without opening them. Given the files you're about to edit (and/or a node id or keyword), returns ONLY the relevant part of the map. Use this over mind_digest when you already know which files a task touches — it's the most surgical, token-cheap option.
- **mind_query** — Get full detail on ONE node (its files, notes, and edges) when you need to drill into a specific module. Use after mind_digest points you at the right node — cheaper than reading the files.
- **mind_search** — Find nodes, decisions, or glossary terms by keyword. Use to locate the right part of the project without reading files.
- **mind_update** — Call this when you add or change a module, make an architectural decision, or learn a project convention — so the next session doesn't have to rediscover it. Do NOT call for trivial edits. Pass ONLY the fields that changed.
- **mind_handoff** — Leave a one-line handoff note — what you were doing and what's next — before the session ends or the context is about to be compacted. It appears at the TOP of the next session's mind_digest, so the next session (yours or a teammate's agent) resumes instantly instead of rediscovering the task. Stored in the developer's local overlay, never committed. Pass clear: true when the noted work is done.
- **mind_stats** — Return map size, the estimated token cost of the digest, and the local savings ledger (estimated tokens/dollars saved by reading the map instead of scanning files).

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "projectmind": {
    "command": "npx",
    "args": ["-y","@nodemint/projectmind","mcp"]
  }
}
```

## Documentation

## What projectmind does

The projectmind MCP server maintains a structured memory layer for a software repository. Its map can contain modules, relationships between modules, architectural decisions, coding conventions, and domain terminology. Agents receive a small digest first and can request narrower information when a task requires more detail.

The map is stored locally under `.projectmind/`. The generated digest can also be embedded in agent rules files, allowing a new session to see project orientation without making an MCP request. Local working state is kept separately from the committed project content, and the projectmind directory is added to `.gitignore` during initialization.

A session handoff feature records what was in progress, what should happen next, or a recent discovery. That note appears at the beginning of the next digest and can be cleared when no longer needed.

## How it works

The projectmind MCP server runs locally and communicates with coding agents through stdio. Its core uses schema-validated data and atomic writes for the project map. A git post-commit hook updates freshness for changed files by mapping them to modules through globs. An optional watch mode provides another path for keeping the map current.

Initialization seeds the map from the repository layout, detects installed AI agents, registers the MCP server for them, and creates a rules file containing the current digest. The project uses no network calls according to its CI checks.

The local savings ledger records calls to `mind_digest`, `mind_query`, and `mind_context`. Estimates use approximately `ceil(bytes / 4)` tokens and compare the served map content with the files an agent would otherwise have read. Savings are floored at zero, and the ledger remains on the local machine. The embedded digest is not counted because it does not require a tool call.

## Setup and configuration

Install the command-line package globally, change to a repository, and initialize it:

```bash
npm install -g @nodemint/projectmind
cd your-repo
projectmind init
```

Restart the agent or begin a new chat after initialization so it reloads its configuration and rules. For user-wide registration, run `projectmind setup --global`. `projectmind init --bare` creates the project structure without the full initialization flow, while `projectmind setup` rewires agents on demand.

Use `projectmind handoff "note"` to create a handoff manually, `mind_handoff` to update it from an agent, and `mind_handoff({clear: true})` to remove it. Run `projectmind savings` to inspect the local ledger. Pricing defaults to a built-in Sonnet-tier input rate table; `.projectmind/config.json` can set `savings.model` or an exact `savings.inputPricePerMTok`.

## Tools and capabilities

The projectmind MCP server provides six tools. The README explicitly identifies these tools:

- `mind_digest` — reads the compact project digest.
- `mind_query` — reads targeted map information.
- `mind_context` — obtains task-specific project context.
- `mind_handoff` — writes or clears session handoff state.

The command-line interface also supports initialization, global setup, handoff entry, savings reporting, and optional watch mode.

## Limitations and notes

The map is local and gitignored, so it is not automatically shared through the repository. Handoff notes are also local working state. The savings figures are estimates rather than measurements of the model's actual token usage, and they cover only the three named map-reading tool calls. The initial seed is a repository-layout skeleton; richer decisions and conventions require maintaining the map over time.

The projectmind MCP server is intended for AI coding workflows and is verified in the README against Linux, macOS, and Windows.

_Full upstream README: https://allmcps.com/mcp/projectmind/readme_

