The Kapiti MCP Server enables AI assistants to interact comprehensively with the Headlesshost platform for complete content and site management.
Core System Operations: Test connectivity with ping/health checks, access system reference data, and utilize GPT Assistant for AI-powered tasks.
User & Account Management: Register users, perform full CRUD operations on accounts, manage roles/claims/permissions, upload profile images, and handle team management.
Content Site Administration: Create, list, update, and delete content sites with full lifecycle management. Access analytics including hit tracking, activity logs, daily hit data, and manage associated accounts and user claims.
Staging Site Management: Comprehensive staging operations including creation, updates, publishing, cloning, reverting, and deletion. Access detailed configurations, change logs, published versions, and manage permissions.
Page & Section Management: Full CRUD operations for pages within staging sites, including content updates and log access. Create, update, publish, revert, and delete sections with activity monitoring.
File Management: Upload files to staging sites and user profiles.
Advanced Features: AI-powered content generation, audience segmentation and targeting, content and product catalog management, style guide development, template creation and sharing, analytics and reporting, and business operations including invoicing, billing, and subscription management.
Provides billing integration capabilities including Stripe checkout processing and payment session management for business operations
Headlesshost MCP Server
A comprehensive Model Context Protocol (MCP) server that provides complete communication with the Headlesshost platform API endpoints. This server enables AI assistants to interact with all aspects of the Headlesshost platform including user management, content site operations, staging site management, content generation, analytics, and system administration.
Demo
https://www.youtube.com/watch?v=xGGwcrI7gSo&feature=youtu.be
Features
🔧 General System Tools (4 tools)
Ping: Test authentication and connection to the Headlesshost API
Health: Check API health status and connectivity
Reference Data: Access system reference data and lookups
📁 File Management (2 tools)
Upload Profile Image: Upload user profile images
Upload Staging Site File: Upload files to staging sites
👥 Membership Management (8 tools)
User Registration: Register new users with account creation
User Management: Full CRUD operations for users with claims/roles support
Account Management: View and update account information
🏢 Content Site Management (6 tools)
Content Site Creation: Create new content site entities
Content Site Listing: View all content sites with optional filters
Content Site Details: Get comprehensive content site information
Content Site Updates: Modify content site settings and configuration
Content Site Deletion: Remove content sites from the platform
🌐 Staging Site Management (67 tools)
Comprehensive staging site functionality including:
Core Operations (4 tools)
Site Operations: Update, delete, publish staging sites
Site Information: Get staging site details and metadata
Site Management: Clone, promote, and revert staging sites
Published Sites: Access published site versions
Page Management (4 tools)
Page CRUD: Create, read, update, delete staging site pages
Page Content: Handle page content and structure
Page Analytics: Track page-level performance
Page Logs: Monitor page activity and changes
Section Management (6 tools)
Section CRUD: Create, read, update, delete page sections
Section Content: Manage section-specific content
Section Logs: Track section-level modifications
User Management (5 tools)
User Access Control: Grant and manage user access to staging sites
Role Management: Assign and update user roles per site
Permissions: Configure granular user permissions
User Listing: View all site users and their roles
Business Operations (7 tools)
Business Logs: Access business activity and audit trails
Business Analytics: Business-level performance metrics
User Management: Business user access and permissions
Role Management: Business role definitions and assignments
System Resources (8 tools)
Hit Tracking: Raw analytics data and visitor metrics
System Health: Monitor platform connectivity and status
📈 Total Coverage
87 Tools providing complete API coverage across all Headlesshost platform functionality!
Installation
Clone this repository
Install dependencies:
npm installBuild the server:
npm run build
Configuration
Set up your environment variables:
Or create a .env
file:
Usage
With Claude Desktop
Add this configuration to your Claude Desktop config file:
On a Mac (edit or create this file).
With Other MCP Clients
This server is compatible with any MCP client including:
VS Code with MCP extensions
Zed Editor
Continue.dev
Custom MCP implementations
Configure your client to use:
Command:
node
Args:
["/path/to/Headlesshost.mcp/build/index.js"]
Environment: Set
HEADLESSHOST_API_KEY
Development
Build the server:
Run the server directly:
Run the MCP inspector for debugging:
Resources
The server provides 2 resources for configuration and monitoring:
API Configuration: Current Headlesshost API settings and endpoints
API Health Status: Real-time connectivity and health information
Error Handling
The server includes comprehensive error handling with:
API authentication validation
Network connectivity checks
Detailed error messages and troubleshooting information
Graceful fallbacks for API timeouts
Security
API key authentication required for all operations
Secure environment variable handling
Request/response logging for audit trails
Input validation and sanitization
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
Tools
Enables AI assistants to interact with the Kapiti platform through 87 tools covering user management, content site operations, staging site management, content generation, analytics, and system administration. Provides complete API coverage for managing websites, users, content, and business operations on the Kapiti CMS platform.