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. - macOS (required for iMessage database access) - Python 3.6+ Install all required dependencies: - fa
Add this skill
npx mdskills install hannesrudolph/imessage-query-fastmcp-mcp-serverClean MCP server for querying iMessage with good safety features but excessive permissions
1# iMessage Query MCP Server23An 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.45## 📋 System Requirements67- macOS (required for iMessage database access)8- Python 3.6+910## 📦 Dependencies1112Install all required dependencies:1314```bash15# Using pip16pip install -r requirements.txt17```1819### Required Packages20- **fastmcp**: Framework for building Model Context Protocol servers21- **imessagedb**: Python library for accessing and querying the macOS Messages database22- **phonenumbers**: Google's phone number handling library for proper number validation and formatting2324All dependencies are specified in `requirements.txt` for easy installation.2526## 📑 Table of Contents27- [System Requirements](#-system-requirements)28- [Dependencies](#-dependencies)29- [MCP Tools](#%EF%B8%8F-mcp-tools)30- [Getting Started](#-getting-started)31- [Installation Options](#-installation-options)32 - [Claude Desktop](#option-1-install-for-claude-desktop)33 - [Cline VSCode Plugin](#option-2-install-for-cline-vscode-plugin)34- [Safety Features](#-safety-features)35- [Development Documentation](#-development-documentation)36- [Environment Variables](#%EF%B8%8F-environment-variables)3738## 🛠️ MCP Tools3940The server exposes the following tools to LLMs:4142### get_chat_transcript43Retrieve message history for a specific phone number with optional date filtering. Includes:44- Message text and timestamps45- Attachment information (if any)46- Proper phone number validation47- Date range filtering4849## 🚀 Getting Started5051Clone the repository:5253```bash54git clone https://github.com/hannesrudolph/imessage-query-fastmcp-mcp-server.git55cd imessage-query-fastmcp-mcp-server56```5758## 📦 Installation Options5960You can install this MCP server in either Claude Desktop or the Cline VSCode plugin. Choose the option that best suits your needs.6162### Option 1: Install for Claude Desktop6364Install using FastMCP:6566```bash67fastmcp install imessage-query-server.py --name "iMessage Query"68```6970### Option 2: Install for Cline VSCode Plugin7172To use this server with the [Cline VSCode plugin](http://cline.bot):73741. In VSCode, click the server icon (☰) in the Cline plugin sidebar752. Click the "Edit MCP Settings" button (✎)763. Add the following configuration to the settings file:7778```json79{80 "imessage-query": {81 "command": "uv",82 "args": [83 "run",84 "--with",85 "fastmcp",86 "fastmcp",87 "run",88 "/path/to/repo/imessage-query-server.py"89 ]90 }91}92```9394Replace `/path/to/repo` with the full path to where you cloned this repository (e.g., `/Users/username/Projects/imessage-query-fastmcp-mcp-server`)9596## 🔒 Safety Features9798- Read-only access to the iMessage database99- Phone number validation using the phonenumbers library100- Safe attachment handling with missing file detection101- Date range validation102- Progress output suppression for clean JSON responses103104## 📚 Development Documentation105106The repository includes documentation files for development:107108- `dev_docs/imessagedb-documentation.txt`: Contains comprehensive documentation about the iMessage database structure and the imessagedb library's capabilities.109110This documentation serves as context when developing features and can be used with LLMs to assist in development.111112## ⚙️ Environment Variables113114No environment variables are required as the server automatically locates the iMessage database in the default macOS location.
Full transparency — inspect the skill content before installing.