Back to MCP directory
publicPublicdnsLocal runtime

Chat Logger

MCP Chat Logger是一个将聊天记录保存为Markdown格式的工具

article

README

🚀 MCP 聊天日志器

MCP 聊天日志器是一款简单且强大的聊天记录保存工具,它能将聊天历史保存为 Markdown 格式文件,方便后续查看与分享。

🚀 快速开始

MCP 聊天日志器可以帮您轻松保存聊天记录。您可以按照如下步骤进行安装和使用。

✨ 主要特性

  • 支持大模型调用工具将聊天历史保存为格式化的 Markdown 文件。
  • 自动为每条消息添加时间戳。
  • 可自定义保存目录。
  • 支持会话 ID 标识不同的对话。

📦 安装指南

通过 Smithery 安装

要通过 Smithery 自动安装 MCP 聊天日志器,可执行以下命令:

npx -y @smithery/cli install @AlexiFeng/MCP_Chat_Logger --client claude

手动安装

  1. 克隆这个代码库:
git clone https://github.com/yourusername/MCP_Chat_Logger.git
cd MCP_Chat_Logger
  1. 安装依赖: 提前安装 uv,然后执行以下命令:
uv add "mcp[cli]"

💻 使用示例

基础用法

  1. 在项目目录启动 mcp 服务:
uv run chat_logger.py
  1. 在 cursor/cherry studio 中添加 mcp 服务器配置:
"chat_logger": {
      "name": "chat_logger",
      "isActive": false,
      "command": "uv",
      "args": [
        "--directory",
        "项目路径(例如~/MCP_Chat_Logger/)",
        "run",
        "chat_logger.py"
      ]
    }

📚 详细文档

项目结构

MCP_Chat_Logger/
├── chat_logger.py      # 核心功能实现
├── chat_logs/          # 默认保存目录
├── README.md           # 项目说明
├── README_zh.md        # 中文说明
├── README_en.md        # 英文说明
└── .gitignore          # Git 忽略文件

贡献指南

欢迎提交问题和拉取请求!如果您想贡献代码,请遵循以下步骤:

  1. Fork 这个仓库。
  2. 创建您的特性分支 (git checkout -b feature/amazing-feature)。
  3. 提交您的更改 (git commit -m 'Add some amazing feature')。
  4. 推送到分支 (git push origin feature/amazing-feature)。
  5. 开启一个 Pull Request。

📄 许可证

该项目采用 MIT 许可证 - 详情请查看 LICENSE 文件。

下一阶段计划

添加 Overview 功能。

smithery badge

中文 | English
help

Runtime guide

cloud

Hosted runtime

Hosted servers run from a provider-managed environment. You usually connect the MCP client to the hosted endpoint or follow the provider's authorization flow, without keeping a local process alive

  1. Open provider connection page
  2. Authorize or copy endpoint
  3. Connect from your MCP client
terminal

Local runtime / other methods

Local servers run on your own machine or infrastructure. You normally copy the server_config into your MCP client, install the required package, and provide env variables from env_schema when needed

  1. Copy server_config
  2. Install required package
  3. Fill env variables and restart client