# Set up Modern Blogging

Modern Blogging is a blogging platform. Its MCP server at https://modernblogging.net/api/mcp lets you create blogs, write, edit and publish posts and pages, upload images and change the design for the user.

You are the AI agent reading this. Follow the steps below for the user.

- Where you can run commands or edit config files, do the setup yourself.
- Where you cannot (a chat app), tell the user exactly what to click, one step at a time, and wait until they say it is done.

## 1. Connect the MCP server

Use the section for your agent. All of them connect to the same URL:

```
https://modernblogging.net/api/mcp
```

Sign-in uses OAuth. On the first connection a browser opens; the user signs in with Google or an email link and clicks Allow. Signing in creates an account if the user has none. Agents that cannot do OAuth send an API key instead, as `Authorization: Bearer <key>`; the user creates one at https://modernblogging.net/dashboard/api-key.

### Claude Code

```
claude mcp add --transport http modern-blogging https://modernblogging.net/api/mcp
```

Then run `/mcp`, choose modern-blogging and sign in.

### Codex

```
codex mcp add modern-blogging --url https://modernblogging.net/api/mcp
codex mcp login modern-blogging
```

### Cursor

Add this to `~/.cursor/mcp.json` (all projects) or `.cursor/mcp.json` (this project), then sign in when Cursor asks:

```json
{ "mcpServers": { "modern-blogging": { "url": "https://modernblogging.net/api/mcp" } } }
```

### GitHub Copilot

Add this to `.mcp.json` at the workspace root or to `~/.copilot/mcp-config.json`:

```json
{ "mcpServers": { "modern-blogging": { "type": "http", "url": "https://modernblogging.net/api/mcp" } } }
```

### Gemini CLI

```
gemini mcp add --transport http modern-blogging https://modernblogging.net/api/mcp
```

Then run `/mcp auth modern-blogging` to sign in.

### Claude (claude.ai, desktop and mobile apps)

Tell the user:

1. Open https://claude.ai/customize/connectors (Customize, then Connectors; also reachable from the + button in a chat).
2. Click + Add, then Add custom connector.
3. Name it Modern Blogging, enter the URL https://modernblogging.net/api/mcp and click Add.
4. Click Connect, sign in and click Allow.

Free Claude plans allow one custom connector.

Image uploads: Claude on claude.ai runs code in a sandbox that reaches only allowed domains. Tell the user that adding modernblogging.net under Settings, Capabilities (allowed domains; an admin does it on Team and Enterprise plans) lets you upload images directly. Without it, an image can only be sent inline, which costs many tokens, so you will ask before each such upload.

### ChatGPT

Custom connectors are available on ChatGPT Business, Enterprise and Edu, on the web. Tell the user:

1. Open Plugins, click +, then Add custom MCP server.
2. Name it Modern Blogging and enter the URL https://modernblogging.net/api/mcp under Connection.
3. Choose OAuth, accept the warning and click Create as a plugin.

### Meta Muse

Tell the user to open the Muse app settings, add a custom connector with the endpoint https://modernblogging.net/api/mcp, and choose OAuth sign-in or an API key from https://modernblogging.net/dashboard/api-key, sent in the Authorization header as `Bearer <key>`.

### Any other agent

Add a remote MCP server using streamable HTTP at https://modernblogging.net/api/mcp, with OAuth or the API key header above.

## 2. Check the connection

Call `list_tenants`. It lists the user's blogs. If the user has none, ask for a blog name and address and call `create_tenant`.

## 3. Publish the first post

1. If the user has more than one blog, ask which one, then call `switch_tenant` with its address.
2. Ask what the blog is about and who reads it, then suggest three post ideas. `research_topic` shows what top-ranking pages cover for a keyword.
3. Write the post the user picks with `create_post`:
   - a clear title;
   - at least three `##` sections;
   - at least one image with alt text;
   - `focusKeyword`, `seoTitle` (30 to 60 characters) and `seoDescription` (120 to 156 characters).
4. Fix every check marked fail in the SEO feedback that `create_post` returns.
5. Leave the post as a draft; the user can read it in the dashboard at https://modernblogging.net/dashboard/posts. Publish it (`publish_post`) only after the user says so.

Moving from WordPress? Call `import_wordpress` with the site's address and `previewOnly: true` first, show the user what would be imported, then import. Each call does one small step: call it again with `resume: true` while `hasMore` is true (waiting `retryAfterSeconds` first when it is given; `discard: true` deletes an unfinished import to start over), and tell the user about the images listed in `warnings` and `notice`.

More about the MCP server: https://modernblogging.net/mcp
