Skip to content

Commit 861a4a8

Browse files
committed
Add mcp/line
Signed-off-by: David Gageot <[email protected]>
1 parent f63a0be commit 861a4a8

File tree

3 files changed

+128
-0
lines changed

3 files changed

+128
-0
lines changed

prompts/catalog.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2280,3 +2280,26 @@ registry:
22802280
- name: azmcp-subscription-list
22812281
prompts: 0
22822282
resources: {}
2283+
line:
2284+
description: MCP server that integrates the LINE Messaging API to connect an AI Agent to the LINE Official Account.
2285+
ref: github:docker/labs-ai-tools-for-devs?ref=main&path=prompts/mcp/line.md
2286+
readme: github:docker/labs-ai-tools-for-devs?ref=main&path=prompts/mcp/readmes/line.md
2287+
source: https://github.com/line/line-bot-mcp-server/tree/main
2288+
icon: https://avatars.githubusercontent.com/u/13128444?v=4
2289+
tools:
2290+
- name: broadcast_flex_message
2291+
- name: broadcast_text_message
2292+
- name: get_profile
2293+
- name: push_flex_message
2294+
- name: push_text_message
2295+
secrets:
2296+
- name: line.access_token
2297+
prompts: 0
2298+
resources: {}
2299+
config:
2300+
- name: line
2301+
description: Configure the connection to LINE
2302+
type: object
2303+
properties:
2304+
user_id:
2305+
type: string

prompts/mcp/line.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
mcp:
3+
- container:
4+
image: mcp/line:latest
5+
workdir: /app
6+
secrets:
7+
line.access_token: CHANNEL_ACCESS_TOKEN
8+
environment:
9+
DESTINATION_USER_ID: "{{line.user_id}}"
10+
source:
11+
url: https://github.com/line/line-bot-mcp-server/tree/main
12+
---

prompts/mcp/readmes/line.md

Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
# Line MCP Server
2+
3+
MCP server that integrates the LINE Messaging API to connect an AI Agent to the LINE Official Account.
4+
5+
[What is an MCP Server?](https://www.anthropic.com/news/model-context-protocol)
6+
7+
## Characteristics
8+
Attribute|Details|
9+
|-|-|
10+
**Image Source**|Official Image
11+
|**Author**|[line](https://github.com/line)
12+
**Repository**|https://github.com/line/line-bot-mcp-server
13+
**Dockerfile**|https://github.com/line/line-bot-mcp-server/blob/main/Dockerfile
14+
**Docker Image built by**|Docker Inc.
15+
**Docker Scout Health Score**| ![Docker Scout Health Score](https://api.scout.docker.com/v1/policy/insights/org-image-score/badge/mcp/line)
16+
**Licence**|Apache License 2.0
17+
18+
## Available Tools
19+
Tools provided by this Server|Short Description
20+
-|-
21+
`broadcast_flex_message`|Broadcast a highly customizable flex message via LINE to all users who have added your LINE Official Account.|
22+
`broadcast_text_message`|Broadcast a simple text message via LINE to all users who have followed your LINE Official Account.|
23+
`get_profile`|Get detailed profile information of a LINE user including display name, profile picture URL, status message and language.|
24+
`push_flex_message`|Push a highly customizable flex message to a user via LINE.|
25+
`push_text_message`|Push a simple text message to a user via LINE.|
26+
27+
---
28+
## Tools Details
29+
30+
#### Tool: **`broadcast_flex_message`**
31+
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.
32+
Parameters|Type|Description
33+
-|-|-
34+
`message`|`object`|
35+
36+
---
37+
#### Tool: **`broadcast_text_message`**
38+
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.
39+
Parameters|Type|Description
40+
-|-|-
41+
`message`|`object`|
42+
43+
---
44+
#### Tool: **`get_profile`**
45+
Get detailed profile information of a LINE user including display name, profile picture URL, status message and language.
46+
Parameters|Type|Description
47+
-|-|-
48+
`userId`|`string` *optional*|The user ID to receive a message. Defaults to DESTINATION_USER_ID.
49+
50+
---
51+
#### Tool: **`push_flex_message`**
52+
Push a highly customizable flex message to a user via LINE. Supports both bubble (single container) and carousel (multiple swipeable bubbles) layouts.
53+
Parameters|Type|Description
54+
-|-|-
55+
`message`|`object`|
56+
`userId`|`string` *optional*|The user ID to receive a message. Defaults to DESTINATION_USER_ID.
57+
58+
---
59+
#### Tool: **`push_text_message`**
60+
Push a simple text message to a user via LINE. Use this for sending plain text messages without formatting.
61+
Parameters|Type|Description
62+
-|-|-
63+
`message`|`object`|
64+
`userId`|`string` *optional*|The user ID to receive a message. Defaults to DESTINATION_USER_ID.
65+
66+
---
67+
## Use this MCP Server
68+
69+
```json
70+
{
71+
"mcpServers": {
72+
"line": {
73+
"command": "docker",
74+
"args": [
75+
"run",
76+
"-i",
77+
"--rm",
78+
"-e",
79+
"DESTINATION_USER_ID",
80+
"-e",
81+
"CHANNEL_ACCESS_TOKEN",
82+
"mcp/line"
83+
],
84+
"env": {
85+
"DESTINATION_USER_ID": "FILL_HERE",
86+
"CHANNEL_ACCESS_TOKEN": "FILL_HERE"
87+
}
88+
}
89+
}
90+
}
91+
```
92+
93+
[Why is it safer to run MCP Servers with Docker?](https://www.docker.com/blog/the-model-context-protocol-simplifying-building-ai-apps-with-anthropic-claude-desktop-and-docker/)

0 commit comments

Comments
 (0)