Logo mac-whisper-tool

mac-whisper-tool

Cộng đồng
dayflower

A CLI tool and MCP server for accessing meeting transcriptions from MacWhisper's database.

Nhà phát hànhdayflower
Kho mãmac-whisper-tool
Ngôn ngữGo
Bản fork
2
Sao
14
Công cụ có sẵn
0
Phương thức truyền tảistdio
Danh mục
Giấy phépMIT
Liên kết
  • Kết nối công cụ với quy trình làm việc AI

    mac-whisper-tool cung cấp các khả năng MCP mà ứng dụng khách và tác nhân AI tương thích có thể sử dụng.

  • 0 công cụ có sẵn

    Xem các thao tác có thể gọi bên dưới, kèm tên và mô tả nếu máy chủ cung cấp.

  • Cấu hình sẵn để sao chép

    Dùng các đoạn cấu hình cài đặt mẫu để thiết lập máy chủ này trong ứng dụng khách MCP bạn muốn dùng.

  • Chỉ số quan tâm đến mã nguồn mở

    14 sao và 2 bản fork từ kho mã được liên kết.

mac-whisper-tool

A CLI tool and MCP server for accessing meeting transcriptions from MacWhisper's database.

Overview

This tool provides both command-line interface and MCP (Model Context Protocol) server for MacWhisper's SQLite database. It enables users to list and export meeting transcriptions in various formats, and allows AI assistants to search and retrieve transcriptions via the MCP protocol.

Features

CLI Features

  • List meetings with filtering by date range
  • Search meetings by content keywords, title keywords, and date range
  • Export transcriptions in multiple formats:
    • Markdown (standard or extended with metadata)
    • JSON (standard MacWhisper compatible or extended with metadata)
  • Single session export or batch export
  • Meeting start time estimation

MCP Server Features

  • Search meetings by content keywords, title keywords, and date range
  • Retrieve transcriptions as MCP resources or via tools (legacy mode)
  • Extended Markdown format with timestamps and metadata
  • Integration with AI assistants (e.g., Claude Desktop)
  • Legacy mode support for older MCP clients that don't support Resources

Installation

Homebrew

The easiest way to install on macOS is via Homebrew:

bash
brew install dayflower/tap/mac-whisper-tool

This will install the appropriate binary for your architecture (Intel or Apple Silicon).

Pre-built Binaries

Download the latest release for your macOS architecture from the Releases page:

  • Intel Mac (x86_64): Download mac-whisper-tool_*_darwin_x86_64.tar.gz
  • Apple Silicon (ARM64): Download mac-whisper-tool_*_darwin_arm64.tar.gz

Extract and install:

bash
# Extract the archive
tar -xzf mac-whisper-tool_*_darwin_*.tar.gz

# Move to a directory in your PATH (optional)
sudo mv mac-whisper-tool /usr/local/bin/

From Source

bash
go build -o mac-whisper-tool

The binary will be created in the current directory.

Usage

List Meetings

Display a list of sessions from the database. This includes every session type — recorded meetings, system-audio recordings, voice memos, podcasts, downloaded/YouTube media, and plain imported / folder-watched files. The Type column (and type JSON field) shows which kind each session is.

bash
# Show the most recent 20 sessions (default)
mac-whisper-tool list

# Show all sessions in JSON format (includes the "type" field)
mac-whisper-tool list -n -1 -f json

# Filter by date range
mac-whisper-tool list -s 2025-12-01 -e 2025-12-31

# Show only imported files (folder-watcher / drag-and-drop)
mac-whisper-tool list --type imported

# Estimate meeting start times (rounds to nearest 30 minutes)
mac-whisper-tool list --estimate-start

Options:

  • -d, --db <path> - Database file path (default: ~/Library/Application Support/MacWhisper/Database/main.sqlite)
  • -s, --start <datetime> - Filter by start date (YYYY-MM-DD or YYYY-MM-DDTHH:MM:SS)
  • -e, --end <datetime> - Filter by end date
  • -n, --limit <n> - Maximum number of meetings (default: 20, negative for all)
  • -f, --format <format> - Output format: table or json (default: table)
  • --type <type> - Filter by session type: recorded-meeting, system-audio, voice-memo, podcast, youtube, download, imported (empty = all)
  • --estimate-start - Estimate meeting start time from dateCreated and duration
  • -v, --verbose - Enable verbose output to stderr

Search Meetings

