|
| 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**|  |
| 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