Skip to main content
Glama
Project Synapse
by angrysky56

🧠 Project Synapse MCP-Server

Autonome Wissenssynthese-Engine mit LLM-WIKI-Integration

Dokumentation

Project Synapse ist ein MCP-Server (Model Context Protocol), der eine Neo4j 2026.x-Graphdatenbank mit einem Obsidian-Markdown-Wiki kombiniert, um eine persistente, sich stetig erweiternde Wissensbasis zu schaffen. Rohdaten werden durch eine semantische Pipeline in miteinander verbundene Graphknoten mit Vektor-Embeddings verarbeitet, wΓ€hrend eine fΓΌr Menschen lesbare Wiki-Ebene durchsuchbare, verlinkte Markdown-Seiten bereitstellt.

πŸ“š Dokumentation

FΓΌr detaillierte Informationen zur Einrichtung und Nutzung von Project Synapse lesen Sie bitte die folgenden Anleitungen:

  • Erste Schritte: Installation und erster Start.

  • Architektur: Funktionsweise der semantischen Pipeline und des Graphen.

  • Konfiguration: VollstΓ€ndige Liste der Umgebungsvariablen.

  • Entwicklung: Anleitung zum HinzufΓΌgen von Tools und zur Mitarbeit.

  • Testen: AusfΓΌhren der Test-Suite.

  • Mitwirken: Richtlinien fΓΌr ProjektbeitrΓ€ge.

Related MCP server: KG Memory

Was dies ist (und was nicht)

Dies ist ein Wissenssystem, kein Code-Editor. Es dient dem Denken, der Recherche und dem Schreiben rund um Projekte β€” Architektur-Entscheidungen, DomΓ€nen-Recherche, Design-BegrΓΌndungen, Referenzmaterial, Besprechungsnotizen.

Code lebt in seinem Repository. Wissen ΓΌber den Code lebt hier.

AnwendungsfΓ€lle:

  • Recherche-Deep-Dives, die sich ΓΌber Wochen/Monate ansammeln

  • Projekt-Wissensbasen (warum Entscheidungen getroffen wurden, nicht nur was)

  • PersΓΆnliches Wissensmanagement (Artikel, BΓΌcher, Podcast-Notizen)

  • Kollaboratives Brainstorming mit der KI als Wiki-Verwalter

Einrichtung pro Projekt: Erstellen Sie einen separaten Obsidian-Vault + GitHub-Repo fΓΌr jedes Projekt. Verweisen Sie die Umgebungsvariable WIKI_VAULT_PATH darauf. Eine Neo4j-Instanz kann mehrere Projekte bedienen (Graphen koexistieren).

Architektur

Web / Raw Sources
         β”‚
    [defuddle]          ← cleans web content before ingestion
         β”‚
         β–Ό
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”     β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚  Semantic Pipeline   │────▢│  Neo4j Knowledge    β”‚
β”‚  (Montague Grammar,  β”‚     β”‚  Graph (entities,   β”‚
β”‚   NLP, embeddings)   β”‚     β”‚  facts, vectors)    β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜     β””β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                                      β”‚
                              β”Œβ”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”
                              β”‚ Wiki Adapter  β”‚
                              β””β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”˜
                                      β”‚
                              β”Œβ”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”
                              β”‚ Obsidian Vaultβ”‚
                              β”‚ (Markdown,    β”‚
                              β”‚  Git-synced)  β”‚
                              β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Hauptmerkmale

Wissensgraph (Neo4j 2026.x)

  • Nativer VECTOR-Typ mit semantischer ANN-Suche

  • Volltext-BM25-Indizes fΓΌr die Stichwortsuche

  • Hybride Suche (Vektor + BM25-Score-Fusion)

  • Graphtraversierung zur Entdeckung verborgener Beziehungen

  • Montague-Grammatik-Parser fΓΌr formale semantische Analyse

  • Zettelkasten-Engine zur autonomen Generierung von Erkenntnissen

