Lazada MCP
Click on "Install 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., "@Lazada MCPget profit analysis for orders in July"
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.
Lazada MCP
A read-only MCP server for Lazada Open Platform. It provides access to orders, transactions, fee breakdowns, and per-SKU profit analysis.
Features
Summarize sales, deductions, and net received amounts
Retrieve transaction details from the Lazada Finance API
Break down fees using the transaction types returned by Lazada
Retrieve order and order-item details
Calculate profit per SKU using seller-defined costs
Available MCP tools:
get_finance_summaryget_transaction_detailsget_fee_breakdownget_orderget_order_itemsget_order_financeget_order_profitlist_orders
Related MCP server: mcp-buy123-vendor
Requirements
Python 3.14+
A Lazada Open Platform app
Lazada App Key and App Secret
Seller Access Token
An MCP-compatible client such as Codex
Installation
git clone https://github.com/chanoktrue/lazada-mcp.git
cd lazada-mcp
python3.14 -m venv .venv
./.venv/bin/pip install -r requirements.txtEnvironment Configuration
Create a .env file. Never commit this file:
URL_THAI=https://api.lazada.co.th/rest
LAZADA_APP_KEY=your_app_key
LAZADA_APP_SECRET=your_app_secret
ACCESS_TOKEN=your_access_token
LAZADA_FINANCE_API_PATH=/finance/transaction/details/get
LAZADA_FINANCE_PAGE_SIZE=100
# Product costs in Thai baht, keyed by seller SKU
LAZADA_SKU_COSTS_JSON={"SKU-001":{"unit_cost":120,"packaging_cost":5}}Protect the environment file and verify that it is ignored by Git:
chmod 600 .env
git status --ignoredRun as an stdio MCP Server
./.venv/bin/python lazada_mcp_server.pyExample Codex configuration:
[mcp_servers.lazada_finance]
command = "/absolute/path/lazada-mcp/.venv/bin/python"
args = ["/absolute/path/lazada-mcp/lazada_mcp_server.py"]
cwd = "/absolute/path/lazada-mcp"Restart Codex or start a new session after changing the configuration.
Usage Examples
Retrieve transaction details:
get_transaction_details
start_date = "2026-07-01"
end_date = "2026-07-15"View the fee breakdown for an order:
get_fee_breakdown
start_date = "2026-07-01"
end_date = "2026-07-15"
order_id = "123456789"Analyze order profitability:
get_order_profit
order_id = "123456789"
start_date = "2026-07-01"
end_date = "2026-07-15"Profit Calculation
Profit = sales price - discounts - Lazada fees - product cost - packaging costWhen Lazada reports a fee at order level instead of SKU level, the server allocates the fee based on each SKU's share of the order value. The response includes a warning indicating that the value is allocated rather than directly reported at SKU level.
Security
Never commit
.env, access tokens, refresh tokens, or App SecretsKeep using the included
.gitignoreUse the MCP in read-only mode unless write operations are explicitly required
Set
.envpermissions to600Rotate the Lazada App Secret and tokens immediately if they were ever exposed
Do not expose this stdio server directly to the public internet
License
Distributed under the MIT License. See LICENSE for details.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/chanoktrue/lazada-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server