Search for specific meetings by keywords, title, or date range:

bash
# Search by content keyword
mac-whisper-tool search -k "budget"

# Search by multiple keywords (AND condition)
mac-whisper-tool search -k "zoom" -k "meeting"

# Search by title keywords
mac-whisper-tool search -t "standup" -t "team"

# Search with date range
mac-whisper-tool search -k "project" -s 2025-01-01 -e 2025-03-31

# Limit results
mac-whisper-tool search -k "meeting" -n 10

# JSON output
mac-whisper-tool search -k "Q4" -f json

# Filter by session type (e.g. only voice memos mentioning "idea")
mac-whisper-tool search -k "idea" --type voice-memo

# Estimate start times
mac-whisper-tool search -k "zoom" --estimate-start

Options:

  • -k, --keywords <keyword> - Content keywords (repeatable, AND condition)
  • -t, --title <keyword> - Title keywords (repeatable, AND condition)
  • -s, --start <datetime> - Filter by start date (YYYY-MM-DD or YYYY-MM-DDTHH:MM:SS)
  • -e, --end <datetime> - Filter by end date
  • -n, --limit <n> - Maximum number of results (default: 20, negative for all)
  • -f, --format <format> - Output format: table or json (default: table)
  • --type <type> - Filter by session type: recorded-meeting, system-audio, voice-memo, podcast, youtube, download, imported (empty = all)
  • --estimate-start - Estimate meeting start time from dateCreated and duration
  • -d, --db <path> - Database file path (inherited from global)
  • -v, --verbose - Enable verbose output to stderr (inherited from global)

At least one search criterion (keywords, title, date range, or type) must be specified.

Export Transcriptions

Export a single meeting transcription:

bash
# Export to stdout in Markdown format (default)
mac-whisper-tool export <session-id>

# Export to a specific file
mac-whisper-tool export -o output.md <session-id>

# Export to a directory with auto-generated filename
mac-whisper-tool export -c ./exports <session-id>

# Export in JSON format (MacWhisper compatible)
mac-whisper-tool export -f json <session-id>

# Export in extended Markdown format with metadata and timestamps
mac-whisper-tool export -x <session-id>

# Export in extended JSON format with metadata and timestamps
mac-whisper-tool export -f json -x <session-id>

# Estimate start time (internal calculation only, doesn't affect output)
mac-whisper-tool export --estimate-start <session-id>

# Estimate start time with extended content
mac-whisper-tool export --estimate-start -x <session-id>

Batch Export:

Export multiple meetings at once:

bash
# Export the latest 10 meetings
mac-whisper-tool export -c ./exports -n 10

# Export meetings from a specific date range
mac-whisper-tool export -c ./exports -s 2025-12-01 -e 2025-12-31

# Export all meetings
mac-whisper-tool export -c ./exports -n -1

Options:

  • -d, --db <path> - Database file path
  • -f, --format <format> - Output format: markdown (or md), json (default: markdown)
  • -o, --output <file> - Output file path (single session only)
  • -c, --output-dir <dir> - Output directory (filename auto-generated)
  • -x, --extend - Output extended content (timestamps, metadata)
  • --estimate-start - Estimate meeting start time from dateCreated and duration
  • -v, --verbose - Enable verbose output to stderr

Batch export options:

  • -s, --start <datetime> - Filter by start date
  • -e, --end <datetime> - Filter by end date
  • -n, --limit <n> - Maximum number of meetings to export (negative for all)

Output Formats

Format vs Content

  • Format (--format, -f): Specifies the output format

    • markdown (or md): Markdown format (default)
    • json: JSON format
  • Content (--extend, -x): Specifies whether to include extended content

    • Default: Standard content (MacWhisper compatible)
    • -x: Extended content (includes timestamps and metadata)
  • Start Time Estimation (--estimate-start): Estimates meeting start time

    • Internal calculation only, doesn't affect output format
    • When combined with -x, timestamps are based on estimated start time

Markdown

Standard format (default):

markdown
- **Speaker 1**: foo bar baz
- **Speaker 2**: hoge fuga

Extended format (-x):

markdown
# Zoom Meeting

- **Date Started**: 2025-07-23T10:00:00.000
- **Date Created**: 2025-07-23T11:59:59.000
- **Duration**: 38m 52s

- 2025-07-23T10:00:00.000 **Speaker 1**: foo bar baz
- 2025-07-23T10:20:30.400 **Speaker 2**: hoge fuga

