# memograph [Health: Active]

**Category:** 🧠 Knowledge & Memory  
**Repository:** https://github.com/Indhar01/MemoGraph  
**GitHub Stars:** 4  
**Views:** 7  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/memograph

## Description
Graph-based memory system for LLMs with knowledge graphs and semantic search

## Tools
Capabilities this server exposes over MCP:

- **search_vault** — Search memories in the MemoGraph vault using semantic or keyword search
- **create_memory** — Create a new memory in the MemoGraph vault
- **query_with_context** — Retrieve relevant context from the vault for a question. If LLM provider is configured, can optionally generate an answer. Otherwise, returns context for the client's LLM to use.
- **get_vault_info** — Get information about the currently configured MemoGraph vault (path, name, configuration). Use this when you need to know which vault is being used.
- **get_vault_stats** — Get statistics about the currently configured MemoGraph vault (memory counts, types, tags)
- **list_memories** — List memories with optional filters
- **get_memory** — Get full content of a specific memory by ID
- **import_document** — Import a document (TXT, PDF, DOCX) into the vault
- **delete_memory** — Delete a memory from the vault by ID
- **update_memory** — Update an existing memory's title, content, tags, or salience
- **batch_update** — Update multiple memories in one efficient operation. Much faster than calling update_memory multiple times.
- **batch_delete** — Delete multiple memories in one efficient operation. Much faster than calling delete_memory multiple times.
- **export_vault_tool** — Export vault memories to JSON, CSV, or ZIP format. Useful for backups, data portability, and integration with external tools.
- **import_backup_tool** — Import memories from a backup file (JSON or ZIP). Useful for restoring from backups or migrating vaults.
- **create_backup_tool** — Create a backup of the vault. Essential for disaster recovery and version control.
- **get_config_value** — Get a configuration value from ~/.memograph/config.yaml
- **set_config_value** — Set a configuration value in ~/.memograph/config.yaml
- **list_config_all** — List all configuration settings from ~/.memograph/config.yaml
- **create_profile_config** — Create a new configuration profile with custom settings
- **use_profile_config** — Switch to a specific configuration profile
- **list_profiles_config** — List all available configuration profiles
- **delete_profile_config** — Delete a configuration profile
- **list_available_tools** — List all available MCP tools with their descriptions and categories
- **auto_hook_query** — 🔍 AUTO-SEARCH VAULT - Call at the START of a conversation to search for relevant context.

⚠️ NOTE: Usually it's better to just use 'search_vault' or 'query_with_context' directly.

This tool:
1. Searches the vault for relevant memories
2. Optionally saves the query itself (usually disabled)
3. Returns context and sources

Most users don't need this - use 'search_vault' instead.
- **auto_hook_response** — 💾 SAVE CONVERSATION - Call this IMMEDIATELY after answering to save our exchange.

⚠️ IMPORTANT: This tool is NOT automatic - you must explicitly call it after each meaningful exchange.

✅ WHEN TO CALL:
- After answering questions
- After providing insights or advice
- After planning or decision-making conversations
- After any exchange worth remembering

❌ SKIP FOR:
- Simple greetings ('hi', 'hello')
- Acknowledgments ('ok', 'thanks')
- Clarification questions

📝 USAGE:
auto_hook_response(
    user_query='User's question here',
    ai_response='Your complete answer here'
)

This builds conversation history for future reference.
- **configure_autonomous_mode** — Configure autonomous hooks behavior (enable/disable auto-search, auto-save, etc.)
- **get_autonomous_config** — Get current autonomous hooks configuration and recommendations
- **relate_memories** — Create a wikilink connection between two memories in the graph. This builds the knowledge graph by linking related ideas.
- **search_by_graph** — Traverse the knowledge graph from a memory to find connected memories within N hops. Reveals how ideas connect through wikilinks.
- **find_path** — Find the shortest path between two memories through the knowledge graph. Shows how two ideas connect through intermediate memories.
- **bulk_create** — Create multiple memories in one operation. More efficient than calling create_memory multiple times.
- **verify_last_save** — 🔍 VERIFY AUTO-SAVE - Check if your last conversation was saved.

Use this to:
- Confirm auto-save is working
- Debug save issues
- Get peace of mind that exchanges are being preserved

Returns details about the most recent save or troubleshooting tips if none found.
- **get_save_stats** — 📊 SAVE STATISTICS - Get statistics about auto-save success rate.

Shows:
- How many saves have succeeded vs failed
- Save rate percentage
- Memory counts by type
- Status interpretation (excellent/good/poor/critical)

Helps you understand if auto-save is working effectively.
- **get_auto_save_analytics** — 📊 AUTO-SAVE ANALYTICS - Get comprehensive analytics on the hybrid auto-save system.

Shows detailed metrics:
- Overall save rate and performance grade (A+ to F)
- Layer 1 (explicit AI saves) vs Layer 2 (monitor) breakdown
- Total conversations saved vs estimated missed
- Monitor statistics (if enabled)
- Actionable recommendations for improvement

