litium-admin-mcp-server

tonnguyen/litium-admin-mcp-server

3.2

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.

Tools
28
Resources
0
Prompts
0

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

Deploy with Vercel

✨ 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 variants
  • manage_product_variant - Manage product variants
  • manage_product_category - Manage categories and subcategories
  • manage_product_assortment - Manage product assortments
  • manage_price_list - Manage price lists and items
  • manage_relationship_type - Manage product relationships (cross-sell, up-sell)

Content Domain (2 tools)

  • manage_block - Manage content blocks
  • manage_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 channels
  • manage_country - Manage countries
  • manage_currency - Manage currencies
  • manage_language - Manage languages
  • manage_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:

HeaderDescriptionExample
X-Litium-Base-UrlLitium instance URLhttps://demoadmin.litium.com
X-Litium-Client-IdOAuth2 Client IDyour-client-id
X-Litium-Client-SecretOAuth2 Client Secretyour-client-secret

Getting Litium API Credentials

  1. Log in to your Litium Admin panel
  2. Go to SettingsAPI Clients
  3. Create a new API client
  4. 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

  1. Create handler in appropriate app/api/[transport]/tools/*.ts file
  2. Register in app/api/[transport]/tools/index.ts
  3. Deploy to Vercel

See for detailed instructions.

📄 License

MIT License - see file for details.

🙏 Acknowledgments


Questions? Open an issue or check the .

Need help? See .