·5 min read·Tutorial, Dev.to, Claude Code

How to Publish to Dev.to from Claude Code

You wrote the article in Claude Code. Now you have to open a browser, navigate to Dev.to, paste it in, fix the formatting, add tags, and hit publish. Or you could just stay in your terminal and do it in 30 seconds.

The copy-paste problem

If you write technical content in Claude Code, you already know the workflow. You spend 30 minutes crafting an article, iterating on structure and wording, getting everything right. Then the actual publishing begins.

You copy the markdown. You open Dev.to. You click “New Post.” You paste. Half the formatting breaks because Dev.to's editor handles markdown slightly differently. You manually fix code blocks. You add a cover image URL. You type in tags one by one. You preview. You fix more formatting. You finally click “Save Draft.”

This takes 10-15 minutes every time. For something that should take seconds.

Pipepost eliminates this entirely. It's an MCP server that gives Claude Code direct access to the Dev.to API. You write, you publish, you never leave the terminal.

Step 1: Install Pipepost

Add Pipepost to your Claude Code MCP configuration. Open ~/.claude/settings.json and add the server:

// ~/.claude/settings.json
"mcpServers": {
"pipepost": {
"command": "npx",
"args": ["-y", "pipepost-mcp"]
}
}

Restart Claude Code. That's it — Pipepost's tools are now available in every session. No global install, no dependencies to manage.

Step 2: Configure your Dev.to API key

You need a Dev.to API key. Go to dev.to/settings/extensions, generate one, and hand it to Claude:

you: "Set up my Dev.to API key: dv1_abc123xyz..."
claude: Dev.to API key configured successfully. Saved to ~/.pipepost/config.json

Your key is stored locally at ~/.pipepost/config.json. It never gets sent anywhere except Dev.to's own API when you explicitly publish.

Step 3: Score your content for SEO

Before publishing, run a quick SEO check. This is free on all tiers and catches obvious issues before your article goes live.

you: "Score this article for SEO targeting ‘building rest apis in node’"
SEO Score: 74/100
Readability — 68 (Flesch-Kincaid) — Good
Keyword density — 1.8% — Optimal
Word count — 1,240 — Good
Heading structure — H2, H3 present — Good
Suggestions:
• Add keyword to first paragraph
• Consider adding a meta description

The score checks readability (Flesch-Kincaid), keyword density (0.5-2.5% is the sweet spot), word count, and heading structure. It takes about two seconds and gives you actionable suggestions. Not a replacement for Ahrefs, but a solid sanity check before you publish.

Step 4: Publish as a draft

Now the part that used to take 15 minutes:

you: "Publish this article to Dev.to as a draft with tags: node, rest-api, javascript, tutorial"
Published to Dev.to (draft)
Title: Building REST APIs in Node.js: A Practical Guide
Tags: node, rest-api, javascript, tutorial
URL: https://dev.to/yourname/building-rest-apis-in-nodejs-a-practical-guide-draft

That's it. Your article is now a draft on Dev.to with the correct title, tags, and markdown formatting — all handled by the API, so no formatting weirdness from copy-paste.

Step 5: Review and go live

Open the draft URL in your browser. Everything should look right because it was sent through the API, not pasted into an editor. Do a final visual check, then click “Publish” on Dev.to.

Or, if you trust the process, publish directly:

you: "Publish this article to Dev.to (not as draft) with tags: node, rest-api, javascript"

Goes live immediately. No browser required.

The full workflow: 30 seconds

Here's what the entire flow looks like in practice:

  • Write— Draft your article in Claude Code as you normally would
  • Score— “Score this for SEO targeting ‘your keyword’” (2 seconds)
  • Fix— Address any SEO suggestions Claude surfaces
  • Publish— “Publish to Dev.to as a draft” (3 seconds)
  • Promote— “Generate social posts for Twitter and Reddit” (2 seconds)

Total time from finished markdown to published draft: about 30 seconds. Compare that to the 10-15 minutes of manual copy-paste-fix-tag-preview-publish.

What about other platforms?

Dev.to publishing is available on the free tier (3 articles per month). If you publish to multiple platforms, the Pro tier ($19/mo) adds Ghost, Hashnode, WordPress, and Medium — all from the same terminal workflow.

You can also cross-publish a single article to all five platforms at once using the cross_publish tool. But that's a topic for another post.

Try it

If you write in Claude Code and publish to Dev.to, this saves real time on every article. Set it up once, use it forever:

View on GitHub

Pipepost is MIT licensed and open source. Dev.to publishing is free — no credit card required.