MCP integration
Add to Claude.ai — no API key needed
Connect your Staying API account to Claude as a custom connector. Claude gets live stay-data tools, billed and rate-limited against your plan.
https://api.stayingapi.com/mcp
- Open claude.ai → Settings → Connectors and click Add custom connector
- Paste the server URL above and click Connect
- Review the consent screen and click Allow
Connecting creates an API key named after the client (e.g. "Claude") in your keys list — revoke it there at any time. Re-connecting replaces the key instead of adding another. The same flow works in Claude Desktop under Settings → Connectors.
Per-client setup
Every snippet below uses the same endpoint with a bearer key. Snippets show a placeholder — create a key at API keys and paste it in.
https://api.stayingapi.com/mcpOAuth or Bearer sk_…5 toolsClaude Desktop
Easiest path: Settings → Connectors → Add custom connector, paste the server URL, click Connect — no key needed (OAuth). For the config-file route instead, paste this into claude_desktop_config.json and replace the key with one from your keys page.
{
"mcpServers": {
"stayingapi": {
"command": "npx",
"args": [
"-y", "mcp-remote",
"https://api.stayingapi.com/mcp",
"--header", "Authorization:${AUTH_HEADER}"
],
"env": {
"AUTH_HEADER": "Bearer sk_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
}
}
}
} Claude Code (CLI)
Run this command to register Staying API as an MCP server for Claude Code. Replace the key with one from your keys page.
claude mcp add --transport http stayingapi https://api.stayingapi.com/mcp \ --header "Authorization: Bearer sk_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
Cursor
In Cursor: Settings → MCP → Add MCP Server, or paste this into your project .cursor/mcp.json.
{
"mcpServers": {
"stayingapi": {
"url": "https://api.stayingapi.com/mcp",
"headers": {
"Authorization": "Bearer sk_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
}
}
}
} ChatGPT
ChatGPT: Settings → Connectors → Create (requires developer mode). Paste the MCP server URL and connect with OAuth — no key needed. For Custom GPT Actions, import our OpenAPI spec instead:
MCP server URL: https://api.stayingapi.com/mcp OpenAPI spec: https://stayingapi.com/openapi.json Auth (Actions): API key → Bearer → paste a key from /app/keys
OpenAI Agents SDK (Python)
Hook Staying API into a Python agent via streamable HTTP (pip install openai-agents).
from agents import Agent, Runner
from agents.mcp import MCPServerStreamableHttp
async def main():
async with MCPServerStreamableHttp(params={
"url": "https://api.stayingapi.com/mcp",
"headers": {"Authorization": "Bearer sk_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"},
}) as stay_mcp:
agent = Agent(
name="stay-finder",
instructions="Help users find Airbnb stays.",
mcp_servers=[stay_mcp],
)
result = await Runner.run(agent, "Find a 2-bedroom in Austin for July 4-8")