liteapi-mcp-server
v1.0.1
Published
MCP server for LiteAPI hotel booking services - compatible with n8n workflows
Maintainers
Readme
LiteAPI MCP Server
A Model Context Protocol (MCP) server that provides access to LiteAPI hotel booking services. This server can be used with AI assistants like Claude or integrated into n8n workflows for automation.
Features
- Hotel Search: Find hotels by location, dates, and preferences
- Booking Management: Create, modify, and cancel hotel bookings
- Analytics: Access booking analytics and reports
- Loyalty Programs: Manage loyalty points and rewards
- Voucher System: Handle discount vouchers and promotions
- Static Data: Access hotel, city, and country information
Installation
npm install -g liteapi-mcp-serverConfiguration
Set your LiteAPI API key as an environment variable:
export LITEAPI_API_KEY="your_api_key_here"Usage
As a Standalone MCP Server
liteapi-mcp-serverWith MCP Inspector (Development)
npm run inspectn8n Integration
This MCP server can be used with n8n workflows using existing MCP integration packages.
Option 1: Using @coleam/n8n-nodes-mcp
- Install the n8n MCP node:
npm install @coleam/n8n-nodes-mcp- Configure your n8n workflow to connect to the MCP server:
- Add the MCP node to your workflow
- Set the server command to:
liteapi-mcp-server - Set the working directory to where the package is installed
- Configure environment variables for your API key
Option 2: Using @mseep/n8n-nodes-mcp
- Install the n8n MCP node:
npm install @mseep/n8n-nodes-mcp- Follow the package documentation for configuration
n8n Workflow Example
{
"nodes": [
{
"name": "MCP LiteAPI Search",
"type": "@coleam/n8n-nodes-mcp.mcp",
"parameters": {
"serverCommand": "liteapi-mcp-server",
"toolName": "search-hotels",
"toolArguments": {
"checkin": "2024-01-15",
"checkout": "2024-01-20",
"guests": 2,
"rooms": 1,
"location": "New York"
}
}
}
]
}Available Tools
The server provides tools for:
- Hotel Search:
search-hotels,search-hotels-by-geo - Booking:
create-booking,get-booking,cancel-booking - Analytics:
get-most-booked-hotels,get-booking-analytics - Loyalty:
get-loyalty-program,redeem-loyalty-points - Vouchers:
validate-voucher,apply-voucher - Static Data:
get-countries,get-cities,get-hotels
Development
Run in Development Mode
npm run devBuild
npm run buildTest with Inspector
npm run inspectClaude Desktop Integration
Add to your Claude Desktop configuration:
{
"mcpServers": {
"liteapi": {
"command": "liteapi-mcp-server",
"env": {
"LITEAPI_API_KEY": "your_api_key_here"
}
}
}
}API Key
Get your API key from LiteAPI. Set it as the LITEAPI_API_KEY environment variable or it will default to the sandbox key for testing.
License
MIT
