mcp-hashnode
v1.1.1Hashnode automated blog post publishing and drafting Stdio MCP server with cover image, in-body illustration and beauty typography support
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
hashnode_check_session
检查本地是否存在有效的 Hashnode 网页登录会话 (Session)。
hashnode_login
在本地弹出真实 Chrome 浏览器窗口供用户完成 Hashnode 登录 (支持 GitHub / Google / Email Magic Link),登录成功后将持久化保存会话 Cookies 至本地。
| Parameter | Type | Description |
|---|---|---|
timeoutSeconds | number | 等待用户完成登录的超时秒数 (默认 300 秒) |
hashnode_set_session
手动配置 Hashnode 本地会话凭证 (支持从浏览器 F12 获取的 session-token、完整 Cookie 请求头字符串或 storageState JSON),无需开启浏览器弹窗直接持久化保存。
| Parameter | Type | Description |
|---|---|---|
tokenOrCookie * | string | Hashnode session-token、完整 Cookie 请求头字符串或 JSON 导出内容 |
hashnode_clear_session
清除本地保存的 Hashnode 登录会话凭据与 Cookies 文件。
hashnode_publish_post
向 Hashnode 创建文章或保存为草稿箱。基于浏览器会话直接绕过 Pro 付费限制,自动注入 Markdown、代码块、列表、表格,并处理插图与标签。默认 draft=true (存为草稿箱预览核对)。
| Parameter | Type | Description |
|---|---|---|
content * | string | Markdown 格式的文章正文内容 |
baseDir | string | 解析相对路径图片的基准目录 |
canonicalUrl | string | 原文 Canonical URL 防降权外链 |
coverImageUrl | string | 文章封面图片 URL 或本地绝对路径 |
filePath | string | 当前 Markdown 文件的本地绝对路径 (用于自动解析相对路径图片) |
isDraft | boolean | 是否保存为草稿 (默认: true,建议先存为草稿预览) |
tags | array | 文章标签 (例如 ["JavaScript", "Web Development", "AI"]) |
title | string | 文章标题 (若留空,将自动提取 Markdown 首行 # 一级标题) |
hashnode_upload_image
将本地图片文件上传至 Cloudflare R2 对象存储,生成公网图片 URL。
| Parameter | Type | Description |
|---|---|---|
imagePath * | string | 本地图片文件绝对路径或现有图片 URL |