{"id":27587470,"url":"https://github.com/line/line-bot-mcp-server","last_synced_at":"2025-04-22T07:02:22.334Z","repository":{"id":287206129,"uuid":"960342594","full_name":"line/line-bot-mcp-server","owner":"line","description":"MCP server that integrates the LINE Messaging API to connect an AI Agent to the LINE Official Account.","archived":false,"fork":false,"pushed_at":"2025-04-17T03:35:07.000Z","size":1232,"stargazers_count":287,"open_issues_count":7,"forks_count":35,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-04-17T16:28:38.054Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/line.png","metadata":{"files":{"readme":"README.ja.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-04-04T09:15:05.000Z","updated_at":"2025-04-17T12:43:06.000Z","dependencies_parsed_at":"2025-04-10T14:54:19.343Z","dependency_job_id":"58d63c93-ea85-4762-a4a4-36453a78c6d5","html_url":"https://github.com/line/line-bot-mcp-server","commit_stats":null,"previous_names":["line/line-bot-mcp-server"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/line%2Fline-bot-mcp-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/line%2Fline-bot-mcp-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/line%2Fline-bot-mcp-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/line%2Fline-bot-mcp-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/line","download_url":"https://codeload.github.com/line/line-bot-mcp-server/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250188389,"owners_count":21389289,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-04-22T07:01:47.528Z","updated_at":"2025-04-22T07:02:22.325Z","avatar_url":"https://github.com/line.png","language":"TypeScript","funding_links":[],"categories":["Communication \u0026 Messaging","Messaging MCP Servers","MCP Servers","MCP Servers \u0026 Integrations","💬 \u003ca name=\"communication\"\u003e\u003c/a\u003eCommunication","📚 Projects (1974 total)","💬 Communication","Communication","サーバー実装","Official Servers","官方 MCP 服务器列表","APIs and HTTP Requests","AI Agent Frameworks","Server Implementations"],"sub_categories":["Messengers","Social \u0026 Messaging","Other IDEs","MCP Servers","💬 \u003ca name=\"communication\"\u003e\u003c/a\u003eコミュニケーション","💬 \u003ca name=\"communication\"\u003e\u003c/a\u003eCommunication"],"readme":"# LINE Bot MCP Server\n\nLINE公式アカウントとAI Agentを接続するために、LINE Messaging APIを統合する[Model Context Protocol (MCP)](https://github.com/modelcontextprotocol) Server\n\n![](/assets/demo.ja.png)\n\n\u003e [!NOTE]\n\u003e このリポジトリはプレビュー版として提供されています。実験的な目的で提供されており、完全な機能や包括的なサポートが含まれていないことにご注意ください。\n\n## Tools\n\n1. **push_text_message**\n   - LINEでユーザーにシンプルなテキストメッセージを送信する。\n   - **入力:**\n     - `user_id` (string?): メッセージ受信者のユーザーID。デフォルトはDESTINATION_USER_ID。\n     - `message.text` (string): ユーザーに送信するテキスト。\n2. **push_flex_message**\n   - LINEでユーザーに高度にカスタマイズ可能なフレックスメッセージを送信する。\n   - **入力:**\n     - `user_id` (string?): メッセージ受信者のユーザーID。デフォルトはDESTINATION_USER_ID。\n     - `message.altText` (string): フレックスメッセージが表示できない場合に表示される代替テキスト。\n     - `message.content` (any): フレックスメッセージの内容。メッセージのレイアウトとコンポーネントを定義するJSONオブジェクト。\n     - `message.contents.type` (enum): コンテナのタイプ。'bubble'は単一コンテナ、'carousel'は複数のスワイプ可能なバブルを示す。\n3. **broadcast_text_message**\n   - LINE公式アカウントと友だちになっているすべてのユーザーに、LINEでシンプルなテキストメッセージを送信する。\n   - **入力:**\n     - `message.text` (string): ユーザーに送信するテキスト。\n4. **broadcast_flex_message**\n   - LINE公式アカウントと友だちになっているすべてのユーザーに、LINEで高度にカスタマイズ可能なフレックスメッセージを送信する。\n   - **入力:**\n     - `message.altText` (string): フレックスメッセージが表示できない場合に表示される代替テキスト。\n     - `message.content` (any): フレックスメッセージの内容。メッセージのレイアウトとコンポーネントを定義するJSONオブジェクト。\n     - `message.contents.type` (enum): コンテナのタイプ。'bubble'は単一コンテナ、'carousel'は複数のスワイプ可能なバブルを示す。\n5. **get_profile**\n   - LINEユーザーの詳細なプロフィール情報を取得する。表示名、プロフィール画像URL、ステータスメッセージ、言語を取得できる。\n   - **Inputs:**\n      - `user_id` (string?): プロフィールを取得したいユーザーのユーザーID。デフォルトはDESTINATION_USER_ID。\n\n## インストール\n\n### Step 1: line-bot-mcp-serverをインストール\n\n要件:\n- Node.js v20 以上\n\nこのリポジトリをクローンします:\n\n```\ngit clone git@github.com:line/line-bot-mcp-server.git\n```\n\nNode.jsを利用する場合は、必要な依存関係をインストールし、line-bot-mcp-serverをビルドします。Dockerを利用する場合は不要です。:\n\n```\ncd line-bot-mcp-server \u0026\u0026 npm install \u0026\u0026 npm run build\n```\n\n\n### Step 2: LINE公式アカウントを作成\n\nこのMCP ServerはLINE公式アカウントを利用しています。公式アカウントをお持ちでない場合は、[こちらの手順](https://developers.line.biz/ja/docs/messaging-api/getting-started/#create-oa)に従って作成してください。\n\nLINE公式アカウントをお持ちであれば、[こちらの手順](/docs/messaging-api/getting-started/#using-oa-manager)に従ってMessaging APIを有効にしてください。\n\n### Step 3: AI Agentを設定\n\nClaude DesktopやClaudeなどのAI Agentに次の設定を追加してください。\n\n環境変数や引数は次のように設定してください:\n\n- `mcpServers.args`: (必須) `line-bot-mcp-server`へのパス。\n- `CHANNEL_ACCESS_TOKEN`: (必須) チャネルアクセストークン。これを取得するには、[こちらの手順](https://developers.line.biz/ja/docs/basics/channel-access-token/#long-lived-channel-access-token)に従ってください。\n- `DESTINATION_USER_ID`: (オプション) デフォルトのメッセージ受信者のユーザーID。これを確認するには、[こちらの手順](https://developers.line.biz/ja/docs/messaging-api/getting-user-ids/#get-own-user-id)に従ってください。\n\n### Step 3: AI Agentを設定\n\nClaude DesktopやClaudeなどのAI Agentに次の設定を追加してください。\n`CHANNEL_ACCESS_TOKEN`と`DESTINATION_USER_ID`には、先ほど取得したチャネルアクセストークンとユーザーIDをそれぞれ挿入してください。\n加えて、`mcpServers.args`にある`line-bot-mcp-server`へのパスを更新してください。\n\n#### Option 1: Node.jsを利用する場合\n\n```json\n{\n  \"mcpServers\": {\n    \"line-bot\": {\n      \"command\": \"node\",\n      \"args\": [\n        \"PATH/TO/line-bot-mcp-server/dist/index.js\"\n      ],\n      \"env\": {\n        \"CHANNEL_ACCESS_TOKEN\" : \"FILL_HERE\",\n        \"DESTINATION_USER_ID\" : \"FILL_HERE\"\n      }\n    }\n  }\n}\n```\n\n#### Option 2: Dockerを利用する場合\n\nまずDockerイメージをビルドします:\n```\ndocker build -t line/line-bot-mcp-server .\n```\n\n次のように設定します:\n\n```json\n{\n  \"mcpServers\": {\n    \"line-bot\": {\n      \"command\": \"docker\",\n      \"args\": [\n        \"run\",\n        \"-i\",\n        \"--rm\",\n        \"-e\",\n        \"CHANNEL_ACCESS_TOKEN\",\n        \"-e\",\n        \"DESTINATION_USER_ID\",\n        \"line/line-bot-mcp-server\"\n      ],\n      \"env\": {\n        \"CHANNEL_ACCESS_TOKEN\" : \"FILL_HERE\",\n        \"DESTINATION_USER_ID\" : \"FILL_HERE\"\n      }\n    }\n  }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fline%2Fline-bot-mcp-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fline%2Fline-bot-mcp-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fline%2Fline-bot-mcp-server/lists"}