Documentation

WriteKit is an MCP-powered publishing tool. You create and manage pages and collections entirely through conversation with your AI assistant.

Get started

1. Add the MCP server

claude mcp add --transport http writekit https://writekit.dev/mcp

Add to .cursor/mcp.json:

{
  "mcpServers": {
    "writekit": {
      "url": "https://writekit.dev/mcp"
    }
  }
}

Add to your Windsurf MCP config:

{
  "mcpServers": {
    "writekit": {
      "url": "https://writekit.dev/mcp"
    }
  }
}

Add to .vscode/mcp.json:

{
  "servers": {
    "writekit": {
      "type": "http",
      "url": "https://writekit.dev/mcp"
    }
  }
}

Add to opencode.json (project root or ~/.config/opencode/opencode.json):

{
  "mcp": {
    "writekit": {
      "type": "remote",
      "url": "https://writekit.dev/mcp"
    }
  }
}

Point any Streamable HTTP MCP client at:

https://writekit.dev/mcp

2. Authenticate

On first tool use, a browser window opens to sign in with GitHub, Google, Discord, or email (magic link).

3. Create your site

After signing in, pick a subdomain at the dashboard. Your site lives at yourname.writekit.dev.

4. Start publishing

Tell your AI assistant what to write. It creates pages, organizes them into collections, and publishes — all through conversation.

Workflow

  1. Ask your AI to create a page — it returns a preview link
  2. Open the preview in your browser — it auto-reloads on every edit
  3. Iterate with the AI until you're happy with the content
  4. Ask the AI to publish — it goes live at yourname.writekit.dev/{slug}

Every edit is versioned. Append ?v=N to a preview URL to view a previous version.

Core concepts

Pages

A page is any piece of markdown content — a doc, a blog post, a tutorial, a recipe. Pages start as drafts and can be published when ready. Each page gets a URL based on its slug.

Collections

Collections group related pages together. A "docs" collection, a "blog" collection, a "recipes" collection — whatever you need. Collections can be ordered manually (for docs/tutorials) or by date (for blog-style content). Pages can also exist standalone, outside any collection.

Visibility

Pages and collections have a visibility setting:

Visibility is independent of status. A page must be published to be visible at all — visibility controls who can see it. A private collection cascades: all pages inside it are treated as private.

Teams

Each site has a team with role-based access:

Invite team members by email using the invite_member tool or via the dashboard at app.writekit.dev.

URLs

Example prompts

Copy these directly into your AI assistant. They work as-is once connected.

"Write a getting-started guide and add it to the docs collection"
Creates a draft page in the docs collection, returns a preview URL.
"Create a collection called 'Tutorials' with manual ordering"
Creates a new collection you can add pages to.
"Publish my getting-started page and move it to position 1"
Publishes the page and reorders it to the top of its collection.
"Show me all my draft pages"
Lists all drafts with titles, IDs, and dates.
"Update my auth page — add a section about rate limits"
Fetches the page, appends content, regenerates the preview.
"List all my collections"
Shows collections with page counts and sort order.
"Search my pages for anything about authentication"
Full-text search across titles and content.
"Make my API docs collection private"
Updates the collection visibility so only team members can see it.
"Invite [email protected] as an editor"
Adds the user to your site team with editor permissions.

MCP tools

These tools are available to your AI assistant when connected.

Pages

ToolDescription
create_pageCreate a new draft page with markdown content
update_pageUpdate any field of an existing page
delete_pagePermanently delete a page
publish_pagePublish a draft — returns the live URL
unpublish_pageRevert a published page to draft
list_pagesList pages, filter by status, tag, or collection
get_pageGet full page content by ID or slug
append_to_pageAppend content to the end of a page without re-sending everything
search_pagesFull-text search across all pages

Collections

ToolDescription
create_collectionCreate a new collection (manual or date-sorted)
update_collectionUpdate collection title, description, slug, or sort order
delete_collectionDelete a collection (pages become standalone)
list_collectionsList all collections with page counts
get_collectionGet collection details and its pages
reorder_pagesSet page order within a manually-ordered collection

Settings

ToolDescription
get_settingsGet current site settings
update_settingsUpdate site title, description

Teams

ToolDescription
list_membersList all team members and their roles
invite_memberAdd a user to the team by email (owner only)
remove_memberRemove a team member (owner only)
update_member_roleChange a member's role (owner only)

MCP resources

Resources provide read-only context your AI can access at any time.

URIDescription
writekit://site/statsPage counts, collection counts
writekit://site/settingsCurrent site settings
writekit://site/recent-pagesLast 10 published pages
writekit://site/draftsAll draft pages
writekit://site/collectionsAll collections with page counts

Markdown

Pages are written in markdown with the following extensions: