KosmoKrator

marketing

HubSpot MCP Integration for OpenAI Agents SDK

Connect HubSpot to OpenAI Agents SDK through the local KosmoKrator MCP gateway with scoped tools, credentials, and write policy.

7 functions 6 read 1 write Manual OAuth token auth

Connect HubSpot to OpenAI Agents SDK

Attach KosmoKrator integration tools to OpenAI Agents SDK workflows through a local MCP gateway.

Start the KosmoKrator MCP gateway locally and point the OpenAI Agents SDK MCP tool at that process or wrapper. The gateway is local, scoped to this integration, and starts with --write=deny so OpenAI Agents can inspect read-capable tools without receiving write access by default.

HubSpot MCP Config for OpenAI Agents SDK

Use headless JSON commands for CI-style execution and MCP for agent tool discovery.

{
  "mcpServers": {
    "kosmokrator-hubspot3": {
      "type": "stdio",
      "command": "kosmo",
      "args": [
        "mcp:serve",
        "--integration=hubspot3",
        "--write=deny"
      ]
    }
  }
}

Run the Gateway Manually

kosmokrator mcp:serve --integration=hubspot3 --write=deny

Why Use KosmoKrator Here

Scoped tools

Expose only HubSpot instead of a broad multi-service tool list.

Local credentials

Reuse credentials already configured for the KosmoKrator CLI and Lua runtime.

Write policy

Start read-only, then opt into ask or allow for trusted workspaces.

HubSpot Tools Visible to OpenAI Agents

OpenAI Agents sees stable MCP tool names generated from the HubSpot integration catalog.

MCP toolSource functionTypeDescription
integration__hubspot3__hubspot3_list_contacts hubspot3.hubspot3_list_contacts Read List HubSpot contacts. Returns contact IDs, emails, names, and associated company IDs. Use limit and offset for pagination, and properties to select specific fields.
integration__hubspot3__hubspot3_get_contact hubspot3.hubspot3_get_contact Read Retrieve a HubSpot contact by its ID (vid). Returns the full contact profile including all properties, form submissions, and lists.
integration__hubspot3__hubspot3_create_contact hubspot3.hubspot3_create_contact Write Create a new HubSpot contact. Requires an email address. Optionally set first name, last name, phone, company, and other properties. Returns the created contact with its ID.
integration__hubspot3__hubspot3_list_companies hubspot3.hubspot3_list_companies Read List HubSpot companies. Returns company IDs, names, domains, and other properties. Use limit and offset for pagination.
integration__hubspot3__hubspot3_get_company hubspot3.hubspot3_get_company Read Retrieve a HubSpot company by its ID. Returns the full company profile including name, domain, industry, and other properties.
integration__hubspot3__hubspot3_list_deals hubspot3.hubspot3_list_deals Read List HubSpot deals. Returns deal IDs, names, stages, amounts, and associated contacts/companies. Use limit and offset for pagination.
integration__hubspot3__hubspot3_get_current_user hubspot3.hubspot3_get_current_user Read Retrieve the currently authenticated HubSpot user's information. Returns the user's ID, email, name, and portal information. Useful for identifying which account or token is in use.

Related HubSpot Pages