Use this to understand auto-save effectiveness and optimize configuration.
- **get_monitor_status** — 🔍 MONITOR DIAGNOSTICS - Check if Layer 2 conversation monitor is running.

Shows:
- Whether monitor is enabled and active
- Detection statistics
- Background loop status
- Recent activity

Use this to diagnose why auto-save isn't working.
- **suggest_tags** — Suggest tags for a note using AI analysis. Analyzes content using frequency, semantic similarity, structure, and related notes to recommend relevant tags.
- **suggest_links** — Suggest wikilinks for a note using semantic similarity and graph analysis. Analyzes content, graph relationships, and context to recommend relevant connections to other notes. Includes bidirectional link suggestions (notes that should link to this one).
- **detect_knowledge_gaps** — Detect knowledge gaps in the vault including missing topics, weak coverage, isolated notes, and missing links. Provides actionable suggestions for improving the knowledge base structure and completeness.
- **analyze_knowledge_base** — Perform comprehensive knowledge base analysis including gap detection, topic clustering, and learning path suggestions. Provides insights into the structure, completeness, and organization of the knowledge base with actionable recommendations.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `uvx` (confidence: high):

```json
"mcpServers": {
  "memograph": {
    "command": "uvx",
    "args": ["--from","memograph","memograph-mcp"]
  }
}
```

## Documentation

## What memograph MCP server does

The memograph MCP server gives AI assistants access to a persistent memory vault made from ordinary Markdown files. Each note remains readable and editable outside the application, with YAML frontmatter for metadata and `[[wikilinks]]` for relationships. The system turns those files into a navigable graph and makes the resulting memory available to MCP-compatible clients.

Its retrieval layer is designed for queries where exact wording is unknown. Keyword matches, semantic similarity, and graph traversal are combined and re-ranked, while salience scores help prioritize memories. Salience ranges from 0 to 1, decays over time, and increases when a memory is accessed. Context compression can also fit retrieved material into a token budget.

The project supports memory categories including episodic, semantic, procedural, and fact memories. AI-assisted features can extract topics, people, action items, decisions, questions, sentiment, risks, ideas, and timeline events. Other analysis features suggest tags and links, identify gaps or isolated notes, cluster topics, and propose learning paths.

## How it works

Point MemoGraph at a vault directory. Ingestion reads the Markdown files, uses their wikilinks to create bidirectional graph relationships, and caches file modification times so unchanged files do not need to be parsed again. A search can then combine lexical results with embedding-based similarity and graph connections, including related notes whose titles do not contain the query terms.

The same vault can be used through several interfaces. The Python API exposes the `MemoryKernel` with synchronous, asynchronous, and batch variants. The CLI handles ingestion, search, imports, exports, backups, batch operations, and AI features. A React and D3 web interface provides graph visualization, search, and editing, backed by FastAPI. The HTTP API uses versioned `/api/v1/` routes and an OpenAPI contract.

## Setup and configuration

Install the package with Python’s package installer:

```bash
pip install memograph
```

Run `memograph quickstart` to create a sample vault containing interconnected Python-development notes, ingest it, and execute demonstration queries. To search that sample vault, use a vault path such as:

```bash
memograph --vault ~/memograph-quickstart search "FastAPI dependency injection"
```

Use `memograph --vault ~/your-notes ingest` to index an existing notes directory. Running `memograph quickstart --force` resets the demonstration vault. The MCP interface uses stdio transport, making the memograph MCP server suitable for MCP clients that launch local servers.

## Tools and capabilities

The memograph MCP server provides more than 30 MCP tools for working with the memory system. The supported capability set includes:

- Searching and retrieving memories through hybrid keyword, semantic, and graph-based retrieval.
- Ingesting and managing a Markdown vault.
- Working with graph links, backlinks, and traversal.
- Suggesting tags and wikilinks, detecting knowledge gaps, and analyzing topics.
- Supporting persistent conversation context and optional automatic saving of decisions and context from AI conversations.
- Applying salience ranking and token-aware context compression to retrieved results.

For larger deployments, the project documents filesystem-isolated tenants, OIDC or API-key authentication, audit logging, scheduled deletion, rate limiting, request-size limits, metrics, tracing, and Docker Compose self-hosting. Those operational features concern the web and service deployment paths in addition to the local MCP workflow.

## Limitations and notes

The system depends on a Markdown vault and its indexing process; notes must be ingested before searches can use them. Its graph relationships are based on `[[wikilinks]]`, while semantic retrieval depends on embeddings. The MCP transport described in the material is stdio. The quickstart demonstrates the workflow with a local sample vault, and production deployment concerns such as authentication and multi-tenancy are covered separately in the project’s operator documentation.

_Full upstream README: https://allmcps.com/mcp/memograph/readme_

