WP Publisher: Automate WordPress Articles with Claude AI

WP Publisher is a free, open source local app that automates bilingual IT/EN article creation and publishing on WordPress using Claude AI. Generate articles via direct API or by pasting JSON from claude.ai — API costs start from as little as ~€0.03 per article pair. Available on GitHub.

Share

Tempo di lettura: 6 minuti

Publishing a bilingual article on WordPress used to take almost two hours every week. Writing, SEO optimization, translation, uploading metadata to Yoast, setting the focus keyphrase — an exhausting loop. So I built WP Publisher: an open source app that hands all of that to Claude AI, at API costs of just ~€0.03 per article pair. Here’s how it works and where to get it.

Look, here’s the thing: if you run a multilingual blog, the most tedious part isn’t writing. It’s the infrastructure. Metadata, keywords, excerpts, images, Polylang to link IT and EN versions, Yoast for the focus keyphrase… every single time, the same ritual. WP Publisher was built to eliminate exactly that.

The project — freely available on GitHub — is a Python/Flask application that runs locally on your own machine. No data goes through third-party servers, no cloud subscription required. Just you, your API keys, and your WordPress site.

WP Publisher generate article screen in API Claude mode with topic and SEO keywords fields
WP Publisher’s main screen: enter topic and keywords to get complete IT+EN articles ready to publish.

What WP Publisher Is and Why I Built It

The idea is straightforward. You have a WordPress blog. You want to publish quality content in Italian and English, properly optimized for search engines, without spending hours formatting every field in the backend. WP Publisher does exactly that — in two different ways, depending on how you want to work.

The project integrates Claude AI (Anthropic’s model) with WordPress REST APIs, the Polylang plugin for multilingual management, and the major SEO plugins: Yoast SEO, RankMath, and All in One SEO. The final output is a complete article with SEO metadata, excerpt, focus keyphrase, and image slots — ready to publish or save as draft with a single click.



Project Architecture

Technically, it’s a Flask application with a web interface that opens automatically in the browser at http://localhost:5001. The backend handles API calls to Anthropic and REST calls to WordPress. The frontend — a single HTML page — lets you set parameters, preview the article, and publish directly.

Supports Windows 10/11, macOS 12+, and Linux (Ubuntu, Fedora, Arch, and more). Installation requires Python 3.9+ and about five minutes. You don’t need to be a developer to set it up — though some familiarity with the terminal helps.

Two Ways to Generate Content

This is the part I’m most proud of — what makes the project genuinely flexible. WP Publisher works in two completely different modes, each with its own advantages.



API Claude Mode — Automatic and Fast

Enter the article topic and SEO keywords directly in the app. You can also add URLs as context sources or attach files (PDF, DOCX, TXT — up to 5 files). Click Generate article and within 30–60 seconds you get two complete articles — one in Italian, one in English — already optimized for your SEO plugins.

The app uses Claude Sonnet 4.6 by default (the recommended model for quality-to-cost ratio), but you can also choose Haiku 4.5 for even lower costs or Opus 4.6 for maximum quality. You need an Anthropic API key, free at console.anthropic.com — new accounts receive $5 in starter credits.

Paste JSON Mode — Using claude.ai

No API key, or prefer to use the claude.ai subscription you’re already paying for? No problem. In this mode, the app shows you a pre-built prompt to copy. Paste it into claude.ai — optionally in a Project with your custom instructions — attach images if you want, and Claude returns a structured JSON. Copy it, paste it in the app, click Import, and you’re in the review screen, ready to publish.

It’s a smart solution for those who want the best of both worlds: the context power of claude.ai Projects and the convenience of automated WordPress publishing.

WP Publisher Paste JSON mode with claude.ai instructions and JSON paste field with Import button
The Paste JSON mode: generate on claude.ai, copy the JSON, import with one click.


Installation in Four Steps

The project README is thorough, but here’s the quick version. On the WordPress side, install the polylang-bridge.php plugin included in the repository — it handles IT/EN post linking and saves protected SEO metadata like Yoast’s focus keyphrase. Then create a WordPress Application Password from your admin profile: WP Admin → Users → Your Profile → Application Passwords. Note: this is different from your login password.

On your computer, install Python 3.9+, download the project from GitHub, and run the appropriate install script: a .bat on Windows, a .command on macOS, or an .sh on Linux. On first launch, the browser opens automatically at localhost.

Configure the Settings

