Laravel Post2Site
A Laravel 12/13 backend package for securely accepting Post2Site MCP-authored drafts through a protected content publishing API.
Laravel Post2Site is the backend half of the Post2Site workflow. The MCP client can draft content, but this package lets the Laravel host keep the authority over authentication, validation, storage, publishing mode, public URLs, and indexing. It is for Laravel sites that want AI-assisted blog posts, product guides, release notes, or localized drafts without giving an assistant admin, shell, or database access.
Install it into a Laravel 12 or 13 application, publish the config and migrations, create a scoped API key, and point the n2n-post2site MCP client at the protected route prefix. Start with review mode when you want manual approval; move to configurable model mapping or a custom adapter only when the host is ready to publish into its own article tables automatically.
Host-side publishing infrastructure
Protected routes
Registers rate-limited content publishing endpoints behind API-key middleware.
Staging tables
Owns draft, translation, API-key, and indexing tables so the host schema stays controlled.
Optional indexing
Can submit published URLs through IndexNow after the host produces a public link.
Publishing modes
Use review mode, config-based Eloquent publishing, or a custom adapter for complex sites.
Install in a Laravel host
composer require n2ns/laravel-post2site
php artisan vendor:publish --tag=post2site-config
php artisan vendor:publish --tag=post2site-migrations
php artisan migrate
php artisan post2site:key "Production MCP"
Documentation