> For the complete documentation index, see [llms.txt](https://docs.maiagent.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.maiagent.ai/tech/maiagent-tech-ja/remote-mcp/composio.md).

# Composio 連携

本ガイドでは、Composio から MCP (Model Context Protocol) サーバー URL を取得して設定するまでの手順をご案内します。これにより、MaiAgent の AI アシスタントで Composio が提供する MCP Server サービスを活用できるようになります。

## ✅ 前提条件

* Composio のアカウントをお持ちであること。
* Composio のツールを MaiAgent の AI アシスタントに統合してご利用になりたいこと。

## 🌐 ステップ 1：Composio MCP ディレクトリにアクセスする

1. ウェブブラウザを開き、リンクから直接 [**Composio MCP ツールディレクトリ**](https://mcp.composio.dev/?_gl=1*1hz6rb*_ga*MTk3MzE0OTMzOC4xNzQ2MDk4NjI0*_ga_YKMWVQS9W0*czE3NDY5NTMzNzgkbzQkZzAkdDE3NDY5NTMzNzgkajYwJGwwJGgyMDc1NDkxNzYz*_ga_J9WD56TEBS*czE3NDY5NTMzNzgkbzQkZzAkdDE3NDY5NTMzNzgkajAkbDAkaDA.) にアクセスします：
   * このページには、お使いの AI エージェントと統合できるすべての Composio ツールおよびアプリケーションが表示されます。

<figure><img src="/files/hWXwjrNnd5BGYyMSqXIW" alt="Composio MCP ディレクトリページのイメージ図"><figcaption><p>Composio MCP ディレクトリには、統合可能な多数のアプリケーションとツールが表示されます</p></figcaption></figure>

## 🔑 ステップ 2：アカウントにログインする

1. Composio MCP ディレクトリページの右上にある **"Sign in"** ボタンを見つけてクリックします。
2. ご自身の Composio アカウントでログインします。
   * Composio アカウントをまだお持ちでない場合は、先に登録手続きを完了する必要があります。

<figure><img src="/files/UJadJj60Z9haQITMAWsj" alt="Composio MCP ログインボタンの位置"><figcaption><p>ページ右上の "Sign in" ボタンをクリックしてアカウントにログインします</p></figcaption></figure>

3. ログインに成功すると、ページがパーソナライズされた MCP Dashboard に更新され、利用可能なすべてのツールおよびアプリケーションが表示されます。

<figure><img src="/files/jqL2acfpMgPmYPq4SPsx" alt="Composio MCP ログインボタンの位置"><figcaption><p>Composio MCP Dashboard</p></figcaption></figure>

## 👆 ステップ 3：必要なツール/アプリケーションを選択する

1. **Composio MCP Dashboard** で、AI エージェントに使わせたいツールやアプリケーション (例：Google Drive、Slack、Jira、GitHub など) を閲覧または検索します。

Google Calendar を例にすると：

<figure><img src="/files/iaePNFF1AviaPuLHc1WH" alt=""><figcaption></figcaption></figure>

## 🔐 ステップ 4：Server を作成し、アカウントを連携する

1. ツールを見つけたら、ツールを有効化するためにまずアカウント連携の認可を行う必要があります。

「<mark style="color:blue;">+Create Server</mark>」を押します

<figure><img src="/files/qllgKSHUIMDau7ex7597" alt=""><figcaption></figcaption></figure>

2. Server に名前を付け、完了したら「<mark style="color:blue;">Next</mark>」をクリックします

<figure><img src="/files/YcgpmTKtDCPP3UwM8cDy" alt=""><figcaption></figcaption></figure>

3. 該当サービスの認可ウィンドウがポップアップ表示されますので、Composio にアクセス権限を付与することを確認してください。

* 例えば Google サービスの場合は、認可する Google アカウントを選択し、認可範囲を確認する必要があります。
* このステップは必須です。Composio がお客様に代わって操作を実行するには、お客様の認可を得る必要があるためです。

<figure><img src="/files/giLt21FoSrsnkPVZIwwI" alt="Composio MCP ログインボタンの位置"><figcaption><p>サービス認可ページ。各サービスが提供する認証方式に応じて選択してください</p></figcaption></figure>

**"Connect"** をクリックして認可が完了すると、Composio プラットフォームへリダイレクトされます

3. 認可して使用するツールを選択し、「<mark style="color:blue;">Create Server</mark>」をクリックして接続を作成します

* **重要なヒント**：Configure Actions は、ユーザーが実際に使用する機能に応じて選択できます。特に要件がなければすべて選択して構いません。

<figure><img src="/files/Sqp1ch3luXGVETLdM9RQ" alt=""><figcaption></figcaption></figure>

## 🔗 ステップ 5：MCP サーバー URL をコピーする

1. Server の構築が完了すると、システムが専用の **MCP サーバー** を生成します。

{% hint style="info" %}
MaiAgent サービスに対応させるため、HTTP Stream に切り替えてください
{% endhint %}

<figure><img src="/files/6BKHfvfAgjribx1bQx4i" alt=""><figcaption></figcaption></figure>

2. この HTTP の URL をコピーし、MaiAgent のページに移動します。

<figure><img src="/files/xCo4kkqv90oHHKZBAGze" alt=""><figcaption></figcaption></figure>

## 💻 ステップ 6：MaiAgent で MCP ツールを構築する

1. MaiAgent のツールページを開きます。
2. MCP ツールを新規追加します。
3. ツール設定を入力します：
   * **基本設定**：ユーザーマニュアルの[ツールの作成](https://docs.maiagent.ai/tools/setup)に従って基本設定を完了し、ツールタイプで **MCP** を選択します。
   * **サーバー URL**：ステップ 5 でコピーした Composio の **MCP サーバー URL** をここに貼り付けます。
   * **パラメータ / 環境変数 / 許可するツール**：これらの項目は空白のままで構いません。ツール設定を保存する際に、MaiAgent が自動的に MCP Server から取得します。
4. 設定を保存します。

<figure><img src="/files/szpelYsQ5wn1kCOxdgMp" alt=""><figcaption></figcaption></figure>

完了後、「再取得」をクリックできます

<figure><img src="/files/MPvcXnZyvRKWQ9ELVn8M" alt=""><figcaption></figcaption></figure>

システムは連携済みのツールを自動的に取得し、下部の「<mark style="color:blue;">許可するツール</mark>」リストに表示します。

## ⚠️ 注意事項

* **URL の機密性**：改めて強調しますが、生成された **MCP Server URL** は機密情報です。決して漏洩させないでください。
* **複数のツール**：複数の異なるアプリケーションを統合する必要がある場合 (例：Google Drive と Slack を同時に使用する場合)、それぞれの **MCP サーバー URL** を取得するために、**Composio MCP ディレクトリ** で上記のステップ 3 から 5 を各アプリケーションごとに繰り返し、MaiAgent でそれぞれ別のツールとして設定したうえで AI アシスタントに割り当てる必要がある場合があります。
* **Composio のドキュメント**：Composio のインターフェースやフローは更新される可能性があるため、最も正確な情報を得るには [Composio 公式の最新ドキュメント](https://docs.composio.dev/getting-started/welcome) を随時参照することをお勧めします。


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.maiagent.ai/tech/maiagent-tech-ja/remote-mcp/composio.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
