Skip to main content
Glama
README.md
# @lweight/inblog-mcp

MCP (Model Context Protocol) server for the [inblog.ai](https://inblog.ai) blogging platform API.

Manage your inblog blog directly from AI tools like [Claude Code](https://claude.ai/claude-code) — list, create, update, publish, and delete posts and tags without leaving your workflow.

## Quick Start

Add to your Claude Code MCP configuration:

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

Get your API key from: **inblog dashboard > Settings > API Keys**

## Tools (11)

### Posts
| Tool | Description |
|------|-------------|
| `inblog_list_posts` | List posts with filtering (published/drafts), sorting, and pagination |
| `inblog_get_post` | Get a post by ID with full content and metadata |
| `inblog_create_post` | Create a new draft post |
| `inblog_update_post` | Update post fields (title, content, SEO metadata, etc.) |
| `inblog_publish_post` | Publish a draft post |
| `inblog_delete_post` | Delete a post permanently |

### Tags
| Tool | Description |
|------|-------------|
| `inblog_list_tags` | List all tags with pagination |
| `inblog_create_tag` | Create a new tag |
| `inblog_assign_tags` | Assign tags to a post |
| `inblog_delete_tag` | Delete a tag permanently |

### Blog
| Tool | Description |
|------|-------------|
| `inblog_get_blog` | Get blog settings (title, domain, GA, etc.) |

## Features

- **Two output formats**: `markdown` (human-readable) and `json` (structured data) for all read tools
- **Pagination**: Page-based pagination with `has_more` indicator
- **Error handling**: Specific error messages with actionable suggestions for each HTTP status
- **Input validation**: Zod schemas with strict mode — rejects unknown fields, validates ID formats
- **Response truncation**: Large responses are automatically truncated with notice (25,000 char limit)
- **Tool annotations**: `readOnlyHint`, `destructiveHint`, `idempotentHint` for safe AI behavior

## Configuration

### Environment Variable (recommended)

Set `INBLOG_API_KEY` in your MCP server configuration's `env` field.

### .env File (fallback)

The server also checks for a `.env` file in the working directory:

```
INBLOG_API_KEY=your-api-key-here
```

## Requirements

- Node.js >= 18
- inblog.ai account with API access (Team plan or higher)

## License

MIT

TDQS

A3.9/5.0

Scored across 11 tools

Disambiguation4/5

Each tool targets a distinct resource+action, and the post/tag/blog grouping is clear. The main overlap is inblog_publish_post versus inblog_update_post's published flag, which perform essentially the same state change and could cause misselection.

Naming Consistency5/5

All tools use the same inblog_verb_noun snake_case pattern (list_posts, get_post, create_tag, assign_tags, get_blog). No mixing of conventions or vague standalone verbs.

Tool Count5/5

Eleven tools is well within the ideal range and each maps to a meaningful blog operation. The only slightly redundant tool is publish_post, but it earns its place as a convenience action.

Completeness4/5

Post lifecycle (list/get/create/update/publish/delete) and tag create/list/assign/delete are covered. Minor gaps: no update_tag, no update_blog settings, and assign_tags requires at least one tag, so there is no way to clear all tags from a post.

Maintenance

ActivityInactive
ResponsivenessNo recent community issues