morphed-mcp-server
v1.1.125
Published
Morphed Intelligence Platform MCP Server for Claude integration
Maintainers
Readme
Morphed Intelligence MCP Server
This is a Model Context Protocol (MCP) server that provides Claude with access to the Morphed Intelligence platform. Partners can use this to access their customer data, content library, and generate audits and blueprints directly through Claude.
🚀 Quick Start Guides
- Claude Online (OAuth): QUICK_START.md - Connect Claude Online with OAuth 2.0
- Claude Desktop (Stdio): See Claude Desktop Configuration below
- Production Deployment: DEPLOYMENT.md - Deploy to Render, Vercel, AWS, etc.
- OAuth Server Details: OAUTH_SSE_SERVER.md - Complete OAuth implementation guide
🔌 Transport Options
This MCP server supports multiple transport protocols:
1. OAuth 2.0 + SSE (Recommended for Claude Online)
Best for: Claude Online custom connectors with secure authentication
npm run start:oauth- ✅ OAuth 2.0 authorization flow
- ✅ Server-Sent Events (SSE) / Streamable HTTP
- ✅ Beautiful authentication UI
- ✅ RFC 8414 & RFC 9728 compliant
- 📚 Full Documentation
2. SSE/Streamable HTTP (Without OAuth)
Best for: Direct SSE connections without OAuth
npm run start:sse- ✅ Server-Sent Events transport
- ⚠️ Requires API key in headers
3. HTTP Transport
Best for: Simple HTTP-based integrations
npm run start:http- ✅ Basic HTTP transport
- ⚠️ No SSE support
4. Stdio Transport (Claude Desktop)
Best for: Claude Desktop app integration
npm start- ✅ Standard input/output transport
- ✅ Works with Claude Desktop
- 📚 See Claude Desktop Configuration
Features
Partner Management
- Get partner account information and connected customers
- List all customer HubSpot portals with health status
- Monitor portal connection status and token health
Content Library Access
- Search partner content library (methodologies, templates, frameworks)
- Get full details of specific content items
- Upload new content to the partner library
- Access categorized content by type (methodology, template, framework, case study)
Customer Analysis
- Analyze specific customer HubSpot portals for insights
- Get key metrics and KPIs for customer portals
- Monitor customer health scores and performance
- Track customer engagement and activity
Audit & Blueprint Generation
- Generate comprehensive business audits for customers with explicit workflow and emotional resonance
- Create strategic blueprints/roadmaps with systematic approach
- Generate various content types (case studies, whitepapers, presentations) with evidence-based process
- Enhanced audit emotional impact: All audits now include 2-3 emotionally resonant lines that connect risks with real business consequences
- Risk communication: High-severity risks include emotional consequence statements highlighting human and business impact
- Urgency framing: Examples include "Every month without data capture means lost customers who may never return" and "Your heritage story risks being invisible without digital infrastructure"
- Follow step-by-step audit generation process:
- Fetch HubSpot partner data using HubSpot MCP tools
- Identify audit target (partner, customer portal, or domain)
- Analyze customer portals using Morphed tools
- Browse and analyze company websites
- Fetch partner content (methodologies, case studies)
- Generate comprehensive audit with all gathered data
- Verify and provide handoff with audit link
- Follow step-by-step blueprint generation process:
- Gather HubSpot baseline data and company context
- Define strategic objectives and target outcomes
- Analyze customer portfolio and performance patterns
- Research market positioning and competitive landscape
- Leverage partner methodologies and best practices
- Conduct strategic gap analysis and prioritization
- Generate evidence-based blueprint with clear workstreams
- Verify strategic rationale and provide handoff
- Follow step-by-step content generation process:
- Gather HubSpot data for story elements and metrics
- Define content scope, audience, and objectives
- Analyze customer success stories and achievements
- Research market context and competitive positioning
- Extract partner expertise and unique methodologies
- Develop compelling narrative structure with evidence
- Generate content with comprehensive supporting data
- Quality assurance and authentic storytelling verification
- Include partner-specific methodologies in reports
- Automatically create notes in customer HubSpot portals
Cross-Portfolio Analysis
- Analyze performance across all customer portals
- Identify opportunities (upsell, cross-sell, optimization)
- Portfolio benchmarking and insights
- Group analysis by industry, size, or performance
Customer Communication
- Create notifications/tasks in customer HubSpot portals
- Generate notes, tasks, calls, emails, or meeting records
- Assign tasks to specific HubSpot users
- Set priority levels for communications
Installation
Quick Install
cd morphed-mcp-server
npm installConfiguration
Create .env.local file:
# Backend API URL
MORPHED_API_URL=http://localhost:5000
# For stdio/desktop mode
MORPHED_MCP_API_KEY=your_api_key_here
# For OAuth mode (production)
PUBLIC_MCP_URL=https://your-server.com
MCP_PORT=3002Start the Server
Choose your transport mode:
# OAuth + SSE (for Claude Online)
npm run start:oauth
# SSE without OAuth
npm run start:sse
# HTTP transport
npm run start:http
# Stdio (for Claude Desktop)
npm start
# Development mode (with debugger)
npm run dev:oauth
npm run dev:sse
npm run dev:http
npm run devClaude Desktop Configuration
Add to your Claude Desktop configuration (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):
{
"mcpServers": {
"morphed": {
"command": "node",
"args": ["./server.mjs"],
"env": {
"MORPHED_API_URL": "http://localhost:5000",
"MORPHED_MCP_API_KEY": "your_hubspot_oauth_token_here"
},
"cwd": "/path/to/morphed-mcp-server"
}
}
}Troubleshooting
❌ "spawn npx ENOENT" Error
If you see this error in Claude Desktop logs:
[morphed] [error] spawn npx ENOENTThis means Node.js is not installed on your system. The MCP server requires Node.js to run.
Solution:
- Download and install Node.js from https://nodejs.org/
- Download the LTS (Long Term Support) version
- Run the installer and follow the installation steps
- Important: Make sure to check the box that says "Add to PATH" during installation
- Restart Claude Desktop completely after installing Node.js
- Verify installation by opening a terminal and running:
Both commands should display version numbersnode --version npx --version
401 Authentication Errors
If you see 401 Unauthorized errors:
- Check your token: Ensure
MORPHED_MCP_API_KEYis set to a valid HubSpot OAuth token - Token expiry: HubSpot tokens expire - get a fresh token from the API
- Portal access: Ensure your token belongs to a registered partner portal
Debug Mode
Enable debug logging by setting:
DEBUG=trueThe server will log all API calls and authentication attempts.
Common Issues
- "MORPHED_MCP_API_KEY environment variable is required": Set your OAuth token in the environment
- "Partner not found": Your HubSpot portal is not registered as a partner
- "Partner account inactive": Your partner account needs to be activated
- "spawn npx ENOENT": Node.js is not installed - see solution above
Available Tools
get_partner_info- Get partner account information and connected customerslist_customer_portals- List all customer HubSpot portals connected to partnersearch_partner_content- Search partner content library (methodologies, templates, frameworks)get_content_details- Get full details of a specific content itemupload_partner_content- Upload new content to partner libraryanalyze_customer_portal- Analyze a specific customer HubSpot portal for insightsget_customer_metrics- Get key metrics and KPIs for a customer portalgenerate_customer_audit- Generate a comprehensive business audit for a customergenerate_strategic_blueprint- Generate a strategic blueprint/roadmap for a customeranalyze_portfolio_performance- Analyze performance across all customer portalsidentify_opportunities- Identify opportunities across customer portfoliocreate_customer_notification- Create a notification/task for a specific customer in their HubSpotgenerate_audit_with_workflow- Generate comprehensive audit following explicit step-by-step workflow that ensures proper data gathering from HubSpot MCP, customer portals, website analysis, and partner content before audit creationgenerate_blueprint_with_workflow- Generate strategic blueprint following explicit workflow with systematic data gathering, strategic analysis, customer insights, market research, and partner methodology reviewgenerate_content_with_workflow- Generate content (case studies, whitepapers, presentations, reports) following explicit workflow that ensures comprehensive data foundation, story development, and evidence-based content creation
Development
Run in development mode:
npm run devAuthentication Flow
The MCP server uses HubSpot OAuth tokens for authentication:
- Partner Login: Partner logs into Morphed platform via HubSpot OAuth
- Token Generation: System generates OAuth access token for partner's portal
- MCP Authentication: MCP server uses this token to authenticate API calls
- Partner Context: Backend validates token and loads partner context
- Customer Access: Partner can access their connected customer portals
This ensures secure, tenant-isolated access to customer data through the MCP interface.
Usage Examples
Once connected, you can ask Claude to:
Partner & Customer Management
- "Show me my customer portal status"
- "List all my connected HubSpot portals"
- "What's the health status of my customer portals?"
Content Library
- "Search my content library for sales methodologies"
- "Find templates related to customer onboarding"
- "Upload this new framework to my content library"
Customer Analysis
- "Analyze portal 12345 for performance insights"
- "Get metrics for my top 3 customers this month"
- "What are the key challenges for portal 67890?"
Audits & Blueprints
- "Generate a comprehensive audit for customer portal 12345"
- "Create a 90-day growth blueprint for my SaaS client"
- "Run a sales audit for portal 67890 and create a HubSpot note"
- "Generate an audit for domain.com following the full workflow"
- "Audit my partner account using the step-by-step process"
- "Create a digital transformation blueprint for customer portal 98765"
- "Generate a 6-month growth strategy blueprint for my agency"
- "Build a sales optimization blueprint with 90-day timeline"
Content Creation
- "Create a case study for our most successful customer transformation"
- "Generate a whitepaper on industry best practices using our methodology"
- "Build a presentation showcasing our partner success stories"
- "Create a comprehensive report on customer portfolio performance"
- "Generate a case study for portal 12345 showing their growth results"
- "Write a whitepaper on digital transformation trends in our industry"
Portfolio Analysis
- "Analyze performance across all my customer portals"
- "Identify upsell opportunities in my portfolio"
- "Show me which customers need immediate attention"
Customer Communication
- "Create a high-priority task in portal 12345 about the audit findings"
- "Send a note to portal 67890 with the blueprint recommendations"
- "Create a follow-up call reminder for my underperforming clients"
API Integration
The MCP server communicates with your Morphed platform via REST API endpoints:
- Partner Data:
/api/mcp/partners/current/info - Portal Management:
/api/mcp/partners/current/portals - Content Search:
/api/mcp/content/search - Customer Analysis:
/api/mcp/customers/{portalId}/analyze - Audit Generation:
/api/mcp/customers/{portalId}/audit - Blueprint Creation:
/api/mcp/customers/{portalId}/blueprint - Portfolio Analysis:
/api/mcp/portfolio/analyze - Customer Notifications:
/api/mcp/customers/{portalId}/notify
Security
- All API calls require authentication via the
MORPHED_MCP_API_KEY - Data is transmitted securely over HTTPS
- No customer data is stored locally by the MCP server
- All operations are logged for audit purposes
Troubleshooting
Connection Issues
- Verify your
MORPHED_API_URLis correct and accessible - Check that your
MORPHED_MCP_API_KEYis valid - Ensure your Morphed platform instance is running
Authentication Errors
- Confirm your API key has the correct permissions
- Check that your partner account is active
- Verify the API key format is correct
Data Access Issues
- Ensure your customer HubSpot portals are properly connected
- Check that HubSpot tokens are valid and not expired
- Verify portal permissions and scopes
Support
For support with the Morphed MCP server:
- Check the logs for detailed error messages
- Verify your configuration matches the examples
- Contact your Morphed platform administrator
- Refer to the Morphed platform documentation
Version
Current version: 1.0.0
License
MIT License - See LICENSE file for details
