Kukun API v1 is now available
Documentation

Kukun MCP Quickstart

The Kukun MCP server lets AI assistants such as Claude, Cursor, and GitHub Copilot query Kukun data directly through the Model Context Protocol. Ask questions in plain language and the assistant calls Kukun tools for you: search 900M+ U.S. building permits, find addresses with or without specific permit activity, and pull full property records.

The MCP server serves the same data as the REST API and draws from the same plan quota, so you can use both side by side.


Before You Start

You need two things:

  1. A plan that includes MCP Access. Every Permits and Property Join plan includes MCP Access. Which tools you can call depends on the products in your plan (see Available Tools).
  2. An API key. Sign in and copy your key from My API Keys.

Each API key belongs to one subscription, and an MCP connection uses one key. If you have Permits and Property Join as separate subscriptions, add the Kukun server twice in your client (one entry per key), or contact sales about a combined plan.


Server Details

SettingValue
Server URLhttps://api.mykukun.com/mcp
TransportStreamable HTTP
AuthenticationAuthorization: Bearer YOUR_API_KEY

Replace YOUR_API_KEY with your key in every example below. Treat the key like a password: don't commit it to source control or share it in screenshots.


Install

Pick your client. After adding the server, restart or reload the client so it picks up the new configuration.

Claude Code

Run this in your terminal:

TerminalCode
claude mcp add --transport http kukun https://api.mykukun.com/mcp \ --header "Authorization: Bearer YOUR_API_KEY"

Run claude mcp list to confirm the server shows as connected. Add --scope user to make it available in all your projects.

Claude Desktop

Claude Desktop starts MCP servers as local processes, so it connects to remote servers through the mcp-remote bridge. This requires Node.js 18 or later.

  1. Open Settings → Developer → Edit Config. This opens claude_desktop_config.json:
    • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
    • Windows: %APPDATA%\Claude\claude_desktop_config.json
  2. Add the Kukun server:
JSONCode
{ "mcpServers": { "kukun": { "command": "npx", "args": [ "-y", "mcp-remote", "https://api.mykukun.com/mcp", "--header", "Authorization:${KUKUN_AUTH}" ], "env": { "KUKUN_AUTH": "Bearer YOUR_API_KEY" } } } }
  1. Save the file and restart Claude Desktop. The Kukun tools appear under the tools menu in the chat input.

The key goes in env rather than directly in args because some systems split arguments that contain spaces.

Cursor

Open Settings → MCP → Add new global MCP server, or edit ~/.cursor/mcp.json directly (use .cursor/mcp.json in a project to scope it to that project):

JSONCode
{ "mcpServers": { "kukun": { "url": "https://api.mykukun.com/mcp", "headers": { "Authorization": "Bearer YOUR_API_KEY" } } } }

VS Code (GitHub Copilot)

Create .vscode/mcp.json in your workspace. This setup asks for your key the first time the server starts and stores it securely, so the key never ends up in the file:

JSONCode
{ "inputs": [ { "type": "promptString", "id": "kukun-api-key", "description": "Kukun API key", "password": true } ], "servers": { "kukun": { "type": "http", "url": "https://api.mykukun.com/mcp", "headers": { "Authorization": "Bearer ${input:kukun-api-key}" } } } }

Click Start above the server entry, then open Copilot Chat in Agent mode to use the Kukun tools.

Check the connection

Ask your assistant:

Code
Call the Kukun ping tool.

ping checks that the server, transport, and your key work end to end. It's free and never counts against your quota.


Available Tools

ToolRequiresWhat it doesUsage counted
pingAny plan with MCP AccessConnectivity checkNever
permits_searchPermits planSearch permits with filters, sorting, and pagination1 per permit returned
permits_area_searchPermits planFind addresses that have, or are missing, a permit type within a date window1 per address returned
permits_property_searchPermits planAll permits on file for one property1 per permit returned
property_joinProperty Join planFull profile for one property in one call: record, value, condition, outlook, component lifecycle, permits, and contractors1 per successful lookup
contractors_searchPlan with Contractors accessFind contractors by location, distance, and profile filters, with pagination1 per successful call
contractors_property_searchPlan with Contractors accessContractors who filed permits at one property, with their profiles1 per successful call

Your client may also list property_record, property_avm, property_condition_score_pico, property_investment_outlook_kio, property_community_facts, and property_component_lifecycle. These aren't available over MCP. Use property_join instead, which returns that data as sections of one response.

permits_search, permits_area_search, and permits_property_search accept an optional keyword that matches words in the permit description:

  • It isn't case-sensitive, and the words must appear together and in the same order. water heater matches "Replace water heater" but not "heater for water".
  • Only whole words match: heat doesn't match "heater". Hyphens split words, so re-roof matches "re roof".
  • 100 characters at most, with at least one letter or digit.
  • Permits without a description never match.

keyword narrows results. It doesn't replace label: use label for the permit type and keyword for specific wording, for example label: "plumbing" with keyword: "water heater".

Mirrors GET /v1/permits/search. All parameters are optional, but send at least one filter. A call with no parameters is rejected.

ParameterDescription
address, city, county, state, zip-codeLocation filters. state accepts FL or Florida; county uses the full name, for example Hillsborough. With distance, a full address (address, city, state, zip-code) is the center of the radius instead of a filter
kukun-idKukun property identifier. Takes precedence over the address parameters. Without distance, returns that property's permits; with distance, the property is the center of the radius
jurisdictionIssuing authority, for example Los Angeles
statusapplied, issued, in-process, denied, closed, review, expired, inspection, violation
labelPermit type, comma-separated. No prefix matches any of them; prefix with + (or !) to require a type or - to exclude it, for example kitchen-remodel,-bathroom-remodel
keywordWords in the permit description, for example water heater (see Keyword search)
date-from, date-toStatus date range, ISO 8601 (2024-01-01). Send both
min-cost, max-cost, has-costPermit cost filters
latitude, longitude, distanceRadius search. distance is in miles and defaults to 5 with coordinates. Without coordinates, distance needs kukun-id or a full address as the center. Each permit then includes location.distance_miles
sort-by, sort-orderSort by city, address, jurisdiction, county, state, date, or distance (nearest first by default; needs a radius center); asc or desc
limitPage size, 1 to 1000. Default 10
next-page-idCursor from the previous page. Keep the other parameters the same
details0 returns only the total count (not counted against your quota); 1 returns full records

Mirrors GET /v1/permits/area-search. Returns deduplicated addresses. Send at least one area filter: city, county, state, zip-code, or latitude and longitude.

ParameterDescription
label (required)One permit type to check, for example roof. No prefixes
label-condition (required)has for addresses with a matching permit, missing for addresses without one
date-from, date-to (required)Date window, ISO 8601
keywordWords in the permit description. The same permit must also match label and the date window (see Keyword search)
city, county, state, zip-codeArea filters. state accepts FL or Florida
latitude, longitude, distanceRadius search. distance is in miles and defaults to 5
limit, next-page-id, detailsSame as permits_search. details defaults to 1

With label-condition: "missing", an address is returned when none of its permits matches the label, the date window, and the keyword (if you send one).

Mirrors GET /v1/permits/property-search. Returns the permit history for a single address. For geographic queries and filters, use permits_search or permits_area_search.

ParameterDescription
kukun-idKukun property identifier. Takes precedence over the address parameters
address, city, state, zip-codeFull address. All four are required when you don't send kukun-id; address must start with a street number
keywordOnly return the property's permits whose description matches (see Keyword search)
limitMaximum permits to return, 1 to 100. Default 10. There's no pagination cursor

The response includes the resolved address and a permits block:

  • total - all permits on file for the property (only the matching ones when you send keyword)
  • returned - permits included in this response (this is what counts against your quota)
  • truncated - true when total is larger than limit
  • items - the permits, newest first

property_join

Mirrors GET /v1/property/join. Resolves the property once and returns everything Kukun has on it, one section per data set.

ParameterDescription
kukun-idKukun property identifier. Takes precedence over the address parameters
address, city, state, zip-codeFull address. state accepts FL or Florida; zip-code accepts 5 digits or ZIP+4
includeComma-separated sections to return. Default: all seven (see below)
permit-limitMaximum permits in the permits section, 1 to 100. Default 10. Ignored when include leaves out permits
contractor-limitMaximum contractors in the contractors section, 1 to 50. Default 25. Ignored when include leaves out contractors

property_join doesn't accept keyword or other permit filters. The permits section always holds the property's newest permits, up to permit-limit. To filter a property's permits by description, call permits_property_search with keyword.

Sections:

SectionContents
property_recordLocation and parcel data, structure characteristics, tax, assessment, and legal records
avmAutomated valuation estimate with low/high range
condition_score_picoProperty and neighborhood condition scores
investment_outlook_kio5-year value forecast
component_lifecycleAge and remaining life of major home components
permitsPermit history for the property
contractorsContractors who filed permits at the property, with their profiles (same as contractors_property_search)

kukun_id and address appear once at the top level. The property record is required: if it can't be resolved, the call fails. If any other section is unavailable, the call still succeeds, that section comes back null, and it's listed in unavailable_sections (see Response Format).

Each lookup counts as 1, whichever sections you request and even when some are unavailable. Use include to keep responses small, for example include: "avm,condition_score_pico".

Mirrors GET /v1/contractors/search. Searches the Kukun contractor index. Send at least one location or filter; a call with no parameters is rejected.

ParameterDescription
latitude, longitude, distanceSearch point and radius in miles (max 100). Without distance, only contractors at that exact point match
kukun-idKukun property used as the search point. Takes precedence over the address parameters
address, city, state, zip-codeWith address, all four identify a property used as the search point. Without address, city, state, and zip-code filter on the contractor's own location
countyContractor county, for example Cook
business-type, license-number, company-name, websiteProfile filters. company-name matches when every word appears
min-years-in-business, min-kukun-score, min-permitsMinimum values
cost-rangePrice tier, for example $50,001- $100,000
work-labelComma-separated permit labels, with the same prefixes as label in permits_search: no prefix matches any, + requires a label, - excludes it. For example roof,kitchen-remodel or +roof,-solar. An unknown label is rejected
servicesComma-separated services, for example Door Installation; the contractor must offer at least one
limitPage size, 1 to 50. Default 25
next-page-idCursor from the previous page. Keep the other parameters the same

Send a location (coordinates, kukun-id, a full address, or any of city, state, zip-code, county) or an identifying filter (license-number, company-name, website). Other filters alone, such as business-type, are rejected. Use one search point: coordinates, kukun-id, or an address. A partial or mixed location, such as latitude without longitude or address without city, state and zip-code, returns Invalid location parameters with one detail per problem. When the search has a point, results are nearest first and each contractor includes address.distance_miles. A resolved property is returned as resolved_by, kukun_id, and address. An address is resolved through Kukun identity (resolved_by: "address") or, when identity has no location for it, through the permits filed there (resolved_by: "permits_address"). An address neither one knows returns a 404 Address not found error, not an empty result.

Mirrors GET /v1/contractors/property-search. Returns the contractors who filed permits at one property, newest first. Each one comes with its Kukun profile and an activity block with the permits it filed at that property.

ParameterDescription
kukun-idKukun property identifier. Takes precedence over the address parameters
address, city, state, zip-codeFull address. All four are required when you don't send kukun-id
limitMaximum contractors to return, 1 to 50. Default 25

Permits with no contractor on record are counted in unattributed_permits. A contractor that isn't in the Kukun contractor index comes back with profile: null and the result is marked partial (see Partial results).

Permit labels

basement-remodel, bathroom-remodel, comm-conversion, deck, demolition, drywall, electrical, fence, floor-task, foundation, general-construction, general-remodel, hvac, kitchen-remodel, landscape, new-addition, new-construct, new-construct-adu, plumbing, pool, roof, sidewalk, siding, solar, whole-house-remodel, window

Example prompts

You don't need to name tools or parameters. Describe what you want and the assistant picks the tool:

  • "How many roof permits were issued in Tampa, Florida in 2025?"
  • "List the 20 most recent kitchen remodel permits in ZIP 94025, newest first."
  • "Find solar permits within 10 miles of 28.0614, -82.1506 filed since January 2024."
  • "Find permits that mention 'water heater' in Tampa, Florida since January 2024."
  • "Which addresses in Hillsborough County had no roof permit between 2015 and 2025?"
  • "Show me every permit on file for 4521 Oak Ave, Tampa, FL 33611."
  • "Does 4521 Oak Ave, Tampa, FL 33611 have any permits that mention 're-roof'?"
  • "Get the full property profile, including value, condition score, and permits, for 123 Main St, Kansas City, MO 64113."
  • "Find roofing contractors within 10 miles of 28753 Tavira Ct, Wesley Chapel, FL 33543 with a Kukun score of at least 70."
  • "Which contractors have worked at 28753 Tavira Ct, Wesley Chapel, FL 33543?"

Tip: ask for a count first ("how many…"). Count-only searches don't use your quota, and they help you size a full pull.


Usage and Billing

  • Shared quota. MCP and REST draw from the same monthly quota for each product. A permit returned through permits_search counts the same as one returned by GET /v1/permits/search.
  • Only successful calls count. Failed calls, ping, count-only searches (details: 0), and protocol messages such as listing tools are never counted.
  • Requests can't exceed your remaining quota. If a permits search asks for more records than you have left, it's rejected. Lower limit or upgrade your plan.
  • Quotas reset at the start of each billing cycle.
  • Upgrades apply automatically within about a minute. You don't need a new API key or a client restart.

Check your usage and plan on My API Keys.


Response Format

Your AI assistant reads tool results for you, so you only need this section if you build your own integration or want to inspect raw results.

