Provides comprehensive access to the Google Blogger API v3, enabling AI agents to manage blog metadata, search and retrieve posts, and handle the full post lifecycle from draft creation to publication and deletion.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Blogger MCP Serverlist my latest blog posts"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Blogger MCP Server
An MCP (Model Context Protocol) server that provides Claude and other MCP-compatible AI assistants with full access to the Google Blogger API v3. Supports reading, creating, updating, publishing, and deleting blog posts through natural language.
Features
Blog management — List all blogs under your account, get blog metadata
Post lifecycle — Create drafts, edit, publish, revert to draft, delete
Read operations — List posts, retrieve individual posts, search by keyword
Draft-first workflow — Posts are created as drafts by default for safety, then published explicitly
Dual authentication — API Key for read-only access, OAuth 2.0 for full read/write access
File-based content — Load post content from local HTML files (recommended for content > 10KB)
Automatic token management — OAuth tokens are cached, refreshed, and persisted automatically to
~/.config/mcp-blogger/Default blog — Set
DEFAULT_BLOG_IDto skip passingblogIdon every tool call
Project Structure
Prerequisites
Node.js >= 22
A Google Cloud project with the Blogger API enabled
A Blogger API Key (for read operations) and/or OAuth 2.0 credentials (for write operations)
Installation
Authentication
This server supports two authentication methods. At least one must be configured:
API Key only — read-only operations (
get_blog_info,list_posts,get_post,search_posts)OAuth only — full read and write operations
Both — API Key for reads, OAuth for writes
1. Get a Blogger API Key (read-only access)
Go to the Google Cloud Console
Create a project (or select an existing one)
Enable the Blogger API v3 under APIs & Services > Library
Go to APIs & Services > Credentials
Click Create Credentials > API key
Copy the generated API key
2. Get OAuth 2.0 Credentials (read + write access)
In the same Google Cloud project, go to APIs & Services > Credentials
Click Create Credentials > OAuth client ID
Select Web application as the application type
Add
http://localhost:3000/oauth/callbackto Authorized redirect URIsCopy the Client ID and Client Secret
3. OAuth Flow (automatic)
On the first write operation, the server will automatically:
Start a temporary local HTTP server on port 3000
Open your browser to the Google OAuth consent page
After you grant access, capture the authorization code via the callback URL
Exchange the code for access and refresh tokens
Persist tokens to
~/.config/mcp-blogger/tokens.json
Subsequent write operations reuse cached tokens and refresh them automatically when expired. The OAuth flow times out after 5 minutes if not completed.
Configuration
Set the following environment variables in your MCP client configuration:
Variable | Required | Description |
| For read ops | Google Blogger API key |
| For write ops | OAuth 2.0 Client ID |
| For write ops | OAuth 2.0 Client Secret |
| No | Default Blog ID, used when |
MCP Config Example
Add the server to your Agent MCP configuration file (such as mcp_config.json):
Claude Code
Add the server via the Claude Code CLI:
Tools
All tools that accept blogId will fall back to DEFAULT_BLOG_ID if set.
Category | Tool | OAuth | Description |
Account |
| Yes | List all blogs owned by the authenticated user |
Read |
| No | Get blog metadata by URL or ID |
Read |
| No | List published posts |
Read |
| No | Get a specific post (supports drafts with OAuth) |
Read |
| No | Search posts by keyword |
Write |
| Yes | List draft posts |
Write |
| Yes | Create a post (draft by default). Use |
Write |
| Yes | Publish a draft or revert a published post to draft |
Write |
| Yes | Update a post (supports both published and draft) |
Write |
| Yes | Delete a post |
Typical Workflow
Dependencies
@modelcontextprotocol/sdk— MCP server frameworkgoogleapis— Google API client (Blogger API v3)express— Local HTTP server for OAuth callbackopen— Opens browser for OAuth consent
License
MIT