Skip to main content
Glama

velog_mcp

一个允许 Claude 直接在 Velog 上撰写和发布文章的 MCP 服务器。

通过 GraphQL 逆向工程支持没有公开 API 的 Velog。设计为“草稿 → 用户审核 → 发布”的人机协作流程,既实现了自动化,又让用户保持完全的控制权。

安装

npx velog_mcp_setup

在登录 Velog 的状态下,打开浏览器 DevTools → Application → Cookies → https://velog.io,复制并输入 access_tokenrefresh_token 的值。

令牌将以 0600 权限保存在 ~/.velog-mcp.json 中。请将其添加到 .gitignore 中。

Related MCP server: velog-mcp

Claude CLI (Claude Code) 设置

添加到项目

claude mcp add velog npx -y velog_mcp

或者直接添加到项目的 .claude/settings.json 中:

{
  "mcpServers": {
    "velog": {
      "command": "npx",
      "args": ["-y", "velog_mcp"]
    }
  }
}

全局添加

claude mcp add --scope global velog npx -y velog_mcp

全局设置可在所有项目中使用。

确认

claude mcp list

如果 velog 服务器出现在列表中,则准备就绪。之后可以直接在 Claude Code 对话中使用。

나: "React 훅에 대한 글 써줘"
Claude: (velog_draft_post 호출 → 검토 후 발행)

Claude Desktop 设置

添加到 ~/Library/Application Support/Claude/claude_desktop_config.json

{
  "mcpServers": {
    "velog": {
      "command": "npx",
      "args": ["-y", "velog_mcp"]
    }
  }
}

使用方法

撰写并发布文章

나: "React 19 concurrent features에 대한 글 써줘"

Claude: velog_draft_post 호출
→ { draft_id: "abc123", title: "React 19 Concurrent Features 정리", body_preview: "..." }

나: "좋아, 발행해"

Claude: velog_publish_post(draft_id: "abc123") 호출
→ { url: "https://velog.io/@username/react-19-...", post_id: "..." }

私密发布

나: "이 글 비공개로 발행해줘"
Claude: velog_publish_post(draft_id: "abc123", is_private: true)

工具列表

工具

说明

velog_draft_post

创建文章草稿(保存在会话内存中)

velog_publish_post

将草稿发布到 Velog

velog_list_posts

查询我的文章列表

velog_get_post

查询特定文章的全部内容

velog_update_post

修改现有文章

velog_delete_post

删除文章

认证

  • access_token: TTL 约为 1-2 小时。Velog 服务器会在 GraphQL 响应中通过 Set-Cookie 自动更新。

  • refresh_token: TTL 约为 30 天。过期时需要重新运行 npx velog_mcp_setup

  • 没有单独的刷新端点 — 由 Velog 中间件自动处理。

错误处理

情况

消息

令牌过期 (401)

"令牌已过期或无效。请重新运行 npx velog_mcp_setup。"

配置文件不存在

"配置文件不存在。请运行 npx velog_mcp_setup。"

网络错误

"无法连接到 Velog API。请检查网络。"

无效的 draft_id

"draft_id 不存在。请先调用 velog_draft_post。"

GraphQL 错误

原样返回 Velog 服务器错误消息

注意事项

  • 草稿保存在 MCP 服务器进程的会话内存中。重启 Claude Desktop 时会丢失。

  • 若要保存而不发布,请使用 velog_publish_post(is_private: true) 进行私密保存。

  • 图片:使用 Markdown 外部 URL 引用方式 (![alt](url))。

许可证

MIT

Install Server
A
license - permissive license
A
quality
D
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

View all related MCP servers

Related MCP Connectors

  • Live SEO workflow tools for Claude Code, Codex, and AI agents.

  • Read, edit, publish, and preview your pepita websites from Claude.

  • Connect any AI agent to 11+ social platforms: schedule, publish & track posts via hosted MCP.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/seongwon030/velog_mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server