Directus モデルコンテキスト プロトコル (MCP) サーバー
Directusで使用するMCPサーバー。AIツールがDirectus APIに接続し、ユーザーに代わってAPIを使用できるようにします。
これは私(@rijkvanzanten)による実験です。どんなPRでも大歓迎です :)
インストール
この MCP サーバーは、NodeJS v22.12 以降で動作するように構築されています。
グローバルインストール(推奨)
npm install -g @rijk/directus-mcp-server
次に、 npm
パッケージをリモート サーバーとして使用するように Claude AI を構成します。
ローカル/開発インストール
- リポジトリをクローンする
pnpm install && pnpm build
でサーバーをビルドします- Claude AI を上記のように設定し、代わりに
dist
ファイルを指定します。
ツール
アイテムを読む
read-items
ツールを使用すると、コレクション名をパラメータとして指定することで、任意の Directus コレクションからアイテムを読み取ることができます。
パラメータ:
collection
: (必須) 読み込むコレクションの名前fields
: (オプション) 返されるフィールド名の配列sort
: (オプション) 並べ替えの基準となるフィールド (降順の場合は-
を前に付けます)limit
: (オプション) 返されるアイテムの最大数
例:
現在のユーザーを読み取る
現在のユーザーに関する情報を取得します。実質的には/users/me
エンドポイントです。
コレクションを読む
システムで利用可能なコレクション/フィールドを返します。read read-items
ツールを使用する前に、まずこのツールを使用して利用可能なコレクションを検出してください。
ライセンス
マサチューセッツ工科大学
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
AI ツールが Directus API に接続して対話できるようにし、コレクション、アイテム、ユーザー データへの自動アクセスを可能にするモデル コンテキスト プロトコル サーバー。
Related MCP Servers
- AsecurityAlicenseAqualityA Model Context Protocol server that allows AI assistants to interact with Appwrite's API, providing tools to manage databases, users, functions, teams, and other resources within Appwrite projects.Last updated -8439PythonMIT License
- -securityAlicense-qualityA Model Context Protocol server that provides seamless interaction with Workato's API through custom AI tools, enabling management of recipes, connections, connectors, folders, and activity logs.Last updated -TypeScriptMIT License
- -securityFlicense-qualityA Model Context Protocol server that provides a comprehensive interface for interacting with the ConnectWise Manage API, simplifying API discovery, execution, and management for both developers and AI assistants.Last updated -462Python
- -securityFlicense-qualityA Model Context Protocol server that connects AI assistants like Claude to Notion workspaces, enabling them to view, search, create, and update Notion databases, pages, and content blocks.Last updated -275JavaScript