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"> </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 |
高性能MCP工具,适合对话式AI
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ Apache 2.0 — 宽松开源协议,可商用,需保留版权声明和 NOTICE 文件,含专利授权条款。
经综合评估,TeleMem 在MCP工具赛道中表现稳健,质量优秀。如果你已有明确的使用需求,可以直接上手体验;如果还在评估阶段,建议对比同类工具后再做决策。
| 原始名称 | telemem |
| Topics | mcpagentai-agentsconversational-ai |
| GitHub | https://github.com/TeleAI-UAGI/telemem |
| License | Apache-2.0 |
| 语言 | Python |
收录时间:2026-07-07 · 更新时间:2026-07-07 · License:Apache-2.0 · AI Skill Hub 不对第三方内容的准确性作法律背书。
选择 Agent 类型,复制安装指令后粘贴到对应客户端