← All examples

HubSpot Tool

MCP tool that manages contacts, deals, and companies in HubSpot using OAuth. Connect HubSpot and automate CRM from any agent.

toolhubspotoauthcrmmcp

An MCP tool that connects to HubSpot via OAuth. Manage contacts, deals, and companies — all callable by any agent or MCP client.

What's included

  • OAuth connection — connects to HubSpot via Reminix managed OAuth
  • Create/search contacts — find and create contact records
  • Manage deals — create and update deal pipeline
  • List companies — search and retrieve company data
  • MCP server — discoverable and callable by any agent or MCP client

When to use this

Pick the HubSpot Tool example when you want to:

  • Build an agent that enriches CRM data or creates deals from conversations
  • Create a conversational agent that searches contacts and updates HubSpot
  • Learn how OAuth connections work with HubSpot's API

How connections work

Reminix handles the HubSpot OAuth flow, token exchange, and automatic refresh. Your tool handler receives a valid access token and uses the HubSpot API directly.

  1. Create a HubSpot app and add OAuth credentials in the Reminix dashboard
  2. Authorize the connection to your HubSpot account
  3. Your tool gets fresh tokens on every call

Project structure

├── src/
│   ├── index.ts                # Entry point with serve()
│   └── tools/
│       ├── search-contacts.ts  # Search for contacts
│       └── create-deal.ts      # Create a new deal
├── package.json
├── tsconfig.json
└── reminix.config.ts

Quick start

After deploying and connecting your HubSpot account, any agent in your project can manage contacts and deals automatically.