Kapiti MCP Server
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
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Kapiti MCP Server show me the analytics for our main website this month"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Headlesshost MCP Server
A Model Context Protocol (MCP) server that provides complete communication with the Headlesshost platform API. This server enables AI assistants to manage content sites, staging sites, pages, sections, audiences, users, and file uploads through the Headlesshost platform.
Built with @modelcontextprotocol/sdk v1.26 and includes tool annotations, structured logging, and Zod input validation.
Demo
https://www.youtube.com/watch?v=xGGwcrI7gSo&feature=youtu.be
Related MCP server: Inkwell MCP Server
Installation
Clone this repository
Install dependencies:
npm installBuild the server:
npm run build
Configuration
The server requires a Headlesshost API key set via the HEADLESSHOST_API_KEY environment variable.
Usage
With Claude Desktop
Add this configuration to your Claude Desktop config file:
MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.jsonLocal development
{
"mcpServers": {
"headlesshost-cms": {
"command": "node",
"args": ["/path/to/kapiti.mcp/build/index.js"],
"env": {
"HEADLESSHOST_API_KEY": "your-auth-token"
}
}
}
}Via npx
{
"mcpServers": {
"headlesshost-cms": {
"command": "npx",
"args": ["headlesshost-mcp-server@latest"],
"env": {
"HEADLESSHOST_API_KEY": "your-auth-token"
}
}
}
}With Claude Code
Add to your .claude/settings.json:
{
"mcpServers": {
"headlesshost-cms": {
"command": "node",
"args": ["/path/to/kapiti.mcp/build/index.js"],
"env": {
"HEADLESSHOST_API_KEY": "your-auth-token"
}
}
}
}With Other MCP Clients
This server is compatible with any MCP client including VS Code, Zed Editor, Continue.dev, and custom MCP implementations.
Configure your client to use:
Command:
nodeArgs:
["/path/to/kapiti.mcp/build/index.js"]Environment: Set
HEADLESSHOST_API_KEY
Tools (53)
All tools include MCP annotations (readOnlyHint, destructiveHint, idempotentHint, openWorldHint) to help clients present appropriate UI and confirmation prompts.
General (3)
Tool | Description |
| Test authentication and connection |
| Check API health status |
| Get system reference data and lookups |
User Management (4)
Tool | Description |
| Create a new user in the current account |
| Get user details by ID |
| Update user information and claims |
| Delete a user from the system |
Account Management (3)
Tool | Description |
| Create a new user account |
| Get current account information |
| Update account information |
File Uploads (3)
Tool | Description |
| Upload a profile image for a user |
| Upload a file to a staging site |
| Upload an image to a staging site |
Content Sites (5)
Tool | Description |
| Create a new content site |
| Get all content sites in the account |
| Get content site details by ID |
| Update content site information |
| Delete a content site |
Staging Sites (9)
Tool | Description |
| Update staging site information |
| Delete a staging site |
| Publish a staging site to make it live |
| Get staging site details |
| Get staging site pages |
| Get staging site configuration including section types |
| Get change logs since last publish |
| Get published sites for a content site |
| Revert a staging site to a previous state |
| Clone a staging site |
Pages (6)
Tool | Description |
| Create a new page |
| Get page details (with optional sections) |
| Update a page |
| Delete a page |
| Revert a page to a previous state |
| Get page change logs since last publish |
Sections (7)
Tool | Description |
| Create a new section in a page |
| Get section details |
| Update a section |
| Delete a section |
| Publish a single section |
| Revert a section to a previous state |
| Get section change logs since last publish |
Site Audiences (4)
Tool | Description |
| Create an audience (locale/segment combination) for a site |
| Get audience details |
| Update an audience |
| Delete an audience (base audience cannot be deleted) |
Section Audiences (4)
Tool | Description |
| Create an audience override for a section |
| Get section audience details |
| Update a section audience override |
| Delete a section audience override |
Analytics (4)
Tool | Description |
| Get the last 15 activity logs |
| Get daily hit analytics |
| Get associated accounts |
| Get current user claims |
Resources
The server provides 2 resources for configuration and monitoring:
API Configuration (
config://api) — Available endpoints and current settingsAPI Health Status (
health://api) — Real-time connectivity and response time
Development
Build the server:
npm run buildRun in development mode:
npm run devWatch for changes:
npm run watchRun the MCP inspector for debugging:
npm run inspectorError Handling
The server includes structured error handling:
API authentication validation
Network connectivity checks
Structured logging via MCP logging capability (errors are sent to the client)
Graceful fallbacks for API timeouts
Security
API key authentication required for all operations
Secure environment variable handling
Input validation via Zod schemas on all tool inputs
Tool annotations signal destructive operations to clients
Available Tools
43 toolsclone_staging_siteClone Staging SiteC
Clone a staging site
Inputs: contentSiteId (required), stagingSiteId (required), newName.
create_content_siteCreate Content SiteC
Create a new content site in the current account
Inputs: name (required).
create_staging_site_pageCreate Staging Site PageC
Create a new page in a staging site
Inputs: contentSiteId (required), identifier (required), stagingSiteId (required), title (required), +1 more.
create_staging_site_sectionCreate Staging Site SectionC
Create a new section in a staging site page
Inputs: contentSiteId (required), pageId (required), sectionType (required), stagingSiteId (required), +1 more.
create_userCreate UserC
Create a new user in the current account
Inputs: email (required), firstName (required), lastName (required), claims, +1 more.
delete_content_siteDelete Content SiteC
Delete a content site
Inputs: contentSiteId (required), reason.
delete_staging_siteDelete Staging SiteC
Delete a staging site
Inputs: contentSiteId (required), stagingSiteId (required), reason.
delete_staging_site_pageDelete Staging Site PageC
Delete a staging site page
Inputs: contentSiteId (required), pageId (required), stagingSiteId (required).
delete_staging_site_sectionDelete Staging Site SectionC
Delete a staging site section
Inputs: contentSiteId (required), pageId (required), sectionId (required), stagingSiteId (required).
delete_userDelete UserC
Delete a user from the system
Inputs: id (required), reason.
get_accountGet AccountB
Get current account information
Inputs: no named parameters.
get_content_siteGet Content SiteB
Get content site details by ID
Inputs: contentSiteId (required).
get_content_site_accountsGet ContentSite AccountsC
Get accounts associated with a content site
Inputs: contentSiteId (required).
get_content_site_claimsGet Content site ClaimsC
Get current user claims for the content site
Inputs: contentSiteId (required).
get_content_site_hitsGet ContentSite HitsB
Get daily hits for a content site
Inputs: contentSiteId (required).
get_content_site_logsGet ContentSite LogsC
Get the last 15 activity logs for a content site
Inputs: contentSiteId (required).
get_content_sitesGet Content SitesB
Get all content sites in the current account
Inputs: no named parameters.
get_published_sitesGet Published SitesC
Get published sites for a content site
Inputs: contentSiteId (required).
get_ref_dataGet Reference DataC
Get system reference data and lookups
Inputs: category.
get_staging_siteGet Staging SiteC
Get staging site details by ID
Inputs: contentSiteId (required), stagingSiteId (required).
get_staging_site_configurationGet Staging Site ConfigurationC
Get staging site configuration by ID
Inputs: contentSiteId (required), stagingSiteId (required).
get_staging_site_logsGet Staging Site LogsC
Change logs since last publish
Inputs: contentSiteId (required), stagingSiteId (required).
get_staging_site_pageGet Staging Site PageC
Get details of a staging site page
Inputs: contentSiteId (required), includeSections (required), pageId (required), stagingSiteId (required).
get_staging_site_page_logsGet Staging Site Page LogsB
Get the change logs for a staging site page since the last publish
Inputs: contentSiteId (required), pageId (required), stagingSiteId (required).
get_staging_site_pagesGet Staging Site PagesC
Get staging site pages by ID
Inputs: contentSiteId (required), stagingSiteId (required).
get_staging_site_sectionGet Staging Site SectionC
Get details of a staging site section
Inputs: contentSiteId (required), pageId (required), sectionId (required), stagingSiteId (required).
get_staging_site_section_logsGet Staging Site Section LogsB
Get logs for a staging site section since the last publish
Inputs: contentSiteId (required), pageId (required), sectionId (required), stagingSiteId (required).
get_userGet UserC
Get user details by ID
Inputs: id (required).
healthHealth CheckB
Check the health status of the Headlesshost API
Inputs: no named parameters.
pingPing APIA
Test authentication and connection to the Headlesshost API
Inputs: no named parameters.
publish_staging_sitePublish Staging SiteC
Publish a staging site to make it live
Inputs: comments (required), contentSiteId (required), isApproved (required), stagingSiteId (required), +2 more.
publish_staging_site_sectionPublish Staging Site SectionC
Publish a staging site section
Inputs: contentSiteId (required), pageId (required), sectionId (required), stagingSiteId (required), +1 more.
register_userRegister UserC
Register a new user in the system with account creation
Inputs: email (required), password (required), accountName, firstName, +1 more.
revert_staging_siteRevert Staging SiteC
Revert a staging site to a previous state
Inputs: contentSiteId (required), stagingSiteId (required), reason.
revert_staging_site_sectionRevert Staging Site SectionC
Revert a staging site section to a previous state
Inputs: contentSiteId (required), pageId (required), sectionId (required), stagingSiteId (required).
update_accountUpdate AccountC
Update account information
Inputs: name.
update_content_siteUpdate Staging SiteC
Update staging site information
Inputs: contentSiteId (required), addressLine1, addressLine2, billingEmail, +8 more.
update_staging_siteUpdate Staging SiteC
Update staging site information
Inputs: contentSiteId (required), isHead (required), stagingSiteId (required), content, +4 more.
update_staging_site_pageUpdate Staging Site PageC
Update a staging site page
Inputs: contentSiteId (required), identifier (required), pageId (required), stagingSiteId (required), +2 more.
update_staging_site_sectionUpdate Staging Site SectionC
Update a staging site section
Inputs: contentSiteId (required), pageId (required), sectionId (required), stagingSiteId (required), +2 more.
update_userUpdate UserC
Update user information
Inputs: id (required), claims, email, firstName, +1 more.
upload_staging_site_fileUpload Staging Site FileC
Upload a file to a staging site
Inputs: contentSiteId (required), file (required), stagingSiteId (required), filename, +1 more.
upload_user_profile_imageUpload User Profile ImageC
Upload a profile image for a user
Inputs: image (required), userId (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 43 tools
The tools are generally well-differentiated by resource (e.g., content_site, staging_site, user, account) and action (e.g., get, create, update, delete), with clear boundaries. However, some tools like 'update_content_site' and 'update_staging_site' could be confused due to similar naming and overlapping domains, and 'health' and 'ping' are both diagnostic tools that might overlap in purpose.
The naming follows a highly consistent verb_noun pattern throughout, such as 'create_content_site', 'get_staging_site_page', and 'delete_user'. All tools use snake_case uniformly, with verbs like 'create', 'get', 'update', 'delete', 'upload', 'publish', and 'revert' applied predictably across resources, making the set easy to navigate.
With 43 tools, the count is excessive for the apparent domain of content and staging site management, user and account handling, and basic diagnostics. This high number suggests over-fragmentation, such as separate tools for logs and sections, which could overwhelm agents and reduce usability despite the comprehensive coverage.
The tool set provides complete CRUD/lifecycle coverage for all key domains: content sites, staging sites (including pages, sections, and files), users, and accounts. It includes advanced operations like publishing, reverting, uploading files, and diagnostics (health/ping), with no obvious gaps that would hinder agent workflows in this context.
Related MCP Connectors
Lets your AI build and edit websites in Xodia, a visual website builder for real code (Vite, React, Tailwind CSS or plain HTML in your own git repo): read and write site files, create pages and CMS collections, run typecheck, design and link checks, take screenshots, manage forms and translations, and pick up change requests the user sends from the visual editor. Sign in once with your Xodia account (OAuth). Free plan, no card needed. Setup: https://xodia.ai/ai/mcp
AI-callable tools for API mocking, testing, monitoring, security, and automation.
Connect your AI agent to 300+ methods and 100+ live tools
Lets AI agents analyze API metrics, request logs, and traces, and manage apps and alerts.
Related MCP Servers
- AlicenseCqualityDmaintenanceEnables AI agents to manage WordPress sites with 190+ tools for content management, theme/plugin customization, file system operations, WooCommerce, and complete site control through natural language.10028 npm55MIT
- FlicenseNot gradedqualityDmaintenanceEnables AI agents to publish and manage content on Inkwell sites via 12 tools, including inbox publishing, content management, and site configuration.1-
- FlicenseNot gradedqualityDmaintenanceEnables AI agents to manage WordPress sites via ~74 capabilities including content, media, plugins, themes, and more.-
- AlicenseNot gradedqualityDmaintenanceExposes the full Chatwoot API as 129 tools for AI assistants, enabling account, contact, conversation, message, inbox, team, report, help center, automation, and custom attribute management, plus exclusive Kanban and scheduled message features.5 npmMIT