MCP 服务器 for Things3のロゴ

MCP 服务器 for Things3

コミュニティ
drjforrest

A Model Context Protocol for reading todos and writing todos and projects in the macOS app Things3 using a combination of Applescript and x-call URLs.

公開者drjforrest
リポジトリmcp-things3
言語Python
フォーク
12
スター
74
利用可能なツール
0
通信方式stdio
カテゴリ
リンク
  • ツールをAIワークフローに接続

    MCP 服务器 for Things3は、対応するAIクライアントやAIエージェントから利用できるMCP機能を提供します。

  • 0個の利用可能なツール

    呼び出し可能なアクションを以下で確認できます。サーバーから提供されている場合は、名前や説明も表示されます。

  • コピーして使える設定

    セットアップ用の設定例を使って、お好みのMCPクライアントにこのサーバーを設定できます。

  • オープンソースの注目度

    リンク先のリポジトリには74件のスターと12件のフォークがあります。

MseeP.ai Security Assessment Badge

MCP Server for Things3

A robust MCP (Model Context Protocol) server providing comprehensive integration with Things3, allowing you to create, manage, and search tasks and projects through the MCP protocol. Features improved error handling, secure URL encoding, and enhanced AppleScript integration.

Features

  • ✅ Create Projects: Create new projects in Things3 with full metadata support
  • ✅ Create Todos: Create new to-dos with detailed properties including checklists, tags, and dates
  • ✅ View Tasks: List tasks from inbox, today's list, or all projects
  • ✅ Complete Tasks: Mark todos as completed by searching for their title
  • ✅ Search Functionality: Search through all todos by title or content
  • ✅ Robust Error Handling: Comprehensive validation and error recovery
  • ✅ Secure URL Encoding: Proper handling of special characters and unicode
  • ✅ AppleScript Integration: Safe, non-JSON string concatenation approach

Installation

Prerequisites

  • macOS with Things3 installed
  • Python 3.8+
  • Things3 running (for real-time operations)

Install the Server

  1. Clone this repository:

    bash
    git clone <repository-url>
    cd mcp-things3
  2. Install using pip:

    bash
    pip install -e .
  3. The server will be available as mcp-server-things3

Tools Available

View Operations

view-inbox

View all todos in the Things3 inbox.

  • Parameters: None
  • Returns: List of inbox todos with due dates and scheduling info

view-projects

View all projects in Things3.

  • Parameters: None
  • Returns: List of all projects with their titles

view-todos

View all todos in today's list.

  • Parameters: None
  • Returns: List of today's todos with metadata

Creation Operations

create-things3-project

Creates a new project in Things3.

  • Required: title (string)
  • Optional:
    • notes (string)
    • area (string)
    • when (string) - Date/time to start
    • deadline (string) - Due date
    • tags (array of strings)

Example:

json
{
  "title": "Website Redesign",
  "notes": "Complete overhaul of company website",
  "area": "Work",
  "deadline": "2024-03-15",
  "tags": ["urgent", "web-dev"]
}

create-things3-todo

Creates a new to-do in Things3.

  • Required: title (string)
  • Optional:
    • notes (string)
    • when (string) - Date/time to start
    • deadline (string) - Due date
    • checklist (array of strings)
    • tags (array of strings)
    • list (string) - Project or area to assign to
    • heading (string) - Group under this heading

Example:

json
{
  "title": "Review design mockups",
  "notes": "Check the new homepage designs",
  "list": "Website Redesign", 
  "deadline": "2024-02-20",
  "tags": ["review"],
  "checklist": ["Check mobile responsiveness", "Verify brand guidelines", "Test accessibility"]
}

Management Operations

complete-things3-todo

Mark a todo as completed by searching for its title.

  • Required: title (string) - Title or partial title to search for
  • Returns: Success/failure message

Example:

json
{
  "title": "Review design"
}

search-things3-todos

Search for todos by title or content.

  • Required: query (string) - Search term
  • Returns: List of matching todos with status and metadata

Example:

json
{
  "query": "website"
}

Integration with Claude