LLM-WIKI-Integration

  • Verbindet den Obsidian-Markdown-Vault mit dem Neo4j-Graphen

  • VollstΓ€ndiges Seiten-CRUD mit YAML-Frontmatter

  • Automatische Index-Generierung und Append-only-Log

  • Gesundheitschecks: Erkennung von Waisen, defekten Wikilinks, fehlendem Frontmatter

  • Delta-Sync-Manifest (Content-Hashing) fΓΌr effiziente Graph-Synchronisation

  • Basiert auf Andrej Karpathys LLM-Wiki-Muster

Web-Content-Ingestion (defuddle)

  • wiki_fetch_url ruft jede URL ab, entfernt Navigation/Anzeigen/Ballast via defuddle, speist sie in Neo4j ein und archiviert sie in Clippings/ β€” ein Aufruf, vollautomatisiert

  • wiki_ingest_raw verschiebt verarbeitete Dateien automatisch von raw/ nach Clippings/ β€” der Posteingang bleibt sauber

  • raw/ ist ein echter Posteingang: nach jeder Sitzung leer

Lokale Embeddings (Keine kostenpflichtigen APIs)

  • sentence-transformers (Standard) β€” lΓ€uft auf der GPU

  • Ollama (optional) β€” jedes lokale Embedding-Modell

  • Alle Vektoren werden nativ in Neo4j via db.create.setNodeVectorProperty() gespeichert

Schnellstart

Voraussetzungen

  • Python 3.12+

  • Neo4j 2026.x (Community oder Enterprise)

  • uv Paketmanager (pip install uv)

  • Obsidian mit dem Git-Community-Plugin

  • Ein GitHub-Repo fΓΌr den Wiki-Vault (kann privat sein)

  • Node.js + defuddle (fΓΌr das Abrufen von Webinhalten β€” siehe unten)

Neo4j-Einrichtung

# Ubuntu/Debian β€” see neo4j.com for other platforms
sudo apt install neo4j
sudo systemctl start neo4j
sudo systemctl enable neo4j
# Set password (default user: neo4j)
sudo neo4j-admin set-initial-password your_password

defuddle-Einrichtung

defuddle extrahiert sauberes Markdown von Webseiten und entfernt Navigation, Anzeigen und Boilerplate vor der Ingestion. Erforderlich fΓΌr wiki_fetch_url.

# Install Node.js if not present (via nvm recommended)
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash
nvm install --lts
nvm use --lts

# Install defuddle globally
npm install -g defuddle

# Verify
defuddle --version

Hinweis: Synapse findet defuddle automatisch ΓΌber nvm-Pfade, auch wenn es nicht im PATH Ihrer Shell liegt. Wenn wiki_fetch_url meldet, dass defuddle nicht gefunden wurde, stellen Sie sicher, dass es in einer nvm-verwalteten Node-Version installiert ist.

Obsidian-Vault-Einrichtung

  1. Erstellen Sie einen neuen Vault in Obsidian (oder klonen Sie Ihr Wiki-Repo)

  2. Installieren Sie das Git-Community-Plugin (Einstellungen β†’ Community-Plugins β†’ Durchsuchen β†’ "Git")

  3. Konfigurieren Sie das Git-Plugin mit Ihren GitHub-Anmeldedaten

  4. Die Vault-Struktur (raw/, wiki/, Clippings/, AGENTS.md) wird beim ersten Start automatisch von Synapse erstellt

Installation

cd /home/ty/Repositories/ai_workspace
git clone <repository-url> project-synapse-mcp
cd project-synapse-mcp
uv venv --python 3.12 --seed
source .venv/bin/activate
uv add -e .
uv run python -m spacy download en_core_web_sm
cp .env.example .env  # edit with your Neo4j password and vault path

Konfiguration

Bearbeiten Sie .env:

NEO4J_URI=bolt://localhost:7687
NEO4J_USER=neo4j
NEO4J_PASSWORD=your_password
NEO4J_DATABASE=neo4j

