github doobidoo/mcp-memory-service v9.2.0
v9.2.0 - Knowledge Graph Dashboard with D3.js Visualization

latest releases: v10.36.4, v10.36.3, v10.36.2...
2 months ago

🧬 Knowledge Graph Dashboard - Interactive Memory Visualization

v9.2.0 introduces a complete Knowledge Graph Dashboard powered by D3.js v7.9.0, enabling interactive exploration of memory relationships through force-directed graph visualization.

✨ Key Features

🎨 Interactive Visualization

  • Force-Directed Graph: D3.js v7.9.0 physics simulation for natural relationship layouts
  • Interactive Controls:
    • 🔍 Zoom with mouse wheel or touch gestures
    • 🖱️ Pan by dragging the background
    • ✋ Drag nodes to explore connections
    • 💡 Hover tooltips with memory details
  • Visual Clarity: Color-coded nodes and relationship links for easy identification

📊 Relationship Analytics

  • 6 Typed Relationships: causes, fixes, contradicts, supports, follows, related
  • Distribution Chart: Chart.js bar chart showing breakdown of relationship types
  • 2 New API Endpoints:
    • /api/analytics/relationship-types - Get distribution of relationship types
    • /api/analytics/graph-visualization - Get graph data optimized for D3.js

🌐 Multi-Language Support

  • 7 Languages Supported: English, Chinese, German, Spanish, French, Japanese, Korean
  • 154 New i18n Translation Keys: 22 translation keys per language
  • Full UI Localization: All graph UI elements support language switching

🎨 Theme Integration

  • Dark Mode: Seamless theme switching with existing dashboard
  • Consistent Design: Matches the aesthetic of the existing web dashboard

⚡ Performance

  • Successfully Tested: 2,730 relationships with smooth interaction
  • Optimized Queries: Storage layer extensions for efficient graph data retrieval

🔧 Technical Implementation

Storage Layer Extensions

  • get_relationship_type_distribution() - Query relationship type counts
  • get_graph_visualization_data() - Fetch graph data optimized for D3.js rendering

Database Migration

⚠️ MIGRATION REQUIRED: Added relationship_type column to memory_graph table

SQLite Migration (required):

python scripts/migration/add_relationship_type_column.py

Cloudflare D1 (not required - graph is SQLite-only in this version):

  • Migration script available: scripts/migration/add_relationship_type_column_cloudflare.py
  • Future v9.3.0 will add hybrid backend graph sync

Migration Details:

  • Default value: All existing relationships set to 'related' type
  • Backward compatible: Migration is idempotent and safe to re-run
  • No data loss: Preserves all existing graph relationships

📖 Documentation

Complete Feature Documentation: docs/features/knowledge-graph-dashboard.md

Updated README: Knowledge Graph Dashboard section with features and screenshots

🚀 Quick Start

  1. Run Migration (if upgrading from v9.0.x):

    python scripts/migration/add_relationship_type_column.py
  2. Start Dashboard:

    python scripts/server/run_http_server.py
  3. Access Graph: Navigate to http://localhost:8000 and click "Knowledge Graph" tab

🔮 Roadmap (v9.3.0)

  • Hybrid backend support for graph storage (Cloudflare + SQLite sync)
  • Graph filtering by relationship type
  • Community detection algorithms
  • Export graph data (JSON, GraphML)

📦 Installation

PyPI (automatic after CI/CD completes):

pip install --upgrade mcp-memory-service

From Source:

git clone https://github.com/doobidoo/mcp-memory-service.git
cd mcp-memory-service
git checkout v9.2.0
pip install -e .

⚠️ Notes for Testing

Test Suite Status: Knowledge Graph tests created but require Memory object API fixes before running. Tests are documented with TODO comments indicating required changes. This does not affect production functionality - only automated testing.


Full Changelog: CHANGELOG.md

Previous Release: v9.0.6

Don't miss a new mcp-memory-service release

NewReleases is sending notifications on new releases.