channex-mcp

channex-mcp

Enables interaction with the Channex.io API for managing properties, room types, rate plans, availability, rates, inventory, and channel connections through natural language.

Category
Visit Server

README

Channex MCP

A self-improving Model Context Protocol (MCP) server for interacting with the Channex.io API.

โš ๏ธ Important Disclaimer

This is NOT an official Channex.io project. This is an independent, open-source implementation of an MCP server that interfaces with the Channex.io API. It is not affiliated with, endorsed by, or supported by Channex.io. Use at your own risk.

๐Ÿš€ Quick Start with Claude Code

See CLAUDE_CODE_SETUP.md for detailed instructions on adding this MCP to Claude Code.

๐Ÿ”ง MCP Configuration

For Cursor/Claude Desktop

Add the following to your ~/.cursor/mcp.json or Claude Desktop configuration:

{
  "mcpServers": {
    "channex": {
      "command": "npx",
      "args": ["--prefix", "/path/to/channex-mcp", "channex-mcp"],
      "env": {
        "MCP_MODE": "mcp",
        "CHANNEX_API_KEY": "your-api-key-here",
        "CHANNEX_BASE_URL": "https://app.channex.io/api/v1/"
      }
    }
  }
}

Important: Replace /path/to/channex-mcp with the absolute path to your channex-mcp directory and add your actual Channex API key.

Common Issues

  • ES Module errors: The project uses ES modules. The configuration above uses npx to handle module loading correctly.
  • Server not starting: Ensure you've run npm install and npm run build in the channex-mcp directory first.

Features

  • โœจ Complete CRUD operations for Properties, Room Types, Rate Plans
  • ๐Ÿ“Š ARI (Availability, Rates, Inventory) management
  • ๐Ÿ”„ Self-improving architecture with recursive commands
  • ๐Ÿงช Built-in testing framework
  • ๐Ÿ“ Auto-generated documentation
  • ๐Ÿ”’ Secure API key management

Installation

npm install

Configuration

  1. Copy .env.example to .env
  2. Add your Channex API key
cp .env.example .env

Usage

Running the MCP Server

npm run dev

Self-Improvement Commands

Generate new endpoints:

npm run command generate-endpoint -- bookings list,get,create

Run tests:

npm run command test-all

Update documentation:

npm run command update-docs

Improve types from API responses:

npm run command improve-types -- properties samples/properties.json

Available Tools

The MCP server exposes the following tools:

Properties

  • channex_list_properties - List all properties
  • channex_get_property - Get property by ID
  • channex_create_property - Create new property
  • channex_update_property - Update property
  • channex_delete_property - Delete property

Room Types

  • channex_list_room_types - List room types
  • channex_get_room_type - Get room type by ID
  • channex_create_room_type - Create room type

Rate Plans

  • channex_list_rate_plans - List rate plans
  • channex_get_rate_plan - Get rate plan by ID
  • channex_create_rate_plan - Create rate plan

ARI (Availability, Rates, Inventory)

  • channex_get_availability - Get availability per room type
  • channex_get_restrictions - Get restrictions per rate plan
  • channex_update_ari - Update availability, rates, and restrictions

Channels (OTA Connections)

  • channex_test_channel_api - Test channel API access
  • channex_check_existing_connection - Check for existing channel connections
  • channex_list_channels - List all channel connections (supports field filtering)
  • channex_get_channel_by_code - Get channels by code (optimized for specific channels)
  • channex_get_channel - Get channel details
  • channex_create_channel - Create new channel (e.g., Airbnb)
  • channex_update_channel - Update channel settings (now supports property_ids)
  • channex_delete_channel - Delete channel connection
  • channex_get_channel_mappings - Get listing-to-rate-plan mappings
  • channex_update_channel_mapping - Map channel listings to rate plans
  • channex_get_airbnb_listings - Get Airbnb-specific listings
  • channex_update_airbnb_listing - Update Airbnb pricing/availability

Development

Project Structure

channex-mcp/
โ”œโ”€โ”€ src/
โ”‚   โ”œโ”€โ”€ index.ts          # MCP server entry point
โ”‚   โ”œโ”€โ”€ api/
โ”‚   โ”‚   โ””โ”€โ”€ client.ts     # Channex API client
โ”‚   โ”œโ”€โ”€ resources/        # Resource handlers
โ”‚   โ”‚   โ”œโ”€โ”€ properties.ts
โ”‚   โ”‚   โ”œโ”€โ”€ room-types.ts
โ”‚   โ”‚   โ”œโ”€โ”€ rate-plans.ts
โ”‚   โ”‚   โ”œโ”€โ”€ ari.ts
โ”‚   โ”‚   โ””โ”€โ”€ channels.ts
โ”‚   โ””โ”€โ”€ types/           # TypeScript definitions
โ”œโ”€โ”€ .claude/
โ”‚   โ””โ”€โ”€ commands/        # Self-improvement scripts
โ””โ”€โ”€ CLAUDE.MD           # Claude Code documentation

Adding New Features

  1. Use the generate-endpoint command to scaffold new resources
  2. Add TypeScript types in src/types/index.ts
  3. Implement handlers in the MCP server
  4. Update documentation using update-docs

Recent Updates (Jan 2025)

Response Size Optimization

  • Added field filtering support to reduce response sizes
  • Implemented response truncation for large objects
  • Created optimized channex_get_channel_by_code endpoint
  • Fixed pagination parameter formatting

Channel Management Enhancement

  • Added property_ids support to channex_update_channel
  • Enables adding/removing properties from existing channels
  • Essential for managing multi-property OTA connections

Contributing

We welcome contributions! Please see our Contributing Guidelines for details.

Important: This is an unofficial project. Contributors must:

  • Test against real Channex APIs (no mocks)
  • Respect Channex.io's Terms of Service
  • Never commit API keys or credentials

License

This project is licensed under the MIT License - see the LICENSE file for details.

Disclaimer

This project is not affiliated with Channex.io. The Channex name and API are property of their respective owners. This is an independent project that provides an MCP interface to interact with the public Channex API.

Support

For issues and questions, please open a GitHub issue.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured