Connect an agent to Kanvi

Local businesses in Texas, as MCP tools and a REST API. Every fact carries its source and how sure we are.

Quick start

  1. Create an API key: sign in with your email, accept the terms, create the key and copy it (it is shown once; we keep only its hash). Up to 3 keys.
  2. Connect your agent: the Claude Code plugin below, or any other client.
  3. Ask a home-service question with a Texas ZIP.
/plugin marketplace add continuoustech-ai/agent-ready-plugins
/plugin install kanvi@agents-ai

Claude Code plugin

The plugin adds the MCP server and the skill that tells Claude how to use it: which tools to call in what order, to keep the returned order, to quote why and caveats, and never to invent a phone number, price or opening hours.

At install, Claude Code asks for api_key and keeps it in your system's secure storage. Restart Claude Code, then check with /mcp: plugin:kanvi:kanvi is connected with 5 tools.

To change the key later (a new key, or the old one was revoked):

/plugin configure kanvi@agents-ai

Without the plugin, add the server by hand (use one or the other, not both, or the tools show twice):

claude mcp add --transport http kanvi {API}/mcp --header "X-API-Key: YOUR_KEY"

Other clients

Any MCP client that speaks Streamable HTTP can use Kanvi: point it at {API}/mcp and send your key as X-API-Key (or Authorization: Bearer). Chat apps that cannot hold a key sign in with your email instead. Claude Code and REST are tested; the others follow each client's own documentation, so tell us at support@myownline.com if one does not connect.

ChatGPT, claude.ai, Claude Desktop

Add a custom connector in the app's settings with this URL, then sign in with your email (no key to paste). The sign-in makes your Kanvi account.

{API}/mcp

Claude API

The Messages API MCP connector: both mcp_servers and the toolset are needed.

client.beta.messages.create(
  model="claude-opus-5-5", max_tokens=4096,
  betas=["mcp-client-2025-11-20"],
  mcp_servers=[{"type": "url", "name": "kanvi",
    "url": "{API}/mcp",
    "authorization_token": "YOUR_KEY"}],
  tools=[{"type": "mcp_toolset", "mcp_server_name": "kanvi"}],
  messages=[{"role": "user", "content": "AC repair near 78704"}],
)

OpenAI Responses API

A remote MCP tool; the key goes in the headers.

client.responses.create(
  model=MODEL,
  tools=[{"type": "mcp", "server_label": "kanvi",
    "server_url": "{API}/mcp",
    "headers": {"Authorization": "Bearer YOUR_KEY"},
    "require_approval": "never"}],
  input="AC repair near 78704",
)

Gemini CLI

In ~/.gemini/settings.json; then /mcp lists the five tools.

{ "mcpServers": { "kanvi": {
  "httpUrl": "{API}/mcp",
  "headers": { "X-API-Key": "YOUR_KEY" } } } }

Cursor

In ~/.cursor/mcp.json, or the project's .cursor/mcp.json.

{ "mcpServers": { "kanvi": {
  "url": "{API}/mcp",
  "headers": { "X-API-Key": "YOUR_KEY" } } } }

VS Code

In .vscode/mcp.json, for agent mode in Copilot Chat.

{ "servers": { "kanvi": {
  "type": "http", "url": "{API}/mcp",
  "headers": { "X-API-Key": "YOUR_KEY" } } } }

Troubleshooting

Reference

Leave out an optional parameter you do not have; do not send empty values. The examples are real answers (24 Nov 2026), shortened.

MCP

Streamable HTTP, stateless, JSON responses, at {API}/mcp. Send the key as X-API-Key or Authorization: Bearer. Five tools. An error comes back as a tool error reading code: message (codes under Errors).

find_businesses

Ranked business cards. Give at least one of trade, service, zip, city or name; zip or city, not both.

ParameterTypeRequiredDefaultNotes
tradestringoptionalOne of the trades list_services returns
servicestringoptionalA code from list_services, like plumbing.water_heater_repair. Max 60
zipstringoptionalFive digits: the job's ZIP (for a business the person visits, where they come from). Exact matches first, then businesses in nearby ZIPs, closest first (zip_match: nearby)
citystringoptionalA Texas city or town name: searches all its ZIPs. Max 60
namestringoptionalThe business name or part of it. Max 100
limitintegeroptional51 to 10

Returns {"results": [card, ...], "total", "limit", "offset"}, plus "city": {"name", "zips"} for a city search. The card's fields are under Card.

// find_businesses({"trade": "hvac", "zip": "78704", "limit": 1})
{"results": [{
   "id": "b_a0oaxFts", "name": "Alamo Austin Air Conditioning & Heating", "trade": "hvac",
   "why": ["TDLR license current", "168 permits in the last year", "phone confirmed by 2 sources"],
   "phone": "+15125370108", "zip": "78736", "city": "Austin", "confidence": "high",
   "license_verified": true, "availability_level": 0, "version": 5, "zip_match": "job"}],
 "total": 267, "limit": 1, "offset": 0}

get_business

ParameterTypeRequiredDefaultNotes
idstringrequiredA business id like b_xxxxxxxx
viewstringoptionalstandardstandard for answering; full adds every fact's sources and conflicts

Returns a profile. For a merged id, the kept business's profile comes back with merged_from set to the id you sent.

get_actions

ParameterTypeRequiredDefaultNotes
idstringrequiredA business id

Returns {"id", "name", "actions": [...], "note"}: how to reach the business (see actions under Profile).

list_services

ParameterTypeRequiredDefaultNotes
tradestringoptionalallOne of the trades list_services returns

Returns {"trades": {"<trade>": {"status", "services": [{"code", "name", "synonyms"}]}}}.

report_issue

The only tool that writes. Use it only when the person says something is wrong; a person checks every report.

ParameterTypeRequiredDefaultNotes
idstringrequiredA business id
claimstringrequiredclosed, moved, wrong_phone, wrong_hours, wrong_website, wrong_address, wrong_services, not_licensed, duplicate, other
fieldstringoptionalThe field that is wrong, like phone. Max 40
detailstringoptionalOne sentence, no personal details. Max 500

Returns {"accepted": true, "message"}. Limit: 10 a minute per key.

REST

Base URL {API}. Send the key in X-API-Key. JSON in and out.

GET /v1/search

The same search as find_businesses, with paging. Give at least one of trade, service, zip, city or q.

ParameterTypeRequiredDefaultNotes
tradestringoptionalOne of the trades list_services returns
servicestringoptionalA service code. Max 60
zipstringoptionalFive digits. Nearby ZIPs too, after the exact matches
citystringoptionalA Texas city; not with zip. Max 60
qstringoptionalPart of the business name. Max 100
limitintegeroptional101 to 50
offsetintegeroptional00 to 1000
curl -s -H "X-API-Key: $KEY" "{API}/v1/search?trade=plumbing&zip=78704&limit=1"
{"results": [{
   "id": "b_ryTsBiT1", "name": "Clarke Kent Plumbing", "trade": "plumbing",
   "why": ["TSBPE license current", "42 permits in the last year", "phone confirmed by 2 sources"],
   "phone": "+15124772200", "zip": "78704", "city": "Austin", "confidence": "high",
   "license_verified": true, "availability_level": 0, "version": 4, "zip_match": "job"}],
 "total": 171, "limit": 1, "offset": 0}

A search with service that finds no business listed for that service answers for the service's trade instead: the answer has "fallback": "trade", and every card's first caveat is not checked for this service: listed for the trade. Not when trade names a different trade than the service.

GET /v1/businesses/{id}

ParameterTypeRequiredDefaultNotes
id (in the path)stringrequiredA business id
viewstringoptionalstandardcard, standard or full

Returns a profile (a card with view=card). A merged id answers 301 to the kept id.

curl -s -H "X-API-Key: $KEY" "{API}/v1/businesses/b_a0oaxFts"
{"id": "b_a0oaxFts", "view": "standard", "trade": "hvac", "status": "open", "confidence": "high",
 "identity": {
   "name": {"value": "Alamo Austin Air Conditioning & Heating", "certainty": "confirmed"},
   "phone": {"value": "+15125370108", "certainty": "confirmed"},
   "website": {"value": "https://www.alamoaustinair.com/", "certainty": "confirmed"},
   "address": {"value": {"zip": "78736", "city": "Austin", "state": "TX", "storefront": false}, "certainty": "confirmed"}},
 "trust": {"licenses": [{"type": "Air Conditioning and Refrigeration Contractor", "issuer": "TDLR",
   "number": "26354", "status": "current", "expires": "2027-03-07", "verified": true, "certainty": "confirmed"}]},
 "activity": {"permits_12m": {"value": 168, "certainty": "likely"}},
 "website_facts": {
   "hours": {"value": "Mo-Fr 07:00-19:00; Sa 08:00-14:00", "certainty": "confirmed"},
   "services": [{"value": "hvac.ac_repair", "certainty": "may"}, {"value": "hvac.heating_repair", "certainty": "may"}]},
 "actions": [
   {"type": "call", "value": "+15125370108", "agent_can": "tell"},
   {"type": "website", "url": "https://www.alamoaustinair.com/", "agent_can": "send_link"}],
 "availability": {"level": 0, "note": "no live slots; call or website link"},
 "updated_at": "2026-11-21"}

