API / MCP docs
Property Passports for your AI service
OpenStays.AI gives AI agents easy access to search short term rental properties around the world. We publish direct booking information so guests and hosts can get a better deal by cutting out the booking middleman.
Ordinary read-only access is free and keyless. Use MCP, REST, JSON, Markdown or JSON-LD. No account or developer key is needed to get started.
Connect with MCP
Endpoint: https://openstays.ai/api/mcp
Transport: Streamable HTTP. Supports modern MCP 2026-07-28 and initialization-based MCP 2025-11-25, 2025-06-18 and 2025-03-26.
Two read-only tools: search_stays and get_property_passport.
Modern clients use standard per-request metadata. Initialization-based clients use initialize followed by notifications/initialized. No OpenStays-specific handshake is needed.
Claude Code
Add the remote HTTP server:
claude mcp add --transport http openstays https://openstays.ai/api/mcpCheck the connection with /mcp in Claude Code.
Gemini CLI
Add this entry to your Gemini CLI settings.json:
{
"mcpServers": {
"openstays": {
"httpUrl": "https://openstays.ai/api/mcp"
}
}
}Merge it with any existing mcpServers entries. Check the connection with gemini mcp list.
OpenAI Responses API
Include this tool in your Responses API request:
{
"type": "mcp",
"server_label": "openstays",
"server_url": "https://openstays.ai/api/mcp",
"allowed_tools": ["search_stays", "get_property_passport"],
"require_approval": "always"
}Keep your application's approval controls. OpenStays access is free; your AI provider's usual usage charges may apply.
Compatibility checks
We test the official MCP TypeScript clients against both supported protocol eras. These setup examples follow provider documentation. SDK checks are not proof that every Claude, OpenAI or Gemini product has been tested. We do not claim universal compatibility.
Search, retrieve, follow the published route
1. Search within one country
REST searches one country at a time. Choose one country. Town, region, bedrooms, guest capacity and property type are optional refinements.
With REST: Search public Property Passports within one country or territory. Country alone is enough. Town, region, bedrooms, guest capacity and property type are optional refinements. Returns up to 10 matching accommodation units, preferring different Property Passports. No catalogue export, total count or pagination. Search does not filter by dates or check live prices. A Passport lists booked dates when the owner shares a calendar.
curl --fail-with-body 'https://openstays.ai/api/v1/properties?q=Portugal'REST returns matching units in data. Each result includes passport_id, unit_id and booking_url, the owner's own website. MCP search_stays uses destination instead of q:
{
"name": "search_stays",
"arguments": {"destination": "Portugal"}
}MCP search_stays needs no country. It searches the whole world or one place, by a property's name and by any fact a Passport states, and it takes dates and a budget. For example, the arguments {"bedrooms": 5, "amenities": ["pool", "ac"]} find five-bedroom homes with a pool and air conditioning in every country. Each MCP result has passportId, unitId and bookingUrl, the owner's own website. Results come 10 at a time: when nextPage is a number, send it as page.
Results are limited to 10 accommodation units, not necessarily 10 different properties. If refine_search is true in REST, or refineSearch is true in MCP, narrow your criteria.
2. Retrieve one Property Passport
Take a passport_id from your search result and retrieve that Property Passport as JSON:
curl --fail-with-body 'https://openstays.ai/api/v1/properties/os_canopy_wonders_house_04391fca8d67'Or call get_property_passport with the passportId of an MCP search result:
{
"name": "get_property_passport",
"arguments": {
"passportId": "os_canopy_wonders_house_04391fca8d67"
}
}The JSON includes passport, location, units, key_facts, amenity_codes, rates, cancellation_policy, information, contact_routes, external_links, photos and availability. A null value means the owner has not stated that fact. Check the returned fields rather than assuming missing details.
3. Use the published website or booking route
Read contact_routes and use them in order. The owner's website is the booking route; book there or send guests there. Use the other routes to ask questions. Do not use contact details found elsewhere, and if the list is empty say that no public route is published.
external_links carry a kind (reviews, listing, social, other) and a platform. A reviews link points to the owner's guest reviews on another site; the Passport never includes review text or ratings, so read them there.
Prices are not live quotes. When the owner shares a calendar, availability lists the booked dates read from it, with checked_at; a stay ends on its departure day, which is free for a new arrival. Dates outside those ranges are not a promise. Confirm prices and dates with the property through its published route.
Choose the format your agent needs
Every Property Passport page also publishes these formats. Append these paths to the address of a Passport page:
- /profile.json: application/json
- /briefing.md: text/markdown
- /schema.jsonld: application/ld+json
Small searches. Public facts. Clear limits.
REST: One country or territory is the broadest search scope. Worldwide, continent-wide, multi-country and wildcard searches are not supported. If a location is ambiguous, specify the country. MCP search_stays also searches every country at once.
REST accepts country and q; MCP accepts country and destination. Supply a country or a destination that identifies one country among public Passport locations. Use country to disambiguate a town or region. minBedrooms accepts whole numbers from 0 to 100; minGuests accepts whole numbers from 1 to 200. These are minimums, not exact counts. A zero-bedroom minimum is not a studios-only filter. Unknown or duplicate REST parameters are rejected. In MCP every argument is optional, bedrooms gives an exact count, and the tool's own schema lists every filter.
Request, burst and cumulative discovery limits apply across MCP and REST searches and Passport retrieval. Changing country, filters or client session does not reset these limits. Anonymous clients on the same network share an allowance. These safeguards limit bulk harvesting but cannot prevent all copying of public information.
There is no list-all tool, bulk export or recently-updated feed. Ordinary requests are anonymously metered. Optional developer keys provide higher quotas; searches stay bounded.
HTTP 400 means the request needs correcting. HTTP 401 means a supplied developer key is invalid. HTTP 429 means the rate limit has been reached. Back off rather than retrying in a tight loop.
Changed on 20 November 2026 (API 2.0.0): REST search results give passport_id and booking_url in place of profile_url and unit_url, MCP results give passportId and bookingUrl in place of profileUrl and unitUrl, and a retrieved Passport no longer includes the addresses of its own pages.
MCP tool errors return isError: true. Read the text content for the reason. A missing Property Passport is not permission to use private or unpublished data.
Public access is not a blanket licence to republish customer content. Do not treat photos, descriptions or other customer material as OpenStays-owned content.