MCPAppのロゴ

MCPApp

コミュニティ
tanaikech

This text introduces the Model Context Protocol (MCP) for AI interaction, exploring Google Apps Script (GAS) as a server option. It shows feasibility with a sample but notes the lack of a GAS SDK, aiming to encourage understanding and development.

公開者tanaikech
リポジトリMCPApp
言語JavaScript
フォーク
11
スター
50
利用可能なツール
0
通信方式streamable-http
カテゴリ
ライセンスMIT
リンク
  • ツールをAIワークフローに接続

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

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

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

  • コピーして使える設定

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

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

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

MCPApp

MIT License

MseeP.ai Security Assessment Badge


🚀 Special Announcement: Integrated with GASADK!

MCPApp is now fully supported and can be used directly from GASADK (Google Apps Script Agent Development Kit). GASADK provides a comprehensive framework for building powerful multi-agent systems and utilizing MCP tools seamlessly in Google Apps Script.

👉 Check out GASADK on GitHub to boost your development!


Overview

The Model Context Protocol (MCP) is an emerging standard designed to function as a universal adapter, enabling AI applications to seamlessly and securely connect with external systems and data sources. The core purpose of MCP is to provide a standardized method for AI models to request and receive contextually relevant information, which is crucial for performing complex tasks.

This repository introduces two directions:

  1. An MCP server built with Google Apps Script for Gemini CLI and other MCP clients.
  2. An MCP network built with Google Apps Script.

Sample curl commands for testing MCP server

initialize

json
curl -L "<YOUR_MCP_SERVER_URL>" -d '{"method":"initialize","params":{"protocolVersion":"2025-06-18","capabilities":{},"clientInfo":{"name":"sample-mcp-client","version":"0.0.0"}},"jsonrpc":"2.0","id":0}'

tools/list

json
curl -L "<YOUR_MCP_SERVER_URL>" -d '{"jsonrpc":"2.0","id":2,"method":"tools/list","params":{}}'

prompts/list

json
curl -L "<YOUR_MCP_SERVER_URL>" -d '{"jsonrpc":"2.0","id":1,"method":"prompts/list","params":{}}'

tools/call

json
curl -L "<YOUR_MCP_SERVER_URL>" -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"<TOOL_NAME>","arguments":{<ARGUMENTS_FOR_TOOL>}}}'

Licence

MIT

Author

Tanaike

Donate

Update History

  • v1.0.0 (May 8, 2025)

    1. Initial release.
  • v1.0.1 (May 9, 2025)

    1. A bug in the logging was removed.
  • v1.0.2 (May 29, 2025)

    1. From v1.0.2, in order to use MCPApp as a library, LockService is given.
  • v2.0.0 (June 12, 2025)

    1. From v2.0.0, both the MCP client and the MCP server can be built by Google Apps Script.
  • v2.0.1 (June 18, 2025)

    1. A bug was removed.
  • v2.0.2 (June 19, 2025)

    1. A bug was removed.
  • v2.0.3 (July 1, 2025)

    1. A bug was removed.
  • v2.0.4 (July 2, 2025)

    1. A bug was removed.
  • v2.0.5 (July 31, 2025)

    1. A bug was removed.
  • v2.0.6 (August 1, 2025)

    1. "prompts/get" method was updated.
  • v2.0.7 (August 6, 2025)

    1. Starting with v2.0.7, you can now selectively enable or disable the LockService.
    • By default, this library runs with the LockService enabled. To disable it, simply modify return new MCPApp.mcpApp({ accessKey: "sample" }) to return new MCPApp.mcpApp({ accessKey: "sample", lock: false }).
    • When the LockService is disabled (lock: false), asynchronous requests from clients like the Gemini CLI may see an increase in processing speed. However, it's important to note that the maximum number of concurrent requests must not exceed 30. Please use this option with caution.
  • v2.0.8 (August 6, 2025)

    1. A bug was removed.
  • v2.0.10 (May 9, 2026)

    1. Refactored MCPApp.
  • v2.0.11 (May 9, 2026)

    1. A bug was removed.
  • v2.1.0 (May 10, 2026)

    1. A bug was removed.
  • v2.1.1 (May 12, 2026)

    1. A bug was removed.
  • v2.1.2 (May 12, 2026)

    1. Modified
  • v2.1.7 (May 15, 2026)

    1. Several bugs were removed.
  • v2.2.0 (May 19, 2026)

    1. const mcpServers = ["mcp-url-1", { "mcp-server-name": { "httpUrl": "https://mcp-url-2", "headers": { "key": "value" } } }] can be used for using MCP servers.
  • v2.3.0 (June 10, 2026)

    1. Added multi-channel sheet logging. When a spreadsheet ID is specified, logs are stored in the "MCP" sheet; otherwise, the "log" sheet is used. Headers ["Date", "Method", "ID", "Direction", "Message"] are automatically created with formatting, and sheets are initialized thread-safely under LockService lock.
    2. Enhanced error messaging by prefixing with [MCP Server Error] or [MCP Client Error] to simplify debugging.
  • v2.4.0 (June 24, 2026)

    1. Upgraded default model to models/gemini-3.1-flash-lite.
    2. Integrated GasHookManager compatibility to support BeforeTool and AfterTool hooks on the MCP server side.

