LINE Shopping API MCP
This server exposes the LINE Shopping API as MCP tools so AI agents can manage a merchant's products, inventory, orders, settlements, and customer messaging.
Checkout links: Generate a checkout link from up to 15 order items (product/variant + quantity).
Inventory management: Adjust, increase, or decrease stock levels by inventory ID; returns on-hand, reserved, available, and ready-to-ship counts.
Order management: List/filter orders (status, payment, shipment, date range, search, sorting, pagination) and fetch full order details including items and shipping address.
Order fulfillment actions: Cancel orders, confirm delivery, mark as shipped, update tracking numbers, mark COD orders as paid, and mark orders as paid/shipped.
Parcel labels: Download parcel labels in A4 or thermal format with configurable options, languages, and extra details.
Customer messaging: Send up to 5 OA Plus flex messages tied to an order.
Product management: List/search products and create, update (details, price, instant discount, display status), or delete products and their variants.
Settlement: Retrieve settlement and order income details (payout balance, fees, VAT, withholding tax, settlement status).
Provides tools for managing LINE Shopping products, inventory, orders, settlements, and checkout links via the LINE Shopping API.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@LINE Shopping API MCP list orders placed today"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
LINE Shopping API MCP Server
MCP Server for the LINE Shopping API, enabling AI agents and tools to interact with LINE Shopping data and operations via the Model Context Protocol. This server provides tools for managing products, inventory, orders, settlements, and more, using the official LINE Shopping API.
Features
Product Management: Search, create, update, and delete products and variants
Inventory Management: Adjust, increase, or decrease inventory levels
Order Management: Query, view, cancel, and update orders
Settlement: Retrieve settlement details for orders
OpenAPI Integration: All tools are auto-generated from the OpenAPI spec
Related MCP server: LineWhiz
Prerequisites
Python >= 3.11
uv (Python package manager)
LINE Shopping API key, supplied in the MCP request's
X-API-KEYheader or through the optionalX_API_KEYenvironment variable
Installation
Method 1: Using uvx (Recommended)
Install and run directly from PyPI using uvx:
# Run the Streamable HTTP server at http://127.0.0.1:8000/mcp/
uvx --from lineshopping-api-mcp lineshopping-mcpMethod 2: Clone and Run
Clone the repository:
git clone https://github.com/woraphol-j/lineshopping-api-mcp.git cd lineshopping-api-mcpInstall dependencies:
uv syncRun the server:
uv run fastmcp run app.py --transport streamable-http --host 127.0.0.1 --port 8000 --path /mcp/
Authentication
LINE API tool calls need the merchant's API key in the incoming MCP request:
X-API-KEY: <merchant-api-key>The server forwards this header to the corresponding OAPlus API request. If the X_API_KEY environment variable is set to a non-blank value, it takes precedence over the request header. Otherwise, each request can provide its own key. A missing key fails the LINE API tool call; MCP initialization and tool discovery do not require one.
Configuration & Integration
Connect an MCP client
Start the local Streamable HTTP server:
uv run fastmcp run app.py --transport streamable-http --host 127.0.0.1 --port 8000 --path /mcp/Configure the client to send its merchant key as an HTTP header:
{
"inputs": [
{
"type": "promptString",
"id": "line-shopping-api-key",
"description": "LINE Shopping API Key",
"password": true
}
],
"servers": {
"LINE Shopping API MCP": {
"type": "http",
"url": "http://127.0.0.1:8000/mcp/",
"headers": {
"X-API-KEY": "${input:line-shopping-api-key}"
}
}
}
}For GitHub repository MCP settings, configure a reachable Streamable HTTP endpoint. GitHub's cloud agent cannot reach a local 127.0.0.1 server directly.
Available Tools
The following tools are generated from the packaged OpenAPI spec at lineshopping_api_mcp/openapi.json:
Checkout & Links
Create_checkout_link: Generate a checkout link for order items
Inventory Management
Adjust_inventory: Adjust inventory by IDDecrease_inventory: Decrease inventory by IDIncrease_inventory: Increase inventory by ID
Order Management
Get_all_orders: List orders with advanced filteringOrder_detail: Get details for a specific orderCancel_Order: Cancel an orderConfirm_order_delivery: Confirm order deliveryMark_as_paid_COD: Mark order as paid (COD)Mark_as_ship: Mark order as shippedPrint_parcel_label: Download parcel label for an orderSend_message_via_OA_Plus_flex_message_services: Send an OA Plus messageUpdate_tracking_number: Update the shipment tracking number
Product Management
Get_all_products: List/search productsCreate_product: Create a productDelete_product: Delete a productUpdate_product_detail: Update product detailsDelete_product_variant: Delete a product variantUpdate_products_display_status: Update product display statusUpdate_product_price: Update product price and instant discountUpdate_product_variant_detail: Update product variant detailsCreate_product_variants: Create product variants
Settlement
Settlement_detail: Get settlement details for an order
The server loads the packaged OpenAPI file above. The root-level openapi.json is only a fallback if the packaged file is absent.
Debugging
If you run into issues, check your agent platform's MCP logs for errors. Common issues:
Authentication Errors: Verify the
X-API-KEYrequest header or optionalX_API_KEYenvironment variableAPI Errors: Check rate limits, input formats, and required fields
Development
Local Development
# Clone the repository
git clone https://github.com/woraphol-j/lineshopping-api-mcp.git
cd lineshopping-api-mcp
# Install dependencies
uv sync
# Run the server (with fastmcp)
uv run fastmcp run app.py --transport streamable-http --host 127.0.0.1 --port 8000 --path /mcp/Building and Publishing
# Build the package
uv build
# Publish to PyPI (requires API token)
uv publish --token your_pypi_tokenDependencies
fastmcp - MCP protocol implementation
httpx - HTTP client for API requests
License
MIT
This project is not an HTTP REST API server. It is an MCP server for agent integrations. For more details, see FastMCP and LINE Shopping API.
Available Tools
22 toolsAdjust_inventoryC
API for updating inventory by adjusting the inventory amount from the current inventory on hand.
Inputs: id (required), amount (required). Returns: availableNumber, onHandAmount, readyToShipAmount, reservedAmount
Cancel_OrderD
An API for cancel order.
Inputs: orderNo (required), remarkCancel (required). Returns: checkoutAt, discountAmount, isGift, lastUpdatedAt, +15 more
Create_checkout_linkC
An API for generate checkout link.
Inputs: orderItems (required). Returns: checkoutLink
Create_productC
An API for product creation. For product Categories ID variable please find more information on Development guideline
Inputs: categoryId (required), code (required), imageUrls (required), name (required), +6 more. Returns: brand, category, code, description, +11 more
Create_product_variantsC
An API for product variants creation.
Inputs: id (required), variantOptions (required), variants (required). Returns: brand, category, code, description, +11 more
Decrease_inventoryB
API for updating inventory by decreasing the inventory amount from the current inventory on hand.
Inputs: id (required), amount (required). Returns: availableNumber, onHandAmount, readyToShipAmount, reservedAmount
Delete_productC
An API for product deletion.
Inputs: id (required).
Delete_product_variantC
An API for product variant deletion.
Inputs: id (required), name (required), value (required).
Get_all_ordersC
An API for getting a list of orders by condition
Inputs: search, page, perPage, sortBy, +8 more. Returns: currentPage, data, perPage, totalPage, +1 more
Get_all_productsC
An API for getting a list of products
Inputs: ids, skus, page, perPage. Returns: currentPage, data, perPage, totalPage, +1 more
Increase_inventoryB
API for updating inventory by increasing the inventory amount from the current inventory on hand.
Inputs: id (required), amount (required). Returns: availableNumber, onHandAmount, readyToShipAmount, reservedAmount
Mark_as_paid_CODA
Update order status to Complete by Mark payment status as Paid to the selected order that payment method is COD
Inputs: orderNo (required). Returns: checkoutAt, discountAmount, isGift, lastUpdatedAt, +15 more
Mark_as_shipC
Update order status to Complete by Mark shipment status as shipped and add tracking number
Inputs: orderNo (required), trackingNumber, trackingUrl. Returns: checkoutAt, discountAmount, isGift, lastUpdatedAt, +15 more
Order_detailC
An API for getting an order detail
Inputs: orderNo (required). Returns: checkoutAt, discountAmount, isGift, lastUpdatedAt, +15 more
Print_parcel_labelC
An API for downloading parcel label.
Inputs: orderNo (required), option (required), size (required), details, +1 more. Returns: result
Send_message_via_OA_Plus_flex_message_servicesC
Send message api is a proxy message services that receive message object and forward to flex message api
Inputs: orderNo (required), messages (required). Returns: messageIds
Settlement_detailC
An API for getting a settlement detail
Inputs: orderNo (required). Returns: orderIncomeDetail, orderNumber, settlementDetail
Update_product_detailC
An API for product detail updating. For product Categories ID variable please find more information on Development guideline
Inputs: id (required), brand, categoryId, code, +5 more. Returns: brand, category, code, description, +11 more
Update_product_priceB
An API for updating prices and instant discounts on the product. (You can't edit product price and instant discount during the promotion period.)
Inputs: id (required), instantDiscount (required), variants (required). Returns: brand, category, code, description, +11 more
Update_products_display_statusC
An API for product's display status updating.
Inputs: id (required), status (required). Returns: brand, category, code, description, +11 more
Update_product_variant_detailC
An API for update specific variant detail for both with and without variant product.
Inputs: id__path (required), barcode, id, imageUrl, +4 more. Returns: brand, category, code, description, +11 more
Update_tracking_numberB
Update the shipping tracking number for the selected order that the shipment status is Shipped.
Inputs: orderNo (required), trackingNumber, trackingUrl. Returns: checkoutAt, discountAmount, isGift, lastUpdatedAt, +15 more
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 22 tools
Most tools target distinct resources and actions. However, Adjust_inventory overlaps with Increase_inventory and Decrease_inventory, as it also adjusts inventory by an amount, causing potential confusion. The order and product tools are well-separated.
Naming follows a mix of conventions: mostly verb_noun (e.g., Create_product), but some are noun_noun (Order_detail, Settlement_detail) or lengthy phrases (Send_message_via_OA_Plus_flex_message_services). Inconsistent use of 'Get' prefix (Get_all_orders vs Order_detail) adds to the inconsistency.
22 tools cover the major operations of a shopping API: product and variant CRUD, order management, inventory adjustments, checkout, messaging, and settlements. This is a well-scoped set for the domain without being overwhelming.
The tool surface covers core product and order workflows, but lacks inventory querying (no get_inventory), order creation (orders are presumably customer-initiated), and refund/return operations. Also missing category management, though categories are referenced in product tools.
Maintenance
Related MCP Connectors
The Mercado Pago MCP Server implements the Model Context Protocol to provide AI agents and LLMs with access to Mercado Pago's APIs and tools within compatible development environments. It acts as an intermediary that translates Mercado Pago resources into executable functions (tools) that AI applications can invoke to perform actions and automate flows. The server simplifies integration, enables using documentation to implement or improve code, and optimizes operations through natural language interactions without manual implementations.
Model Context Protocol server for the Apideck Unified API. Connect any MCP-compatible agent framework to 100+ accounting systems, HRIS platforms, file storage providers, and more through one integration. More information https://www.apideck.com/mcp-server
MCP server for building and testing AI agents with multi-model experimentation and insights.
Shopee MCP and TikTok Shop MCP server for Claude and ChatGPT: orders, ads, stock and profit.
Related MCP Servers
- AlicenseNot gradedqualityFmaintenanceModel Context Protocol server implementation that integrates the LINE Messaging API to connect AI agents with LINE Official Accounts, enabling agents to send messages to users.Apache 2.0
- AlicenseAqualityDmaintenanceAI-powered MCP server for managing LINE Official Accounts. Send broadcasts, push messages, check analytics, manage rich menus — all through natural language via Claude, ChatGPT, or Cursor. 10 tools included: * Account info, friend count, message quota * Broadcast, push message, multicast * Delivery stats, user profiles, follower list * Rich menu management Supports 95M+ LINE users across Jap10MIT
- AlicenseAqualityDmaintenanceAn open-source MCP server that wraps the Shopline Open API into 143 AI-callable tools for e-commerce data analysis, enabling AI agents to query orders, products, inventory, customer behavior, and promotions from Shopline stores through natural language.10095 PyPI21MIT

LINE Bot MCP Serverofficial
AlicenseAqualityBmaintenanceMCP server that integrates the LINE Messaging API to enable AI agents to send messages and manage LINE Official Accounts.122,913 npm807Apache 2.0