This MCP server is designed to work seamlessly with Claude AI. Once configured, you can use natural language to manage your Things3 tasks:

  • "Create a project called 'Q1 Planning' with a deadline of March 31st"
  • "Add a todo to review the budget with a checklist of tasks"
  • "Show me all my tasks for today"
  • "Mark the 'Call client' task as completed"
  • "Search for all todos related to the website project"

Configuration

MCP Client Configuration

Add to your MCP client configuration (e.g., Claude Desktop config):

json
{
  "mcpServers": {
    "things3": {
      "command": "mcp-server-things3",
      "args": []
    }
  }
}

Things3 Setup

  1. Ensure Things3 is installed and running
  2. Grant necessary permissions when prompted for AppleScript access
  3. The server will validate Things3 availability before operations

Architecture

Components

  • server.py: Main MCP server implementation with tool definitions and handlers
  • applescript_handler.py: Robust AppleScript integration with safe data parsing
  • URL Encoding: Proper x-callback-url parameter encoding for special characters
  • Error Handling: Comprehensive validation and graceful error recovery

Security Features

  • Input Sanitization: All user inputs are properly escaped for AppleScript
  • URL Encoding: Special characters and unicode properly handled in URLs
  • Validation: Things3 availability checked before operations
  • Error Recovery: Graceful handling of AppleScript and system errors

Development

Running Tests

bash
python test_things3.py

Debugging

The server includes comprehensive logging. Set log level for debugging:

bash
export PYTHONPATH="."
python -c "
import logging
logging.basicConfig(level=logging.DEBUG)
from src.mcp_server_things3.server import main
import asyncio
asyncio.run(main())
"

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Add tests for new functionality
  4. Ensure all tests pass
  5. Submit a pull request

Troubleshooting

Common Issues

"Things3 is not available"

  • Ensure Things3 is installed and running
  • Grant AppleScript permissions when prompted
  • Check Things3 is not in a permission-restricted mode

"Failed to execute AppleScript"

  • Verify macOS security settings allow AppleScript
  • Ensure Things3 has necessary accessibility permissions
  • Try restarting Things3

URL encoding issues with special characters

  • The server now properly handles unicode and special characters
  • If issues persist, check the logs for specific URL construction errors

Performance Notes

  • AppleScript operations may have slight delays
  • Large todo lists (1000+ items) may take longer to search
  • Consider using specific searches rather than broad queries for better performance

License

MIT License - see LICENSE file for details.

Changelog

v0.1.0

  • Initial release with basic CRUD operations
  • Comprehensive error handling and validation
  • Secure URL encoding and AppleScript integration
  • Search and completion functionality
  • Robust data parsing without JSON string concatenation

インストール

TypingMind
前提条件:

Node.js 18+

{
  "mcpServers": {
    "drjforrest-mcp-things3": {
      "command": "",
      "args": []
    }
  }
}

MCP 服务器 for Things3のMCPを複数のAIモデルで活用

TypingMindはワークスペース単位でMCPツールに接続します。そのため、一度MCP 服务器 for Things3に接続すれば、モデルごとに個別に設定することなく、TypingMind内のさまざまなAIモデルで利用できます。 このMCPは、デバイス上のTypingMind MCPコネクタを通じてローカルで動作します。

ローカルコネクタのセットアップガイド

MCPサーバーが、お使いのコンピューター上のローカルファイル、アプリ、非公開リソースにアクセスする必要がある場合は、この方法を使います。

1

MCP設定を開く

TypingMindで「設定」、「詳細設定」、「MCP」の順に進み、「コネクタを設定」を選択してください。

  1. ブラウザでTypingMindを開いてください。
  2. 設定アイコンをクリックしてください。
  3. 「詳細設定」に移動してください。
  4. 「MCP」セクションを開いてください。
  5. 「コネクタを設定」をクリックし、「このデバイス」を選択してください。
「このデバイス」が選択されたTypingMindのMCPコネクタ設定画面
2

コネクタのコマンドを実行

「このデバイス」を選択し、TypingMindからコマンドをコピーしてターミナルで実行してください。MCPの使用中は、プロセスを実行したままにしてください。

  1. TypingMindに表示されるセットアップコマンドをコピーしてください。
  2. macOSではターミナルを、WindowsではWindows Terminalを開いてください。
  3. コマンドを貼り付けて実行してください。
  4. ターミナルで続行の確認を求められた場合は、パッケージのインストールを承認してください。
  5. MCPツールの使用中は、ターミナルウィンドウを開いたまま、プロセスの実行を継続してください。