TOP

MCPAppのMCPを複数のAIモデルで活用

TypingMindはワークスペース単位でMCPツールに接続します。そのため、一度MCPAppに接続すれば、モデルごとに個別に設定することなく、TypingMind内のさまざまなAIモデルで利用できます。 このMCPは、TypingMindでリモートホストされたMCPサーバーのURLを使って接続します。

MCPサーバーのURLを追加

MCPAppがすでにリモートでホストされている場合や、チームの複数のユーザーで1つのコネクタを共有したい場合は、この方法を使います。

1

MCPコネクタを開く

TypingMindで「プラグイン」に移動し、「MCPコネクタ」を開いて「URLを追加」を選択してください。

  1. ブラウザでTypingMindを開いてください。
  2. 「プラグイン」に移動してください。
  3. 「MCPコネクタ」を開いてください。
  4. 「URLを追加」をクリックします。
TypingMindの「カスタムMCPサーバーURLを追加」フォーム
2

サーバーURLを貼り付け

「サーバーURL」欄にプロバイダーから提供されたMCPサーバーのURLを入力してください。サーバーで必要とされる場合は、接続名、説明、アイコン、カスタムHTTPヘッダー、OAuthクライアント設定を追加してください。

  1. 「サーバーURL」欄にプロバイダーから提供されたMCPサーバーのURLを貼り付けてください。
  2. MCPAppの接続名を入力してください。
  3. 接続を識別しやすくするには、説明とアイコンを追加してください。
  4. サーバーで認証が必要な場合は、カスタムHTTPヘッダーまたはOAuthクライアントの詳細情報を追加してください。
3

接続を作成

「接続を作成」をクリックし、プラグイン一覧に戻って、新しいMCP接続が有効になっていることを確認してください。

  1. 「接続を作成」をクリックします。
  2. MCPコネクタの一覧に戻ってください。
  3. MCPAppの接続が「有効」と表示されていることを確認してください。
  4. 接続がすぐに表示されない場合は、プラグイン一覧を更新してください。
4

再接続せずにモデルを切り替え

お好みのモデルでチャットを開始し、「プラグイン」でMCPAppのツールを有効にしてください。必要に応じて別のモデルに切り替えられます。MCP接続は、TypingMindのワークスペースで引き続き利用できます。

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

よくある質問

MCPApp MCPサーバーは何に使いますか?

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

TypingMindでMCPApp MCPを複数のAIモデルと併用できますか?

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

TypingMindでMCPApp MCPを使うメリットは何ですか?

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

MCPApp MCPをTypingMindに接続するにはどうすればよいですか?

ホストされているMCPAppのMCPサーバーURLを追加すると、TypingMindに接続できます。TypingMindのワークスペースから利用できるリモートMCP接続が必要な場合に便利です。

TypingMindでMCPApp MCPのどのようなツールを利用できますか?

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

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

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

関連するMCPサーバー

すべて見る

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

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