Docs

Packages

MCP Server

The Model Context Protocol lets AI agents manage your PageKit content directly.

Installation

bash
pnpm add -g @arovi/pagekit-mcp

Quick Start

bash
PAGEKIT_API_KEY=pk_live_... pagekit-mcp

Transports

Stdio (default)

Best for local development and desktop clients.

bash
PAGEKIT_API_KEY=pk_live_... pagekit-mcp

HTTP

bash
PAGEKIT_API_KEY=pk_live_... pagekit-mcp --http
# Runs on http://127.0.0.1:9472/mcp

Client Configuration

Claude Desktop

json
{
  "mcpServers": {
    "pagekit": {
      "command": "pagekit-mcp",
      "env": {
        "PAGEKIT_API_KEY": "pk_live_...",
        "PAGEKIT_API_URL": "http://localhost:4783/api/v1"
      }
    }
  }
}

Cursor

Copy .cursor/mcp.json.example to .cursor/mcp.json:

json
{
  "mcpServers": {
    "pagekit": {
      "command": "pagekit-mcp",
      "env": {
        "PAGEKIT_API_KEY": "pk_live_...",
        "PAGEKIT_API_URL": "http://localhost:4783/api/v1"
      }
    }
  }
}

Available Tools

ToolDescription
pagekit_list_postsList posts with filters
pagekit_get_postGet post by ID or slug
pagekit_create_postCreate a new post
pagekit_update_postUpdate an existing post
pagekit_delete_postDelete a post
pagekit_list_tagsList all tags
pagekit_list_categoriesList all categories
pagekit_list_authorsList author profiles
pagekit_get_authorGet author by ID or slug
pagekit_create_authorCreate an author profile
pagekit_update_authorUpdate an author profile
pagekit_list_mediaList media assets
pagekit_create_mediaRegister a media asset
pagekit_delete_mediaDelete a media asset
pagekit_project_infoGet project info
pagekit_healthCheck API health

Example Interactions

text
"Create a blog post about our new feature."
"Find all unpublished drafts."
"Update the title of the latest article."
"Publish this post."

Environment Variables

VariableRequiredDefaultDescription
PAGEKIT_API_KEYYes—Your API key
PAGEKIT_API_URLNohttp://localhost:4783/api/v1API base URL (include /api/v1)
PORTNo9472HTTP port (with --http)