How to Integrate AI Agents with LINE Messaging API via LINE MCP Server

Unlock AI-powered LINE chatbots by integrating the open-source LINE MCP server with the Messaging API. This guide covers setup, use cases, and troubleshooting for developers seeking seamless AI and messaging platform integration.

Ashley Goolam

Ashley Goolam

30 January 2026

How to Integrate AI Agents with LINE Messaging API via LINE MCP Server

Apidog for Enterprise

On-Premises Deploy

SSO & RBAC

SOC 2 Compliant

Explore Apidog Enterprise

Connect your AI agents directly to the LINE Messaging API with the open-source LINE MCP server. This step-by-step guide shows API professionals how to set up and use the LINE MCP server, power AI-driven LINE bots, and streamline development with best practices.

💡 Looking for robust API testing, beautiful API documentation, and a unified workspace for your developer team? Discover how Apidog boosts productivity and replaces Postman at a better price.

button

What Is LINE and Why Integrate AI?

LINE is one of Asia’s most popular messaging platforms, serving millions of active users. Its Messaging API enables developers to build chatbots and automation for LINE Official Accounts, handling tasks like customer support, notifications, and broadcasts.

Unlocking AI for LINE Bots

By integrating advanced AI agents (such as Claude or Gemini) with the LINE Messaging API, you can deliver human-like, conversational experiences at scale. The LINE MCP server bridges this gap, allowing your AI to interact with users natively in LINE—sending messages, retrieving user info, and more.


Introducing the LINE MCP Server

The LINE MCP server is an open-source project from LINE that connects AI agents to the LINE Messaging API using the Model Context Protocol (MCP)—a standardized protocol for AI tool access (think “universal adapter” for AI).

Key Features:

Note: The LINE MCP server is currently in a trial phase and supports core Messaging API features, making it an ideal playground for AI-powered chatbot development.


Why Use the LINE MCP Server?

For API and backend engineers, the LINE MCP server offers:


Step-by-Step: Installing the LINE MCP Server with Claude Desktop

Prerequisites

Before you begin, ensure you have:


Option 1: Installation Using npx

Step 1: Set Up Your LINE Official Account

user id

channel access token

Step 2: Install Claude Desktop

Install claude desktop

Step 3: Configure LINE MCP Server in Claude Desktop

settings

edit claude configuration

{
  "mcpServers": {
    "line-bot": {
      "command": "npx",
      "args": ["@line/line-bot-mcp-server"],
      "env": {
        "CHANNEL_ACCESS_TOKEN": "FILL_HERE",
        "DESTINATION_USER_ID": "FILL_HERE"
      }
    }
  }
}

available mcp servers in claude


Option 2: Installation Using Docker

Step 1: Create LINE Official Account

Follow the same steps as in the npx method above.

Step 2: Build and Run the LINE MCP Server Docker Image

docker desktop

git clone git@github.com:line/line-bot-mcp-server.git
cd line-bot-mcp-server
docker build -t line/line-bot-mcp-server .

Step 3: Configure in Claude Desktop

{
  "mcpServers": {
    "line-bot": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "CHANNEL_ACCESS_TOKEN",
        "-e",
        "DESTINATION_USER_ID",
        "line/line-bot-mcp-server"
      ],
      "env": {
        "CHANNEL_ACCESS_TOKEN": "FILL_HERE",
        "DESTINATION_USER_ID": "FILL_HERE"
      }
    }
  }
}

claude available tools


Testing the LINE MCP Server: Example Prompts

Once set up, you can interact with your LINE bot using natural language prompts.

1. Send a Simple Text Message

Prompt:
Send LINE message to user say "I love you MCP"

sample prompt 1

Claude will send this message to your LINE user via the MCP server.


2. Retrieve User Profile and Send Flex Message

Prompt:
Get user profile and create beautiful Flex message and send to user

user id0

The server will fetch the user’s display name and image, then craft a personalized Flex Message.


Troubleshooting Common Issues


How Does LINE MCP Server Accelerate AI Integration?

The LINE MCP server transforms your LINE bot into an AI-powered assistant with:

Practical Example:
Let users ask, “What’s my profile name?” and the AI fetches it via the MCP server in real-time, or broadcast targeted promotions with a single prompt.


Conclusion

The LINE MCP server is a powerful bridge between AI agents and the LINE Messaging API—enabling teams to build advanced, conversational LINE bots without friction. Whether you’re prototyping or scaling, the setup is straightforward and developer-friendly.

If your team values fast, collaborative API development, Apidog provides clear documentation, productivity tools, and an integrated platform that outperforms Postman for less.

button

Explore more

MiniMax M3 vs Claude Opus 4.7 vs GPT-5.5: Coding Benchmarks Compared

MiniMax M3 vs Claude Opus 4.7 vs GPT-5.5: Coding Benchmarks Compared

MiniMax M3 vs Claude Opus 4.7 vs GPT-5.5: SWE-Bench Pro, Terminal-Bench, and agentic scores compared, plus pricing and which model to choose.

1 June 2026

What Is MiniMax M3? The First Open-Weight Frontier Coding Model

What Is MiniMax M3? The First Open-Weight Frontier Coding Model

What is MiniMax M3? A clear guide to MiniMax's open-weight model: 1M-token context, native multimodality, SWE-Bench Pro 59%, and how to access it.

1 June 2026

Claude Opus 4.8 vs GPT-5.5 vs Gemini 3.5: Which Model Wins?

Claude Opus 4.8 vs GPT-5.5 vs Gemini 3.5: Which Model Wins?

Claude Opus 4.8 vs GPT-5.5 vs Gemini 3.5 compared: agentic benchmarks, pricing, context windows, coding strength, and when to pick each frontier model for your workload.

1 June 2026

Practice API Design-first in Apidog

Discover an easier way to build and use APIs