Set Up Blog Publishing in Cursor: MCP Config, First Post, and Automation

Cursor is a code editor with a built-in AI assistant. It runs Claude and other models, supports multi-file editing, and — critically — supports MCP (Model Context Protocol) for connecting to external services. This means Cursor can publish blog posts the same way it refactors code: you describe what you want, the AI executes.

This guide is Cursor-specific. It covers the exact configuration files, the settings UI, Agent mode requirements, and practical workflows that make Cursor a first-class blogging tool . If you use Claude Desktop instead, see the Claude MCP tutorial .

Screenshot of the Cursor MCP settings panel showing the Modern Blogging server configured with the API endpoint and bearer token
Cursor MCP configuration for blog publishing

Configuration: 5-minute setup

Step 1: Create a blog and API key

  1. Sign up at modernblogging.net — free, no credit card.
  2. Open Dashboard → API Key.
  3. Click Generate. Copy the key (starts with mb_ ).

Step 2: Add the MCP server to Cursor

Open Cursor Settings (⌘ + , on macOS, Ctrl + , on Windows/Linux). Navigate to the MCP section. Add a new server with these details:

Field

Value

Name

modern-blogging

URL

https://modernblogging.net/api/mcp

Headers

Authorization: Bearer mb_YOUR_API_KEY

Or edit the JSON config directly:

json
// .cursor/mcp.json (project-level) or global MCP config
{
  "mcpServers": {
    "modern-blogging": {
      "url": "https://modernblogging.net/api/mcp",
      "headers": {
        "Authorization": "Bearer mb_YOUR_API_KEY"
      }
    }
  }
}
💡

Project-level config: Put the config in .cursor/mcp.json at your project root. This enables blog publishing only in specific projects, keeping your API key scoped.

Step 3: Verify in Agent mode

Switch Cursor to Agent mode (not Ask mode). Agent mode allows multi-step tool execution. Type in the chat:

text
"List my blogs using the modern-blogging MCP tools."

Cursor should call list_tenants and return your blog details. If you see the blog name, subdomain, and plan — setup is complete.

Your first post from Cursor

With the connection verified, publish your first post:

text
"Write a blog post about developer productivity tools in 2026. 
Target keyword 'developer productivity tools 2026'. Include 
5 H2 sections, a comparison table, and at least 1500 words. 
Create as a draft."

Cursor's AI assistant will:

  1. Call create_post with the generated content, SEO metadata, and focus keyword.
  2. Return the post ID, SEO score (0–100), and per-field validation.
  3. Suggest improvements if the score is below your threshold.

Review the score. Ask Cursor to fix specific issues: "Shorten the meta description to under 156 characters." It calls update_post and returns the new score. When satisfied:

text
"Publish the post."

The post goes live immediately. Check it at your blog URL. The platform handles caching, sitemap updates, and structured data automatically.

Agent mode workflows for blogging

Cursor's Agent mode enables multi-step autonomous workflows. For blogging, this means Cursor can execute complex tasks in a single conversation:

Research → Write → Publish

text
"Research 'API rate limiting patterns', then write a 
comprehensive guide targeting that keyword. Score it 
against our SEO validator. If the score is above 85, 
publish it. Otherwise, fix the issues and try again."

Agent mode chains research_topic → create_post → check score → update_post (if needed) → publish_post . The AI decides when to iterate based on the SEO score.

Code-to-blog pipeline

text
"Read the lib/rateLimit.ts file in this project. Write a 
blog post explaining how we implemented rate limiting, 
with code examples from the actual implementation. Target 
developers who use Cloudflare Workers."

Cursor reads your project files, extracts relevant code, and generates a technically accurate post. This is where IDE-based blogging shines — the AI has direct access to your codebase, not just your clipboard.

Bulk operations

text
"List all my published posts. For any post missing a 
meta description, generate one based on the post content 
and update the post."

Agent mode iterates through posts, identifies gaps, and fixes them. This is practical for SEO maintenance across a growing blog.

Practical tips for Cursor blogging

  • Use Agent mode, not Ask mode. Ask mode answers questions. Agent mode executes tool calls. Blog publishing requires tool execution.
  • Keep API key in project config. Per-project .cursor/mcp.json keeps your blogging API key separate from other MCP servers.
  • Draft first, publish second. Always create posts as drafts. Preview in the browser before publishing. This catches formatting issues the AI might miss.
  • Reference your code. The best developer blog posts use real code. Tell Cursor which files to read and incorporate into the post.
  • Chain MCP calls. "Create a post, then generate a matching theme" works in one conversation. Cursor handles the tool chaining automatically.
  • Use with other MCP servers. Cursor can connect to multiple MCP servers. Database access, deployment tools, and blog publishing can coexist in one conversation.

Troubleshooting

Issue

Cause

Fix

No MCP tools appear

Not in Agent mode

Switch to Agent mode in Cursor

Authentication error

Invalid or expired API key

Regenerate key in Dashboard → API Key

Wrong blog

Multiple blogs, wrong one active

Call switch_tenant with correct subdomain

Post not visible

Created as draft

Call publish_post or publish from dashboard

Low SEO score

Missing metadata

Ask Cursor to fix specific signals

Cursor vs other MCP clients for blogging

Client

AI model

Code access

Multi-step

Best for

Cursor

Claude, GPT, etc.

Full project

Agent mode

Developer blogging

Claude Desktop

Claude

None

Conversation

Research + writing

Claude Code

Claude

Full project

Yes

Terminal-based workflows

Windsurf

Various

Full project

Yes

IDE alternative

Custom scripts

Any

As coded

Scripted

Automation pipelines

Cursor is the strongest choice when you want your code and your blog in the same workflow. For research-heavy writing without code context, Claude Desktop is more focused. For fully automated publishing, see the automation guide .

Start blogging from Cursor

The setup is two steps: API key and JSON config. After that, blogging is a conversation in your editor. Research, draft, score, publish — without opening a browser.

Create your blog and add the MCP server to your Cursor config. Your first post from Cursor takes about five minutes.

Share this post
𝕏in
Built with Modern Blogging

This article was written, styled, and published using the Modern Blogging platform. Launch your own fast, SEO-ready publication in minutes.

Start for free →