Skip to main content

Memory MCP

A knowledge-graph-based memory system for AI agents that enables persistent information storage between conversations.

Features

  • Persistent memory storage using a knowledge graph structure
  • Entity-relation model for organizing information
  • Tools for adding, searching, and retrieving memories

Tools

The system provides the following MCP tools:

  • load_knowledge_graph(): Retrieves the entire knowledge graph
  • get_knowledge_graph_size(): Returns the current size category of the graph ("small", "medium", or "large")
  • add_entities(entities): Adds new entities to the memory
  • add_relations(relations): Creates relationships between entities
  • add_observations(entity_name, observations): Adds observations to existing entities
  • delete_entities(entity_names): Removes entities from memory
  • delete_relations(relations): Removes relationships
  • search_nodes(query, search_mode): Searches for entities and relations matching a query. Supports three search modes:
    • "exact_phrase": Matches the entire query as a substring
    • "any_token": Matches if any word in the query matches (default)
    • "all_tokens": Matches if all words in the query match
  • open_nodes(names): Retrieves specific entities and their relationships between them

Usage

Run the agent with:

uv run memory_agent.py

The agent will automatically:

  1. Load its memory at the start of conversations
  2. Reference relevant information during interactions
  3. Update its memory with new information when the conversation ends

Exit a conversation by typing q.

Configuration

Set the memory storage location with the MEMORY_FILE_PATH environment variable (defaults to memory.json).

Metadata

Release files for iflow-mcp_memory 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for iflow-mcp_memory 0.1.2
File Size Uploaded
iflow_mcp_memory-0.1.2.tar.gz 6.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for iflow-mcp_memory 0.1.2
File Interpreter ABI Platform
iflow_mcp_memory-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 13.3 kB

Release files / iflow_mcp_memory-0.1.2.tar.gz

Download URL iflow_mcp_memory-0.1.2.tar.gz
Size 6.2 kB
Tags Source
SHA-256 checksum
How to use checksums
0fb2cdd8ed38474452ecf01cb0f503cbfa76753f6c341f363eff0a7619dc15d1
BLAKE2b-256 checksum
How to use checksums
27560d358e04ce48eeb79e9d8142223c61f6e9c77cc9c8563fe3b2f8d269e15e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.10 {"installer":{"name":"uv","version":"0.9.10"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / iflow_mcp_memory-0.1.2-py3-none-any.whl

Download URL iflow_mcp_memory-0.1.2-py3-none-any.whl
Size 7.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
015015433124bf00406ef4e897750238183662478aa787f4d6a1044b864b4667
BLAKE2b-256 checksum
How to use checksums
3a5ca531f1a7191d1ddce68b3e77efe48488c5d23cea2318f270e30234e5c7a7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.10 {"installer":{"name":"uv","version":"0.9.10"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page