LINE Shopping API MCP
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.
README
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
Prerequisites
- Python >= 3.13
- uv (Python package manager)
- LINE Shopping API Key (
X_API_KEY)
Installation
Method 1: Using uvx (Recommended)
Install and run directly from PyPI using uvx:
# Install and run the MCP server (note the different executable name)
uvx --from lineshopping-api-mcp lineshopping-mcp
Or run with environment variables:
# Set your API key and run
X_API_KEY=your_api_key_here uvx --from lineshopping-api-mcp lineshopping-mcp
Method 2: Clone and Run
-
Clone the repository:
git clone https://github.com/woraphol-j/lineshopping-api-mcp.git cd lineshopping-api-mcp -
Install dependencies:
uv add fastmcp httpx -
Run the server:
# Set your API key and run X_API_KEY=your_api_key_here uv run --with fastmcp fastmcp run app.py
Environment Configuration
For persistent configuration, create a .env file in your working directory:
X_API_KEY=your_api_key_here
Configuration & Integration
Using uvx (PyPI Installation)
Configure your agent to use the PyPI-installed package:
{
"inputs": [
{
"type": "promptString",
"id": "line-shopping-api-key",
"description": "LINE Shopping API Key",
"password": true
}
],
"servers": {
"LINE Shopping API MCP": {
"command": "uvx",
"args": [
"--from",
"lineshopping-api-mcp",
"lineshopping-mcp"
],
"env": {
"X_API_KEY": "${input:line-shopping-api-key}"
}
}
}
}
Using Local Clone
For local development or cloned repository:
{
"inputs": [
{
"type": "promptString",
"id": "line-shopping-api-key",
"description": "LINE Shopping API Key",
"password": true
}
],
"servers": {
"LINE Shopping API MCP": {
"command": "uv",
"args": [
"run",
"--with",
"fastmcp",
"fastmcp",
"run",
"/Users/xxx/lineshopping-api-mcp/app.py"
],
"env": {
"X_API_KEY": "${input:line-shopping-api-key}",
"FASTMCP_EXPERIMENTAL_ENABLE_NEW_OPENAPI_PARSER": "true"
}
}
}
}
Available Tools
The following tools are exposed by the MCP server (see openapi.json for full details):
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-orders: List orders with advanced filteringget-order-detail: Get details for a specific ordercancel-order: Cancel an ordermark-order-paid: Mark order as paid (COD)mark-order-shipped: Mark order as shipped and add tracking numberprint-parcel-label: Download parcel label for an ordersend-order-message: Send message via OA Plus flex messageupdate-shipment: Update shipping tracking number
Product Management
get-products: List/search productscreate-product: Create a new productdelete-product: Delete a productupdate-product-detail: Update product detailsdelete-product-variant: Delete a product variantupdate-product-display-status: Update product's display status (onsale/hide)update-product-price: Update product price and instant discountupdate-product-variant-detail: Update product variant detailscreate-product-variants: Create product variants
Settlement
get-settlement-detail: Get settlement details for an order
Refer to openapi.json for all available tools, input parameters, and response formats.
Debugging
If you run into issues, check your agent platform's MCP logs for errors. Common issues:
- Authentication Errors: Verify your API key and environment variable setup
- API 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 add fastmcp httpx
# Run the server (with fastmcp)
X_API_KEY=your_api_key_here uv run --with fastmcp fastmcp run app.py
Building and Publishing
# Build the package
uv build
# Publish to PyPI (requires API token)
uv publish --token your_pypi_token
Dependencies
- 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.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.