loading…
Search for a command to run...
loading…
Enables AI assistants to interact with the Google Blogger API v3 to manage blog posts and metadata. It supports the full post lifecycle including creating, upda
Enables AI assistants to interact with the Google Blogger API v3 to manage blog posts and metadata. It supports the full post lifecycle including creating, updating, publishing, and deleting content through natural language.
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.
~/.config/mcp-blogger/DEFAULT_BLOG_ID to skip passing blogId on every tool callmcp-blogger/
├── index.js # Main MCP server — tool definitions and handlers
├── oauth.js # OAuth 2.0 authentication flow
└── package.json # Project metadata and dependencies
git clone https://github.com/aleck31/mcp-blogger.git
cd mcp-blogger
npm install
This server supports two authentication methods. At least one must be configured:
get_blog_info, list_posts, get_post, search_posts)http://localhost:3000/oauth/callback to Authorized redirect URIsOn the first write operation, the server will automatically:
~/.config/mcp-blogger/tokens.jsonSubsequent write operations reuse cached tokens and refresh them automatically when expired. The OAuth flow times out after 5 minutes if not completed.
Set the following environment variables in your MCP client configuration:
| Variable | Required | Description |
|---|---|---|
BLOGGER_API_KEY |
For read ops | Google Blogger API key |
GOOGLE_CLIENT_ID |
For write ops | OAuth 2.0 Client ID |
GOOGLE_CLIENT_SECRET |
For write ops | OAuth 2.0 Client Secret |
DEFAULT_BLOG_ID |
No | Default Blog ID, used when blogId is omitted from tool calls |
Add the server to your Agent MCP configuration file (such as mcp_config.json):
{
"mcpServers": {
"blogger": {
"command": "npx",
"args": ["-y", "mcp-blogger"],
"env": {
"BLOGGER_API_KEY": "your-api-key",
"GOOGLE_CLIENT_ID": "your-client-id",
"GOOGLE_CLIENT_SECRET": "your-client-secret",
"DEFAULT_BLOG_ID": "your-default-blog-id"
}
}
}
}
Add the server via the Claude Code CLI:
claude mcp add blogger -- npx -y mcp-blogger \
-e BLOGGER_API_KEY=your-api-key \
-e GOOGLE_CLIENT_ID=your-client-id \
-e GOOGLE_CLIENT_SECRET=your-client-secret \
-e DEFAULT_BLOG_ID=your-default-blog-id
All tools that accept blogId will fall back to DEFAULT_BLOG_ID if set.
| Category | Tool | OAuth | Description |
|---|---|---|---|
| Account | list_blogs |
Yes | List all blogs owned by the authenticated user |
| Read | get_blog_info |
No | Get blog metadata by URL or ID |
| Read | list_posts |
No | List published posts |
| Read | get_post |
No | Get a specific post (supports drafts with OAuth) |
| Read | search_posts |
No | Search posts by keyword |
| Write | list_drafts |
Yes | List draft posts |
| Write | create_post |
Yes | Create a post (draft by default). Use content_file for large content |
| Write | change_post_status |
Yes | Publish a draft or revert a published post to draft |
| Write | update_post |
Yes | Update a post (supports both published and draft) |
| Write | delete_post |
Yes | Delete a post |
list_blogs # Find your blog ID
create_post (draft by default) # Write content
get_post # Preview the draft
update_post # Revise if needed
change_post_status action=publish # Go live
change_post_status action=revert # Unpublish if needed
MIT
Добавь это в claude_desktop_config.json и перезапусти Claude Desktop.
{
"mcpServers": {
"blogger-mcp-server": {
"command": "npx",
"args": []
}
}
}