能力标签
TeleMem
🔌
MCP工具

TeleMem

基于 Python · 让 AI 助手直接操作你的系统与工具
英文名:telemem
⭐ 470 Stars 🍴 34 Forks 💻 Python 📄 Apache-2.0 🏷 AI 8.0分
8.0AI 综合评分
mcpagentai-agentsconversational-ai
✦ AI Skill Hub 推荐

TeleMem 是 AI Skill Hub 本期精选MCP工具之一。综合评分 8.0 分,整体质量较高。我们强烈推荐将其纳入你的 AI 工具库,帮助提升工作效率。

📚 深度解析

TeleMem 是一款基于 MCP(Model Context Protocol)标准协议的 AI 工具扩展。MCP 协议由 Anthropic 开发并开源,旨在建立 AI 模型与外部工具之间的标准化通信接口,目前已被 Claude Desktop、Claude Code、Cursor 等主流 AI 工具采纳。

通过安装 TeleMem,你的 AI 助手将获得额外的工具调用能力,可以用自然语言直接操控该工具的功能,无需学习复杂的命令行语法。MCP 工具的核心价值在于"一次配置,永久增强"——配置完成后,每次与 AI 对话时都可以无缝调用这些工具。

在技术实现上,MCP 工具通过标准的 JSON-RPC 协议与 AI 客户端通信,工具的功能以"工具列表"的形式暴露给 AI 模型,AI 可以按需调用。TeleMem 提供了结构化的工具调用接口,使 AI 模型能够精确地理解和使用每个功能点,显著降低 AI 在工具使用上的错误率。

与传统的 API 集成相比,MCP 工具的优势在于无需编写代码——用户只需在配置文件中添加几行 JSON,即可让 AI 获得全新能力。AI Skill Hub 将 TeleMem 评为 AI 评分 8.0 分,属于同类工具中的优质选择。

📋 工具概览

TeleMem 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。

GitHub Stars
⭐ 470
开发语言
Python
支持平台
Windows / macOS / Linux
维护状态
轻量级项目,按需更新
开源协议
Apache-2.0
AI 综合评分
8.0 分
工具类型
MCP工具
Forks
34

📖 中文文档

以下内容由 AI Skill Hub 根据项目信息自动整理,如需查看完整原始文档请访问底部「原始来源」。

TeleMem 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。

📌 核心特色
  • 通过标准 MCP 协议与 Claude、Cursor 等主流 AI 客户端深度集成
  • 提供结构化工具调用接口,显著降低 AI 集成复杂度
  • 支持 Claude Desktop 和 Claude Code 无缝接入,开箱即用
  • 可与其他 MCP 工具组合叠加,构建完整 AI 工作站
  • 轻量无侵入设计,不影响现有系统架构
🎯 主要使用场景
  • 在 Claude Desktop 对话中直接调用本地工具,实现 AI 与系统的深度联动
  • 通过自然语言驱动复杂的多步骤自动化任务,代替繁琐手动操作
  • 将多个 MCP 工具组合使用,构建个人专属 AI 工作站
以下安装命令基于项目开发语言和类型自动生成,实际以官方 README 为准。
安装命令
# 方式一:通过 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
📋 安装步骤说明
  1. 确认已安装 Node.js(v18 或以上版本)
  2. 打开 Claude Desktop 或 Claude Code 的 MCP 配置文件
  3. 按「交给 Agent 安装 → Claude Desktop」标签中的 JSON 配置填入 mcpServers 字段
  4. 保存配置文件并重启 Claude 客户端
  5. 重启后,在对话中即可使用本工具
以下用法示例由 AI Skill Hub 整理,涵盖最常见的使用场景。
常用命令 / 代码示例
# 安装后在 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 生效
📑 README 深度解析 真实文档 完整度 77/100 含工作流图 查看 GitHub 原文 →
以下内容由系统直接从 GitHub README 解析整理,保留代码块、表格与列表结构。

简介

<p align="center"> <a href="https://github.com/TeleAI-UAGI/telemem"> <img src="./assets/TeleMem.png" width="40%" /> </a> </p>

TeleMem: Building Long-Term and Multimodal Memory for Agentic AI

<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>

**If you find this project helpful, please give us a ⭐️ on GitHub for the latest update.**

🤝 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.

Project Introduction

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.

