LiteAPI MCP Server

LiteAPI MCP Server

mcp-server-liteapi-travel•byliteapi-travel

An MCP server for LiteAPI that offers documentation discovery and live API tools for hotel search, booking, and related travel operations.

License: MIT•Runtime: Awaiting documentation review•Category: search web

WHAT IT DOES

  • •Automatically generates MCP tools from OpenAPI specs, with each endpoint becoming a callable tool.
  • •Supports multiple LiteAPI modules including Search, Booking, Vouchers, Analytics, Static, Loyalty, and Supply Customization.
  • •Offers a knowledge-only surface registering seven discovery and documentation tools without live API calls or an API key.
  • •Exposes discovery tools such as list_endpoints, describe_endpoint, search_docs, and fetch_docs_page.

BEST FOR

  • •Agents that need to search hotel rates and retrieve booking information through LiteAPI.
  • •Agents that should read LiteAPI documentation and product guides without calling booking or search APIs.

ABOUT MCP-SERVER-LITEAPI-TRAVEL

LiteAPI MCP Server is cataloged as an MCP server attributed to liteapi-travel. An MCP server for LiteAPI that offers documentation discovery and live API tools for hotel search, booking, and related travel operations. It is categorized under search web. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for LiteAPI MCP Server are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Can the server run without a LiteAPI API key?

Yes. With no key, sample calls use a shared sandbox key, and discovery and documentation tools remain available.

How can an API key be supplied for live calls?

Keys may be sent via the X-API-Key header, an apiKey URL parameter, or an Authorization Bearer header; the stdio server uses LITEAPI_API_KEY instead.

上游原版 README

在 GitHub 查看同一版本原文

README.md · fd0298f9c8db · 采集于 2026-11-13 11:38:15 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

LiteAPI MCP Server

MCP server for LiteAPI using Next.js and mcp-handler (Streamable HTTP). Deploys to Vercel.

Quick Start

npm install
npm run dev

MCP endpoints:

  • Full (docs + live API tools): http://localhost:3000/api/mcp
  • Knowledge only (docs + catalog + dashboard-kb, no live API calls): http://localhost:3000/api/knowledge

ChatGPT Setup

Send the key on the X-API-Key header. The URL stays free of the secret:

{
  "mcpServers": {
    "liteapi": {
      "url": "https://mcp.liteapi.travel/api/mcp",
      "headers": {
        "X-API-Key": "YOUR_LITEAPI_KEY"
      }
    }
  }
}

?apiKey= on the URL and Authorization: Bearer still work. Header wins if more than one is set.

For the local stdio server, set LITEAPI_API_KEY instead. There is no HTTP header on stdio.

