集成LINE Messaging API的MCP服务器,用于将AI Agent连接到LINE官方账号,支持消息广播、用户资料获取、菜单管理等多种LINE功能。

下载次数: 0状态:社区镜像维护者:mcp(Model Context Protocol)仓库类型:镜像最近更新:
下载命令
点击查看

LINE MCP Server

MCP server that integrates the LINE Messaging API to connect an AI Agent to the LINE Official Account.

https://www.anthropic.com/news/model-context-protocol

MCP Info

AttributeDetails
Docker Imagehttps://hub.docker.com/repository/docker/mcp/line
Authorhttps://github.com/line
Repositoryhttps://github.com/line/line-bot-mcp-server

Image Building Info

AttributeDetails
Dockerfilehttps://github.com/line/line-bot-mcp-server/blob/ada7c33eac5531b49b3d48fd4c147c1f76fd7193/Dockerfile
Commitada7c33eac5531b49b3d48fd4c147c1f76fd7193
Docker Image built byDocker Inc.
Docker Scout Health Score
Verify SignatureCOSIGN_REPOSITORY=mcp/signatures cosign verify mcp/line --key https://raw.githubusercontent.com/docker/keyring/refs/heads/main/public/mcp/latest.pub
LicenceApache License 2.0

Available Tools (12)

Tools provided by this ServerShort Description
broadcast_flex_messageBroadcast a highly customizable flex message via LINE to all users who have added your LINE Official Account.
broadcast_text_messageBroadcast a simple text message via LINE to all users who have followed your LINE Official Account.
cancel_rich_menu_defaultCancel the default rich menu.
create_rich_menuCreate a rich menu based on the given actions.
delete_rich_menuDelete a rich menu from your LINE Official Account.
get_follower_idsGet a list of user IDs of users who have added the LINE Official Account as a friend.
get_message_quotaGet the message quota and consumption of the LINE Official Account.
get_profileGet detailed profile information of a LINE user including display name, profile picture URL, status message and language.
get_rich_menu_listGet the list of rich menus associated with your LINE Official Account.
push_flex_messagePush a highly customizable flex message to a user via LINE.
push_text_messagePush a simple text message to a user via LINE.
set_rich_menu_defaultSet a rich menu as the default rich menu.

Tools Details

Tool: broadcast_flex_message

Broadcast a highly customizable flex message via LINE to all users who have added your LINE Official Account. Supports both bubble (single container) and carousel (multiple swipeable bubbles) layouts. Please be aware that this message will be sent to all users.

ParametersTypeDescription
messageobject

This tool may perform destructive updates.


Tool: broadcast_text_message

Broadcast a simple text message via LINE to all users who have followed your LINE Official Account. Use this for sending plain text messages without formatting. Please be aware that this message will be sent to all users.

ParametersTypeDescription
messageobject

This tool may perform destructive updates.


Tool: cancel_rich_menu_default

Cancel the default rich menu.

Tool: create_rich_menu

Create a rich menu based on the given actions. Generate and upload a rich menu image based on the given action. This rich menu will be registered as the default.

ParametersTypeDescription
actionsarrayThe actions of the rich menu.
chatBarTextstringText displayed in the chat bar and this is also used as name of the rich menu to create

This tool may perform destructive updates.


Tool: delete_rich_menu

Delete a rich menu from your LINE Official Account.

ParametersTypeDescription
richMenuIdstringThe ID of the rich menu to delete.

This tool may perform destructive updates.


Tool: get_follower_ids

Get a list of user IDs of users who have added the LINE Official Account as a friend. This allows you to obtain user IDs for sending messages without manually preparing them.

ParametersTypeDescription
limitnumber optionalThe maximum number of user IDs to retrieve in a single request.
startstring optionalContinuation token to get the next array of user IDs. Returned in the 'next' property of a previous response.

This tool is read-only. It does not modify its environment.


Tool: get_message_quota

Get the message quota and consumption of the LINE Official Account. This shows the monthly message limit and current usage.

Tool: get_profile

Get detailed profile information of a LINE user including display name, profile picture URL, status message and language.

ParametersTypeDescription
userIdstring optionalThe user ID to get a profile. Defaults to DESTINATION_USER_ID.

This tool is read-only. It does not modify its environment.


Tool: get_rich_menu_list

Get the list of rich menus associated with your LINE Official Account.

Tool: push_flex_message

Push a highly customizable flex message to a user via LINE. Supports both bubble (single container) and carousel (multiple swipeable bubbles) layouts.

ParametersTypeDescription
messageobject
userIdstring optionalThe user ID to receive a message. Defaults to DESTINATION_USER_ID.

This tool may perform destructive updates.


Tool: push_text_message

Push a simple text message to a user via LINE. Use this for sending plain text messages without formatting.

ParametersTypeDescription
messageobject
userIdstring optionalThe user ID to receive a message. Defaults to DESTINATION_USER_ID.

This tool may perform destructive updates.


Tool: set_rich_menu_default

Set a rich menu as the default rich menu.

ParametersTypeDescription
richMenuIdstringThe ID of the rich menu to set as default.

This tool may perform destructive updates.


Use this MCP Server

json
{
  "mcpServers": {
    "line": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "DESTINATION_USER_ID",
        "-e",
        "CHANNEL_ACCESS_TOKEN",
        "mcp/line"
      ],
      "env": {
        "DESTINATION_USER_ID": "FILL_HERE",
        "CHANNEL_ACCESS_TOKEN": "FILL_HERE"
      }
    }
  }
}

https://www.docker.com/blog/the-model-context-protocol-simplifying-building-ai-apps-with-anthropic-claude-desktop-and-docker/

镜像拉取方式

您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。

轩辕镜像加速拉取命令点我查看更多 line 镜像标签

docker pull docker.xuanyuan.run/mcp/line:<标签>

DockerHub 原生拉取命令

docker pull mcp/line:<标签>
专业版 · 高速稳定拉取镜像
50GB 仅 ¥8/年
高速镜像下载在线技术支持专业版保障服务可用付费会员免广告