From AI Image Generation to Blog Publishing in Claude Code — Introducing lweight MCP Servers

Mar 31, 2026
From AI Image Generation to Blog Publishing in Claude Code — Introducing lweight MCP Servers

What if you could generate AI images and publish a finished blog post — all from a few lines of conversation in your terminal?

lweight has released two open-source MCP (Model Context Protocol) servers that connect Claude Code with xbrush.ai and inblog.ai. Together, they create a seamless workflow where AI handles everything from image generation to writing to publishing.


What Is MCP?

MCP (Model Context Protocol) is an open standard released by Anthropic that lets AI assistants directly access external tools, APIs, and data. Once you register an MCP server with Claude Code, Claude can call that service's functions as if they were built-in tools.

xbrush-api-mcp and inblog-mcp expose the core features of xbrush.ai and inblog.ai respectively — making them available directly inside Claude Code.


xbrush-api-mcp — AI Image Generation from Your Terminal

xbrush-api-mcp is an MCP server that gives Claude Code direct access to xbrush.ai's image generation and editing API.

Key Features

Image Generation & Editing (4 core tools)

  • Text-to-image generation: Describe an image in natural language and receive the result immediately. Runs synchronously, so you get the output right away.

  • Text-instruction editing: Edit photos using natural language commands like "change the background to white" or "increase the brightness." Runs asynchronously — you receive a request ID to check progress.

  • Image upscaling: Convert low-resolution images to high resolution. Useful for product photos or print-ready assets.

  • Background removal: Automatically remove the background from any image. Runs synchronously for instant results.

Utility Tools (5 tools)

  • Model listing: Browse available image generation models and their pricing.

  • Async status checking: Check the progress of any ongoing edit or upscale operation using the request ID.

  • Request history: View a log of all previously processed operations.

  • File upload: Upload local files to the xbrush CDN for use in API requests.

  • API health check: Verify that the xbrush API is responding normally.

Setup

Get an API key from xbrush.run, then add the following to Claude Code's MCP settings:

{
  "mcpServers": {
    "xbrush-api-mcp": {
      "command": "npx",
      "args": ["-y", "@lweight/xbrush-api-mcp"],
      "env": {
        "XBRUSH_API_KEY": "your-api-key-here"
      }
    }
  }
}

Once configured, just tell Claude Code: "Generate a product image with a white background using xbrush." Claude calls the xbrush API directly and saves the result as a file.


inblog-mcp — Let AI Handle Blog Publishing

inblog-mcp is an MCP server that lets you manage your inblog.ai blog entirely from Claude Code. It provides 11 tools covering everything from drafting to SEO to publishing.

Key Features

Post Management (6 tools)

  • List posts: Browse posts by status (published, draft) with filtering and pagination.

  • Retrieve a post: Fetch the full content of any individual post.

  • Create a draft: Create a new post with a title, HTML body, and SEO metadata.

  • Update a post: Edit content, SEO title, meta description, and other fields.

  • Publish a draft: Make a completed draft publicly visible on your blog.

  • Delete a post: Permanently remove a post.

Tag Management (4 tools)

  • List all tags, create new tags, assign tags to posts, delete tags.

Blog Settings

  • Retrieve your full blog configuration: title, domain, analytics settings, and more.

Response Formats

All tools support two output formats: markdown (human-readable) and JSON (structured data). Responses are automatically truncated at ~25,000 characters for large results.

Setup

Get an API key from your inblog.ai dashboard (Team plan or higher required), then add the following to Claude Code:

{
  "mcpServers": {
    "inblog-mcp": {
      "command": "npx",
      "args": ["-y", "@lweight/inblog-mcp"],
      "env": {
        "INBLOG_API_KEY": "your-api-key-here"
      }
    }
  }
}

Using Both Together — How This Blog Is Built

Every post on the xbrush blog is created using both of these MCP servers together.

  1. Playwright MCP automatically captures screenshots of the xbrush UI

  2. xbrush-api-mcp generates and edits example images for the post

  3. Push to GitHub to get publicly accessible image URLs

  4. inblog-mcp creates and publishes Korean and English drafts

Once Claude Code is connected to both servers, the entire workflow — from planning a post to publishing it — runs with AI handling each step. The human role is to set the direction and review the result.

This post itself was written and published using the same workflow.


Get Started

Both servers are MIT-licensed open source and available via npm.

If you're already using Claude Code, connecting both servers takes just a few lines of configuration. You'll need a xbrush.ai account and an inblog.ai Team plan to get started.


Tools Used

  • xbrush-api-mcp: Image generation, editing, upscaling, background removal

  • inblog-mcp: Post creation, editing, tag management, publishing

  • License: MIT (open source)

  • Requirements: Node.js 18+, Claude Code, xbrush API key, inblog Team plan

Share article