JSON

Standard format (MacWhisper compatible):

json
[
  {
    "speaker": "Speaker 1",
    "text": "foo bar baz"
  },
  {
    "speaker": "Speaker 2",
    "text": "hoge fuga"
  }
]

Extended format (-f json -x):

json
{
  "title": "Zoom Meeting",
  "dateStarted": "2025-07-23T10:00:00.000",
  "dateCreated": "2025-07-23T11:59:59.000",
  "duration": 2332.4,
  "transcripts": [
    {
      "speaker": "Speaker 1",
      "text": "foo bar baz",
      "speakedAt": "2025-07-23T10:00:00.000"
    },
    {
      "speaker": "Speaker 2",
      "text": "hoge fuga",
      "speakedAt": "2025-07-23T10:20:30.400"
    }
  ]
}

Auto-generated Filenames

When using -c, --output-dir, filenames are automatically generated in the format:

{datetime} {title}.{ext}

Example: 2025-07-23T12:34:56.000 Zoom Meeting.md

Invalid filename characters are replaced with underscores.

Date/Time Handling

Input Formats

The tool accepts the following datetime formats:

  • Date only: 2025-07-23 (treated as 2025-07-23T00:00:00.000)
  • Date and time: 2025-07-23T11:22:33
  • Date and time with milliseconds: 2025-07-23T11:22:33.000

Start Time Estimation

When using --estimate-start, the tool estimates the meeting start time by:

  1. Subtracting the meeting duration from dateCreated
  2. Rounding to the nearest 30 minutes

For example:

  • Calculated time: 11:55 → Rounded to: 12:00
  • Calculated time: 13:10 → Rounded to: 13:00

Database Location

The default database path is:

~/Library/Application Support/MacWhisper/Database/main.sqlite

Custom Database Path

You can specify a different database path using one of the following methods (in priority order):

  1. Command-line flag (for one-time use, highest priority):

    bash
    mac-whisper-tool list --db /path/to/custom/main.sqlite
  2. Environment variable (for session-wide use):

    bash
    export MAC_WHISPER_DB="/path/to/custom/main.sqlite"
  3. Configuration file (for persistent use):

    Create a configuration file at one of these locations:

    • ~/.config/MacWhisperTool/config.json (recommended, XDG compliant)
    • ~/Library/Application Support/MacWhisperTool/config.json (macOS standard)

    Configuration file format:

    json
    {
      "database": {
        "path": "/path/to/custom/main.sqlite"
      }
    }

    Example:

    bash
    # Create config directory
    mkdir -p ~/.config/MacWhisperTool
    
    # Create config file
    cat > ~/.config/MacWhisperTool/config.json <<EOF
    {
      "database": {
        "path": "~/custom/meeting.sqlite"
      }
    }
    EOF

Priority order:

  1. --db flag (highest)
  2. MAC_WHISPER_DB environment variable
  3. ~/.config/MacWhisperTool/config.json
  4. ~/Library/Application Support/MacWhisperTool/config.json
  5. Default path (lowest)

MCP Server

Starting the Server

Start the MCP server to enable AI assistant integration:

bash
# Start MCP server with default database
mac-whisper-tool mcp

# Use custom database path
mac-whisper-tool mcp --db /path/to/custom.sqlite

# Enable verbose logging to stderr
mac-whisper-tool mcp --verbose

# Enable legacy mode for older MCP clients
mac-whisper-tool mcp --legacy

Options:

  • -d, --db <path> - Database file path (default: ~/Library/Application Support/MacWhisper/Database/main.sqlite)
  • -v, --verbose - Enable verbose output to stderr
  • --legacy - Enable legacy mode for MCP clients that don't support Resources
  • --estimate-start - Estimate meeting start time by subtracting duration from creation time

Claude Desktop Configuration

Add the following to your Claude Desktop configuration file (~/Library/Application Support/Claude/claude_desktop_config.json):

json
{
  "mcpServers": {
    "mac-whisper": {
      "command": "/usr/local/bin/mac-whisper-tool",
      "args": ["mcp"]
    }
  }
}

If you installed the tool in a different location, adjust the command path accordingly.

MCP Features

