coding4 min read

MCP Implementation at HubSpot: Elevating CRM with Context

Explore HubSpot's transformative MCP implementation for their CRM, detailing key strategies, challenges, and best practices for developers.

Kevin Liu profile picture

Kevin Liu

September 20, 2025

MCP Implementation at HubSpot: Elevating CRM with Context

How Does MCP Implementation Transform CRM Companies?

In the dynamic world of customer relationship management (CRM), the integration of advanced protocols like the Model Context Protocol (MCP) can revolutionize platform functionalities. A conversation with Karen Ng, EVP of Product at HubSpot, provides a deep dive into their cutting-edge MCP implementation. This reveals its pivotal role in enhancing user experience and streamlining data management.

What is Model Context Protocol (MCP)?

MCP stands as a sophisticated framework designed to manage application context, enabling developers to effectively understand and utilize the state of various components. As CRMs evolve to accommodate complex user interactions, grasping context is increasingly vital. MCP essentially optimizes data flow and bolsters the decision-making process across applications.

Why Does CRM Need MCP?

MCP's integration into CRM systems unlocks numerous benefits:

  • Enhanced User Experience: It tailors interactions through contextual information.
  • Improved Data Management: Efficient context management leads to superior data organization and retrieval.
  • Simplified Development: Developers can concentrate on leveraging context, reducing manual management.
  • Boosted Scalability: MCP adeptly handles growing customer data, ensuring smooth management.

HubSpot's Journey with MCP

HubSpot's MCP adoption unfolded through several strategic steps:

  1. Evaluating Existing Architecture: The team first scrutinized their server architecture to pinpoint integration opportunities, ensuring a smooth MCP integration.

  2. Crafting the Context Model: Highlighting the importance of a robust context model, the team delineated the context for each component and its system interactions.

  3. Leveraging Next.js and React: For efficient context management, HubSpot employed Next.js for server-side rendering and React for dynamic UIs.

  4. Protocol Implementation: The core of the implementation involved developing a middleware for context management across application layers, exemplified by:

    // contextMiddleware.js
    export const contextMiddleware = (req, res, next) => {
        req.context = { user: req.user, preferences: getUserPreferences(req.user) };
        next();
    };
    
  5. Iterative Testing: Rigorous testing and feedback cycles ensured the effective functioning of context management, facilitating continuous enhancement.

What Were the Challenges?

HubSpot faced several hurdles during MCP implementation:

  • Integrating Legacy Code: Merging MCP with existing codebases required significant refactoring to ensure compatibility.
  • Ensuring Team Proficiency: It was crucial that all developers were proficient with MCP, prompting HubSpot to conduct comprehensive training.
  • Monitoring Performance: The team vigilantly tracked performance to ensure that context management did not impede application speed.

Best Practices for MCP in CRM

For CRM systems considering MCP, here are key practices to follow:

  • Perform Comprehensive Assessments: Fully understand your current architecture and identify early integration points.
  • Establish Clear Context Models: Effective implementation hinges on a well-conceived context model.
  • Design for Scalability: Anticipate future growth in your protocol design.
  • Utilize Feedback Loops: Continuously refine the protocol based on user and developer feedback.
  • Prioritize Training: Equip your team with the knowledge to leverage the new system fully.

Conclusion

MCP's implementation can significantly elevate CRM system functionalities. HubSpot's methodical approach underscores the necessity of strategic planning, precise context modeling, and exhaustive testing for successful integration. These insights equip developers aiming to adopt MCP with the knowledge to overcome potential obstacles while maximizing the benefits of a context-rich user experience.

By adhering to established best practices and delving into the nuances of MCP, CRM companies can markedly enhance their offerings and, by extension, their customer interactions.

Related Articles