# Embedding β€” local only, no paid APIs
EMBEDDING_PROVIDER=sentence-transformers  # or "ollama"
EMBEDDING_MODEL=sentence-transformers/all-mpnet-base-v2
EMBEDDING_DIMENSION=768

# Wiki vault
WIKI_VAULT_PATH=/path/to/your/obsidian-vault
WIKI_GITHUB_REPO=https://github.com/user/wiki-repo

Claude Desktop / MCP-Integration

FΓΌgen Sie dies zu Ihrer MCP-Konfiguration hinzu:

{
  "mcpServers": {
    "project-synapse": {
      "command": "uv",
      "args": [
        "--directory", "/path/to/project-synapse-mcp",
        "run", "python", "-m", "synapse_mcp.server"
      ],
      "env": {
        "NEO4J_URI": "bolt://localhost:7687",
        "NEO4J_USER": "neo4j",
        "NEO4J_PASSWORD": "your_password",
        "NEO4J_DATABASE": "neo4j",
        "WIKI_VAULT_PATH": "/path/to/obsidian-vault",
        "WIKI_GITHUB_REPO": "https://github.com/user/wiki-repo"
      }
    }
  }
}

MCP-Tools

Wissensgraph

Tool

Beschreibung

ingest_text

Text durch semantische Pipeline verarbeiten β†’ Neo4j

query_knowledge

Vektor-semantische Suche mit erkenntnisorientierten Ergebnissen

explore_connections

Graphtraversierung fΓΌr verborgene Beziehungen

generate_insights

Autonome Zettelkasten-Mustererkennung

analyze_semantic_structure

Montague-Grammatik semantische Analyse

Wiki (LLM-WIKI)

Tool

Beschreibung

wiki_fetch_url

URL abrufen β†’ defuddle clean β†’ einspeisen β†’ archivieren in Clippings/

wiki_ingest_raw

Datei aus raw/ einspeisen β†’ Neo4j + automatisches Verschieben nach Clippings/

wiki_write_page

Wiki-Seite mit Frontmatter erstellen/aktualisieren

wiki_read_page

Wiki-Seite nach Pfad lesen

wiki_search

Stichwortsuche ΓΌber Wiki-Seiten

wiki_list_pages

Alle Seiten in einem Unterverzeichnis auflisten

wiki_update_index

Wiki-Index neu aufbauen

wiki_lint

Gesundheitscheck: Waisen, defekte Links, fehlendes Frontmatter

Wiki-Vault-Struktur

LLM-WIKI/
β”œβ”€β”€ AGENTS.md           # Agent schema doc β€” conventions and workflows
β”œβ”€β”€ raw/                # INBOX ONLY β€” unprocessed files; empty after each session
β”œβ”€β”€ raw-inbox.base      # Obsidian Base view of pending raw/ queue
β”œβ”€β”€ Clippings/          # Permanent archive β€” all processed sources land here
β”œβ”€β”€ wiki/
β”‚   β”œβ”€β”€ index.md        # Auto-generated page catalogue
β”‚   β”œβ”€β”€ log.md          # Append-only activity log
β”‚   β”œβ”€β”€ entities/       # People, tools, projects
β”‚   β”œβ”€β”€ concepts/       # Ideas, theories, patterns
β”‚   └── sources/        # Summaries of ingested sources

Content-Lebenszyklus

You clip/save β†’ raw/          # your inbox
     or
Agent fetches β†’ wiki_fetch_url # web research
                    β”‚
              [defuddle clean]
                    β”‚
              [semantic pipeline] β†’ Neo4j
                    β”‚
              wiki_write_page β†’ wiki/sources/
                    β”‚
              auto-move β†’ Clippings/   # permanent archive

raw/ ist nach einer Sitzung immer leer. Clippings/ ist das permanente Archiv aller verarbeiteten Inhalte. Quellseiten in wiki/sources/ verweisen auf die ursprΓΌngliche URL, nicht auf den Dateipfad.