The MCP server provides:

  1. search_meetings tool: Search meeting transcriptions

    • Search by content keywords (AND condition)
    • Search by title keywords (AND condition)
    • Filter by date range (after/before)
    • Limit results (default: 10, max: 100)
    • Returns JSON-formatted results with session metadata
    • In normal mode: Also returns resource links for each meeting
    • In legacy mode: Returns only JSON results (no resource links)
  2. Resource access (normal mode only): Retrieve transcription content

    • URI scheme: macwhisper://localhost/session/{sessionID}
    • Returns extended Markdown format with timestamps and metadata
    • Use search_meetings tool to discover session IDs
  3. get_meeting tool (legacy mode only): Retrieve transcription by session ID

    • Takes session ID as parameter
    • Returns extended Markdown format with timestamps and metadata
    • Alternative to Resources for older MCP clients

Legacy Mode

Legacy mode is designed for MCP clients that don't support the Resources feature. When running in legacy mode (--legacy):

  • search_meetings returns JSON-formatted results without resource links
  • get_meeting tool is available to retrieve transcriptions by session ID
  • Resources are not registered

Normal mode (default):

bash
mac-whisper-tool mcp
# - search_meetings returns JSON + resource links
# - Resources are available
# - get_meeting tool is NOT available

Legacy mode:

bash
mac-whisper-tool mcp --legacy
# - search_meetings returns JSON only (no resource links)
# - Resources are NOT available
# - get_meeting tool is available

Error Handling

  • Non-existent session ID: Error message to stderr, exit code 1
  • Missing database file: Error message to stderr, exit code 1
  • Missing output directory: Automatically created (exit code 1 on failure)
  • Batch export without --output-dir: Error message to stderr, exit code 1

Examples

bash
# List the latest 5 meetings with verbose output
mac-whisper-tool list -n 5 -v

# Export a specific meeting to a file with extended content
mac-whisper-tool export -x -o meeting.md abc123def456

# Batch export all meetings from December 2025 in extended JSON format
mac-whisper-tool export -c ./exports -f json -x -s 2025-12-01 -e 2025-12-31 -n -1

# Export using a custom database path with estimated start time
mac-whisper-tool export -d /path/to/custom.sqlite --estimate-start -x -c ./output sessionID

License

See LICENSE file for details.

Note

This tool is an experimental implementation. If you need modifications or additional features, please feel free to fork this repository and customize it for your own use.

Cài đặt

TypingMind
{
  "mcpServers": {
    "mac-whisper-tool": {
      "command": "mac-whisper-tool",
      "args": []
    }
  }
}

Dùng MCP mac-whisper-tool với nhiều mô hình AI

TypingMind kết nối các công cụ MCP ở cấp không gian làm việc, nên sau khi kết nối mac-whisper-tool, bạn có thể dùng với nhiều mô hình AI khác nhau trong TypingMind thay vì phải thiết lập riêng cho từng mô hình. MCP này chạy cục bộ thông qua trình kết nối MCP của TypingMind trên thiết bị của bạn.

Hướng dẫn thiết lập để dùng trình kết nối cục bộ

Dùng cách này khi máy chủ MCP cần truy cập các tệp, ứng dụng hoặc tài nguyên riêng tư trên máy tính của bạn.

1

Mở cài đặt MCP

Trong TypingMind, vào Cài đặt, Cài đặt nâng cao, rồi đến Giao thức ngữ cảnh mô hình và chọn Cài trình kết nối.

  1. Mở TypingMind trong trình duyệt của bạn.
  2. Nhấp vào biểu tượng Cài đặt.
  3. Vào Cài đặt nâng cao.
  4. Mở mục Giao thức ngữ cảnh mô hình.
  5. Nhấp vào Cài trình kết nối rồi chọn Thiết bị này.
Màn hình thiết lập trình kết nối MCP của TypingMind với tùy chọn Thiết bị này được chọn
2

Chạy lệnh trình kết nối

Chọn Thiết bị này, sao chép lệnh từ TypingMind và chạy trong Terminal. Giữ tiến trình chạy trong khi bạn dùng MCP.

  1. Sao chép lệnh thiết lập hiển thị trong TypingMind.
  2. Mở Terminal trên macOS hoặc Windows Terminal trên Windows.
  3. Dán và chạy lệnh.
  4. Xác nhận cài đặt gói nếu Terminal hỏi bạn có muốn tiếp tục không.
  5. Giữ tiến trình trong cửa sổ Terminal chạy trong khi dùng các công cụ MCP.
3

Thêm mac-whisper-tool làm máy chủ