Each tool returns its data as JSON text in a content block. MCP results don't use the REST { success, message, errors, metadata } envelope: the text holds the data itself, plus a response_id. The same identifier, the timestamp, and the API version are also in _meta.

Example result:

JSONCode
{ "content": [ { "type": "text", "text": "{\"property_value\":450000,\"response_id\":\"8e4b43ff9b4709cac2b9d428376asd\"}" } ], "_meta": { "responseId": "8e4b43ff9b4709cac2b9d428376asd", "timestamp": "2026-10-14T00:00:00.000Z", "version": "v1" } }

Include the response_id when you contact support about a specific result.

Partial results

When some of the data couldn't be retrieved, the result is marked partial and lists what's missing. These fields appear both in the JSON text and in _meta. property_join also reports which sections were delivered and which ones you left out with include.

Example property_join fields when the investment outlook was unavailable and permits weren't requested:

JSONCode
{ "partial": true, "sections_delivered": ["property_record", "avm", "condition_score_pico", "component_lifecycle"], "unavailable_sections": [ { "section": "investment_outlook_kio", "reason": "no_data" } ], "omitted_sections": [ { "section": "permits", "reason": "not_requested" } ] }
ReasonMeaning
no_dataKukun has no data for this property in that section
upstream_unavailableA data source was temporarily unavailable; try again later
timeoutThe data source didn't respond in time; try again later
not_requestedYou left the section out with include

Error results

When a tool call fails, the result has isError: true and the text holds a human-readable message. Field-level details, when there are any, are in _meta.details:

JSONCode
{ "isError": true, "content": [ { "type": "text", "text": "Provide either `kukun-id` or all of `address`, `city`, `state`, and `zip-code`." } ], "_meta": { "details": [ { "field": "state", "message": "State must be provided when resolving by address." } ] } }

An invalid keyword returns one of these messages: keyword must not be empty., keyword must be 100 characters or fewer., or keyword must contain at least one letter or digit.

Failed tool calls don't count against your quota. For gateway errors such as an invalid key or exhausted quota, see Errors.


Custom Integrations

If you're building your own MCP client, send JSON-RPC 2.0 messages with POST to the server URL. Include these headers on every request:

Code
Authorization: Bearer YOUR_API_KEY Content-Type: application/json Accept: application/json, text/event-stream

Start a session:

TerminalCode
curl -i -X POST "https://api.mykukun.com/mcp" \ -H "Authorization: Bearer YOUR_API_KEY" \ -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": "my-app", "version": "1.0.0" } } }'

If the response includes an Mcp-Session-Id header, send it back on every following request.

List the tools:

TerminalCode
curl -X POST "https://api.mykukun.com/mcp" \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -H "Accept: application/json, text/event-stream" \ -d '{ "jsonrpc": "2.0", "id": 2, "method": "tools/list" }'

Call a tool:

TerminalCode
curl -X POST "https://api.mykukun.com/mcp" \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -H "Accept: application/json, text/event-stream" \ -d '{ "jsonrpc": "2.0", "id": 3, "method": "tools/call", "params": { "name": "permits_search", "arguments": { "city": "Tampa", "state": "Florida", "label": "roof", "status": "issued", "date-from": "2025-01-01", "date-to": "2025-12-31", "limit": 5 } } }'

The tool result is returned as JSON text in result.content[0].text (see Response Format). The response may arrive as a single JSON body or as a text/event-stream; read the last event in the stream.

Limitations:

  • Send one JSON-RPC message per request. Batch requests (a JSON array) are rejected.
  • GET requests (SSE stream resumption) aren't supported and return 405.

Errors

Authentication errors return a regular HTTP status. Most other MCP errors return HTTP 200 with the error inside the JSON-RPC body, so check for an error field (or result.isError) in every response.

CodeMeaningWhat to do
HTTP 401Missing or invalid API keyCheck the Authorization: Bearer header and the key itself
HTTP 405GET isn't supportedUse POST
-32001Your plan doesn't include MCP AccessSubscribe to a plan with MCP Access in the portal
-32003The tool isn't in your plan (for example, property_join on a Permits-only key) or isn't offered over MCPUse a key for the right product, or upgrade your plan
-32004Your monthly quota for that product is used up, or the request asks for more records than you have leftLower limit, wait for the next billing cycle, or upgrade
-32600Batch requests aren't supportedSend one message per request
-32700The request body isn't valid JSONFix the request body

Tool-level errors, such as an invalid parameter or a property that can't be found, come back as a tool result with isError: true and a message explaining the problem (see Error results). These calls don't count against your quota.


Support

Email [email protected] for connection, authentication, or quota issues. Standard response time is one business day. For plans and pricing, use [email protected].

For the REST API, see the Kukun API Quickstart.