Property Hub MCP Server
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Property Hub MCP Server
A multi-pod MCP server giving AI assistants trust-aware hotel review insights, semantic search and metered billing.
Overview
Property Hub MCP Server turns a FastAPI application into a Model Context Protocol server using fastapi-mcp, so assistants such as ChatGPT and Claude can search hotels, ask questions about a property, compare options and rank them by aspect. The tools return interpreted insights derived from review facts stored in MongoDB, and a Milvus vector index with sentence-transformer embeddings powers semantic search.
The project also covers the operational side of running an MCP service in production. MCP sessions are patched to live in Redis, and Redis Streams bridge SSE traffic across pods, so any instance can serve any session. An OAuth 2.0 layer supports ChatGPT connectors, and middleware handles quota enforcement and Lago-based usage metering.
Related MCP server: stays
Features
MCP tools for hotel reviews
Four tools:
find_hotels,ask_about_property,compare_hotelsandrank_by_aspect. They return interpreted insights built from review facts.Geo filtering by city, country or radius.
Search and data access
Semantic property search over a Milvus collection using sentence-transformer embeddings, plus collection statistics.
MongoDB-backed property lookup by country, city or state with amenity filtering. These routes are excluded from the MCP tool list.
A translation endpoint exposed as an MCP tool. It calls an external translation API, batches requests and cancels cleanly on shutdown.
Multi-pod session handling
fastapi-mcpis patched so sessions are stored in Redis rather than in process memory.Redis Streams bridge SSE messages across pods, so a session is not tied to a single instance.
Authentication
OAuth 2.0 for ChatGPT connectors: authorize, login, token (including refresh), dynamic client registration, JWKS and well-known metadata endpoints.
JWT bearer tokens, using
python-jose.
Billing and metering
Quota middleware checks a subscription backend before handlers run. Enforcement and post-success deduction are both configurable.
Usage middleware counts tokens per call with a configurable strategy and sends events to Lago. A ring-buffer debug endpoint,
/_debug/usage, helps inspect recent events.An entitlements client with caching and fail-open behavior.
Platform
Per-environment configuration for local, dev, staging and production.
SSE-aware CORS, disconnect error suppression and JSON schema sanitizing for ChatGPT's validator.
Docker, Docker Compose and a CircleCI configuration.
Architecture
The service is a single FastAPI app with layered middleware. REST routes are auto-exposed as MCP tools through fastapi-mcp at /mcp and /sse. State that would normally be pinned to one process, namely MCP sessions and SSE streams, is moved into Redis so the service can scale horizontally.
flowchart LR
subgraph sg1["Client"]
n_client["ChatGPT / Claude MCP client"]
end
subgraph sg2["Backend"]
n_api["FastAPI + fastapi-mcp app"]
n_oauth["OAuth 2.0 endpoints"]
n_middleware["Quota and usage middleware"]
end
subgraph sg3["Data"]
n_redis[/"Redis sessions and streams"/]
n_mongo[("MongoDB")]
n_milvus[("Milvus vector DB")]
end
subgraph sg5["External services"]
n_billing{{"Billing backend and Lago"}}
n_translate{{"Translation API"}}
end
n_client -->|OAuth login and token| n_oauth
n_client -->|MCP over SSE / JSON-RPC| n_api
n_api -->|quota check and usage events| n_middleware
n_middleware -->|validate quota, send usage| n_billing
n_api -->|sessions and SSE stream bridge| n_redis
n_api -->|reviews and properties| n_mongo
n_api -->|vector search| n_milvus
n_api -->|translation requests| n_translateHow it works
The client (ChatGPT or Claude) authenticates through the OAuth 2.0 endpoints and receives a JWT bearer token.
It connects over MCP (SSE or JSON-RPC). The session is stored in Redis, and Redis Streams relay SSE messages so any pod can serve it.
Quota middleware validates the caller's subscription with the billing backend before the tool handler runs.
The handler reads review facts and properties from MongoDB, runs vector search against Milvus, or calls the translation API.
Usage middleware counts tokens for the call and sends a metering event to Lago.
Tech Stack
Layer | Technology |
Language | Python 3.11 |
Framework | FastAPI, fastapi-mcp, Pydantic |
Server | Uvicorn |
Database | MongoDB (pymongo) |
Vector search | Milvus (pymilvus), sentence-transformers |
Cache / sessions | Redis (Streams) |
Auth | OAuth 2.0, python-jose (JWT) |
Billing / metering | Lago, tiktoken, httpx |
Infrastructure | Docker, Docker Compose |
CI | CircleCI |
Project Structure
.
├── app.py # FastAPI app, MCP setup, middleware wiring
├── mcp_session_patch_pubsub.py # Redis-backed MCP session patch
├── redis_session_store.py
├── redis_stream_bridge.py # Cross-pod SSE bridge
├── cors_sse_middleware.py
├── sse_middleware_wrapper.py
├── src/
│ ├── api/ # hotel reviews, properties, Milvus search, translation
│ └── utils/ # database, milvus_connector, translator, logger
├── oauth/ # OAuth 2.0 endpoints and models
├── quota/ # quota middleware and billing client
├── usage/ # usage middleware, Lago client, token strategy
├── entitlements/ # entitlements client
├── environments/ # per-environment config
├── test_chatgpt_flow.py
├── start.sh
├── Dockerfile
├── docker-compose.yml
└── .circleci/config.ymlGetting Started
Prerequisites
Python 3.11
Redis, MongoDB and Milvus instances
Docker (optional)
Access to the private
cuddly-nest-utilspackage. It is not publicly available, so a full install requires access to it.
Installation
git clone https://github.com/zain-mirza-1060/hotel-reviews-mcp-server.git
cd hotel-reviews-mcp-server
pip install -r requirements.txt
cp .env.example .envEnvironment Variables
Variables are defined in .env.example. The table lists the main ones.
Variable | Description | Required |
| Environment: | Yes |
| MongoDB connection string | Yes |
| MongoDB database name | No |
| MongoDB collection name | No |
| Milvus connection details | No |
| Milvus auth token | No |
| Milvus collection | No |
| Sentence-transformers model name | No |
| Redis host | Yes |
| Redis port | No |
| Enable TLS for Redis | No |
| Subscription backend URL | No |
| API key for the billing backend | No |
| Block over-quota requests | No |
| Deduct credits after success | No |
| Toggle usage metering | No |
| Token counting method and divisor | No |
| Translation API URL | No |
| OAuth issuer URL | No |
| Enables | No |
| Bind host and port | No |
Running locally
ENV=local ./start.shIn local and dev, this starts Uvicorn with hot reload on port 8000. In other environments it runs three workers.
With Docker Compose:
docker-compose up --build -dRunning tests
python test_chatgpt_flow.pyBuilding
docker build --build-arg CN_API_TOKEN=<token> -t property-hub-mcp .Usage
Health check:
curl http://localhost:8000/healthSemantic property search:
curl -X POST http://localhost:8000/search-text \
-H "Content-Type: application/json" \
-d '{"query": "quiet beachfront hotel with great breakfast"}'The request body above is illustrative, so check the Pydantic model in src/api/property_queries_for_milvus.py for the exact fields. The review tools are served at /mcp/find-hotels, /mcp/ask-about-property, /mcp/compare-hotels and /mcp/rank-by-aspect. The OAuth discovery document is at /.well-known/oauth-authorization-server. Point an MCP client at the server's /mcp or /sse endpoint.
License
Released under the MIT License, see LICENSE.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Connect AI assistants to hotel reservations, availability, rates, guests, and analytics with OAuth.
Live hotel search and booking for AI agents in DACH, the UK and 10 US cities.
Staylist World is a hotel comparison service your AI assistant can call directly. The free MCP server (https://staylist.world/mcp, Streamable HTTP, no auth) covers 80,000+ hotels with ratings, review summaries, published policies and booking links. No API key, no sign-up. Tools: search_hotels by city, name or need; get_hotel for overviews, amenities and published policies; get_booking_link; list_destinations; and get_reviews. There is also a REST API and Markdown versions of hotel pages. Unknown facts are marked as unknown. New: get_reviews returns a hotel's 1–2 star guest reviews from the last 24 months with the count out of all reviews; or paste staylist.world/reviews?hotel=<name> into any assistant.
Real-time hotel prices, OTA rate comparison, room availability, reviews, and property metadata API.
Related MCP Servers
- FlicenseAqualityCmaintenanceHotel booking MCP server — the first transaction-complete hotel booking integration for AI agents. Search 300K+ properties in 140+ countries, get live rates and room details, and generate secure checkout URLs. No payment in the AI conversation — guests complete booking at a hosted checkout page and receive a real hotel confirmation number. Set your own booking fee via Stripe Connect.822 npm3-
- AlicenseAqualityDmaintenanceGoogle Hotels MCP server via direct RPC — no scraping, no browser automation. Three tools: hotel list search (16 filter slots: stars, price, amenities, brands, free cancellation), per-OTA rate plans and cancellation policies for a single hotel, and parallel top-N enrichment. One-command setup for Claude Code, Codex, and ChatGPT368 PyPI15MIT
- AlicenseNot gradedqualityDmaintenanceAI-powered travel search exposing flights, hotels, and weather as MCP tools, with a MongoDB-backed per-tool TTL cache whose timeouts are tuned to each upstream API's reliability characteristics.5MIT

RollingGo Hotel MCPofficial
AlicenseNot gradedqualityCmaintenanceEnables AI agents to search, compare, and book hotels worldwide through natural language, with real-time pricing and availability, plus price monitoring and order management.63MIT