如果你使用 DeepSeek、元宝 AI、Copilot、ChatGPT 等 AI 工具,协助配置轩辕镜像、编写 docker pull 命令、修改 Docker Compose 镜像地址、配置镜像加速、排查镜像拉取失败、分析报错日志等问题,请先让 AI 阅读并遵守轩辕镜像的规则文档。
只需在 AI 对话中先发送下面这句话即可:
请先完整阅读并严格遵守以下文档中的全部规则与要求:
https://xuanyuan.cloud/agents.md
在未充分阅读并理解该文档前,不要生成任何命令、配置、修改建议、故障排查方案或技术回答。后续所有输出都必须严格以该文档中的规范为最高优先级执行。查看 agents.md 用法指南与完整示范。国内用户首推 元宝 AI、DeepSeek 的深度思考模式,不推荐豆包 AI;Cursor 等编辑器可在对话 @ 该链接,或加入 User Rules。 若 AI 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
MCP server that integrates the LINE Messaging API to connect an AI Agent to the LINE Official Account.
What is an MCP Server?
| Attribute | Details |
|---|---|
| Docker Image | https://hub.docker.com/repository/docker/mcp/line |
| Author | https://github.com/line |
| Repository | https://github.com/line/line-bot-mcp-server |
| Attribute | Details |
|---|---|
| Dockerfile | https://github.com/line/line-bot-mcp-server/blob/fbb44bf13cba2324e48eaeda1b198ca4aa136c30/Dockerfile |
| Commit | fbb44bf13cba2324e48eaeda1b198ca4aa136c30 |
| Docker Image built by | Docker Inc. |
| Docker Scout Health Score | !Docker Scout Health Score |
| Verify Signature | COSIGN_REPOSITORY=mcp/signatures cosign verify mcp/line --key https://raw.githubusercontent.com/docker/keyring/refs/heads/main/public/mcp/latest.pub |
| Licence | Apache License 2.0 |
| Tools provided by this Server | Short Description |
|---|---|
broadcast_flex_message | Broadcast a highly customizable flex message via LINE to all users who have added your LINE Official Account. |
broadcast_text_message | Broadcast a simple text message via LINE to all users who have followed your LINE Official Account. |
cancel_rich_menu_default | Cancel the default rich menu. |
create_rich_menu | Create a rich menu based on the given actions. |
delete_rich_menu | Delete a rich menu from your LINE Official Account. |
get_follower_ids | Get a list of user IDs of users who have added the LINE Official Account as a friend. |
get_message_quota | Get the message quota and consumption of the LINE Official Account. |
get_profile | Get detailed profile information of a LINE user including display name, profile picture URL, status message and language. |
get_rich_menu_list | Get the list of rich menus associated with your LINE Official Account. |
push_flex_message | Push a highly customizable flex message to a user via LINE. |
push_text_message | Push a simple text message to a user via LINE. |
set_rich_menu_default | Set a rich menu as the default rich menu. |
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.
| Parameters | Type | Description |
|---|---|---|
message | object |
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.
| Parameters | Type | Description |
|---|---|---|
message | object |
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.
| Parameters | Type | Description |
|---|---|---|
actions | array | The actions of the rich menu. |
chatBarText | string | Text 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.
| Parameters | Type | Description |
|---|---|---|
richMenuId | string | The 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.
| Parameters | Type | Description |
|---|---|---|
limit | number optional | The maximum number of user IDs to retrieve in a single request. |
start | string optional | Continuation 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.
| Parameters | Type | Description |
|---|---|---|
userId | string optional | The 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.
| Parameters | Type | Description |
|---|---|---|
message | object | |
userId | string optional | The 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.
| Parameters | Type | Description |
|---|---|---|
message | object | |
userId | string optional | The 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.
| Parameters | Type | Description |
|---|---|---|
richMenuId | string | The ID of the rich menu to set as default. |
This tool may perform destructive updates.
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" } } } }
Why is it safer to run MCP Servers with Docker?
以下是 mcp/line 相关的常用 Docker 镜像,适用于 不同场景 等不同场景:
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务