Chat Logger

by alexifeng

4 stars
Not rated
GitHub

About

Saves chat conversations as formatted Markdown files with timestamps and role information for record-keeping and analysis.

Details

Author
alexifeng
Repository
AlexiFeng/MCP_Chat_Logger
GitHub stars
4
License
MIT License
Categories
Community, AI, Developer Tools, File Management, Communication, Knowledge Base

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name Chat Logger
    Command (node, npx, python, etc.) uv
    Arguments
    • Argument 1 --directory
    • Argument 2 项目路径(例如~/MCP_Chat_Logger/)
    • Argument 3 run
    • Argument 4 chat_logger.py

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

To install MCP Chat Logger for Claude Desktop automatically via Smithery:

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

2. 安装依赖:
提前安装uv

uv add "mcp[cli]"

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "chat logger": {
            "cwd": "\u9879\u76ee\u8def\u5f84\uff08\u4f8b\u5982~/MCP_Chat_Logger/\uff09",
            "env": {},
            "args": [
                "--directory",
                "\u9879\u76ee\u8def\u5f84\uff08\u4f8b\u5982~/MCP_Chat_Logger/\uff09",
                "run",
                "chat_logger.py"
            ],
            "command": "uv"
        }
    }
}

Linux

{
    "cwd": "\u9879\u76ee\u8def\u5f84\uff08\u4f8b\u5982~/MCP_Chat_Logger/\uff09",
    "env": [],
    "args": [
        "--directory",
        "\u9879\u76ee\u8def\u5f84\uff08\u4f8b\u5982~/MCP_Chat_Logger/\uff09",
        "run",
        "chat_logger.py"
    ],
    "command": "uv"
}

Macos

{
    "cwd": "\u9879\u76ee\u8def\u5f84\uff08\u4f8b\u5982~/MCP_Chat_Logger/\uff09",
    "env": [],
    "args": [
        "--directory",
        "\u9879\u76ee\u8def\u5f84\uff08\u4f8b\u5982~/MCP_Chat_Logger/\uff09",
        "run",
        "chat_logger.py"
    ],
    "command": "uv"
}

Windows

{
    "cwd": "\u9879\u76ee\u8def\u5f84\uff08\u4f8b\u5982~/MCP_Chat_Logger/\uff09",
    "env": [],
    "args": [
        "--directory",
        "\u9879\u76ee\u8def\u5f84\uff08\u4f8b\u5982~/MCP_Chat_Logger/\uff09",
        "run",
        "chat_logger.py"
    ],
    "command": "uv"
}

MCP Chat Logger

smithery badge

<div align="center">
<a href="README_zh.md">中文</a> | <a href="README_en.md">English</a>
</div>

---

MCP Chat Logger是一个简单而强大的聊天记录保存工具,可以将聊天历史保存为Markdown格式文件,便于后续查看和分享。

功能特点

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

下一阶段


添加Overview功能

安装步骤

Installing via Smithery

To install MCP Chat Logger for Claude Desktop automatically via Smithery:

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

2. 安装依赖:
提前安装uv

uv add "mcp[cli]"

使用方法

1. 在项目目录启动mcp服务

uv run chat_logger.py

2. 在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 文件。

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.