MCP Documentation
Connect your AI to Huniler
Use the Model Context Protocol (MCP) to let Claude, ChatGPT, Cursor, or any MCP client create and edit your pages directly from chat.
Quick Start
1Get your API key
Go to Dashboard → Settings and create an API key. Copy it somewhere safe.
2Configure your MCP client
Add the Huniler MCP server to your client config. For Claude Desktop:
{
"mcpServers": {
"huniler": {
"url": "https://huniler.com/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_KEY"
}
}
}
}3Start chatting
Ask your AI to list your pages, create new ones, or edit blocks. For example:
“Create a page called 'My Coffee Shop' with a profile block, an image gallery, and a contact form.”
API Key
Your API key authenticates all MCP requests. Keep it secret. You can create multiple keys with different permissions in Settings.
Permissions
page:read- List and get pagespage:write- Create, update, delete pagesblock:read- List and get blocksblock:write- Add, update, remove blocksform:read- Read form submissionsanalytics:read- Read page analytics*- All permissions (default)
Available Tools
These MCP tools are available to your AI. Your AI discovers them automatically.
| Tool | Description |
|---|---|
| list_pages | List all your pages |
| get_page | Get page with all blocks |
| create_page | Create a new page |
| update_page | Update page settings, theme, SEO |
| delete_page | Delete a page |
| publish_page | Make page live |
| unpublish_page | Take page offline |
| add_block | Add a block to a page |
| update_block | Update block config |
| remove_block | Remove a block |
| reorder_blocks | Change block order |
| list_block_types | See all available block types |
| set_form_fields | Set fields on a form block |
| list_form_submissions | Get form submissions |
| list_theme_presets | See theme presets |
| apply_theme_preset | Apply a preset |
| upload_image | Upload an image |
Block Types
Use list_block_types to get the full schema. Current blocks:
profileName, bio, avatar
textRich text / markdown
headingSection header
imageSingle image
image-galleryMultiple images
linkButton link
linksMultiple links
socialSocial icon links
dividerVisual separator
spacerVertical space
formForm with fields
Example Session
A typical conversation with Claude:
You:Create a page for my bakery called "Sweet Treats" with a profile and contact form.
Claude:I'll create that page for you.
[calls create_page] [calls add_block type=profile] [calls add_block type=form]
Done! Your page is live at huniler.com/sweet-treatsYou:Add an image of cupcakes at the top.
Claude:I'll add an image block. Do you have a URL for the cupcakes image, or should I leave a placeholder?
Ready to connect?
Create your free account and get your API key.