Workflow

  1. Web-Recherche: wiki_fetch_url(url) β†’ abrufen, bereinigen, einspeisen, archivieren in einem Aufruf

  2. Manueller Clip: In raw/ ablegen, wiki_ingest_raw(filename) aufrufen β†’ automatische Archivierung nach Ingestion

  3. Abfrage: query_knowledge (Graph) oder wiki_search (Dateien) β†’ Antwort synthetisieren

  4. Lint: wiki_lint β†’ Waisen, defekte Links, veraltete Behauptungen korrigieren

  5. Rollback: Git ΓΌbernimmt die Versionskontrolle ΓΌber das Obsidian-Git-Plugin

Theoretische Grundlage

  • Montague-Grammatik: Formale kompositionelle Semantik zur Bedeutungsextraktion

  • Zettelkasten-Methode: Atomare verlinkte Notizen mit emergenter Struktur

  • Graphentheorie: Community-Erkennung, ZentralitΓ€t, Pfadanalyse

  • Karpathy LLM-WIKI: Persistente Wissenskompilierung vs. zustandsloses RAG

  • Vannevar Bushs Memex: Privates assoziatives Wissen mit gepflegten Pfaden

Lizenz

MIT β€” siehe LICENSE.


Project Synapse: Von reaktivem RAG zu persistentem, sich stetig erweiterndem Wissen.

Available Tools

23 tools
analyze_semantic_structureB

Analyze the semantic structure of text using Montague Grammar parsing.

This tool provides insight into the formal semantic analysis capabilities and shows the logical form translations.

Args: text: Text to analyze semantically include_logical_form: Whether to include the formal logical representation

Returns: Semantic analysis with entities, relations, and optional logical forms

Inputs: text (required), include_logical_form. Returns: result

debug_testB

Simple test tool to check if MCP server is working.

Inputs: no named parameters. Returns: result

explore_connectionsB

Explore connections and relationships around a specific entity in the knowledge graph.

This tool implements the graph traversal capabilities for discovering non-obvious connections and patterns.

Args: entity: Entity name to explore from depth: How many relationship hops to explore (1-5) connection_types: Specific relationship types to follow

Returns: Visual representation of connections and discovered patterns

Inputs: entity (required), depth, connection_types. Returns: result

generate_insightsC

Trigger autonomous insight generation using the Zettelkasten engine.

This tool activates the autonomous synthesis engine to identify patterns and generate novel insights from the existing knowledge graph.

Args: topic: Optional topic to focus insight generation on confidence_threshold: Minimum confidence level for insights (0.0-1.0)

Returns: Generated insights with confidence scores and evidence trails

Inputs: topic, confidence_threshold. Returns: result

ingest_textB

Ingest and process text into the knowledge graph using semantic analysis.

This tool performs the core knowledge synthesis pipeline:

  1. Semantic parsing using Montague Grammar

  2. Entity extraction and relationship identification

  3. Storage in the Neo4j knowledge graph

  4. Automatic insight generation triggers

Args: text: Raw text to process and analyze source: Source identifier for provenance tracking metadata: Additional metadata about the text

Returns: Processing summary with entities and relationships extracted

Inputs: text (required), source, metadata. Returns: result

query_knowledgeA

Query the knowledge graph for facts and insights using natural language.

This tool provides the conversational interface to the knowledge base, prioritizing synthesized insights over raw facts.

Args: query: Natural language query include_insights: Whether to include AI-generated insights max_results: Maximum number of results to return

Returns: Query results with facts, insights, and reasoning trails

Inputs: query (required), max_results, include_insights. Returns: result

synapse_causal_windowA

Find candidate causes by temporal correlation.

Surfaces facts whose valid_from falls in the window [before - within_days, before] and that share at least one entity with facts about effect_entity.

This is exactly the "track everything you ate to find what caused the headaches" pattern β€” you record symptom onset, you record meals and medications, then this tool surfaces co-occurring events as candidates. The tool returns correlation; the human (or a downstream reasoning step) decides what caused what.

