Faulkner DB MCP Server

1

Add it to Claude Code

Run this in a terminal.

Run in terminal
claude mcp add -e "FALKORDB_HOST=${FALKORDB_HOST}" -e "FALKORDB_PORT=${FALKORDB_PORT}" -e "FALKORDB_PASSWORD=${FALKORDB_PASSWORD}" faulkner-db -- npx faulkner-db-config setup
Required:FALKORDB_HOSTFALKORDB_PORTFALKORDB_PASSWORD
README.md

Temporal knowledge graph system for architectural decisions and patterns.

Faulkner DB - Temporal Knowledge Graph System

Faulkner DB empowers software teams to capture, query, and analyze architectural decisions, implementation patterns, and failures as they evolve over time. Built on FalkorDB (CPU-friendly graph database) with hybrid search capabilities, it provides unparalleled insights into your project's history, fostering better decision-making and reducing technical debt.

🎯 Value Proposition

  • Improved Decision Tracking - Capture the rationale behind architectural choices and their impact over time
  • Enhanced Collaboration - Facilitate knowledge sharing and alignment across teams
  • Reduced Technical Debt - Identify and address problematic patterns early
  • Faster Onboarding - Accelerate learning for new team members with comprehensive project history
  • AI-Ready Knowledge Base - Structure knowledge for AI-powered development tools (Claude Code/Desktop)

✨ Key Features

  • Temporal Knowledge Graph - Track changes to decisions and patterns over time
  • Hybrid Search - Graph traversal + vector embeddings + CrossEncoder reranking (<2s queries)
  • Gap Detection - NetworkX-based structural analysis to identify knowledge gaps
  • MCP Integration - 12 tools for seamless Claude Desktop/Code integration
  • Docker Deployment - One-command startup with auto-restart support
  • CPU-Friendly - Built on FalkorDB, no GPU required (gaming-friendly memory footprint)

📖 Documentation

🚀 Quick Start

Option 1: Automated NPM Setup (Recommended)

# Configure Claude Desktop/Code automatically
npx faulkner-db-config setup

# Clone and start the stack
git clone https://github.com/platano78/faulkner-db.git
cd faulkner-db/docker
docker-compose up -d

# Restart Claude Desktop/Code

Option 2: Manual Setup

1. Start FalkorDB Stack

git clone https://github.com/platano78/faulkner-db.git
cd faulkner-db/docker

# Copy environment template
cp .env.example .env

# Edit .env and set POSTGRES_PASSWORD

# Start services
docker-compose up -d

2. Configure Claude (Manual)

Add to ~/.config/Claude/claude_desktop_config.json (Linux) or equivalent:

{
  "mcpServers": {
    "faulkner-db": {
      "command": "python3",
      "args": ["-m", "mcp_server.server_fastmcp"],
      "env": {
        "PYTHONPATH": "/path/to/faulkner-db",
        "FALKORDB_HOST": "localhost",
        "FALKORDB_PORT": "6380",
        "FALKORDB_PASSWORD": "changeme"
      }
    }
  }
}

3. Access Services

Set VISUALIZATION_PORT and FALKORDB_REST_PORT in docker/.env. See .env.example for defaults.

Security Configuration

Authentication

FalkorDB now requires password authentication for all connections.

Setting Value
Environment Variable FALKORDB_PASSWORD
Default (local dev) changeme

Port Configuration

The default port has been changed from 6379 to 6380 to avoid conflicts with standard Redis installations.

Setting Value
Environment Variable FALKORDB_PORT
Default Port 6380

Connection Examples

Python

import os
from core.graphiti_client import GraphitiClient

password = os.environ.get('FALKORDB_PASSWORD')
client = GraphitiClient(host='localhost', port=6380, password=password)

redis-cli

redis-cli -p 6380 -a $FALKORDB_PASSWORD

Docker Compose Environment

environment:
  FALKORDB_HOST: falkordb
  FALKORDB_PORT: 6380
  FALKORDB_PASSWORD: ${FALKORDB_PASSWORD}

Destructive Commands Disabled

To prevent accidental data loss, the following commands are disabled in the FalkorDB configuration:

  • FLUSHALL - Renamed to an obscure command (not directly callable)
  • FLUSHDB - Renamed to an ob

Tools (3)

graph_queryExecute graph traversal queries to retrieve architectural history and patterns.
record_decisionCapture a new architectural decision or implementation pattern.
analyze_gapsPerform structural analysis to identify knowledge gaps in the project graph.

Environment Variables

FALKORDB_HOSTrequiredHostname for the FalkorDB instance
FALKORDB_PORTrequiredPort for the FalkorDB instance
FALKORDB_PASSWORDrequiredPassword for database authentication

Configuration

claude_desktop_config.json
{"mcpServers": {"faulkner-db": {"command": "python3", "args": ["-m", "mcp_server.server_fastmcp"], "env": {"PYTHONPATH": "/path/to/faulkner-db", "FALKORDB_HOST": "localhost", "FALKORDB_PORT": "6380", "FALKORDB_PASSWORD": "changeme"}}}}

Try it

Record the decision to use PostgreSQL for the new microservice and explain the rationale.
Find all architectural decisions related to the authentication module from the last six months.
Analyze the current knowledge graph to identify any missing documentation or gaps in our implementation patterns.
What was the impact of the decision to switch to a microservices architecture on our project timeline?

Frequently Asked Questions

What are the key features of Faulkner DB?

Temporal Knowledge Graph for tracking changes over time. Hybrid search combining graph traversal, vector embeddings, and reranking. NetworkX-based structural analysis for knowledge gap detection. CPU-friendly architecture built on FalkorDB. 12 integrated tools for Claude Desktop and Code.

What can I use Faulkner DB for?

Tracking the evolution of architectural decisions to prevent technical debt. Onboarding new team members by providing a searchable history of project patterns. Identifying structural knowledge gaps in complex software systems. Automating the documentation of implementation patterns and project failures.

How do I install Faulkner DB?

Install Faulkner DB by running: npx faulkner-db-config setup

What MCP clients work with Faulkner DB?

Faulkner DB works with any MCP-compatible client including Claude Desktop, Claude Code, Cursor, and other editors with MCP support.

Turn this server into reusable context

Keep Faulkner DB docs, env vars, and workflow notes in Conare so your agent carries them across sessions.

Need the old visual installer? Open Conare IDE.
Open Conare