# LINE — MCP server on mcp.ai > Connect your LINE account and use 13 tools for communication straight from your AI agent. Connect with your own API key. Use a LINE Official Account's Messaging API channel to manage messages, audiences, and rich menus. By: mcp.ai · official Page: https://mcp.ai/line ## Connect (MCP protocol) Remote MCP endpoint (HTTP, streamable): https://api.mcp.ai/p_line?ms=1787291520000 Add it as a custom/remote MCP connector, then authenticate when prompted. ## REST API (no MCP client required) Every tool is also a REST endpoint, authed with a workspace API key. Discover: GET https://api.mcp.ai/api/line/_endpoints # public; lists every endpoint Call: POST https://api.mcp.ai/api/line/ Authorization: Bearer sk_live_… # create one at https://mcp.ai/settings/api-keys Content-Type: application/json Body: { …args } → { "ok": true, "tool": "", "result": { … } } ## Developer docs How to use (MCP or REST), markdown: https://mcp.ai/line/skill.md Postman collection (v2.1): https://mcp.ai/line/postman.json ## Tools - line_create_rich_menu(name: string, size: object, areas: object[], selected: boolean, chat_bar_text: string) — Create a rich-menu definition and return its ID. Creation alone does not display it: upload an image, then set it as default or link it to a user. - line_create_rich_menu_with_image(name: string, size: object, areas: object[], image: object, selected: boolean, chat_bar_text: string) — Create a rich-menu definition and upload its JPEG or PNG image in one call. If image upload fails, the newly created definition is deleted automatically. The finished menu must still be set as default - line_delete_rich_menu(rich_menu_id: string) — Permanently delete a rich menu by ID. Delete only a menu the caller owns or explicitly intends to remove. - line_download_message_content_preview(message_id: string) — Download LINE's reduced-size preview image for a retained image or video message whose contentProvider.type is line. - line_get_message_delivery_count(date: string, message_type: string) — Get the number of reply, push, multicast, or broadcast messages sent on one UTC+9 calendar date. A result can be unready, unavailable_for_privacy, or out_of_service instead of containing a count. - line_get_rich_menu(rich_menu_id: string) — Get one Messaging API rich-menu definition by ID, including its canvas, tappable areas, and actions. - line_link_or_unlink_user_rich_menu(user_id: string, operation: string, rich_menu_id?: string) — Link or unlink a per-user rich menu. WARNING: LINE can return HTTP 200 even when nothing changed for a nonexistent, deleted, blocked, non-friend, or cross-channel user; success confirms request accept - line_list_chat_member_ids(chat_id: string, chat_type: string, next_cursor?: string) — Return one page of member user IDs for a group or legacy room containing the bot. Requires a verified or premium LINE Official Account; room applies only to legacy multi-person chats. - line_list_follower_ids(limit?: integer, next_cursor?: string) — Return one page of user IDs for friends of the LINE Official Account. This endpoint requires a verified or premium LINE Official Account and excludes blockers, deleted users, and users without profile - line_list_rich_menus() — List all rich menus created through the Messaging API. Menus created in LINE Official Account Manager are not included. - line_mark_messages_as_read(mark_as_read_token: string) — Mark all messages through a webhook-issued read token as read. The token must have been received by this exact bot; this operation cannot be undone. - line_set_or_clear_default_rich_menu(operation: string, rich_menu_id?: string) — Set or clear the Messaging API default rich menu. Setting requires an image-backed rich menu; clearing does not delete the menu and does not clear a default managed in LINE Official Account Manager. - line_upload_rich_menu_image(image: object, rich_menu_id: string) — Upload a JPEG or PNG image for a rich menu. An image cannot be replaced for the same rich-menu ID; create a new menu to use another image. ## Example prompts - "What can I do in LINE?" - "Show me a summary of my LINE account" ## Links Docs: https://mcp.ai/docs/mcps/line Website: https://mcp.ai/mcps/line