{
"mcpServers": {
"wechatlog-mcp-server": {
"command": "<see-readme>",
"args": []
}
}
}No install config available. Check the server's README for setup instructions.
Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
WeChat Chatlog MCP Server - 直接下载微信聊天媒体文件到本地
Is it safe?
No package registry to scan.
No authentication — any process on your machine can connect.
MIT. View license →
Is it maintained?
Last commit 196 days ago. 28 stars.
Will it work with my client?
Transport: stdio. Works with Claude Desktop, Cursor, Claude Code, and most MCP clients.
No automated test available for this server. Check the GitHub README for setup instructions.
No known vulnerabilities.
This server is missing a description. Tools and install config are also missing.If you've used it, help the community.
Add informationHave you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
Persistent memory using a knowledge graph
Privacy-first. MCP is the protocol for tool access. We're the virtualization layer for context.
Pre-build reality check. Scans GitHub, HN, npm, PyPI, Product Hunt — returns 0-100 signal.
Monitor browser logs directly from Cursor and other MCP compatible IDEs.
MCP Security Weekly
Get CVE alerts and security updates for Wechatlog Mcp Server and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
一个专为 Claude Code CLI 设计的聊天记录 MCP 服务器,支持直接下载微信聊天中的媒体文件到本地存储。
Linux/macOS:
curl -sSL https://raw.githubusercontent.com/yourusername/wechatlog-mcp-server/main/install.sh | bash
Windows:
powershell -Command "& { iwr https://raw.githubusercontent.com/yourusername/wechatlog-mcp-server/main/install.bat | Out-String | Invoke-Expression }"
手动安装:
# 克隆项目
git clone https://github.com/yourusername/wechatlog-mcp-server.git
cd wechatlog-mcp-server
# 运行安装脚本
./install.sh
# 或使用 Node.js 安装
node install.js
.env 文件:CHATLOG_BASE_URL=http://127.0.0.1:5030
DEFAULT_DOWNLOAD_DIR=/tmp/chatlog-downloads # 默认下载目录(绝对路径)
PERPLEXITY_API_KEY=your_perplexity_api_key_here # 可选
注意: DEFAULT_DOWNLOAD_DIR 必须是绝对路径,例如:
/home/user/downloads/Users/username/DownloadsC:\Users\username\Downloadsclaude mcp add chatlog node chatlog-mcp-server.js
# 启动服务器
npm start
# 运行测试
npm test
# 查看帮助
claude mcp list
queryChatLog - 查询指定聊天对象的聊天记录getContactList - 获取微信联系人列表getChatroomList - 获取微信群聊列表getSessionList - 获取会话列表downloadImage - 下载图片文件downloadVoice - 下载语音消息downloadVideo - 下载视频文件downloadFile - 下载其他文件healthCheck - 检查服务状态accessDataFile - 访问数据文件chatlog-mcp/
├── chatlog-mcp-server.js # 主服务器文件
├── package.json # 项目配置
├── install.js # Node.js 安装脚本
├── install.sh # Linux/macOS 安装脚本
├── install.bat # Windows 安装脚本
├── test-chatlog-mcp.sh # 测试脚本
├── .env.example # 环境变量模板
├── .env # 环境配置(安装后生成)
├── downloads/ # 下载目录(自动创建)
└── logs/ # 日志目录(自动创建)
| 变量名 | 说明 | 默认值 | 必需 |
|--------|------|--------|------|
| CHATLOG_BASE_URL | Chatlog API 服务地址 | http://127.0.0.1:5030 | ✅ |
| DEFAULT_DOWNLOAD_DIR | 默认下载目录 | /tmp/chatlog-downloads | ❌ |
| PERPLEXITY_API_KEY | Perplexity API 密钥 | - | ❌ |
如果未指定 saveDir 参数,媒体文件将下载到 DEFAULT_DOWNLOAD_DIR 环境变量指定的目录:
/tmp/chatlog-downloads/saveDir 参数运行内置测试脚本:
./test-chatlog-mcp.sh
或使用 npm:
npm test
// 查询今天与文件传输助手的聊天
mcp__wechatlog__queryChatLog({
talker: "filehelper",
time: "2025-09-24"
})
// 下载图片到指定目录(可选,如不指定将使用环境变量中的默认目录)
mcp__wechatlog__downloadImage({
id: "595f549d393e960a64b9a4883a6dd1fe",
saveDir: "/Users/username/Downloads", // 可选,绝对路径
fileName: "my-image.jpg"
})
// 或使用默认目录
mcp__wechatlog__downloadImage({
id: "595f549d393e960a64b9a4883a6dd1fe",
fileName: "my-image.jpg"
})
// 搜索特定联系人
mcp__wechatlog__getContactList({
keyword: "张三",
limit: 10,
offset: 0,
format: "json"
})
# 克隆项目
git clone https://github.com/LupinLin1/chatlog-mcp-server.git
cd chatlog-mcp-server
# 安装依赖(无外部依赖)
npm install
# 开发模式运行
npm start
git checkout -b feature/AmazingFeature)git commit -m 'Add some AmazingFeature')git push origin feature/AmazingFeature)本项目采用 MIT 许可证 - 查看 LICENSE 文件了解详情。