Skip to main content
Glama

MemOS-MCP

by qinshu1109
load_from_remote.py646 B
from memos.mem_cube.general import GeneralMemCube # Load a MemCube from a directory mem_cube = GeneralMemCube.init_from_remote_repo( "Ki-Seki/mem_cube_2", base_url="https://huggingface.co/datasets" ) # Print all items in the text memory textual_memory_items = mem_cube.text_mem.get_all() for memory_item in textual_memory_items: print(memory_item) print() # Print all items in the activation memory activation_memory_items = mem_cube.act_mem.get_all() for memory_item in activation_memory_items: print(memory_item) print() # Dump the memories to a specified directory with MemCube structure mem_cube.dump("tmp/mem_cube")

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/qinshu1109/memos-MCP'

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