The Settings screen is the heart of the configuration. Fill it in once and you’re done. Main fields: your Anthropic API key, your WordPress site URL (no trailing slash), your WordPress username, and the Application Password. There’s also an optional AdSense section. Click Test WordPress connection, see ✅ Connected, and you’re ready to go.

WP Publisher settings screen with Anthropic API key, WordPress connection and optional AdSense configuration
The Settings screen: API key, verified WordPress connection, and optional AdSense configuration.

Review, Images and Publishing

Once you generate or import the article, WP Publisher takes you automatically to the review screen. This is where everything comes together: check the metadata, upload your images, and publish — or save as draft — with a single click.

Metadata, Category and Tags

The screen shows both versions (IT and EN) side by side. For each, you can edit the title, meta description with a real-time character counter, Yoast focus keyphrase, excerpt, category, and tags. Everything is pre-filled by the AI — tweaking any field takes just a few seconds before you hit publish.

WP Publisher review screen with title, meta description, category and tags for IT and EN versions
The review screen: all SEO metadata pre-filled and editable for both language versions.

Content Preview and Image Slots

Further down you’ll find the Article images (slots) section. Every <figure> placeholder in the HTML becomes a slot with a suggested description — so you know exactly which image or screenshot to upload at each point in the article. You can also add YouTube videos or upload videos directly, and the Content section lets you toggle between raw HTML and a formatted Preview with one click.

WP Publisher article preview screen with image slots section and video upload option
The preview section: formatted content with guided image slots and option to add videos.

Publish to WordPress

At the bottom of the page is the Publish options section. Choose between immediate publication or draft, then click Publish to WordPress. The app automatically creates two WordPress posts — one in Italian, one in English — linked via Polylang, with all SEO metadata already written to your chosen plugin.

WP Publisher publish options with Draft status and Publish to WordPress button linked via Polylang
One click to publish: the app automatically creates two IT+EN posts linked via Polylang.

Claude API Costs — What to Expect

Short answer: very little. Claude Sonnet 4.6 — the default model — costs $3 per million input tokens and $15 per million output tokens. For a complete bilingual article (IT + EN), typical usage works out to roughly €0.03–0.05 per pair.

Switch to Claude Haiku 4.5 and costs drop to €0.005–0.01 per pair. Maximum quality with Opus 4.6 runs around €0.30–0.50. For the vast majority of use cases, Sonnet 4.6 hits the sweet spot between quality and cost.

And here’s the kicker — if you already have a claude.ai subscription (Pro or Max), you can use Paste JSON mode at zero API cost. Just use the monthly messages already included in your plan. Anthropic also gives new signups $5 in free credits: enough to generate dozens of articles before needing to top up.

Get WP Publisher on GitHub

The project is fully open source, released under the MIT license. Download it, modify it, contribute to it, or just use it as-is. No lock-in, no additional accounts, no data leaving your machine beyond the calls to Anthropic and WordPress.

Everything is at github.com/alefiori82/wp-article-publisher. The repository includes the full source code, a detailed README for all operating systems, the WordPress PHP plugin, and configuration templates. Questions or bugs? Open an issue directly on GitHub.

WP Publisher doesn’t solve every content marketing problem — but it eliminates the most mechanical, repetitive parts. If you run a bilingual WordPress blog and want to save hours every week, the entry barrier with Sonnet 4.6 is a few cents per article. Worth trying.

More To Explore

Artificial intelligence

Sentiment Analysis & Topic Modeling: What Your Customers Really Mean

You have 200 reviews, 500 support tickets, 1,000 social media comments. Reading them all would take days — and you’d still miss the most important patterns. Sentiment Analysis and Topic Modeling solve exactly this: in ten minutes you get the emotional tone of every text, recurring themes grouped automatically, and a strategic summary that manual reading would never have produced.

Artificial intelligence

Multimodal AI: Analyze PDFs, Images and Documents with Claude, GPT-4 and Gemini

AI no longer reads only text. Claude summarizes a 10-page quote in 30 seconds. GPT-4 Vision transcribes data from a dashboard screenshot into a ready-to-use table. Gemini 1.5 Pro navigates 1,000-page documents citing the sources. This guide shows how they work, when to use which tool, and where the time savings are measurable — with real screenshots from live sessions.

Leave a Reply

Your email address will not be published. Required fields are marked *

Progetta con MongoDB!!!

Acquista il nuovo libro che ti aiuterà a usare correttamente MongoDB per le tue applicazioni. Disponibile ora su Amazon!