flowchart LR A["Dialogue
messages"] --> B["Character-aware
summarization
(global + per-character)"] B --> C["Embedding +
similar-memory
retrieval"] C --> D["Write buffer
(batch flush)"] D --> E["LLM semantic
clustering & fusion"] E --> F[("FAISS index +
JSON metadata")] Q["Query"] --> S["Vector search
+ rerank"] F --> S S --> R["results"]

🔥 Research Highlights

  • Significantly improved memory accuracy: Achieved 86.33% accuracy on the ZH-4O Chinese multi-character long-dialogue benchmark, 19% higher than Mem0.
  • Doubled speed performance: Millisecond-level semantic retrieval enabled by efficient buffering and batch writing.
  • Greatly reduced token cost: Optimized token usage delivers the same performance with significantly lower LLM overhead.
  • Precise character memory preservation: Automatically builds independent memory profiles for each character, eliminating confusion.
  • Automated Video Processing Pipeline: From raw video → frame extraction → caption generation → vector database, fully automated
  • ReAct-Style Video QA: Multi-step reasoning + tool calling for precise video content understanding

---

Features

  • Automatic memory extraction: Extracts and structures key facts from dialogues.
  • Semantic clustering & deduplication: Uses LLMs to semantically merge similar memories, reducing conflicts and improving consistency.
  • Character-profiled memory management: Builds independent memory archives for each character in a dialogue, ensuring precise isolation and personalized management.
  • Efficient asynchronous writing: Employs a buffer + batch-flush mechanism for high-performance, stable persistence.
  • Precise semantic retrieval: Combines FAISS + JSON dual storage for fast recall and human-readable auditability.

Installation

pip install telemem            # core (text memory)
pip install "telemem[mcp]"     # + MCP server
pip install "telemem[video]"   # + video/multimodal pipeline
pip install "telemem[all]"     # everything

Install from source (editable), with the extras you need

pip install -e ".[all]" ```

Quick Start

Example

Set your OpenAI API key:

export OPENAI_API_KEY="your-openai-api-key"

```python

python examples/quickstart.py

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 ```

Multimodal Example

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

📄 Metadata Example (_meta.json)

{
 "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.

------

Experimental Configuration

| Method | Overall(%) | |:--------------------------------------------------------- |:---------- | | RAG | 62.45 | | _Mem0 | 70.20 | | MOOM | 72.60 | | A-mem | 73.78 | | Memobase | 76.78 | | TeleMem | 86.33 |

---

Development Environment

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

Create and activate virtual environment

conda create -n telemem python=3.10 conda activate telemem

Multimodal Extensions

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.

MethodDescription
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

Framework Integrations

TeleMem drops into any agent framework with the same two calls — search() before answering, add() after each exchange:

FrameworkExampleInstall
**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 vs Mem0: Core Advantages

TeleMem deeply refactors Mem0 to address characterization, long-term memory, and high performance. Key differences:

Capability DimensionMem0TeleMem
Multi-character separation❌ Not supported✅ Automatically creates **independent memory profiles** per character
Summary qualityBasic summarization✅ **Context-aware + character-focused prompts** covering key entities, actions, and timestamps
Deduplication mechanismVector similarity filtering✅ **LLM-based semantic clustering**: merges similar memories via LLM
Write performanceStreaming, single writes✅ **Batch flush + concurrency**: 2–3× faster writes
Storage formatSQLite / vector DB✅ **FAISS + JSON metadata dual-write**: fast retrieval + human-readable

| Multimodal Capability | Single image to text only | ✅ **Video Multimodal Memory**: Full video processing pipeline + ReAct multi-step reasoning QA |

🇨🇳 中文文档镜像 AI 翻译 2026-07-07
英文原文章节由系统翻译为中文摘要,便于快速理解。完整原文见上方 "📑 README 深度解析"。
📌 简介

TeleMem 是专为 Agentic AI 设计的长效多模态记忆系统。它通过深度优化的流水线——包括角色感知摘要(Character-aware summarization)、语义聚类去重(Semantic clustering deduplication)、高效存储与精准检索——使对话式 AI 能够在长期交互中保持稳定、自然且连续的世界观与角色设定,解决 AI 记忆易丢失或冲突的痛点。

⚡ 功能介绍

TeleMem 具备自动记忆提取功能,能从对话中结构化关键事实。通过语义聚类与去重技术,利用 LLM 合并相似记忆,有效减少冲突并提升一致性。系统支持角色画像记忆管理(Character-profiled memory management),为对话中的每个角色构建独立的记忆档案,实现精准隔离。此外,其检索性能达到毫秒级,且通过优化 Token 使用显著降低了 LLM 的调用成本。

🛠 安装步骤(Docker/pip/源码)

可以通过 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 如何在对话中管理和检索记忆。

⚙️ 配置说明(含 MCP / env)

项目在实验配置中使用了 Qwen3-8B(禁用 thinking mode)作为 LLM,并配合 Qwen3-Embedding-8B 作为 Embedding 模型。在开发环境下,推荐使用 uv 工具通过 `uv sync --all-extras` 来同步包含 MCP 在内的所有扩展依赖,确保开发环境的一致性与高效性。

🔄 工作流/模块

TeleMem 提供了强大的框架集成能力,可以无缝接入任何 Agent 框架(如 LangChain)。其核心工作流非常简洁:在 AI 回答前调用 `search()` 进行记忆检索,在每次对话交换后调用 `add()` 进行记忆存储。此外,通过 Multimodal Extensions 模块,TeleMem 扩展了多模态记忆能力,支持智能的视频与图像语义处理。

❓ FAQ 摘要

关于多模态能力,TeleMem 目前支持视频与图像的智能存储与语义检索。虽然在单图转文本方面有特定表现,但通过借鉴 Deep Video Discovery 的 Agentic Search 方案,TeleMem 能够实现更高级的智能搜索与工具调用能力。

🎯 aiskill88 AI 点评 A 级 2026-07-07

高性能MCP工具,适合对话式AI

📚 实用指南(长尾问题)
适合谁
  • 需要让 Claude / Cursor 操作本地工具的 AI 工程师
  • 构建多智能体协作系统的 Agent 开发者
  • 构建企业知识库 / RAG 检索应用的团队
最佳实践
  • 配置 MCP 服务器时建议使用 stdio 传输 + JSON-RPC,避免暴露公网
  • 本地部署优先选 GGUF 量化模型,节省显存并保持响应速度
  • 分块大小建议 256-512 tokens,向量库优选 pgvector 或 Qdrant
  • Agent 任务先做 dry-run 验证工具调用链,再开启自主执行
常见错误
  • API key 直接提交到 git 仓库(请用 .env 并加入 .gitignore)
  • MCP 配置路径拼错或权限不足,重启 Claude Desktop 才生效
  • embedding 模型与查询模型不一致导致检索失效
  • 显存不足直接 OOM — 优先降低 context 或换更小的量化模型
  • Python 依赖冲突:建议用 venv / uv 隔离环境
部署方案
  • 本地部署:CPU 8GB 起,GPU 推荐 16GB+ 显存
  • 云端托管:可放在 Vercel / Railway / Fly.io 等 PaaS 平台
相关搜索
telemem 中文教程telemem 安装报错怎么办telemem MCP 配置telemem Agent 工作流telemem 与同类工具对比telemem 最佳实践telemem 适合谁用

⚡ 核心功能

👥 适合谁
  • 需要让 Claude / Cursor 操作本地工具的 AI 工程师
  • 构建多智能体协作系统的 Agent 开发者
  • 构建企业知识库 / RAG 检索应用的团队
⭐ 最佳实践
  • 配置 MCP 服务器时建议使用 stdio 传输 + JSON-RPC,避免暴露公网
  • 本地部署优先选 GGUF 量化模型,节省显存并保持响应速度
  • 分块大小建议 256-512 tokens,向量库优选 pgvector 或 Qdrant
  • Agent 任务先做 dry-run 验证工具调用链,再开启自主执行
⚠️ 常见错误
  • API key 直接提交到 git 仓库(请用 .env 并加入 .gitignore)
  • MCP 配置路径拼错或权限不足,重启 Claude Desktop 才生效
  • embedding 模型与查询模型不一致导致检索失效
  • 显存不足直接 OOM — 优先降低 context 或换更小的量化模型

👥 适合人群

Claude Desktop / Claude Code 用户AI 工具开发者需要扩展 AI 能力的专业人士自动化工程师

🎯 使用场景

  • 在 Claude Desktop 对话中直接调用本地工具,实现 AI 与系统的深度联动
  • 通过自然语言驱动复杂的多步骤自动化任务,代替繁琐手动操作
  • 将多个 MCP 工具组合使用,构建个人专属 AI 工作站

⚖️ 优点与不足

✅ 优点
  • +Apache-2.0 协议,可免费商用
  • +标准化 MCP 协议,生态互联性强
  • +与 Claude 官方生态无缝对接
  • +即插即用,配置简单快捷
⚠️ 不足
  • 依赖 Claude 客户端,非 Claude 用户无法使用
  • MCP 协议仍在持续演进,接口可能变更
  • 需要一定的配置步骤
⚠️ 使用须知

AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。

建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。

📄 License 说明

✅ Apache 2.0 — 宽松开源协议,可商用,需保留版权声明和 NOTICE 文件,含专利授权条款。

🔗 相关工具推荐

📚 相关教程推荐
📰 相关 AI 新闻
🍿 AI 圈相关吃瓜
🗺️ 相关解决方案
🧩 你可能还需要
基于当前 Skill 的能力图谱,自动补全的工具组合

❓ 常见问题 FAQ

telemem 是一款Python开发的AI辅助工具。开源MCP工具:TeleMem is a high-performance drop-in replacement for Mem0, featuring semantic d。⭐470 · Python 主要应用场景包括:对话式AI。
💡 AI Skill Hub 点评

经综合评估,TeleMem 在MCP工具赛道中表现稳健,质量优秀。如果你已有明确的使用需求,可以直接上手体验;如果还在评估阶段,建议对比同类工具后再做决策。

⬇️ 获取与下载
⬇ 下载源码 ZIP

✅ Apache-2.0 协议 · 可免费商用 · 直接从 aiskill88 服务器下载,无需跳转 GitHub

📚 深入学习 TeleMem
查看分步骤安装教程和完整使用指南,快速上手这款工具
🌐 原始信息
原始名称 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
🔗 原始来源
🐙 GitHub 仓库  https://github.com/TeleAI-UAGI/telemem 🌐 官方网站  https://teleai-uagi.github.io/telemem/

收录时间:2026-07-07 · 更新时间:2026-07-11 · License:Apache-2.0 · AI Skill Hub 不对第三方内容的准确性作法律背书。

📺 订阅 AI Skill Hub Daily Telegram 频道
每天 8 条精选 AI Skill、MCP、Agent 与自动化工具推送
加入频道 →