OHIP MCP Server
A universal gateway for the Oracle Hospitality Interface Platform (OHIP) that enables AI assistants to execute authenticated API requests for hotel management tasks like reservations and inventory. It features automated OAuth 2.0 token management and secure credential handling for seamless integration with Oracle Hospitality services.
README
OHIP MCP Server
Un servidor MCP (Model Context Protocol) en Python que actúa como Gateway Universal para la plataforma Oracle Hospitality Interface Platform (OHIP). Permite a asistentes de IA ejecutar cualquier petición contra la API de OHIP de forma segura y autenticada.
🚀 Características
- Herramienta Universal (
call_ohip_api): Una única herramienta flexible capaz de ejecutar cualquier endpoint de OHIP (reservas, inventario, housekeeping, etc.). - Autenticación Automática: Gestión transparente de tokens OAuth 2.0 (obtención, almacenamiento en memoria y renovación automática antes de expirar).
- Seguridad: Manejo seguro de credenciales mediante variables de entorno.
- Ligero: Construido con
mcpyhttpxpara alto rendimiento asíncrono.
📋 Requisitos
- Python 3.10+
- Una cuenta de desarrollador en Oracle Hospitality (OHIP) con credenciales válidas.
- uv (Recomendado para gestión de paquetes) o
pip.
🛠️ Instalación
-
Clonar el repositorio
git clone https://github.com/tu-usuario/ohip-mcp.git cd ohip-mcp -
Configurar entorno Copia el archivo de ejemplo y configura tus credenciales:
cp .env.example .envEdita
.envcon tus datos de OHIP:OHIP_BASE_URL=https://<environment>.oraclecloud.com OHIP_CLIENT_ID=tu_client_id OHIP_CLIENT_SECRET=tu_client_secret OHIP_APP_KEY=tu_app_key -
Instalar dependencias
# Usando pip pip install -r requirements.txt # O usando uv (más rápido) uv sync
⚙️ Configuración en Clientes MCP
Claude Desktop
Edita tu configuración en %APPDATA%\Claude\claude_desktop_config.json (Windows) o ~/Library/Application Support/Claude/claude_desktop_config.json (macOS):
{
"mcpServers": {
"ohip": {
"command": "uv",
"args": [
"run",
"--directory",
"C:/Ruta/Absoluta/A/ohip-mcp",
"python",
"-m",
"src.server"
],
"env": {
"OHIP_BASE_URL": "https://...",
"OHIP_CLIENT_ID": "...",
"OHIP_CLIENT_SECRET": "...",
"OHIP_APP_KEY": "..."
}
}
}
}
Cursor / TRAE IDE
Puedes añadir el servidor directamente en la configuración del proyecto (.cursor/mcp.json):
{
"mcpServers": {
"ohip": {
"command": "python",
"args": ["-m", "src.server"],
"cwd": "C:/Ruta/Absoluta/A/ohip-mcp",
"env": { "DOTENV_PATH": "../.env" }
}
}
}
📖 Uso
Una vez conectado, el asistente tendrá acceso a la herramienta call_ohip_api.
Ejemplo de Prompt:
"Busca las reservas del hotel con ID 'H123' para el huésped 'Smith'."
El modelo llamará internamente a:
call_ohip_api(
method="GET",
endpoint="/rsv/v1/hotels/H123/reservations",
hotel_id="H123",
query_params={"lastName": "Smith"}
)
📂 Estructura del Proyecto
ohip-mcp/
├── src/
│ ├── auth.py # Manejo de autenticación OAuth (Singleton)
│ └── server.py # Definición del servidor y herramientas MCP
├── .env.example # Plantilla de variables de entorno
├── .gitignore # Archivos ignorados por git
├── mcp.example.json # Ejemplos de configuración para IDEs
├── requirements.txt # Dependencias del proyecto
└── README.md # Documentación
🛡️ Licencia
Este proyecto está bajo la Licencia MIT.
Recommended Servers
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.
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.
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.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
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.
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.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
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.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.