3

MCP 服务器 for Things3をサーバーとして追加

コネクタのステータスが「準備完了」になったら、「サーバーを編集」をクリックし、MCPサーバーの設定を貼り付けてください。

  1. コネクタのステータスが「準備完了」になるまでお待ちください。
  2. 「サーバーを編集」をクリックしてください。
  3. MCP 服务器 for Things3のMCPサーバー設定を貼り付けてください。
  4. サーバー一覧を保存してください。
  5. コネクタが引き続き使用可能か確認するには、更新してください。
稼働中のサーバーと「サーバーを編集」ボタンが表示されたTypingMindのMCP設定画面
{
  "mcpServers": {
    "drjforrest-mcp-things3": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-server-things3"
      ]
    }
  }
}
4

複数のモデルで同じ接続を使用

サーバー一覧を保存し、「プラグイン」を開いてMCP 服务器 for Things3のMCPツールを有効にしてください。その後、TypingMindで対応するAIモデルを選択し、チャットでツールを使うか、AIエージェントに割り当ててください。

  1. TypingMindの「プラグイン」ページを開いてください。
  2. MCP 服务器 for Things3のMCPツールを有効にしてください。
  3. チャットを開始し、使用するAIモデルを選択してください。
  4. MCPツールをチャットで使うか、AIエージェントに割り当ててください。
  5. MCPに再接続することなく、必要に応じて別のAIモデルに切り替えられます。
選択したAIモデルと有効なMCPツールを使用したTypingMindのチャット
MCP 服务器 for Things3を使ってこのタスクを手伝ってもらえますか?
MCP 服务器 for Things3
はい、読みました。
MCP 服务器 for Things3で調べた結果をお伝えします。

よくある質問

MCP 服务器 for Things3 MCPサーバーは何に使いますか?

MCP 服务器 for Things3は、対応するAIクライアントを外部ツールやコンテキストに接続するためのMCPサーバーです。TypingMindでは、このMCPサーバーを一度追加するだけで、AIワークスペース内でそのツールを利用できるようになります。

TypingMindでMCP 服务器 for Things3 MCPを複数のAIモデルと併用できますか?

はい。TypingMindはワークスペース単位でMCPツールに接続するため、モデルごとにMCPサーバーを設定する必要はありません。Claude、ChatGPT、Geminiや、TypingMindで設定したその他のAIモデルでMCP 服务器 for Things3を利用できます。

TypingMindでMCP 服务器 for Things3 MCPを使うメリットは何ですか?

TypingMindは、複数のAIモデル、プロンプト、プラグイン、AIエージェント、APIキー、MCPツールを1つのワークスペースにまとめられる、LLMチャット向けの優れたフロントエンドです。MCP 服务器 for Things3を接続すると、TypingMindでチャットのワークフローを整理しながら、お好みのモデルでそのMCPツールを利用できます。

MCP 服务器 for Things3 MCPをTypingMindに接続するにはどうすればよいですか?

MCP 服务器 for Things3はTypingMindのローカルMCPコネクタ経由で動作します。MCPサーバーがコンピューター上のローカルファイル、デスクトップアプリ、コマンドラインツール、プライベートリソースにアクセスする必要がある場合に最適です。

TypingMindでMCP 服务器 for Things3 MCPのどのようなツールを利用できますか?

MCP 服务器 for Things3はMCP機能を提供しています。TypingMindのプラグインページで有効にすると、チャットで使用したり、AIエージェントに割り当てたりできます。

MCP 服务器 for Things3 MCPを使うには、APIキーをTypingMindと共有する必要がありますか?

いいえ。TypingMindはローカルファーストの設計で、モデルプロバイダー、APIキー、プロンプト、MCP設定をご自身で管理できます。MCP 服务器 for Things3で認証が必要な場合は、接続の作成時に、そのMCPサーバーに必要なヘッダー、OAuth設定、またはローカル設定を追加してください。

関連するMCPサーバー

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