Skip to content

AI agents and MCP

AI assistants can use ZilloData directly. The quickest route is the Model Context Protocol (MCP) server, which offers property lookups and listing search as ready-made tools. Clients without MCP support can use the OpenAPI file instead.

Zillow’s own connector in ChatGPT and Claude is a consumer app, not a server you can add to your tools. Zillow MCP server: Zillow’s connector vs. one you can build on explains the difference and has example prompts.

The MCP server

URL https://api.zillodata.com/mcp
Transport Streamable HTTP (JSON-RPC 2.0 over POST)
Protocol version 2025-06-18
Sign-in OAuth 2.1 with dynamic client registration, or an API key sent as Authorization: Bearer zdk_...

Tool calls run through the same API as direct requests. They use your credits, count toward your rate limit, and show up in Logs.

Tools

Tool Arguments What it does Credits
get_home_by_address address, optional fields A summary of the home (price, Zestimate, rent Zestimate, facts, last sale, recent price history), or the full record with fields: "all" 3
get_home_by_zpid zpid, optional fields The same summary or full record for a zpid 1
get_home_value zpid Zestimate, rent Zestimate, tax assessed value, and last sold price 1
find_homes bbox, status, optional beds_min, price_max, max_results Listings inside a bounding box, 20 by default and up to 200 with max_results. status is for_sale, for_rent, or sold; bbox is "west,south,east,north" 1 per result

fields takes "all" or a comma-separated list of paths, as in field projection. Every tool is marked read-only (readOnlyHint), and results come back as both structuredContent and a text block with the same JSON.

When a call fails, the tool result has isError: true and the API’s error message as text, so the model can read what went wrong and adjust.

Claude (web, desktop, and mobile)

Add ZilloData once as a custom connector and it’s available in every Claude app signed in to your account. No key to paste.

  1. In Claude, open Settings, then Connectors, and choose Add custom connector.

  2. Name it ZilloData and enter the server URL: https://api.zillodata.com/mcp

  3. Click Connect. Claude sends you to a ZilloData approval page. Sign in if asked and click Allow.

  4. Back in Claude, enable the connector in a chat and ask something like “What’s the Zestimate for 9 Harbor View Rd, Portland, ME 04101?”

Approving the connection creates a key named after the client on your account. You can see and revoke it under API keys or on the MCP page in the dashboard.

Claude Code

Register the server with your API key in a header:

claude mcp add --transport http zillodata https://api.zillodata.com/mcp \
--header "Authorization: Bearer $ZILLODATA_KEY"

The server is added for your local user by default. Pass --scope project to save it in the current project’s .mcp.json instead, and keep the key out of version control if you do. Run /mcp inside Claude Code to confirm it’s connected.

Cursor

Add the server to ~/.cursor/mcp.json to use it everywhere, or to .cursor/mcp.json in a project:

{
"mcpServers": {
"zillodata": {
"url": "https://api.zillodata.com/mcp",
"headers": {
"Authorization": "Bearer zdk_paste_your_key_here"
}
}
}
}

Reload Cursor, then check that the four ZilloData tools are listed and enabled in its MCP settings.

ChatGPT

ChatGPT can call ZilloData from a custom GPT through Actions, using the OpenAPI file.

  1. Create or edit a GPT, open the Configure tab, and click Create new action.

  2. Choose Import from URL and enter https://zillodata.com/openapi.json.

  3. Under Authentication, choose API Key with auth type Bearer, and paste your zdk_ key.

  4. Save, then try a prompt such as “Find 3-bedroom homes for sale near downtown Raleigh under $600k.”

Each action the GPT runs is an ordinary API call and is billed like one.

Other MCP clients

Any client that supports streamable HTTP can connect. Point it at https://api.zillodata.com/mcp and either let it run the OAuth flow or send your key in the Authorization header. The MCP page in the dashboard has ready-to-copy snippets, including Claude Desktop config files and the OpenAI Agents SDK.

Without credentials, initialize and other POST requests get a 401 with a WWW-Authenticate header that leads OAuth-capable clients to our authorization server. A plain GET on the URL returns server details without signing in.

Files for agents and code generators

Writing your own tool

If you build an agent with function calling, one tool that accepts either a zpid or an address covers most needs:

{
"name": "get_home",
"description": "Fetch details for a U.S. home. Prefer zpid when known; it is cheaper than an address.",
"input_schema": {
"type": "object",
"properties": {
"zpid": { "type": "string", "description": "Numeric Zillow property ID, e.g. 29384412" },
"address": { "type": "string", "description": "Street, city, state, and ZIP, e.g. 220 Hartwell Ct, Raleigh, NC 27607" }
}
}
}

Route a zpid to GET /v1/properties/{zpid} and an address to GET /v1/properties/by-address. Add ?fields= with the handful of fields the model needs, because a full record can fill a large part of the context window. See Field projection.

Tips for agent builders

  • Prefer zpids. Once a home’s zpid is known, lookups cost 1 credit rather than 3.
  • Ask for slices. Sub-resources like /zestimate, /schools, or /price-history return far less text than the full record.
  • Branch on error.code. The codes are stable, while messages may change. A rate_limited code means wait and retry; out_of_credits means stop. See Errors.
  • Hand long work to jobs. For more than about 50 results, start an async job and let a webhook report back instead of polling in the agent loop.
  • Stay on v1. Paths under /v1/ and existing response fields stay stable. New fields may be added.