HI

hannesrudolph/imessage-query-fastmcp-mcp-server

Developer tools

Эта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал

83 stars 18 forks Качество 61 Тренд 0

hannesrudolph/imessage-query-fastmcp-mcp-server - кандидат на сервер MCP, импортированный из https://github.com/hannesrudolph/imessage-query-fastmcp-mcp-server.

Обзор

hannesrudolph/imessage-query-fastmcp-mcp-server - кандидат на сервер MCP, импортированный из https://github.com/hannesrudolph/imessage-query-fastmcp-mcp-server.

Обзор (машинный перевод)

Сервер MCP, обеспечивающий безопасный доступ к базе данных iMessage через протокол Model Context Protocol (MCP). Этот сервер построен с фреймворком FastMCP и библиотекой imessagedb, что позволяет LLM запрашивать и анализировать разговоры iMessage с надлежащей проверкой номера телефона и обработкой вложений.

##Системные требования

macOS (требуется для доступа к базе данных iMessage) Python 3.6+

Зависимости

Установите все необходимые зависимости:

Требуемые пакеты

fastmcp: Рамки для построения серверов протокола imessagedb: библиотека Python для доступа и запроса базы данных сообщений macOS

  • ** телефонные номера**: Библиотека обработки телефонных номеров Google для правильной проверки и форматирования

Все зависимости указаны в requirements.txt для легкой установки.

of Содержание

  • Системные требования
  • Зависимости Инструменты MCP
  • Начинаем.
  • Варианты установки Клод Десктоп
  • Плагин Cline VSCode
  • Особенности безопасности
  • Документация по развитию
  • переменные окружающей среды

s️ Инструменты MCP

Сервер предоставляет следующие инструменты для LLM:

get chat ranscript

Эта страница переведена автоматически. Технические детали смотрите в оригинале.

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

🛠️ 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:

  1. In VSCode, click the server icon (☰) in the Cline plugin sidebar
  2. Click the “Edit MCP Settings” button (✎)
  3. 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
Открыть полный README на GitHub

Установка

This server does not publish a one-line install command.

Open the repository installation guide Новичок в MCP? Начните с руководства на mcpskill.org →