# decisionnode/DecisionNode [Health: Active]

**Category:** 🧠 Knowledge & Memory  
**Repository:** https://github.com/decisionnode/DecisionNode  
**GitHub Stars:** 81  
**Views:** 1  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/decisionnode-decisionnode

## Description
Record development decisions as structured JSON, embed as vectors via Gemini, and search semantically over MCP. Shared store across Claude Code, Cursor, Windsurf, and any MCP client. CLI + MCP server, local-only, free Gemini embedding tier.

## Claude Desktop Quick Installation
No generated config for this server: it installs through its own setup steps.

The project's own setup steps (from https://github.com/decisionnode/DecisionNode), copied verbatim. Follow them in order; they are not an mcpServers config.

1. Install:

```sh
npm install -g decisionnode
```

2. Install:

```sh
decide init      # creates project store
```

3. Sign in:

```sh
decide setup     # configure Gemini API key (free tier)
```

4. Add to Claude Code:

```sh
claude mcp add decisionnode -s user decide-mcp
```

## Documentation

## What decisionnode/DecisionNode does

The decisionnode/DecisionNode MCP server provides a shared memory store for development decisions. Each record can contain fields such as an ID, scope, decision text, status, rationale, constraints, and creation time. Records are stored as JSON rather than as free-form Markdown, which gives the CLI and MCP interface consistent data to read and modify.

The store is local and shared between the `decide` command-line interface and the `decide-mcp` server. Project decisions and global decisions are supported. Global records are included in searches for every project, while project-specific records remain associated with their project store.

## How it works

When a decision is added through the CLI or the MCP `add_decision` tool, DecisionNode sends its content to Gemini's `gemini-embedding-001` model and stores the resulting vector locally in `vectors.json`. Later, an agent can call `search_decisions` with a natural-language query. Results are ranked by cosine similarity and limited to the requested number of matches.

Retrieval is explicit: decisions are not automatically inserted into an agent's system prompt. An agent must call the search tool when it needs relevant prior decisions. A configurable similarity threshold, defaulting to 0.3, can filter out weaker matches. Adding a decision also checks for existing records at 75% similarity and reports possible conflicts before the record is accepted.

## Setup and configuration

Install the package globally with npm, then initialize a store inside the project and configure a Gemini API key:

```bash
npm install -g decisionnode
cd your-project
decide init
decide setup
```

Connect the MCP process to a client with the client's MCP configuration.

```bash
claude mcp add decisionnode -s user decide-mcp
```

Both interfaces use the local `~/.decisionnode/` store. The CLI also provides commands for checking embedding health, generating missing embeddings, removing orphaned vectors, exporting JSON, and importing data.

## Tools and capabilities

The decisionnode/DecisionNode MCP server exposes operations for searching, adding, updating, deleting, listing, and viewing decision history. The CLI additionally supports interactive or flag-based creation, deprecation and reactivation, global decisions, import/export, configuration, and embedding maintenance.

Every add, edit, deprecation, and deletion is recorded in the audit history, including whether the change came from the CLI or an MCP client. Deprecation is reversible: deprecated records are excluded from search while their embeddings remain available for later reactivation.

A read-only local web UI can be started with `decide ui`. It provides list, similarity-graph, and two-dimensional vector-space views, and runs on localhost port 7788 unless another available port is selected. The UI is for inspection; CLI and MCP operations remain the write paths.

## Limitations and notes

The decisionnode/DecisionNode MCP server depends on Gemini embeddings, so adding or repairing vectors requires a configured Gemini API key and network access to that embedding service. The record store and vector data are local rather than a hosted shared database.

Search does not run automatically, and relevant context is only retrieved when the agent invokes the search tool. The web UI is read-only. Deprecated decisions are hidden from results until activated again. The README identifies Claude Code, Cursor, Windsurf, and other MCP clients as supported usage targets, but does not provide client-specific setup details for every client.

_Full upstream README: https://allmcps.com/mcp/decisionnode-decisionnode/readme_

