Skip to main content
Glama

内存 MCP

基于知识图谱的人工智能代理记忆系统,可在对话之间实现持久信息存储。

特征

  • 使用知识图谱结构的持久内存存储

  • 用于组织信息的实体关系模型

  • 添加、搜索和检索记忆的工具

Related MCP server: cortex-engine

工具

系统提供以下MCP工具:

  • load_knowledge_graph() :检索整个知识图谱

  • get_knowledge_graph_size() :返回图的当前大小类别(“小”、“中”或“大”)

  • add_entities(entities) :将新实体添加到内存中

  • add_relations(relations) :创建实体之间的关系

  • add_observations(entity_name, observations) :向现有实体添加观察结果

  • delete_entities(entity_names) :从内存中删除实体

  • delete_relations(relations) :删除关系

  • search_nodes(query, search_mode) :搜索与查询匹配的实体和关系。支持三种搜索模式:

    • “exact_phrase”:将整个查询作为子字符串匹配

    • “any_token”:如果查询中的任何单词匹配则匹配(默认)

    • “all_tokens”:如果查询中的所有单词都匹配,则匹配

  • open_nodes(names) :检索特定实体及其之间的关系

用法

使用以下命令运行代理:

uv run memory_agent.py

代理将自动:

  1. 在对话开始时加载其内存

  2. 互动时参考相关信息

  3. 对话结束时用新信息更新其记忆

输入q退出对话。

配置

使用MEMORY_FILE_PATH环境变量设置内存存储位置(默认为memory.json )。

F
license - not found
Not graded
quality - not tested
D
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    A
    quality
    D
    maintenance
    Provides persistent long-term memory for AI agents through semantic search and automated knowledge graph extraction. It enables agents to store, recall, and reason over facts, preferences, and relationships across multiple conversations and sessions.
    14
    8
    MIT
  • F
    license
    Not graded
    quality
    D
    maintenance
    An agentic memory system that enables AI assistants to store, search, and manage persistent memories with semantic understanding using natural language instructions.
  • A
    license
    Not graded
    quality
    D
    maintenance
    Provides persistent knowledge graph memory for AI agents, enabling them to store, recall, and query facts about people, projects, and relationships across sessions.
    MIT

View all related MCP servers

Related MCP Connectors

  • Persistent memory and knowledge graphs for AI agents. Hybrid search, context checkpoints, and more.

  • Persistent memory and knowledge graph for AI assistants — keyword + vector + graph search.

  • Persistent memory for AI agents — verbatim conversations, searchable by meaning.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/HamzaFarhan/memory'

If you have feedback or need assistance with the MCP directory API, please join our Discord server