line

line

Reads local LINE chat history from your own computer and summarizes daily conversations through Claude Code, extracting decryption keys from LINE's memory on Windows.

Category
Visit Server

README

line-summary

用 Claude Code 讀本機 LINE 電腦版的聊天記錄,整理成每日摘要。整個過程只在你自己的電腦、你自己登入的 LINE 上跑,金鑰不落地、不連網。

需要什麼

  • Windows。金鑰提取靠 Windows 的 ReadProcessMemory,Mac 和 Linux 用不了。
  • LINE 電腦版,開著而且已登入。金鑰只存在 LINE 的記憶體裡,關掉就讀不到了。
  • Python 3.11 以上。
  • Claude Code。

安裝

git clone https://github.com/yung13yubabie/line-summary.git
cd line-summary
pip install -r requirements.txt

註冊到 Claude Code

專案裡已經有一份 .mcp.json。在這個資料夾裡開 Claude Code,它就會載入名叫 line 的 MCP server,第一次會問你要不要信任,選同意。

想在任何資料夾都叫得到,改成全域註冊,把路徑換成 clone 下來的實際位置:

claude mcp add line --scope user -- python C:\path\to\line-summary\line_mcp_server.py

全域註冊要寫絕對路徑,因為啟動時的工作目錄不一定在專案裡。專案內附的 .mcp.json 用相對路徑,不需要改。

怎麼用

在專案資料夾開 Claude Code,直接用中文講就行:

  • 總結「XXX 群組」今天的對話
  • 幫我看「XXX」最近三天聊了什麼

Claude 會呼叫三個工具把訊息撈出來,照 skills/line-summary/SKILL.md 的格式整理成摘要。

第一次呼叫要等大概 80 秒,它在掃 LINE 的記憶體找解密金鑰。找到之後會記住,同一個 session 後面都很快。

換一個新 session

不用特別做什麼。LINE 開著、在專案資料夾重開 Claude Code,line server 會再載入一次,照上面講一句話就好。

金鑰不存檔,所以每個新 session 的第一次呼叫會再花那 80 秒重找一次。這是刻意的,換來的是金鑰不會留在硬碟上。

摘要存在哪

存在 output/ 底下,這個資料夾已經寫進 .gitignore。裡面是真實對話內容,包含別人的發言,別放到公開的地方。

安全與分寸

  • 只讀你自己電腦、你自己登入的 LINE。金鑰在記憶體裡用完就算了,不寫檔、不寫 log、不上網。
  • 群組和開放聊天室裡有別人的訊息。自己整理來看沒問題,要公開之前先想一下。
  • 目前只在 LINE 電腦版 26.3 上試過(它用 wxSQLite3 的 aes128cbc 加密)。LINE 改版可能就要重新對加密方式,過程記在 spike/FINDINGS.md

動不了的時候

  • 「LINE is not running」:LINE 沒開或沒登入。
  • 掃不到金鑰、或每個候選都解不開:多半是 LINE 更新過,加密方式變了。先看 spike/FINDINGS.md 裡怎麼查的。
  • 用系統管理員開 terminal 有時能讀到更多記憶體區段。

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured