Skip to main content
Prerequisites Before you begin, create an account and get your API Key.

Getting started

Connect to HubSpot to manage contacts, companies, deals, tickets, and automate CRM operations through AI agents.
  • API
  • UI
  • Open Source
1

Install the SDKs (optional)

pip install klavis
2

Create a Strata MCP Server with HubSpot

from klavis import Klavis
from klavis.types import McpServerName

klavis_client = Klavis(api_key="YOUR_API_KEY")

response = klavis_client.mcp_server.create_strata_server(
    servers=[McpServerName.HUBSPOT],
    user_id="user123"
)

API Reference

Full Strata API endpoints
3

Authenticate

import webbrowser

# Open OAuth authorization page
webbrowser.open(response.oauth_urls[McpServerName.HUBSPOT])
🎉 Your HubSpot MCP Server is ready! Once authentication is complete, you can use your MCP server URL with any MCP-compatible client.

Available Tools

Tool NameDescription
hubspot_list_propertiesList all property metadata for a HubSpot object type like contacts, companies, deals, or tickets
hubspot_search_by_propertySearch HubSpot objects by a specific property and value using a filter operator
hubspot_get_contactsFetch a list of contacts from HubSpot
hubspot_get_contact_by_idGet a specific contact by HubSpot contact ID
hubspot_create_propertyCreate a new custom property for HubSpot contacts
hubspot_delete_contact_by_idDelete a contact from HubSpot by contact ID
hubspot_create_contactCreate a new contact using a JSON string of properties
hubspot_update_contact_by_idUpdate a contact in HubSpot by contact ID using JSON property updates
hubspot_create_companiesCreate a new company using a JSON string of fields
hubspot_get_companiesFetch a list of companies from HubSpot
hubspot_get_company_by_idGet a company from HubSpot by company ID
hubspot_update_company_by_idUpdate an existing company by ID using JSON property updates
hubspot_delete_company_by_idDelete a company from HubSpot by company ID
hubspot_get_dealsFetch a list of deals from HubSpot
hubspot_get_deal_by_idFetch a deal by its ID
hubspot_create_dealCreate a new deal using a JSON string of properties
hubspot_update_deal_by_idUpdate an existing deal using a JSON string of updated properties
hubspot_delete_deal_by_idDelete a deal from HubSpot by deal ID
hubspot_get_ticketsFetch a list of tickets from HubSpot
hubspot_get_ticket_by_idFetch a ticket by its ID
hubspot_create_ticketCreate a new ticket using a JSON string of properties
hubspot_update_ticket_by_idUpdate an existing ticket using a JSON string of updated properties
hubspot_delete_ticket_by_idDelete a ticket from HubSpot by ticket ID
hubspot_create_noteCreate a new note in HubSpot with optional associations to contacts, companies, deals, or tickets
For more details about tool input schema, use the get_tools API.

Next Steps

I