
hannesrudolph/imessage-query-fastmcp-mcp-server 是从 https://github.com/hannesrudolph/imessage-query-fastmcp-mcp-server. 导入的 MCP 服务器候选
概览
hannesrudolph/imessage-query-fastmcp-mcp-server 是从 https://github.com/hannesrudolph/imessage-query-fastmcp-mcp-server. 导入的 MCP 服务器候选
概述(AI 翻译)
一个MCP服务器,通过模型上下文协议(MCP)提供对您的iMessage数据库的安全访问。该服务器采用FastMCP框架和imessagedb库构建,使LLM能够通过正确的电话号码验证和分析附件处理来查询和分析iMessage对话。
📋 系统需求
- macOS(访问iMessage数据库所需)
- Python 3.6+
📦 依赖关系
安装所有必需的依赖:
必需包裹
- fastmcp:构建模型上下文协议服务器的框架
- imessagedb:用于访问和查询macOS消息数据库的Python库
- 电话号码:谷歌用于正确验证和格式化的电话号码处理库
所有依赖关系均在requirements.txt中指定,便于安装。
📑 目录
- 系统需求
- 依赖关系
- MCP 工具
- 入门指南
- 安装选项
- Claude桌面
- Cline VSCode 插件
- 安全特征
- 开发文档
- 环境变量
🛠️ MCP工具
服务器向大型语言模型展示以下工具:
get_chat_transcript
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
iMessage Query MCP Server
An MCP server that provides safe access to your iMessage database through Model Context Protocol (MCP). This server is built with the FastMCP framework and the imessagedb library, enabling LLMs to query and analyze iMessage conversations with proper phone number validation and attachment handling.
📋 System Requirements
- macOS (required for iMessage database access)
- Python 3.6+
📦 Dependencies
Install all required dependencies:
# Using pip
pip install -r requirements.txt
Required Packages
- fastmcp: Framework for building Model Context Protocol servers
- imessagedb: Python library for accessing and querying the macOS Messages database
- phonenumbers: Google’s phone number handling library for proper number validation and formatting
All dependencies are specified in requirements.txt for easy installation.
📑 Table of Contents
- System Requirements
- Dependencies
- MCP Tools
- Getting Started
- Installation Options
- Safety Features
- Development Documentation
- Environment Variables
🛠️ MCP Tools
The server exposes the following tools to LLMs:
get_chat_transcript
Retrieve message history for a specific phone number with optional date filtering. Includes:
- Message text and timestamps
- Attachment information (if any)
- Proper phone number validation
- Date range filtering
🚀 Getting Started
Clone the repository:
git clone https://github.com/hannesrudolph/imessage-query-fastmcp-mcp-server.git
cd imessage-query-fastmcp-mcp-server
📦 Installation Options
You can install this MCP server in either Claude Desktop or the Cline VSCode plugin. Choose the option that best suits your needs.
Option 1: Install for Claude Desktop
Install using FastMCP:
fastmcp install imessage-query-server.py --name "iMessage Query"
Option 2: Install for Cline VSCode Plugin
To use this server with the Cline VSCode plugin:
- In VSCode, click the server icon (☰) in the Cline plugin sidebar
- Click the “Edit MCP Settings” button (✎)
- Add the following configuration to the settings file:
{
"imessage-query": {
"command": "uv",
"args": [
"run",
"--with",
"fastmcp",
"fastmcp",
"run",
"/path/to/repo/imessage-query-server.py"
]
}
}
Replace /path/to/repo with the full path to where you cloned this repository (e.g., /Users/username/Projects/imessage-query-fastmcp-mcp-server)
🔒 Safety Features
- Read-only access to the iMessage database
- Phone number validation using the phonenumbers library
安装
This server does not publish a one-line install command.
Open the repository installation guide 新手?先看 mcpskill.org 教程 →