# Repository Briefing: line/line-bot-mcp-server
> Source: https://repoforai.com/repo/line/line-bot-mcp-server (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/line/line-bot-mcp-server
- **Category**: Coding, Skills & MCP (AI 编程 / Skills / MCP)
- **Primary Language**: TypeScript
- **License**: Apache-2.0
- **Engineering Health**: A+ (88/100 · Maintenance 35/35 · Adoption 19/25 · Releases 14/20 · License 20/20)
- **Latest Release**: v0.5.0 (2026-05-29) — https://github.com/line/line-bot-mcp-server/releases
- **Review Snapshot**: 2026-12-04
- **Deployment / Stack Signals**: Docker, MCP, CLI, API
- **Momentum**: 809 ★ total (+0 24h / +2 7d) · 160 forks
- **Topics**: `line`, `linebot`, `mcp`, `mcp-server`
- **When to Use**: Best for: Teams adding LINE notifications, Flex messages, or rich-menu creation to an existing MCP agent, with a test account or operator approval for broadcasts. Skip if: You need an inbound webhook backend, offline delivery, or application-enforced controls for unattended production messaging.

## Overview
```text
### Architecture & Core Mechanics
The server is a TypeScript adapter between an MCP client and the LINE Messaging API. In the documented setup, clients such as Claude Desktop and Cline launch the CLI with npx or docker run -i and exchange MCP traffic over stdio. The server uses the channel access token for LINE API calls; the client supplies the agent and decides when to invoke a tool.

The package exposes the line-bot-mcp-server binary. Its dependencies include @modelcontextprotocol/server, @line/bot-sdk, and Zod for the tool-facing stack, plus @marp-team/marp-core and Puppeteer for rendering-related work. The Docker runtime includes Chromium and CJK fonts. That creates two distinct workloads: ordinary API calls and browser-backed rendering for generated menus.

### Key Capabilities & Differentiators
The tools can push plain text or Flex messages to one user, or broadcast either format to the Official Account's followers. A per-user call can take userId explicitly or fall back to DESTINATION_USER_ID. Flex messages take altText and a JSON payload with a bubble or carousel container. The contents field is broadly typed, so callers should not count on MCP input validation to catch every invalid Flex layout.

get_profile can retrieve details such as display name, picture URL, status message, and language. Rich-menu creation can turn action definitions into a menu without a supplied image. v0.5.0 adds get_follower_ids, which requires a paid premium Official Account; that entitlement is separate from the ability to send a broadcast.

### Trade-offs & Limitations
Compared with integrating @line/bot-sdk directly, this server removes the need to write your own MCP wrappers for the covered operations. It is a good fit when the client already owns the agent workflow. A direct SDK integration is the better starting point when the application must receive webhooks or enforce its own recipient rules, approval flow, and retry policy. Do not assume those controls are provided by the preview server.

Running the adapter locally keeps model inference out of this process, but delivery still depends on LINE connectivity and account permissions. Rich-menu rendering adds browser and font dependencies that simple message sending does not need. Broadcast is also a separate risk from a test push: use a test account or require explicit approval in the surrounding workflow rather than treating the default recipient or tool annotations as safeguards.

### Hardware & Deployment Guide
Start with a LINE Official Account that has Messaging API enabled and supply CHANNEL_ACCESS_TOKEN. For a native setup, use Node.js 22 or newer and launch npx @line/line-bot-mcp-server; the documented client configuration sets NPM_CONFIG_IGNORE_SCRIPTS=true. Set DESTINATION_USER_ID only if per-user calls need a default. Keep the real token out of configuration files that will be committed or shared.

For Docker, build line/line-bot-mcp-server from the repository and run it with -i --rm, passing the required environment variables. The multi-stage Alpine build installs Chromium and fonts in the runtime image; containerization does not make LINE calls offline. Local development can use npm run build and MCP Inspector against dist/index.js. Rich-menu creation arrived in v0.4.0, v0.4.2 fixed that tool under npx, and v0.5.0 added follower IDs and tool annotations.
```

## Key Capabilities
```text
- Integration: A TypeScript CLI exposes LINE operations over MCP stdio to clients such as Claude Desktop and Cline.
- Message scope: Text and Flex messages support both individual pushes and account-wide broadcasts.
- Flex payloads: Messages require altText and accept bubble or carousel containers.
- Rich menus: Action definitions drive image generation without a supplied image; the Docker runtime includes Chromium and CJK fonts.
- Account data: get_profile reads user details; v0.5.0 adds get_follower_ids for eligible premium accounts.
- Tool testing: MCP Inspector can exercise the built dist/index.js entrypoint before it is wired into an agent.
```

## Quick Start / Clone
```bash
docker build -t line/line-bot-mcp-server .
```
