fortune-ai-mcp
v0.1.0
Published
MCP server for Fortune editorial tools (draft articles and newsletters)
Downloads
115
Readme
Fortune AI MCP
Draft-only MCP server for creating and updating Fortune WordPress articles through the Fortune AI Editorial API plugin.
Environment Variables
Set these before starting the server:
export FORTUNE_WP_BASE_URL="https://your-wordpress-site.example"
export FORTUNE_WP_USERNAME="service-account-username"
export FORTUNE_WP_APPLICATION_PASSWORD="xxxx xxxx xxxx xxxx xxxx xxxx"Use a WordPress service account with permission to edit posts, but do not give the AI workflow publish permissions if you want it to stay draft-only.
Install
npm installRun
npm startTools
get_article_schema— return allowlisted field schema for a post typesearch_authors— search eligible WordPress authors/editorssearch_terms— search taxonomy terms for assignmentget_draft_article— retrieve a draft's full state (content, meta, terms)list_drafts— list/search drafts with filters (post type, author, AI-only)create_draft_article— create a new draft articleupdate_draft_article— update an existing draft articlelist_newsletters— list newsletter taxonomy terms (pagination, optional search / parent filter)get_newsletter— fetch one newsletter by term id or slug (includes linkednewsletter-postmeta)create_newsletter— create a newsletter term (linked configuration post is created by WordPress)update_newsletter— update title, slug, content, status, parent, and allowlisted meta
WordPress routes (same auth as drafts): GET|POST /wp-json/fortune-ai-editorial/v1/newsletters, GET|PATCH /wp-json/fortune-ai-editorial/v1/newsletters/{id-or-slug}.
Cursor MCP Config Example
{
"mcpServers": {
"fortune-ai": {
"command": "npm",
"args": ["start", "--prefix", "/absolute/path/to/fortune/scripts/fortune-ai-mcp"],
"env": {
"FORTUNE_WP_BASE_URL": "https://your-wordpress-site.example",
"FORTUNE_WP_USERNAME": "service-account-username",
"FORTUNE_WP_APPLICATION_PASSWORD": "xxxx xxxx xxxx xxxx xxxx xxxx"
}
}
}
}