1. Conduid
  2. Developer Tools
  3. Claude Code Project Memory MCP
MCP server · Developer Tools

Claude Code Project Memory MCP

Custom built Memory MCP to support the SDLC found in the CC-Startup-LArge template.

Unclaimed MIT last commit 8 months ago devtools
56Fair

Scored 5 months ago · breakdown

About Claude Code Project Memory MCP

Claude Code Project Memory MCP is an MCP server published by osok in the Developer Tools category: custom built Memory MCP to support the SDLC found in the CC-Startup-LArge template.

The repository has 2 stars and 0 forks, with the last commit 8 months ago. Six months or more without a commit doesn't mean the server is broken, but check the open issues before depending on it in production.

Install

From source
git clone https://github.com/osok/claude-code-project-memory-mcp

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Ask AI

✦

Ask AI about Claude Code Project Memory MCP

Powered by Claude · Grounded in docs

I know everything about Claude Code Project Memory MCP. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

Static checks derived from the repository 5 days ago. Heuristics on the source, not an audit.

  • ✓README presentThe repository ships documentation.
  • ✓License declaredUsable under a stated license.
  • ✓Tests presentA test suite exists in the repository.
  • !Dependencies pinnedNo lockfile. Installs can pull different code over time.
  • ✓No dynamic code executionSource scan found no eval, dynamic Function, or shell execution.
  • !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.

README

Claude Code Long-Term Memory MCP Server

A development-time memory service for Claude Code - not runtime memory for your application. This MCP server helps Claude maintain context across coding sessions by storing project decisions, code patterns, and requirements. It's tooling that helps Claude build your application better.

Enables context persistence, duplicate detection, design alignment verification, and consistency enforcement across multi-session software development projects.

Architecture

The MCP server runs locally on your machine (not in Docker), while databases run as shared Docker infrastructure:

Developer Machine
+--------------------------------------------------+
|                                                  |
|  +-------------------------------------------+   |
|  |          Project Directory                |   |
|  |  .mcp.json (project config)               |   |
|  +-------------------------------------------+   |
|                       |                          |
|                       | stdio                    |
|                       v                          |
|  +-------------------------------------------+   |
|  |     MCP Server (local Node.js process)    |   |
|  |  node mcp-server/bin/claude-memory-mcp.js  |   |
|  +-------------------------------------------+   |
|                       |                          |
|          +------------+------------+             |
|          v                         v             |
|  +---------------+       +------------------+    |
|  |    Docker     |       |      Docker      |    |
|  |    Qdrant     |       |      Neo4j       |    |
|  |  (shared)     |       |    (shared)      |    |
|  +---------------+       +------------------+    |
+--------------------------------------------------+

Features

  • Project Isolation: Each project has isolated data via --project-id namespacing
  • Semantic Search: Find relevant context using natural language queries
  • Duplicate Detection: Identify similar code patterns before implementation
  • Design Alignment: Validate changes against project requirements and ADRs
  • Requirements Traceability: Track implementation status of requirements
  • Code Indexing: Parse and index codebases for semantic search
  • Session Continuity: Persist context across development sessions

Quick Start

Prerequisites

  • Node.js 20+
  • Docker and Docker Compose
  • Voyage AI API key (Get one here)

Installation

1. Start the database infrastructure (one-time setup):

git clone <repository-url>
cd claude-code-memory-service/docker

# Configure Neo4j password
cp .env.example .env
# Edit .env and set NEO4J_PASSWORD

# Start databases
docker-compose up -d

2. Create global configuration:

mkdir -p ~/.config/claude-memory

cat > ~/.config/claude-memory/config.toml << 'EOF'
[voyage]
api_key = "your-voyage-api-key"

[qdrant]
url = "http://localhost:6333"

[neo4j]
uri = "bolt://localhost:7687"
user = "neo4j"
password = "your-neo4j-password"
EOF

Claude Code Integration

From your project directory, run:

claude mcp add memory -- node /path/to/claude-code-project-memory-mcp/mcp-server/bin/claude-memory-mcp.js --project-id my-project

Replace /path/to/ with the actual absolute path to this repository. Use a unique --project-id for each project (lowercase, hyphens, underscores only).

Warning: Do not use npx claude-memory-mcp. There is a different, unrelated package with that name on npm.

After adding, restart Claude Code. The 23 memory tools are automatically discovered via MCP -- no changes needed to your project's CLAUDE.md.

Memory Inspector UI

A web-based UI for browsing, searching, and managing memories stored by the MCP server.

Prerequisites

  • Databases running (see Quick Start above)
  • Global config at ~/.config/claude-memory/config.toml (same as the MCP server)

Running the Inspector

cd inspector-ui
npm install
npm run dev

This starts both the API server (port 3002) and the frontend dev server (port 5173). Open http://localhost:5173 in your browser.

To start them individually:

# Backend API only
npm run dev:server

# Frontend only
npm run dev:client

Configuration

The Inspector reads database credentials from the same ~/.config/claude-memory/config.toml used by the MCP server. You can override settings with environment variables or a .env file (copy .env.example):

Variable Default Description
INSPECTOR_PORT 3002 Backend API port
INSPECTOR_PROJECT_ID default Default project to display

The UI supports switching between projects at runtime via the project selector.

