MCP server for LiteAPI hotel booking services - compatible with n8n workflows
npm install liteapi-mcp-serverA 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.
- 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
``bash`
npm install -g liteapi-mcp-server
Set your LiteAPI API key as an environment variable:
`bash`
export LITEAPI_API_KEY="your_api_key_here"
`bash`
liteapi-mcp-server
`bash`
npm run inspect
This MCP server can be used with n8n workflows using existing MCP integration packages.
1. Install the n8n MCP node:
`bash`
npm install @coleam/n8n-nodes-mcp
2. 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
1. Install the n8n MCP node:
`bash`
npm install @mseep/n8n-nodes-mcp
2. Follow the package documentation for configuration
`json`
{
"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"
}
}
}
]
}
The server provides tools for:
- Hotel Search: search-hotels, search-hotels-by-geocreate-booking
- Booking: , get-booking, cancel-bookingget-most-booked-hotels
- Analytics: , get-booking-analyticsget-loyalty-program
- Loyalty: , redeem-loyalty-pointsvalidate-voucher
- Vouchers: , apply-voucherget-countries
- Static Data: , get-cities, get-hotels
`bash`
npm run dev
`bash`
npm run build
`bash`
npm run inspect
Add to your Claude Desktop configuration:
`json`
{
"mcpServers": {
"liteapi": {
"command": "liteapi-mcp-server",
"env": {
"LITEAPI_API_KEY": "your_api_key_here"
}
}
}
}
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.
MIT