Setup guide · API key
Anthropic Messages API
Use the Messages API MCP connector without running a separate MCP client.
Start with a free Hillbase account. Create an API key in your account and keep it private.
Connect Hillbase
- Export HILLBASE_API_KEY, ANTHROPIC_API_KEY and ANTHROPIC_MODEL (a model supporting the MCP connector).
- Install the SDK with python -m pip install -U anthropic and save the code below as hillbase_agent.py.
- Run python hillbase_agent.py. The MCP connector uses the mcp-client-2025-11-20 beta; authorization_token carries your Hillbase API key as a Bearer credential.
# Paste the key shown once in your Hillbase account.
# Run in a private terminal; keep keys out of source control.
read -r -s -p "Hillbase API key: " HILLBASE_API_KEY; printf '\n'
export HILLBASE_API_KEYpython -m pip install -U anthropic
read -r -s -p "ANTHROPIC API key: " ANTHROPIC_API_KEY; printf '\n'
export ANTHROPIC_API_KEY
read -r -p "MCP-compatible model ID: " ANTHROPIC_MODEL
export ANTHROPIC_MODEL
# Save the Python example below as hillbase_agent.py, then run:
# python hillbase_agent.pyimport os
import anthropic
response = anthropic.Anthropic().beta.messages.create(
model=os.environ["ANTHROPIC_MODEL"],
max_tokens=1200,
messages=[{"role": "user", "content": "Use Hillbase address_profile for point latitude 51.045417, longitude -114.055404, region AB, locality Calgary. Summarize the school assignments, transit and property context. Report each section's coverage status; do not treat unsupported or no_match as proof that something does not exist."}],
mcp_servers=[{
"type": "url", "name": "hillbase",
"url": "https://api.hillbase.com/mcp",
"authorization_token": os.environ["HILLBASE_API_KEY"],
}],
tools=[{
"type": "mcp_toolset", "mcp_server_name": "hillbase",
"default_config": {"enabled": False},
"configs": {"address_profile": {"enabled": True}},
}],
betas=["mcp-client-2025-11-20"],
)
print(response.content)Client settings can change. See the Messages API MCP connector guide for current client requirements.
Ask your first question
Use Hillbase address_profile for point latitude 51.045417, longitude -114.055404, region AB, locality Calgary. Summarize the school assignments, transit and property context. Report each section's coverage status; do not treat unsupported or no_match as proof that something does not exist.The fixed excerpt below comes from the same address-profile API used by the MCP tool. Your assistant's wording and current records may differ.
Real captured response. Selected answer fields and list items are shown. Captured values can differ from current data.
{
"schema_version": "hillbase.v0",
"data": {
"point": {
"lat": 51.045417,
"lng": -114.055404
},
"sections": {
"school_assignments": {
"coverage": {
"status": "supported",
"outcome": "resolved"
},
"data": [
{
"school": {
"name": "Bowcroft School"
},
"catchment": {
"program": "German Bilingual Program (K-6)",
"school_year": "2026-2027"
}
},
{
"school": {
"name": "Glenmeadows School"
},
"catchment": {
"program": "Spanish Bilingual Program (K-12)",
"school_year": "2026-2027"
}
}
]
},
"transit": {
"coverage": {
"status": "supported",
"outcome": "resolved"
},
"data": {
"items": [
{
"name": "NB 3 ST @ 7 AV SE",
"routes": [
{
"short_name": "302",
"long_name": "BRT Southeast/City Centre"
}
]
},
{
"name": "NB 3 ST @ 7 AV SE",
"routes": [
{
"short_name": "1",
"long_name": "Bowness/Forest Lawn"
},
{
"short_name": "117",
"long_name": "McKenzie Towne Express"
}
]
}
]
}
},
"zoning": {
"coverage": {
"status": "supported",
"outcome": "resolved"
},
"data": {
"items": [
{
"zone_code": "CC-ET",
"zone_description": "Centre City East Village Transition"
}
]
}
},
"parks_nearby": {
"coverage": {
"status": "supported",
"outcome": "resolved"
},
"data": {
"items": [
{
"name": "OLYMPIC PLAZA",
"park_type": "regional"
},
{
"name": "PAGET PARK",
"park_type": "local"
}
]
}
}
}
},
"coverage": {
"status": "partial",
"outcome": "resolved"
},
"retrieved_at": "2026-10-29T22:58:38.063675Z"
}See every section’s coverage
{
"air_quality": {
"status": "partial",
"outcome": "resolved"
},
"livability": {
"status": "partial",
"outcome": "resolved"
},
"traffic": {
"status": "partial",
"outcome": "resolved"
},
"waste_collection": {
"status": "partial",
"outcome": "no_match"
},
"road_restrictions": {
"status": "stale",
"outcome": "resolved"
},
"enforcement": {
"status": "partial",
"outcome": "resolved"
},
"collisions": {
"status": "unsupported",
"outcome": "no_match"
},
"climate_projections": {
"status": "unsupported",
"outcome": "no_match"
},
"building_energy": {
"status": "unsupported",
"outcome": "no_match"
},
"site_conditions": {
"status": "partial",
"outcome": "resolved"
},
"nearby_industrial_emitters": {
"status": "partial",
"outcome": "resolved"
},
"economy": {
"status": "supported",
"outcome": "resolved"
},
"health_facility_status": {
"status": "unsupported",
"outcome": "no_match"
},
"health_indicators": {
"status": "supported",
"outcome": "resolved"
},
"housing_market": {
"status": "supported",
"outcome": "resolved"
},
"development_nearby": {
"status": "supported",
"outcome": "resolved"
},
"land_constraints": {
"status": "partial",
"outcome": "resolved"
},
"school_assignments": {
"status": "supported",
"outcome": "resolved"
},
"schools_nearby": {
"status": "supported",
"outcome": "resolved"
},
"amenities": {
"status": "supported",
"outcome": "resolved"
},
"permits_nearby": {
"status": "supported",
"outcome": "resolved"
},
"transit": {
"status": "supported",
"outcome": "resolved"
},
"regulated_businesses_nearby": {
"status": "supported",
"outcome": "resolved"
},
"businesses_nearby": {
"status": "supported",
"outcome": "resolved"
},
"facilities_nearby": {
"status": "supported",
"outcome": "resolved"
},
"community_services": {
"status": "supported",
"outcome": "resolved"
},
"parcel": {
"status": "supported",
"outcome": "resolved"
},
"zoning": {
"status": "supported",
"outcome": "resolved"
},
"hazards": {
"status": "unsupported",
"outcome": "no_match"
},
"property_values": {
"status": "supported",
"outcome": "no_match"
},
"demographics": {
"status": "supported",
"outcome": "resolved"
},
"parks_nearby": {
"status": "supported",
"outcome": "resolved"
},
"crime": {
"status": "supported",
"outcome": "resolved"
}
}Check the answer
Read each section's coverage.status and coverage.outcome. A partial or unsupported section is not proof that no records exist. If connection returns 401, check the exported key is active and inherited by your client. A 429 response includes a Retry-After header.
Revoke a key in your account and update your local configuration. Connections use your Hillbase plan's credits.
Next: query a CSV, save a Signal or browse the endpoint reference.