TeleMem 是 AI Skill Hub 本期精选MCP工具之一。综合评分 8.0 分,整体质量较高。我们强烈推荐将其纳入你的 AI 工具库,帮助提升工作效率。
TeleMem 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。
TeleMem 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。
# 方式一:通过 Claude Code CLI 一键安装
claude skill install https://github.com/TeleAI-UAGI/telemem
# 方式二:手动配置 claude_desktop_config.json
{
"mcpServers": {
"telemem": {
"command": "npx",
"args": ["-y", "telemem"]
}
}
}
# 配置文件位置
# macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
# Windows: %APPDATA%/Claude/claude_desktop_config.json
# 安装后在 Claude 对话中直接使用 # 示例: 用户: 请帮我用 TeleMem 执行以下任务... Claude: [自动调用 TeleMem MCP 工具处理请求] # 查看可用工具列表 # 在 Claude 中输入:"列出所有可用的 MCP 工具"
// claude_desktop_config.json 配置示例
{
"mcpServers": {
"telemem": {
"command": "npx",
"args": ["-y", "telemem"],
"env": {
// "API_KEY": "your-api-key-here"
}
}
}
}
// 保存后重启 Claude Desktop 生效
<p align="center"> <a href="https://github.com/TeleAI-UAGI/telemem"> <img src="./assets/TeleMem.png" width="40%" /> </a> </p>
<p align="center"> <a href="https://arxiv.org/abs/2601.06037"> <img src="https://img.shields.io/badge/arXiv-Paper-red" alt="arXiv"> </a> <a href="https://github.com/TeleAI-UAGI/telemem/actions/workflows/ci.yml"> <img src="https://github.com/TeleAI-UAGI/telemem/actions/workflows/ci.yml/badge.svg" alt="CI"> </a> <a href="https://pypi.org/project/telemem/"> <img src="https://img.shields.io/pypi/v/telemem?color=blue" alt="PyPI"> </a> <a href="https://github.com/TeleAI-UAGI/telemem"> <img src="https://img.shields.io/github/stars/TeleAI-UAGI/TeleMem?style=social" alt="GitHub Stars"> </a> <a href="https://github.com/TeleAI-UAGI/TeleMem/blob/main/LICENSE"> <img src="https://img.shields.io/badge/license-Apache%20License%202.0-blue" alt="License: Apache 2.0"> </a> <img src="https://img.shields.io/github/last-commit/TeleAI-UAGI/TeleMem?color=blue" alt="Last Commit"> <img src="https://img.shields.io/badge/PRs-Welcome-red" alt="PRs Welcome"> <a href="https://mcpvault.io/servers/telemem/health?utm_source=external_badge&utm_medium=referral&utm_campaign=mcp_health_report"> <img src="https://mcpvault.io/badge/telemem.svg" alt="MCPVault: verified"> </a> </p>
🤝 Contributions welcome! Feel free to open an issue or submit a pull request.
</div>
---
TeleMem is an agent memory management layer that can be used as <mark>a high-performance drop-in replacement for Mem0 with one line of code (import telemem as mem0)</mark>, deeply optimized for complex scenarios involving multi-turn dialogues, character modeling, long-term information storage, and semantic retrieval.
Through its unique context-aware enhancement mechanism, TeleMem provides conversational AI with core infrastructure offering higher accuracy, faster performance, and stronger character memory capabilities.
Building upon this foundation, TeleMem implements video understanding, multimodal reasoning, and visual question answering capabilities. Through a complete pipeline of video frame extraction, caption generation, and vector database construction, AI Agents can effortlessly store, retrieve, and reason over video content just like handling text memories.
The ultimate goal of the TeleMem project is to use an agent's hindsight to improve its foresight.
TeleMem, where memory lives on and intelligence grows strong.
TeleMem enables conversational AI to maintain stable, natural, and continuous worldviews and character settings during long-term interactions through a deeply optimized pipeline of character-aware summarization → semantic clustering deduplication → efficient storage → precise retrieval.
---
pip install telemem # core (text memory)
pip install "telemem[mcp]" # + MCP server
pip install "telemem[video]" # + video/multimodal pipeline
pip install "telemem[all]" # everything
pip install -e ".[all]" ```
Set your OpenAI API key:
export OPENAI_API_KEY="your-openai-api-key"
```python
import telemem as mem0
memory = mem0.Memory()
messages = [ {"role": "user", "content": "Jordan, did you take the subway to work again today?"}, {"role": "assistant", "content": "Yes, James. The subway is much faster than driving. I leave at 7 o'clock and it's just not crowded."}, {"role": "user", "content": "Jordan, I want to try taking the subway too. Can you tell me which station is closest?"}, {"role": "assistant", "content": "Of course, James. You take Line 2 to Civic Center Station, exit from Exit A, and walk 5 minutes to the company."} ]
memory.add(messages=messages, user_id="Jordan") results = memory.search("What transportation did Jordan use to go to work today?", user_id="Jordan") for hit in results["results"]: # same result shape as mem0 print(hit["memory"])
`Memory()` uses the default provider settings inherited from `mem0ai`. To use the repository's local Qwen + FAISS configuration, load `config/config.yaml` explicitly:
python from telemem.utils import load_config import telemem as mem0
config = load_config("config/config.yaml") memory = mem0.Memory(config=config)
The runnable examples also honor the same configuration through `TELEMEM_CONFIG`:
shell TELEMEM_CONFIG=config/config.yaml python examples/quickstart.py ```
Run the multimodal demo:
python examples/quickstart_mm.py
On the first run, frames, captions and VDB JSON will be generated under the chosen output_dir. The repository ships a small sample video; generating captions and the video database still requires configured VLM and embedding services unless you already have these artifacts locally.
Complete code example:
```python import telemem as mem0 from pathlib import Path from telemem.mm_utils.core import extract_choice_from_msg
{
"summary": "Characters discussed the upcoming action plan.",
"sample_id": "session_001",
"round_index": 3,
"timestamp": "2024-01-01T00:00:00Z",
"user": "Jordan" // Only present in person_*.json
}
All memories include summary, round number, timestamp, and character, facilitating auditing and debugging.
------
| Method | Overall(%) | |:--------------------------------------------------------- |:---------- | | RAG | 62.45 | | _Mem0 | 70.20 | | MOOM | 72.60 | | A-mem | 73.78 | | Memobase | 76.78 | | TeleMem | 86.33 |
---
Using uv (recommended — creates .venv from the committed uv.lock for a reproducible environment):
uv sync --all-extras # install TeleMem (editable) + all extras, incl. MCP
uv run python examples/quickstart.py
Or with conda + pip:
```shell
conda create -n telemem python=3.10 conda activate telemem
Beyond text memory, TeleMem further extends multimodal capabilities. Drawing inspiration from Deep Video Discovery's Agentic Search and Tool Use approach, we implemented two core methods in the TeleMemory class to support intelligent storage and semantic retrieval of video content.
| Method | Description |
|---|---|
add_mm() | Process video into retrievable memory (frame extraction → caption generation → vector database) |
search_mm() | Query video content using natural language, supporting ReAct-style multi-step reasoning |
TeleMem drops into any agent framework with the same two calls — search() before answering, add() after each exchange:
| Framework | Example | Install |
|---|---|---|
| **LangChain** | [examples/langchain_memory.py](examples/langchain_memory.py) | pip install langchain-core langchain-openai |
| **LlamaIndex** | [examples/llamaindex_memory.py](examples/llamaindex_memory.py) | pip install llama-index-llms-openai |
| **Claude Desktop / Cursor / any MCP client** | [MCP Server](#mcp-server) | pip install "telemem[mcp]" |
Because TeleMem is mem0 API-compatible, any framework adapter written for Mem0's OSS client also works — point it at telemem.Memory instead.
---
TeleMem deeply refactors Mem0 to address characterization, long-term memory, and high performance. Key differences:
| Capability Dimension | Mem0 | TeleMem |
|---|---|---|
| Multi-character separation | ❌ Not supported | ✅ Automatically creates **independent memory profiles** per character |
| Summary quality | Basic summarization | ✅ **Context-aware + character-focused prompts** covering key entities, actions, and timestamps |
| Deduplication mechanism | Vector similarity filtering | ✅ **LLM-based semantic clustering**: merges similar memories via LLM |
| Write performance | Streaming, single writes | ✅ **Batch flush + concurrency**: 2–3× faster writes |
| Storage format | SQLite / vector DB | ✅ **FAISS + JSON metadata dual-write**: fast retrieval + human-readable |
TeleMem 是专为 Agentic AI 设计的长效多模态记忆系统。它通过深度优化的流水线——包括角色感知摘要(Character-aware summarization)、语义聚类去重(Semantic clustering deduplication)、高效存储与精准检索——使对话式 AI 能够在长期交互中保持稳定、自然且连续的世界观与角色设定,解决 AI 记忆易丢失或冲突的痛点。
TeleMem 具备自动记忆提取功能,能从对话中结构化关键事实。通过语义聚类与去重技术,利用 LLM 合并相似记忆,有效减少冲突并提升一致性。系统支持角色画像记忆管理(Character-profiled memory management),为对话中的每个角色构建独立的记忆档案,实现精准隔离。此外,其检索性能达到毫秒级,且通过优化 Token 使用显著降低了 LLM 的调用成本。
可以通过 pip 进行快速安装。基础文本记忆功能使用 `pip install telemem`;若需集成 MCP server,请使用 `pip install "telemem[mcp]"`;若需视频/多模态流水线,请使用 `pip install "telemem[video]"`。推荐开发者使用 `pip install -e ".[all]"` 以源码编辑模式安装完整功能。此外,项目推荐使用 uv 进行环境管理以确保环境可复现。
快速上手非常简单。首先需要设置您的 OpenAI API key:`export OPENAI_API_KEY="your-openai-api-key"`。随后即可通过 Python 调用 `mem0.Memory()` 初始化记忆对象,并使用相关接口处理对话消息。通过运行 `examples/quickstart.py` 示例脚本,您可以直观体验 TeleMem 如何在对话中管理和检索记忆。
项目在实验配置中使用了 Qwen3-8B(禁用 thinking mode)作为 LLM,并配合 Qwen3-Embedding-8B 作为 Embedding 模型。在开发环境下,推荐使用 uv 工具通过 `uv sync --all-extras` 来同步包含 MCP 在内的所有扩展依赖,确保开发环境的一致性与高效性。
TeleMem 提供了强大的框架集成能力,可以无缝接入任何 Agent 框架(如 LangChain)。其核心工作流非常简洁:在 AI 回答前调用 `search()` 进行记忆检索,在每次对话交换后调用 `add()` 进行记忆存储。此外,通过 Multimodal Extensions 模块,TeleMem 扩展了多模态记忆能力,支持智能的视频与图像语义处理。
关于多模态能力,TeleMem 目前支持视频与图像的智能存储与语义检索。虽然在单图转文本方面有特定表现,但通过借鉴 Deep Video Discovery 的 Agentic Search 方案,TeleMem 能够实现更高级的智能搜索与工具调用能力。
高性能MCP工具,适合对话式AI
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ Apache 2.0 — 宽松开源协议,可商用,需保留版权声明和 NOTICE 文件,含专利授权条款。
经综合评估,TeleMem 在MCP工具赛道中表现稳健,质量优秀。如果你已有明确的使用需求,可以直接上手体验;如果还在评估阶段,建议对比同类工具后再做决策。
| 原始名称 | telemem |
| 原始描述 | 开源MCP工具:TeleMem is a high-performance drop-in replacement for Mem0, featuring semantic d。⭐470 · Python |
| Topics | mcpagentai-agentsconversational-ai |
| GitHub | https://github.com/TeleAI-UAGI/telemem |
| License | Apache-2.0 |
| 语言 | Python |
收录时间:2026-07-07 · 更新时间:2026-07-11 · License:Apache-2.0 · AI Skill Hub 不对第三方内容的准确性作法律背书。
选择 Agent 类型,复制安装指令后粘贴到对应客户端