@pagehub/mcp-core
以下摘录自该仓库的 README(片段) · 在 GitHub 读完整 README →
The toolset that powers PageHub's AI integrations — 85 typed tools for building, editing, and publishing websites programmatically.
This is the shared core: tool schemas (MCP-compatible), HTTP handlers against the PageHub API, request context, and validation helpers. It's consumed by:
- @pagehub/mcp — stdio MCP server (use with Claude Desktop, Cursor, etc.)
- PageHub's in-app AI agent (chat-driven editor)
- Your own Claude Agent SDK / OpenAI / Vercel AI scripts
What's PageHub?
A visual + AI website builder. The MCP tools let an LLM create sites, place blocks, patch nodes, set themes, manage pages, run accessibility/SEO audits, search stock media, and publish — all against pagehub.dev via authenticated HTTP.
Install
Node.js 18+.
Quick start
Get a free API key by signing up at pagehub.dev or calling the register tool with an email.
See examples/ for runnable scripts (list tools, execute a tool, full Claude Agent SDK loop).
Use with Claude Agent SDK
Tool catalog
85 tools across 11 domains. The full schemas live in src/data/tools.json.
| Domain | Examples |
| -------------- | ----------------------------------------------------------------------------- |
| Sites | list_sites, create_site, pull_site, publish_site, unpublish_site |
| Templates | list_templates, pull_template, select_template |
| Pages | list_pages, add_page, update_page, delete_page |
| Nodes | add_nodes, patch_site_node, patch_site_bulk, move_node, delete_node |
| Blocks | search_blocks, get_block, save_block, apply_kit_block |
| Theme & Design | set_theme, suggest_palettes, suggest_font_pairings, set_favicon |
| Stripe | set_integrations (Stripe Connect), connector-aware product/category lookups |
| Media | upload_image, find_image, find_video (Pexels / Unsplash) |
| SEO | audit_seo, audit_accessibility |
| Portal | set_portal, get_portal, remove_portal |
| Site Config | set_integrations, set_redirects |
Public API
Subpath imports
For handler delegation patterns (e.g. wrapping individual tools), import handlers directly:
Available subpaths: handlers/{components,discovery,kit,nodes,pages,portal,remote,seo,site-config,stock-images,stock-videos}, ai-models. Internals (core/, helpers/, utils/, validation/, data/, codec/, lib/) are not part of the public API.