Hippocampal Memory MCP

Hippocampal Memory MCP

An MCP server for neuroanatomically-inspired memory consolidation using Neo4j and semantic search, enabling episodic memory encoding, semantic retrieval, and graph operations.

Category
Visit Server

README

🧠 Hippocampal Memory MCP Server

An MCP server for neuroanatomically-inspired memory consolidation using Neo4j and semantic search.

Features

  • Episodic Memory Encoding: Create memory events with emotional valence and temporal context
  • Semantic Retrieval: Vector similarity search using OpenAI embeddings
  • Graph Operations: Full Cypher query support for reading and writing
  • Relationship Tracking: Monitor bond strength evolution over time
  • Extensible Schema: Additional tools in hippocampus-extension.mjs ready for integration

Quick Start

See CHECKLIST.md for daily startup instructions.

1. Install Dependencies

npm install

2. Setup Neo4j

You need Neo4j Desktop running locally with a database on port 7687.

3. Initialize Schema

npm run setup-schema

4. Setup Tunnel (for remote access)

Start ngrok to expose your local Neo4j:

ngrok tcp 7687

Copy the tunnel URL (e.g., tcp://2.tcp.us-cal-1.ngrok.io:12841)

5. Configure Claude Desktop

Edit %APPDATA%\Claude\claude_desktop_config.json:

{
  "mcpServers": {
    "hippocampal-memory": {
      "command": "node",
      "args": ["C:\\Users\\harve\\Neo4j\\hippocampal-mcp-server.mjs"],
      "env": {
        "NEO4J_URI": "bolt://YOUR_NGROK_URL",
        "NEO4J_USER": "neo4j",
        "NEO4J_PASSWORD": "your_password",
        "OPENAI_API_KEY": "your_openai_key"
      }
    }
  }
}

6. Start Claude Desktop

The MCP server will connect automatically.

Available Tools (8)

Hippocampus Module (Biomimetic Schema)

  1. hippocampus_write_event - Structured event creation with Who/Why/What/Where/Effects blocks
  2. hippocampus_write_reflection - Agent-relative memory slices with egocentric perspective
  3. hippocampus_search_events - Pattern completion retrieval with temporal/participant/effect filters

Core Memory Tools

  1. encode_memory - Save episodic memories with vector embeddings
  2. recall_memory - Semantic + temporal + emotional search
  3. query_graph - Read-only Cypher queries
  4. mutate_graph - Write operations (CREATE, MERGE, etc.)
  5. evolve_bond - Track relationship dynamics over time

Architecture

Current Setup:

  • Neo4j Desktop running locally on port 7687
  • ngrok tunnel for remote access
  • Claude Desktop connects via stdio transport
  • Render deployment at https://hippocampal-memory-mcp.onrender.com (HTTP/SSE transport)

Files:

Schema

Core Nodes:

  • Event - Episodic memories with vector embeddings
  • Person - Human and AI entities
  • Project - Ongoing work
  • Concept - Abstract ideas
  • Place, Catalyst, Entity, Target, Effect, Reflection, Agent (extension schema)

Key Relationships:

  • INVOLVES - Event → Entity (with role & salience)
  • PRECEDED - Event → Event (causal chains)
  • CONSOLIDATED_TO - Event → Concept/Person/Project
  • BOND - Person ↔ Person (with strength trajectory)
  • PARTICIPATED_IN, CATALYZED_BY, HELD_AT, HAD_EFFECT_ON, etc. (extension schema)

Indexes:

  • Vector index on Event.embedding (1536 dimensions, cosine similarity)
  • Unique constraints on id fields for Person, Project, Concept, Event

Important Notes

  • ngrok URL changes on every restart (unless you pay for static URL)
  • Update NEO4J_URI in Claude Desktop config when ngrok URL changes
  • Neo4j Desktop must be running before starting Claude Desktop
  • Environment variables are in Claude Desktop config (NOT .env file)
  • Render deployment requires persistent Neo4j (Aura) - local tunnel won't work

Testing

Test local connection:

node test-connection.mjs

Test tunnel connection:

node test-tunnel.mjs

Documentation

Deployment

Currently deployed to Render at: https://hippocampal-memory-mcp.onrender.com

For deployment details, see archived docs.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured