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 pages
  • page:write - Create, update, delete pages
  • block:read - List and get blocks
  • block:write - Add, update, remove blocks
  • form:read - Read form submissions
  • analytics:read - Read page analytics
  • * - All permissions (default)

Available Tools

These MCP tools are available to your AI. Your AI discovers them automatically.

ToolDescription
list_pagesList all your pages
get_pageGet page with all blocks
create_pageCreate a new page
update_pageUpdate page settings, theme, SEO
delete_pageDelete a page
publish_pageMake page live
unpublish_pageTake page offline
add_blockAdd a block to a page
update_blockUpdate block config
remove_blockRemove a block
reorder_blocksChange block order
list_block_typesSee all available block types
set_form_fieldsSet fields on a form block
list_form_submissionsGet form submissions
list_theme_presetsSee theme presets
apply_theme_presetApply a preset
upload_imageUpload 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-treats
You: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.