Documentation

Document Description
Quick Reference Concise tool usage guide
API Reference Complete tool documentation
Deployment Guide Docker setup and configuration
Integration Template Full CLAUDE.md integration examples

Configuration

Global Configuration

Located at ~/.config/claude-memory/config.toml:

[voyage]
api_key = "your-voyage-api-key"

[qdrant]
url = "http://localhost:6333"

[neo4j]
uri = "bolt://localhost:7687"
user = "neo4j"
password = "your-password"

Configuration Precedence

  1. Environment variables (highest priority)
  2. Global config file
  3. Built-in defaults

Environment Variables

Variable Description
CLAUDE_MEMORY_QDRANT_URL Qdrant URL
CLAUDE_MEMORY_NEO4J_URI Neo4j connection URI
CLAUDE_MEMORY_NEO4J_USER Neo4j user
CLAUDE_MEMORY_NEO4J_PASSWORD Neo4j password
CLAUDE_MEMORY_VOYAGE_API_KEY Voyage AI API key

Project Isolation

Each project's data is isolated via --project-id. Multiple projects share the same Qdrant/Neo4j databases without data mixing.

How it works:

  • Qdrant collections are prefixed: myproject_functions, myproject_designs, etc.
  • Neo4j nodes include project_id property with automatic filtering
  • Project ID is set once at server startup via --project-id

For multiple projects:

Create separate .mcp.json files in each project with different --project-id values. Each project automatically uses its isolated memory space.

CLI Usage

# Start MCP server (requires --project-id)
node /path/to/claude-code-project-memory-mcp/mcp-server/bin/claude-memory-mcp.js --project-id my-project

# Show help
node /path/to/claude-code-project-memory-mcp/mcp-server/bin/claude-memory-mcp.js --help

Memory Types

Type Purpose
requirements Project requirements and specifications
design ADRs and architectural decisions
code_pattern Reusable code patterns and templates
component System components and modules
function Indexed functions and methods
test_history Test execution history
session Development session summaries
user_preference User preferences and settings

MCP Tools (23 tools)

Memory CRUD (5 tools)

  • memory_add - Create new memories
  • memory_get - Retrieve memories
  • memory_update - Update existing memories
  • memory_delete - Soft delete memories
  • memory_bulk_add - Batch create memories

Search (5 tools)

  • memory_search - Semantic search across memories
  • code_search - Find similar code patterns
  • graph_query - Execute Cypher queries
  • find_duplicates - Detect duplicate content
  • get_related - Get related entities

Indexing (4 tools)

  • index_file - Index single file
  • index_directory - Index directory recursively
  • index_status - Check indexing status
  • reindex - Re-index codebase

Analysis (4 tools)

  • check_consistency - Verify pattern compliance
  • validate_fix - Validate fix against design
  • get_design_context - Get design context
  • trace_requirements - Trace requirement implementation

Maintenance (5 tools)

  • normalize_memory - Run normalization
  • normalize_status - Check normalization status
  • memory_statistics - Get system statistics
  • export_memory - Export to JSONL
  • import_memory - Import from JSONL

Technology Stack

  • TypeScript/Node.js 20+ - Runtime
  • @modelcontextprotocol/sdk - Official MCP SDK
  • Qdrant - Vector database for semantic search
  • Neo4j - Graph database for relationships
  • Voyage-Code-3 - Code embedding model (1024 dimensions)
  • MCP Protocol - Claude Code integration

Project Structure

├── mcp-server/           # TypeScript MCP server
│   ├── src/
│   │   ├── index.ts      # CLI entry point
│   │   ├── server.ts     # MCP server setup
│   │   ├── context.ts    # Shared tool context
│   │   ├── config.ts     # TOML config loading
│   │   ├── tools/        # 23 tool implementations
│   │   ├── storage/      # Qdrant and Neo4j adapters
│   │   ├── embedding/    # Voyage AI client
│   │   └── utils/        # Logging utilities
│   ├── package.json
│   └── tsconfig.json
├── inspector-ui/         # Memory Inspector web UI
│   ├── src/              # React frontend (Vite + TailwindCSS)
│   ├── server/           # Express backend API
│   ├── package.json
│   └── vite.config.ts
├── docker/               # Database docker-compose
├── project-docs/         # Architecture and design docs
├── user-docs/            # User documentation
└── CLAUDE.md             # Development workflow

Development

Building

cd mcp-server
npm install
npm run build

Running locally

cd mcp-server
node dist/index.js --project-id test-project

Running tests

cd mcp-server
npm test

Migrating from Python MCP

If you were using the earlier Python-based MCP server:

  1. Update your .mcp.json to use npx instead of the Python command
  2. Your existing data in Docker volumes will be preserved
  3. No changes needed to database infrastructure

License

MIT License

README fetched from the repository 5 days ago. The original is authoritative.

Questions

About Claude Code Project Memory MCP

How do I install Claude Code Project Memory MCP?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is Claude Code Project Memory MCP safe to use with an AI agent?

Its trust score is 56 out of 100 (fair). It passes 4 of the 6 static security checks run so far; the failures are listed above. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Claude Code Project Memory MCP still maintained?

The last commit was 8 months ago. That's long enough that you should check whether the maintainer is responding to issues before depending on it.