Last modified: August 22, 2025
When developing HubSpot apps or CMS web content in your IDE, you can install the HubSpot development MCP server via the CLI. The HubSpot development MCP server runs locally and provides your AI assistant with additional instructions and context for streamlining app and CMS development tasks, including:
- Learning how to use the HubSpot CLI
- Searching documentation
- Creating a project
- Adding app features
- Adding content assets (themes, templates, and modules)
- Validating local project files
- Uploading a project
- Deploying a project
Prerequisites
- Join the developer MCP server public beta.
- Ensure you’re running version
7.6.0
or higher of the HubSpot CLI. You can check your version by runninghs --version
, and you can install the latest version by runningnpm install -g @hubspot/cli@latest
.
Set up the server
To get started with HubSpot’s developer MCP server, runhs mcp setup
in your terminal.
Usage
With the developer MCP server set up, you can prompt your client’s AI assistant to perform the HubSpot development tasks below.For the best results, it’s recommended to use Anthropic’s Claude Sonnet 4 or newer. While other models are supported, Claude Sonnet models deliver the most consistent and reliable results.
- HubSpot CLI walkthrough: receive guidance on how to use the HubSpot CLI, including common commands for building, testing, and managing your apps.
- Search documentation: find answers to common questions using the publicly available HubSpot developer platform documentation.
- Create a new project: generate a new HubSpot project with specified features and configuration.
- Add a feature or CMS asset to an existing project: add app features (e.g., app cards, workflow actions, and webhooks) or CMS content assets (e.g., themes, templates, and modules) to a project.
- Project validation: validate your local project configuration and identify potential issues prior to uploading and deploying your app.
- Upload a project: upload your project to HubSpot (by default, automatically deploys after successful build).
- Deploy a project: deploy the most recent successful build of a project (for projects with auto-deploy turned off).
"Walk me through how to create a test account from the CLI"
"Create a new project with app cards, a custom workflow action, and settings"
"Help me add a React theme to my existing project"
"Validate my project, then upload it to HubSpot"