GET /v1/services

ParameterTypeRequiredDefaultNotes
tradestringoptionalallOne of the trades list_services returns

Returns the same as list_services.

GET /v1/meta

No parameters. Returns {"data_version", "profiles", "fields", "trades", "claims"}: the data's version, how many profiles there are, the field names, the trades and the report claims.

POST /v1/reports

Body fieldTypeRequiredDefaultNotes
businessstringrequiredA business id
claimstringrequiredOne of the claims in /v1/meta
fieldstringoptionalMax 40
detailstringoptionalMax 500

Answers 202 with {"accepted": true, "message"}.

curl -s -H "X-API-Key: $KEY" -H "Content-Type: application/json" \
  -d '{"business":"b_ryTsBiT1","claim":"wrong_phone","field":"phone"}' "{API}/v1/reports"

Card (a search result)

FieldTypeWhenMeaning
idstringalwaysThe business id; use it with get_business
name, tradestringalwaysName and main trade
phonestringif knownE.164, like +15124772200
zip, citystringif knownThe business's own ZIP and city
whystring[]alwaysWhy it was picked: quote these
caveatsstring[]if anyWeak spots, like license not verified: always pass them on
confidencestringalwayshigh, medium or low
license_verifiedbooleanalwaysThe only basis for saying licensed
availability_levelintegeralways0: no booking page known; 1: a booking link (an action book_online). Never a free time slot
zip_matchstringwith zip or cityjob: permitted work in that ZIP in the last year; served: its website lists the area; likely: its own address is in that ZIP; nearby: its own address is in a nearby ZIP (ZIP search only, after the others)
distance_kmnumberwith zip_match: nearbyAbout how far, ZIP center to ZIP center
versionintegeralwaysProfile version

Profile (get_business)

Each fact is {"value", "certainty"}; certainty is confirmed, likely or may. A fact we do not have is left out: say "call to ask", never guess.

FieldWhat it holds
id, view, trade, tradesThe id, the view sent back, the main trade and all trades
statusopen, or a warning like may be closed
identityname, phone, website, address (zip, city, state, storefront), location (an approximate map point)
trustlicenses (type, issuer, number, status, expires, verified), insurance, license_applies
activitypermits_12m, and job_zips_12m (the top ZIPs with permitted work in the last year)
existsWhen each source last saw it, stale, legally_active
actionsHow to reach it: {"type": "call" | "website" | "booking" | ..., "value" or "url", "agent_can": "tell" | "send_link"}
availabilitylevel (as on the card) and a note
website_factsHours, services, prices, 24/7 from its own website; status: not_crawled means unknown. Long lists (service-area ZIPs and cities, services) show their first items; *_total gives the count and view=full lists all
caveatsWeak spots to pass on
confidence, claimed, updated_at, version, profile_versionOverall confidence, whether the owner has claimed it, the last update, versions
merged_fromOnly when the id you sent was merged into this business

view=full adds, on every fact, its sources (where and when it was seen) and any conflict between sources.

Auth

WhereHeader
REST /v1/*X-API-Key: ard_...
MCP /mcpX-API-Key: ard_... or Authorization: Bearer ard_...

Keep keys out of code you share, logs and screenshots. If one leaks, revoke it on the key page.

Errors

Always the same shape, with a stable code and a message you can show:

{"error": {"code": "bad_zip", "message": "zip is five digits, like 78701."}}
StatusCodes
400no_filter, no_place (a trade or service with no zip, city or name), bad_zip, bad_trade, bad_service, bad_view, unknown_city, bad_request
401no_key, bad_key (wrong, revoked or turned off)
403blocked (the account is turned off)
404not_found, no_profile
409name_taken, key_limit (key page: a name you already use, or 3 keys already)
429rate_limited (per minute) and daily_limit (per UTC day), with a Retry-After header in seconds
500internal: try again later

Over MCP the same codes come back as a tool error: bad_zip: zip is five digits, like 78701.

Limits

Need more? Write to support@myownline.com.

Coverage

Texas, growing city by city (a place with no businesses yet returns none); the trades list_services returns only. A ZIP search also returns businesses in nearby ZIPs (a radius set per trade), after the exact matches. Facts come from state licenses, city permits, open place data and each business's own website. They can be wrong or out of date: each one says how certain it is, and caveats say what we could not check. A business is never called licensed unless license_verified is true.