Khi trạng thái trình kết nối là Sẵn sàng, nhấp vào Sửa máy chủ và dán cấu hình máy chủ MCP.

  1. Đợi đến khi trạng thái trình kết nối hiển thị Sẵn sàng.
  2. Nhấp vào Sửa máy chủ.
  3. Dán cấu hình máy chủ MCP của mac-whisper-tool.
  4. Lưu danh sách máy chủ.
  5. Làm mới nếu bạn muốn xác nhận trình kết nối vẫn sẵn sàng.
Cài đặt MCP của TypingMind hiển thị máy chủ đang hoạt động và nút Sửa máy chủ
{
  "mcpServers": {
    "mac-whisper-tool": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Dùng kết nối với nhiều mô hình

Lưu danh sách máy chủ, mở Plugin, bật các công cụ MCP của mac-whisper-tool, sau đó chọn bất kỳ mô hình AI nào được hỗ trợ trong TypingMind và dùng các công cụ trong cuộc trò chuyện hoặc gán chúng cho một tác nhân AI.

  1. Mở trang Plugin trong TypingMind.
  2. Bật các công cụ MCP của mac-whisper-tool.
  3. Bắt đầu cuộc trò chuyện và chọn mô hình AI bạn muốn dùng.
  4. Dùng các công cụ MCP trong cuộc trò chuyện hoặc gán chúng cho một tác nhân AI.
  5. Chuyển sang mô hình AI khác bất cứ khi nào cần mà không phải kết nối lại MCP.
Cuộc trò chuyện TypingMind dùng các công cụ MCP đã bật với một mô hình AI được chọn
Bạn có thể dùng mac-whisper-tool giúp tôi làm việc này không?
mac-whisper-tool
Được. Tôi đã đọc.
Đây là kết quả tôi tìm được bằng mac-whisper-tool.

Câu hỏi thường gặp

Máy chủ MCP mac-whisper-tool dùng để làm gì?

mac-whisper-tool là máy chủ MCP cho phép các ứng dụng AI tương thích kết nối với công cụ và ngữ cảnh bên ngoài. Trong TypingMind, bạn chỉ cần thêm máy chủ MCP này một lần để các công cụ của nó có sẵn trong không gian làm việc AI của bạn.

Bạn có thể dùng MCP mac-whisper-tool với nhiều mô hình AI trong TypingMind không?

Có. TypingMind kết nối các công cụ MCP ở cấp không gian làm việc, nên bạn có thể dùng mac-whisper-tool với nhiều mô hình AI như Claude, ChatGPT, Gemini hoặc các mô hình khác đã cấu hình trong TypingMind mà không cần thiết lập máy chủ MCP riêng cho từng mô hình.

Vì sao nên dùng MCP mac-whisper-tool với TypingMind?

TypingMind là một trong những giao diện trò chuyện với LLM tốt nhất vì tập hợp nhiều mô hình AI, prompt, plugin, tác nhân AI, khóa API và công cụ MCP vào một không gian làm việc. Khi kết nối mac-whisper-tool, bạn có thể dùng các công cụ MCP của dịch vụ này với những mô hình ưa thích, đồng thời giữ quy trình trò chuyện gọn gàng trong TypingMind.

Làm cách nào để kết nối MCP mac-whisper-tool với TypingMind?

mac-whisper-tool hoạt động thông qua trình kết nối MCP cục bộ của TypingMind. Đây là lựa chọn phù hợp nhất khi máy chủ MCP cần truy cập tệp cục bộ, ứng dụng máy tính, công cụ dòng lệnh hoặc tài nguyên riêng trên máy tính của bạn.

MCP mac-whisper-tool cung cấp những công cụ nào trong TypingMind?

mac-whisper-tool cung cấp các chức năng MCP mà bạn có thể bật từ trang Plugin của TypingMind để dùng trong trò chuyện hoặc gán cho tác nhân AI.

Bạn có cần chia sẻ khóa API với TypingMind để dùng MCP mac-whisper-tool không?

Không. TypingMind ưu tiên xử lý cục bộ và cho phép bạn kiểm soát nhà cung cấp mô hình, khóa API, prompt và cấu hình MCP. Nếu mac-whisper-tool yêu cầu xác thực, hãy thêm các header, cài đặt OAuth hoặc cấu hình cục bộ cần thiết cho máy chủ MCP đó khi tạo kết nối.

Máy chủ MCP liên quan

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