AI/Blogfor Laravel

Let AI agents write your blog over MCP

Updated

// config/ai-blog.php
'mcp' => [
    'enabled' => true,
    'path' => '/mcp/ai-blog',
    'middleware' => ['auth:sanctum'],
],

Then connect:

claude mcp add --transport http my-blog https://example.com/mcp/ai-blog --header "Authorization: Bearer <token>"
AI agent Claude, ChatGPT your Laravel app Middleware auth:sanctum, OAuth MCP server 8 tools Posts draft, scheduled token allowed writes rejected, no tool runs no publish tool published only by you or the scheduler
Every agent call crosses your middleware first. Inside, the tools can write and schedule drafts, but nothing an agent calls can publish.

Tools: list-posts, get-post, create-draft, update-post, draft-from-keyword, score-post, suggest-links, schedule-post. There is deliberately no publish-post tool — agents draft, score, link and schedule; a human (or the scheduler, after a human scheduled it) publishes.

For Claude.ai and ChatGPT custom connectors, use laravel/mcp's OAuth support (Mcp::oauthRoutes() with Passport).

Edit on GitHubView as Markdown