# Line-bot

MCP server for LINE Messaging API — send messages, manage groups, rich menus, webhooks, and more.

## Quick Start

```bash
# Connect this server (installs CLI if needed)
npx -y @smithery/cli@latest mcp add node2flow/line-bot

# Browse available tools
npx -y @smithery/cli@latest tool list node2flow/line-bot

# Get full schema for a tool
npx -y @smithery/cli@latest tool get node2flow/line-bot line_push_message

# Call a tool
npx -y @smithery/cli@latest tool call node2flow/line-bot line_push_message '{}'
```

## Direct MCP Connection

Endpoint: `https://line-bot--node2flow.run.tools`

**Required config:**
- `LINE_CHANNEL_ACCESS_TOKEN` (query) — LINE Channel Access Token from LINE Developers Console (Messaging API channel settings)

## Tools (25)

- `line_push_message` — Send a push message to a LINE user, group, or room. Supports all message types: text, image, video, audio, file, locati…
- `line_reply_message` — Reply to a webhook event using a reply token. The token expires quickly, so use immediately after receiving an event. F…
- `line_multicast_message` — Send a message to multiple users simultaneously (max 500 user IDs). More efficient than individual push messages.
- `line_broadcast_message` — Send a message to all followers of the bot. No user IDs needed. Consumes message quota based on number of followers.
- `line_validate_message` — Validate message objects before sending. Returns 200 OK if valid, or error details if invalid. Use to check message for…
- `line_get_profile` — Get a LINE user profile. Returns display name, profile picture URL, status message, and language. The user must have ad…
- `line_get_follower_ids` — Get a list of user IDs of users who added the bot as friend. Returns up to 300 IDs per page. Use the next token for pag…
- `line_get_bot_info` — Get bot basic information: user ID, basic ID, display name, picture URL, chat mode, and mark-as-read mode.
- `line_display_loading` — Display a loading animation in the chat. Useful before performing slow operations. Animation shows for the specified du…
- `line_get_group_summary` — Get group chat summary: group name, picture URL, and creation time.
- `line_get_group_members_count` — Get the number of members in a group chat.
- `line_get_group_member_ids` — Get a list of user IDs of group members. Returns up to 100 IDs per page. Use the next token for pagination.
- `line_get_group_member_profile` — Get profile of a specific member within a group chat.
- `line_create_rich_menu` — Create a rich menu for the bot. Returns the created rich menu ID. After creating, upload an image and set it as default…
- `line_get_rich_menus` — List all rich menus created for the bot. Returns array of rich menu objects with IDs, names, sizes, and areas.
- `line_get_rich_menu` — Get details of a specific rich menu by ID.
- `line_delete_rich_menu` — Delete a rich menu. If this was the default menu or linked to users, it will be unlinked automatically.
- `line_set_default_rich_menu` — Set a rich menu as the default for all users who have not been individually linked to a different rich menu.
- `line_link_rich_menu_to_user` — Link a specific rich menu to a user. This overrides the default rich menu for that user.
- `line_get_quota` — Get the monthly message quota for the bot. Returns the quota type and limit value.
- `line_get_quota_consumption` — Get the number of messages sent this month. Use with line_get_quota to check remaining messages.
- `line_get_followers_count` — Get follower statistics for a specific date: number of followers, targeted reaches, and blocks.
- `line_set_webhook_url` — Set the webhook endpoint URL for receiving LINE events (messages, follows, etc.).
- `line_get_webhook_info` — Get the current webhook endpoint URL and whether it is active.
- `line_test_webhook` — Test webhook endpoint connectivity. Sends a test request to the configured webhook URL and returns the result.

```bash
# Get full input/output schema for a tool
npx -y @smithery/cli@latest tool get node2flow/line-bot <tool-name>
```

## Resources

- `line://server-info` — Connection status and available tools for this LINE MCP server

## Prompts (2)

- `send-messages` — Guide for sending different types of messages via LINE bot
- `manage-bot` — Guide for managing LINE bot — groups, rich menus, webhooks, and insights

---

License: MIT
