tonnguyen/litium-admin-mcp-server
If you are the rightful owner of litium-admin-mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to dayong@mcphub.com.
The Litium Admin MCP Server is a Model Context Protocol server built with Next.js and mcp-handler, providing AI models with programmatic access to the Litium e-commerce platform's Admin Web API.
Litium Admin MCP Server
A HTTP-based Model Context Protocol (MCP) server built with Next.js that provides AI models with programmatic access to the Litium e-commerce platform's Admin Web API.
🚀 Deployed on Vercel • 🔗 HTTP Transport • 🎯 18 Domain-Based Tools
✨ Features
- 18 Consolidated Tools - Organized by domain (Products, Content, Media, etc.)
- Working Search & Filtering - Smart search with Litium filter conditions
- ✅ Order search by order number (exact match)
- ✅ Product search by ID (contains match)
- ✅ All entities support ID-based search
- ⚠️ Email/name filtering not yet supported
- HTTP-Based - Works with Cursor and other MCP clients that support HTTP transport
- Vercel Deployment - Production-ready serverless deployment
- Team-Friendly - Centralized server, no local installation needed
- Modular Architecture - Clean, maintainable code structure
🚀 Quick Start
For Users (Cursor/Claude Desktop)
Simply configure the MCP server in your client:
Cursor (.cursor/mcp.json):
{
"mcpServers": {
"litium-admin": {
"url": "https://litium-admin-mcp-server.vercel.app/api/mcp",
"headers": {
"X-Litium-Base-Url": "https://demoadmin.litium.com",
"X-Litium-Client-Id": "your-client-id",
"X-Litium-Client-Secret": "your-client-secret"
}
}
}
}
That's it! No local installation required.
For Developers
Local Development
# Clone the repository
git clone https://github.com/yourusername/litium-admin-mcp-server.git
cd litium-admin-mcp-server
# Install dependencies
npm install
# Start development server
npm run dev
# Server will be at http://localhost:3000
# MCP endpoint: http://localhost:3000/api/mcp
Deploy to Vercel
# Install Vercel CLI
npm i -g vercel
# Deploy
npm run deploy
Or use the "Deploy with Vercel" button above.
🎯 Available Tools (18 Total)
Products Domain (6 tools)
manage_product- Search, get, create, update, delete products; get variantsmanage_product_variant- Manage product variantsmanage_product_category- Manage categories and subcategoriesmanage_product_assortment- Manage product assortmentsmanage_price_list- Manage price lists and itemsmanage_relationship_type- Manage product relationships (cross-sell, up-sell)
Content Domain (2 tools)
manage_block- Manage content blocksmanage_page- Manage pages (published and drafts)
Media Domain (1 tool)
manage_media- Manage media files and folders
Websites Domain (1 tool)
manage_website- Manage websites and URL redirects
Customers Domain (1 tool)
manage_customer- Manage customers
Sales Domain (1 tool)
manage_order- View orders (read-only)
Globalization Domain (5 tools)
manage_channel- Manage channelsmanage_country- Manage countriesmanage_currency- Manage currenciesmanage_language- Manage languagesmanage_market- Manage markets
API Info (1 tool)
get_api_info- Get API documentation and endpoint information
📖 Usage Examples
Search Orders by ID
{
"tool": "manage_order",
"arguments": {
"operation": "search",
"params": {
"search": "LS10070",
"take": 10
}
}
}
✅ Returns exactly 1 order matching "LS10070"
Search Products by ID
{
"tool": "manage_product",
"arguments": {
"operation": "search",
"params": {
"search": "Dress",
"take": 10
}
}
}
✅ Returns products with "Dress" in their ID (e.g., "courtdress")
Get Product by ID
{
"tool": "manage_product",
"arguments": {
"operation": "get",
"systemId": "abc-123-def"
}
}
Create a Content Block
{
"tool": "manage_block",
"arguments": {
"operation": "create",
"data": {
"name": "Hero Banner",
"content": "..."
}
}
}
🔍 Advanced Search & Filtering
This server implements smart search using Litium's filter condition system:
Search Features
- Order Search: Searches by order ID (exact)
- Product Search: Searches across ID, name, and article number
- Customer Search: Searches by name, email, or ID
- Media Search: Searches by file/folder name or ID
How It Works
The server uses a FilterBuilder utility that creates proper Litium API filter conditions:
// Searches by order ID
search: "LS10070" → IdFilterCondition (exact match)
// Detects email (@) and uses customer filter
search: "customer@example.com" → OrderCustomerFilterCondition
// Products search by ID
search: "T-shirt" → IdFilterCondition (contains match)
All search operations properly filter results using Litium's SearchModel with filter conditions. See for technical details.
🔧 Configuration
Required Headers
The server requires these HTTP headers with each request:
| Header | Description | Example |
|---|---|---|
X-Litium-Base-Url | Litium instance URL | https://demoadmin.litium.com |
X-Litium-Client-Id | OAuth2 Client ID | your-client-id |
X-Litium-Client-Secret | OAuth2 Client Secret | your-client-secret |
Getting Litium API Credentials
- Log in to your Litium Admin panel
- Go to Settings → API Clients
- Create a new API client
- Copy the Client ID and Client Secret
🏗️ Architecture
litium-admin-mcp-server/
├── app/api/[transport]/
│ ├── route.ts # Main HTTP handler (61 lines)
│ └── tools/ # Tool handlers by domain
│ ├── products.ts # Product domain tools
│ ├── content.ts # Content domain tools
│ ├── media.ts # Media domain tools
│ ├── websites.ts # Website domain tools
│ ├── commerce.ts # Commerce domain tools
│ ├── globalization.ts # Globalization domain tools
│ ├── api-info.ts # API info tools
│ └── index.ts # Tool registration
│
├── src/
│ ├── services/ # API service implementations
│ ├── auth/ # OAuth2 token management
│ ├── types/ # TypeScript type definitions
│ └── utils/ # Utilities (config, logging, etc.)
│
└── docs/ # Documentation
🔍 Key Technologies
- Next.js 15 - React framework for serverless deployment
- mcp-handler - HTTP transport adapter for MCP protocol
- Zod - Schema validation
- TypeScript - Type safety
- Vercel - Serverless hosting platform
📚 Documentation
Full documentation is available in the /docs directory:
🤝 Contributing
Contributions are welcome! Please see the for details on the codebase structure.
Adding a New Tool
- Create handler in appropriate
app/api/[transport]/tools/*.tsfile - Register in
app/api/[transport]/tools/index.ts - Deploy to Vercel
See for detailed instructions.
📄 License
MIT License - see file for details.
🙏 Acknowledgments
- Built with Model Context Protocol
- Powered by Litium e-commerce platform
- Deployed on Vercel
Questions? Open an issue or check the .
Need help? See .