With no key, sample calls use the shared sandbox key sand_ca230deb-5a6b-42e7-bb72-869facd8892b. That key only hits sandbox. Send X-API-Key to use your own key. Discovery tools stay available either way: list_endpoints, describe_endpoint, search_docs, fetch_docs_page, fetch_documentation, search_dashboard_kb, fetch_dashboard_feature. Dashboard-kb tools call DASHBOARD_API_URL (default https://da.liteapi.travel) for public Connect product guides.

Knowledge-only MCP

Agents that should read docs but not call booking/search APIs should use:

https://mcp.liteapi.travel/api/knowledge

That surface registers the seven discovery/docs/KB tools only — no per-endpoint execute tools. No API key required. Slack Connect bot stays on Ask Connect’s in-process tools (same intent; it does not HTTP to this URL).

OAuth is the path for Lovable, Claude, ChatGPT, and Cursor. The client uses this URL and leaves the client id empty. The browser approves the connection on the Nuitée Connect dashboard session. The resolve secret is built in and matches the dashboard API. Set MCP_OAUTH_SERVICE_TOKEN on both hosts only to replace that default. DASHBOARD_API_URL defaults to https://da.liteapi.travel.

https://mcp.liteapi.travel/api/mcp

Features

  • 🔄 Dynamic Tool Generation: Automatically generates MCP tools from OpenAPI specs
  • 📚 Multiple API Modules: Supports Search, Booking, Vouchers, Analytics, Static, Loyalty, and Supply Customization APIs
  • 🔐 API key optional: no key runs sample calls on the shared sandbox key. X-API-Key, ?apiKey=, or Authorization: Bearer uses the caller's key.
  • 🎯 Type-Safe: Uses Zod for schema validation and type safety
  • 🚀 Easy Integration: Works with Claude Desktop and other MCP-compatible clients

Prerequisites

  • Node.js 18+
  • npm or yarn
  • LiteAPI API key, only if this process should execute live API calls

Installation

  1. Clone the repository and install dependencies:
npm install
  1. Build the TypeScript code:
npm run build
  1. Set your LiteAPI API key as an environment variable:
export LITEAPI_API_KEY=your_api_key_here

Usage

Running the Server

The server runs on stdio (standard input/output) for MCP communication:

npm start

Or for development with auto-reload:

npm run dev

Testing

Quick Test

Test that the server works correctly:

export LITEAPI_API_KEY=your_api_key_here
npm test

This will connect to the server and list all available tools.

MCP Inspector is a browser-based tool for testing and debugging MCP servers. It's perfect for inspecting tools, testing calls, and debugging without needing Claude Desktop.

  1. Install and run MCP Inspector:
# Make sure your API key is set
export LITEAPI_API_KEY=your_api_key_here

# Run the inspector (it will automatically start your server)
npm run inspect
# Or directly:
npx @modelcontextprotocol/inspector node dist/index.js
  1. The inspector will:

    • Open a browser window at http://localhost:6274
    • Start a proxy server on port 6277
    • Display all available tools with their schemas
    • Allow you to test tool calls interactively
    • Show real-time notifications and responses
  2. In the Inspector UI, you can:

    • Tools Tab: See all available tools, their descriptions, and input schemas
    • Test Tools: Click on any tool to test it with sample parameters
    • View Responses: See formatted JSON responses from API calls
    • Debug: Check for errors and validation issues

Note: Make sure Node.js 22.7.5+ is installed for MCP Inspector (check with node --version).

Option 2: Testing with a Simple Client Script

Create a test script to verify the server works:

# Create test-client.js
cat > test-client.js << 'EOF'
import { Client } from '@modelcontextprotocol/sdk/client/index.js';
import { StdioClientTransport } from '@modelcontextprotocol/sdk/client/stdio.js';

async function test() {
  const transport = new StdioClientTransport({
    command: 'node',
    args: ['dist/index.js'],
    env: { LITEAPI_API_KEY: process.env.LITEAPI_API_KEY }
  });

  const client = new Client({
    name: 'test-client',
    version: '1.0.0'
  }, {
    capabilities: {}
  });

  await client.connect(transport);

  // List all available tools
  const tools = await client.listTools();
  console.log(`Found ${tools.tools.length} tools:`);
  tools.tools.forEach(tool => {
    console.log(`  - ${tool.name}: ${tool.description}`);
  });

  await client.close();
}

test().catch(console.error);
EOF

# Run the test
export LITEAPI_API_KEY=your_api_key_here
node test-client.js

Option 3: Connecting to Claude Desktop

  1. Get the absolute path to your project:
# macOS/Linux
pwd
# Output: /Users/nicholas/Documents/nuitee/liteapi/mcp-server

# Windows (PowerShell)
(Get-Location).Path
  1. Open Claude Desktop configuration file:

    • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
    • Windows: %APPDATA%\Claude\claude_desktop_config.json
    • Linux: ~/.config/Claude/claude_desktop_config.json

    If the file doesn't exist, create it with an empty JSON object: {}

  2. Add the server configuration:

{
  "mcpServers": {
    "liteapi": {
      "command": "node",
      "args": ["/absolute/path/to/mcp-server/run-mcp-server.mjs"],
      "env": {
        "LITEAPI_API_KEY": "your_api_key_here"
      }
    }
  }
}

Important:

  • Use run-mcp-server.mjs instead of dist/index.js to ensure ES modules work correctly
  • Replace /absolute/path/to/mcp-server with the actual absolute path to this project
  • Replace your_api_key_here with your actual LiteAPI API key
  • On Windows, use forward slashes / or escaped backslashes \\ in the path

Example for macOS:

{
  "mcpServers": {
    "liteapi": {
      "command": "node",
      "args": ["/Users/nicholas/Documents/nuitee/liteapi/mcp-server/run-mcp-server.mjs"],
      "env": {
        "LITEAPI_API_KEY": "sand_c0155ab8-c683-4f26-8f94-b5e92c5797b9"
      }
    }
  }
}

Note: The .mjs wrapper script ensures Node.js correctly recognizes ES modules when running from Claude Desktop. If you prefer to use dist/index.js directly, make sure Claude Desktop runs it from the project root directory.

  1. Restart Claude Desktop completely (quit and reopen)

  2. Verify connection:

    • Open Claude Desktop
    • Start a new conversation
    • Look for MCP tools indicator (usually shows available tools)
    • Try asking: "What LiteAPI tools are available?" or "Search for hotels in Paris"

Troubleshooting Connection Issues

If Claude Desktop doesn't recognize the server:

  1. Check the path is correct:

    # Test that the file exists and is executable
    ls -la /absolute/path/to/mcp-server/dist/index.js
    node /absolute/path/to/mcp-server/dist/index.js
    
  2. Check Claude Desktop logs:

    • macOS: ~/Library/Logs/Claude/claude_desktop.log
    • Windows: %APPDATA%\Claude\logs\
    • Look for errors related to MCP server startup
  3. Verify JSON syntax:

    # Validate JSON syntax
    cat ~/Library/Application\ Support/Claude/claude_desktop_config.json | python3 -m json.tool
    
  4. Test server manually:

    export LITEAPI_API_KEY=your_api_key_here
    node dist/index.js
    # Should output: "Loaded X endpoints from Y OpenAPI specs"
    # Should output: "LiteAPI MCP Server running on stdio"
    
  5. Check Node.js version:

    node --version
    # Should be 18.0.0 or higher
    

Available Tools

The server automatically generates tools from all OpenAPI specs in the openapi-schemas/ directory. Each endpoint becomes a callable MCP tool with:

  • Operation ID as the tool name
  • Description from the OpenAPI spec
  • Parameters automatically extracted and validated

Example tools include:

  • post_hotels_rates - Search for hotel rates
  • get_prebooks_{prebookId} - Retrieve prebook details
  • post_bookings - Create a booking
  • And many more...

Project Structure

.
├── src/
│   ├── index.ts              # Entry point
│   ├── server.ts              # Main MCP server implementation
│   └── utils/
│       ├── openapi-parser.ts  # OpenAPI spec parsing
│       ├── schema-converter.ts # OpenAPI to Zod conversion
│       └── api-client.ts      # HTTP client for API calls
├── openapi-schemas/           # OpenAPI specification files
├── dist/                      # Compiled JavaScript (generated)
├── package.json
├── tsconfig.json
└── README.md

Development

Building

npm run build

Watching for Changes

npm run watch

Adding New OpenAPI Specs

  1. Add your OpenAPI spec JSON file to openapi-schemas/
  2. Update the specFiles array in src/utils/openapi-parser.ts if needed
  3. Rebuild and restart the server

Environment Variables

  • LITEAPI_API_KEY (stdio only): API key for live calls. Omit it to run discovery, wiring, and docs tools.

API Modules

The server supports the following LiteAPI modules:

  • Search (search.json) - Hotel search and rate retrieval
  • Booking (booking.json) - Booking management and prebook operations
  • Vouchers (voucher.json) - Voucher creation and management
  • Analytics (analytics.json) - Analytics and reporting
  • Static (static.json) - Static data endpoints
  • Loyalty (loyalty.json) - Loyalty program operations
  • Supply Customization (supplyCustomization.json) - Supply customization

Error Handling

The server includes comprehensive error handling:

  • Missing API keys are caught at startup
  • Invalid tool calls return descriptive error messages
  • API request failures are properly formatted and returned

License

MIT

Support

For issues related to:

  • MCP Server: Open an issue in this repository
  • LiteAPI: Contact LiteAPI support

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for LiteAPI MCP Server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/mcp-server-liteapi-travel)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related search web MCP Servers

Alternative and complementary servers in the same category

View all in search web →

An MCP server that merges Google Search Console history with a live first-party crawl of your site to produce a prioritised, evidence-backed technical SEO audit inside Claude, complete with paste-ready fixes.

Repository stats unavailable
Search & Web Research

An MCP server that offers intelligent web search using OpenAI reasoning models, with support for fast iterations and deep research.

94
Search & Web Research