Quickstart
Connect an MCP client to the Nsuna Stays server, or call it with curl: initialize, tools/list, then a dated search_stays call.
Connect a client
Add this URL to any MCP client that supports remote Streamable HTTP servers. Choose no authentication.
https://mcp.nsuna.com/mcp
That includes Claude custom connectors and ChatGPT developer mode. Official Claude and ChatGPT extensions are planned.
Call it with curl
Every request is a POST with a JSON-RPC 2.0 body. Send both media types in Accept; the server answers 406 without them.
1. Initialize
curl -s -X POST https://mcp.nsuna.com/mcp \
-H 'Content-Type: application/json' \
-H 'Accept: application/json, text/event-stream' \
-d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-06-18","capabilities":{},"clientInfo":{"name":"curl","version":"1.0"}}}'
The response is a short event stream with one message:
event: message
data: {"result":{"protocolVersion":"2025-06-18","capabilities":{"resources":{"listChanged":true},"tools":{"listChanged":true}},"serverInfo":{"name":"nsuna-mcp","version":"0.1.0"}},"jsonrpc":"2.0","id":1}
There is no session ID. The server keeps no state between requests, so the calls below work on their own.
2. List the tools
curl -s -X POST https://mcp.nsuna.com/mcp \
-H 'Content-Type: application/json' \
-H 'Accept: application/json, text/event-stream' \
-H 'MCP-Protocol-Version: 2025-06-18' \
-d '{"jsonrpc":"2.0","id":2,"method":"tools/list"}'
The result lists search_stays and get_stay with their input and output JSON Schemas.
3. Search with dates
Use dates in the future; past dates are rejected.
curl -s -X POST https://mcp.nsuna.com/mcp \
-H 'Content-Type: application/json' \
-H 'Accept: application/json, text/event-stream' \
-H 'MCP-Protocol-Version: 2025-06-18' \
-d '{"jsonrpc":"2.0","id":3,"method":"tools/call","params":{"name":"search_stays","arguments":{"destination":"Cape Town","dateFrom":"2027-03-10","dateTo":"2027-03-12","occupancy":{"adultCount":2,"rooms":1},"limit":2}}}'
The data: line holds the JSON-RPC response. Its result, with one photo URL per stay kept for brevity:
{
"content": [
{
"type": "text",
"text": "Found 2 stays for Cape Town: Taj Cape Town (available), Victoria and Alfred Hotel by NEWMARK (available). More search results exist."
}
],
"structuredContent": {
"status": "results",
"destination": {
"id": "910",
"name": "Cape Town",
"type": "CITY",
"address": [
"Western Cape",
"South Africa"
]
},
"suggestions": [],
"stays": [
{
"placeId": "a29e43e1-466c-4ffa-a73c-cda75cd5a0f0",
"name": "Taj Cape Town",
"accommodationType": "Hotel",
"address": {
"city": "Cape Town",
"country": "South Africa"
},
"customerUrl": "https://app.nsuna.com/stays/a29e43e1-466c-4ffa-a73c-cda75cd5a0f0?dateFrom=2027%2F03%2F10&dateTo=2027%2F03%2F12&adultCount=2&rooms=1",
"availability": "available",
"starRating": 5,
"images": [
"https://i.travelapi.com/lodging/4000000/3020000/3016400/3016361/c3d35b9f_z.jpg"
],
"price": {
"currency": "USD",
"amountMinor": 54474,
"nights": 2
}
},
{
"placeId": "1a320ca2-748e-48eb-98dc-dbd6ab28ee49",
"name": "Victoria and Alfred Hotel by NEWMARK",
"accommodationType": "Hotel",
"address": {
"city": "Cape Town",
"country": "South Africa"
},
"customerUrl": "https://app.nsuna.com/stays/1a320ca2-748e-48eb-98dc-dbd6ab28ee49?dateFrom=2027%2F03%2F10&dateTo=2027%2F03%2F12&adultCount=2&rooms=1",
"availability": "available",
"starRating": 4,
"images": [
"https://i.travelapi.com/lodging/1000000/50000/46800/46797/1c0dff48_z.jpg"
],
"price": {
"currency": "USD",
"amountMinor": 119953,
"nights": 2
}
}
],
"hasMore": true
}
}
Next: the fields are described on the search_stays page, and Using the tools shows the usual flows.