MCP server
The same check as the API, as two tools an assistant can call.
| Endpoint | https://rentalpassport.app/api/mcp |
| Transport | Streamable HTTP. POST only, answered with JSON. No server-to-client stream. |
| Auth | Authorization: Bearer rpk_live_..., the same key as the API |
| Sessions | None. Every request stands alone. |
| Protocol versions | 2025-06-18, 2025-03-26, 2024-11-05 |
| Tools | verify_passport, get_usage |
Connect a client
Claude Code
claude mcp add --transport http rental-passport https://rentalpassport.app/api/mcp \
--header "Authorization: Bearer rpk_live_..."
Or in a project's .mcp.json, reading the key from your environment:
{
"mcpServers": {
"rental-passport": {
"type": "http",
"url": "https://rentalpassport.app/api/mcp",
"headers": { "Authorization": "Bearer ${RP_KEY}" }
}
}
}
Cursor
In ~/.cursor/mcp.json or .cursor/mcp.json:
{
"mcpServers": {
"rental-passport": {
"url": "https://rentalpassport.app/api/mcp",
"headers": { "Authorization": "Bearer rpk_live_..." }
}
}
}
Claude Desktop
claude_desktop_config.json starts local servers, so bridge to the remote one with the open source mcp-remote package (needs Node):
{
"mcpServers": {
"rental-passport": {
"command": "npx",
"args": ["-y", "mcp-remote", "https://rentalpassport.app/api/mcp", "--header", "Authorization:${RP_AUTH}"],
"env": { "RP_AUTH": "Bearer rpk_live_..." }
}
}
}
Restart Claude Desktop after saving.
Any other client
Point it at https://rentalpassport.app/api/mcp with the header Authorization: Bearer rpk_live_.... The client must be able to send a custom header. There is no OAuth sign-in.
Tools
Both tools are read-only (readOnlyHint: true, openWorldHint: false).
verify_passport
Check a renter's Rental Passport from the link they shared with you.
{
"type": "object",
"properties": {
"passport": {
"type": "string",
"description": "The renter's Passport link (https://rentalpassport.app/p/...) or the code at the end of it."
}
},
"required": ["passport"],
"additionalProperties": false
}
Returns the same passport object as GET /api/v1/passports/{code}, as structuredContent and as pretty-printed JSON text. It is counted, billed and shown to the renter exactly like an API check. There is no X-Billable header here; use get_usage to see the count.
get_usage
How many checks your account has made this calendar month, and how many renters are billable.
{
"type": "object",
"properties": {},
"additionalProperties": false
}
Returns the same usage object as GET /api/v1/usage.
Server instructions
initialize returns these instructions to the assistant:
Use verify_passport with the Passport link a renter gave you. The link is their consent: without one there is nothing to look up. Never ask for or infer anything about who the renter is.
Try it with curl
No initialize is needed, because there is no session. Call a tool directly:
curl https://rentalpassport.app/api/mcp \
-H "Authorization: Bearer $RP_KEY" \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_usage","arguments":{}}}'
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"content": [
{ "type": "text", "text": "{\n \"object\": \"usage\",\n \"month\": \"2026-12\",\n \"checks\": 14,\n \"billable_passports\": 6\n}" }
],
"structuredContent": { "object": "usage", "month": "2026-12", "checks": 14, "billable_passports": 6 },
"isError": false
}
}
Check a Passport:
curl https://rentalpassport.app/api/mcp \
-H "Authorization: Bearer $RP_KEY" \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"verify_passport","arguments":{"passport":"https://rentalpassport.app/p/Zk3vQ8mT2xLp9RwA4nHc7bYe"}}}'
A live link returns structuredContent with the full passport object. A link that is not live returns a tool error:
{
"jsonrpc": "2.0",
"id": 2,
"result": {
"content": [{ "type": "text", "text": "This Passport link is not active. Ask the renter for a new one." }],
"isError": true
}
}
Protocol details
| Method | Answer |
|---|---|
initialize |
Your protocolVersion if supported, otherwise 2025-06-18. Capabilities { "tools": { "listChanged": false } }. Server info rental-passport version 1.0.0. |
ping |
{} |
tools/list |
Both tools, with the schemas above. |
tools/call |
The tool result. |
Notifications (no id) |
Accepted. If a request holds only notifications, the answer is 202 with no body. |
| Anything else | JSON-RPC error -32601. |
- Batches: send a JSON array. Only the first 20 messages are read. Replies come back as one JSON array.
GETandDELETEreturn405withAllow: POST.- Key, pause and rate limit refusals come back as HTTP
401,403or429before JSON-RPC is read. See Errors.