SS

stefanstranger/signal-mcp-server

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

8 stars 6 forks 质量 52 趋势 16

Sigal MCP Server

概览

MCP Server for retrieving Signal messages using signal-export logic. This MCP server enables AI agents and tools to access Signal Desktop chat messages and attachments via the Model Context Protocol (MCP). - Retrieve Signal messages from your local Signal Desktop database - List all Signal chats with contact details and message counts - Filter messages by chat/contact name - Paginate through message history with offset and limit - Support for multiple operating systems (Windows, macOS, Linux) - Handle encrypted Signal databases - Python 3.13 or higher - UV package manager - Signal Desktop installed with existing message database - Node.js and npm (for MCP inspector tools) - Windows, macOS, or Linux operating system Signal Desktop requires Signal to be installed on your phone for initial setup. - Download the installer for your OS (Windows, macOS, Linux) and follow the setup instructions. - https://github.

README

以下为原文 README 节选,完整内容请查看原文。

📱 signal-mcp-server

MCP Server for retrieving Signal messages using signal-export logic.

🎯 Overview

This MCP server enables AI agents and tools to access Signal Desktop chat messages and attachments via the Model Context Protocol (MCP).

🛠️ Features

  • Retrieve Signal messages from your local Signal Desktop database
  • List all Signal chats with contact details and message counts
  • Filter messages by chat/contact name
  • Paginate through message history with offset and limit
  • Support for multiple operating systems (Windows, macOS, Linux)
  • Handle encrypted Signal databases

📋 Prerequisites

  • Python 3.13 or higher
  • UV package manager
  • Signal Desktop installed with existing message database
  • Node.js and npm (for MCP inspector tools)
  • Windows, macOS, or Linux operating system

1. Signal Desktop

Note: Signal Desktop requires Signal to be installed on your phone for initial setup.


2. Python


3. UV (Python Package Manager)

4. Claude Desktop

  • Official Download Page:
    https://claude.ai/download

  • Download the installer for your OS (Windows, macOS) and follow the setup instructions.

🚀 Installation Signal MCP Server

  1. Clone the repository:

    git clone https://github.com/stefanstranger/signal-mcp-server.git
    cd signal-mcp-server
    
  2. Create a virtual environment:

    uv venv .venv --python 3.13
    
  3. Activate the virtual environment:

    • Windows PowerShell:
      .\.venv\Scripts\Activate.ps1
      
    • macOS/Linux:
      source .venv/bin/activate
      
  4. Install dependencies:

    uv pip install fastmcp signal-export
    

⚙️ Configuration

🔧 Claude Desktop Setup

在 GitHub 查看完整 README

安装

npx @modelcontextprotocol/inspector uv run --with mcp[cli] mcp run c://github//signal-mcp-server//server.py
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "signal-mcp-server": { "type": "stdio", "command": "uv", "args": [ "run", "--with", "mcp[cli]", "--with", "signal-export", "mcp", "run", "C:\\Github\\signal-mcp-server\\server.py" ] } } }