blog_publisher_mcp_server

Carrie-L/blog_publisher_mcp_server

3.1

If you are the rightful owner of blog_publisher_mcp_server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

This document outlines the creation of a Model Context Protocol (MCP) server for automating the process of uploading blog articles from Obsidian to a specified directory and pushing changes to GitHub.

The MCP blog upload service is designed to streamline the process of managing and publishing blog articles stored in Obsidian. When a user inputs 'blog+article_name', the service automatically copies the specified Markdown file from the local Obsidian directory to a designated directory, processes image links, copies images to the target folder, and pushes the changes to GitHub. This automation reduces manual effort and ensures consistency in file management and publication.

Features

  • Trigger Condition: Activates when the user inputs 'blog+article_name'.
  • File Copying: Copies the specified Markdown file from the Obsidian directory to the target directory.
  • Image Processing: Detects and updates image links in the Markdown file, copying images to the target folder.
  • GitHub Integration: Commits and pushes changes to GitHub automatically.

Usages

local integration stdio

python
mcp.run(transport='stdio')  # Tools defined via @mcp.tool() decorator

local integration ide plugin

{
  "mcpServers": {
    "blog_upload": {
      "command": "python",
      "args": ["blog_upload_service.py"]
    }
  }
}

remote integration sse

python
mcp.run(transport='sse', host="0.0.0.0", port=8000)  # Specify SSE endpoint

remote integration streamable http

yaml
paths:
  /mcp:
    post:
      x-ms-agentic-protocol: mcp-streamable-1.0  # Copilot Studio integration

platform integration github

{"command": "docker", "args": ["run", "-e", "GITHUB_PERSONAL_ACCESS_TOKEN", "ghcr.io/github/github-mcp-server"]}

development framework fastmcp

python
from mcp.server import FastMCP
app = FastMCP('blog_upload')
@app.tool()
async def upload_blog(): ...