Hby HubSpot
Add records to a segment
Adds contacts or other records, by ID, to a static segment (list).
Description
HubSpot now calls lists segments. Add records to `MANUAL` or `SNAPSHOT` segments; `DYNAMIC` segments are kept in line with their filters. The MCP tool can also create a static segment, and it asks the user to confirm each write.
add-to-segment.md
Add records to a segment
Adds contacts or other records, by ID, to a static segment (list).
HubSpot now calls lists segments. Add records to MANUAL or SNAPSHOT segments; DYNAMIC segments are kept in line with their filters. The MCP tool can also create a static segment, and it asks the user to confirm each write.
Set up
Use the first option your agent supports.
MCP (official, remote)
Add this server to your agent's MCP settings, then sign in when asked.
{ "mcpServers": { "hubspot": { "url": "https://mcp.hubspot.com" } } }
Call the MCP tool manage_segment.
Server URL: https://mcp.hubspot.com
API (official)
- Base URL: https://api.hubapi.com
- Endpoint:
PUT /crm/lists/2026-09/{listId}/memberships/add - Auth: send the header
Authorization: Bearer $HUBSPOT_API_KEY - Docs: https://developers.hubspot.com/docs/api-reference/latest/overview
Before doing anything else, make one read-only call to confirm access.
Rules
- Ask the user before anything that sends messages, costs money, or changes data.
- Never print API keys.
Built from these files in the repository
The layout and the rules come from lib/catalog/render-markdown.ts, the set-up wording from lib/catalog/render-access.ts.