Args: effect_entity: The thing whose causes you're hunting (e.g. "headache", "rash", "build failure"). before: ISO date/datetime β€” when the effect was observed. within_days: How far back to search. Default 30.

Returns: Ranked list of candidate cause-effect pairings with day deltas.

Inputs: before (required), effect_entity (required), within_days. Returns: result

synapse_invalidateA

Mark a previously-recorded fact as no longer true.

Sets valid_to rather than deleting β€” the historical record stays intact, but the fact is no longer "currently true" for default queries.

Args: subject/predicate/object: The triple to invalidate. ended: ISO date/datetime when the fact stopped being true. Defaults to now if omitted.

Returns: Number of facts affected.

Inputs: object (required), subject (required), predicate (required), ended. Returns: result

synapse_memory_statsA

Quick stats: how many temporal facts are stored, time span covered.

Inputs: no named parameters. Returns: result

synapse_recallA

Look up time-stamped facts about an entity.

Args: entity: Name to look up. Matches subject, object, or both depending on direction. as_of: ISO date/datetime β€” if given, only facts valid at this point in time are returned. Omit for "currently true" facts. direction: "outgoing" (entity is the subject), "incoming" (entity is the object), or "both" (default).

Returns: Newline-separated list of facts with timestamps. Empty if none found.

Inputs: entity (required), as_of, direction. Returns: result

synapse_rememberA

Record a time-stamped fact in Synapse's episodic memory.

Use this whenever something is worth remembering across sessions: decisions, observations, "Ty said X on date Y", health/diet/symptom log entries, project milestones.

Args: subject: Who or what the fact is about. Free-form name. predicate: The relationship verb. snake_case preferred (e.g. "started_taking", "moved_to", "decided_to_use"). object: The other side of the relation. valid_from: ISO date or datetime when the fact became true. If omitted, "now" is used. Bare dates β†’ midnight UTC. valid_to: ISO date or datetime when the fact stopped being true. Omit for still-current facts. confidence: 0–1. Default 1.0 for explicit user statements; lower when the agent is inferring. source: Where this fact came from. Defaults to "agent:claude" for things Claude is recording. Use "user" or a filename for facts from explicit user statements or document ingestion. note: Free-form context. Stored in metadata for later recall.

Returns: The fact id (stable content hash β€” safe to call twice).

Inputs: object (required), subject (required), predicate (required), note, +4 more. Returns: result

synapse_timelineA

Chronological view of remembered facts.

Args: entity: Scope to one entity, or None for the global timeline. limit: Max number of rows. Default 50.

Returns: Time-ordered fact list, oldest first.

Inputs: limit, entity. Returns: result

wiki_cluster_pagesA

Cluster wiki pages by semantic similarity using GAAC (TF-IDF).

Identifies:

  • Natural topic clusters β€” pages that belong together

  • Missing links β€” same-cluster pages with no wikilink between them

  • Merge candidates β€” pages so similar they may be redundant (sim > 0.7)

Args: n_clusters: Number of clusters (auto = sqrt of page count if omitted).

Inputs: n_clusters. Returns: result

wiki_fetch_urlA

Fetch a URL with defuddle (clean markdown extraction), save to raw/, ingest into the knowledge graph, and archive to Clippings/.

Use this when researching the web β€” it strips navigation and clutter, leaving only the article content. Much cleaner than raw web_fetch.

Args: url: The URL to fetch and process. ingest: If True (default), immediately ingest into Neo4j after saving. Set False to save to raw/ only for manual review first.

Inputs: url (required), ingest. Returns: result

wiki_hits_analysisA

Compute HITS hub and authority scores on the wiki wikilink graph.

Authorities = pages cited by many others β€” load-bearing knowledge nodes. Hubs = pages that link to many good authorities β€” navigation layers.

Use to identify which pages need deepening (high authority) and which need comprehensive link coverage (high hub).

Inputs: no named parameters. Returns: result

wiki_ingest_rawA

Read a raw source file and ingest it into both the knowledge graph and wiki.

Reads from raw/, runs it through the Synapse semantic pipeline, stores in Neo4j, and creates a summary page in wiki/sources/.

Args: filename: Filename inside the raw/ directory.

Inputs: filename (required). Returns: result

wiki_lintA

Run a health check on the wiki vault.

Detects orphan pages, broken wikilinks, and missing frontmatter.

Inputs: no named parameters. Returns: result

wiki_list_pagesB

List all markdown pages in the wiki vault with pagination.

Args: subdir: Subdirectory to list ('wiki' or 'raw'). limit: Maximum pages to return (default 50, max 200). offset: Offset for pagination. tag: Filter by tag.

Inputs: tag, limit, offset, subdir. Returns: result

wiki_read_pageB

Read a wiki page.

Args: path: Relative path from vault root (e.g. 'wiki/concepts/rag.md'). mode: What to return: - "meta": metadata/frontmatter only (from index, 0 file reads) - "excerpt": metadata + first 500 characters of page body (from index) - "full": complete page content (reads file from disk)

Inputs: path (required), mode. Returns: result

wiki_sync_indexA

Refresh the wiki index database from disk.

Runs automatically on server start and after write operations. Call manually if files were changed outside Synapse (e.g., Obsidian edits, git pull).

Inputs: no named parameters. Returns: result

wiki_update_indexB

Rebuild the wiki index from all wiki pages.

Args: deep: If True, performs a disk-level verification of all indexed files.

Inputs: deep. Returns: result

wiki_write_pageB

Write or update a wiki page with frontmatter.

Args: path: Relative path (e.g. 'wiki/entities/neo4j.md'). body: Markdown body content. summary: One-line summary for the index. tags: Comma-separated tags.

Inputs: body (required), path (required), tags, summary. Returns: result

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.4/5.0

    Scored across 23 tools

    Disambiguation3/5

    The tools are grouped into wiki, knowledge graph, and memory domains, but several have blurry boundaries: wiki_sync_index vs wiki_update_index, synapse_recall vs synapse_timeline, and ingest_text vs wiki_ingest_raw could cause misselection. Descriptions help clarify most overlaps, but not all.

    Naming Consistency4/5

    Most tools follow verb_noun snake_case with clear wiki_ and synapse_ prefixes, but the core knowledge graph tools (ingest_text, query_knowledge, explore_connections) lack a shared prefix and debug_test breaks the pattern. The naming is mostly consistent but not fully systematic.

    Tool Count3/5

    23 tools is in the heavy range and requires a lot of surface area to navigate, though each tool has a plausible role in the wiki/knowledge-graph/memory system. It is borderline: not overwhelming, but more than is clearly necessary.

    Completeness4/5

    The set covers wiki read/write/indexing, knowledge graph ingestion and querying, and episodic memory lifecycle management including invalidation and causal analysis. Minor gaps exist (no wiki page deletion, no explicit knowledge graph entity update/delete), but core workflows are well covered.

    Maintenance

    ActivityInactive
    ResponsivenessLimited data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      An MCP server that transforms markdown notes into an AI-powered knowledge graph. It enables LLM clients to explore, analyze, and diagnose knowledge graphs through tools for node explanation, path finding, causal chain analysis, and wiki health reporting.
      5
      MIT
    • F
      license
      Not graded
      quality
      D
      maintenance
      An MCP server that implements a heavily typed knowledge graph memory system with AI-powered entity and relation extraction, enabling structured knowledge storage and retrieval from unstructured text using predefined or custom ontologies.
      9
      -
    • A
      license
      Not graded
      quality
      D
      maintenance
      An MCP server that compiles any text into a verifiable, graph-based knowledge base using deterministic chunking and parallel extraction of epistemology primitives.
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      An MCP server that turns any compatible AI agent into a Zettelkasten partner for creating atomic notes, forming semantic links, detecting clusters, and synthesizing insights from your existing knowledge.
      19
      2
      MIT