Bluesky代理发布服务

基于AT协议的Bluesky模型上下文协议服务器,可代理用户进行发帖、互动及内容管理操作。

  • by semioz
  • JavaScript
  • 本地部署
  • 7 星标
  • 更新于
在 GitHub 查看 semioz/bluesky-mcp

使用说明

Bluesky MCP服务器

Bluesky的模型上下文协议(MCP)服务器,可以使用AT协议代表您发布。

设置

通过Smithery安装

通过以下方式自动安装Claude Desktop的bluesky mcp 史密瑟里:

npx -y @smithery/cli install @semioz/bluesky-mcp --client claude

手动安装

为桌面配置Claude:

打开您的Claude进行桌面应用程序配置,网址为 ~/Library/Application Support/Claude/claude_desktop_config.json 并添加:

{
    "mcpServers": {
        "bluesky-mcp": {
            "command": "npx",
            "args": ["-y", "@semihberkay/bluesky-mcp"],
            "env": {
                "BLUESKY_IDENTIFIER": "your.handle.bsky.social",
                "BLUESKY_PASSWORD": "your-app-password"
            }
        }
    }
}

所需的环境变量

  • BLUESKY_IDENTIFIER:您的Bluesky句柄或电子邮件
  • BLUESKY_PASSWORD:您的Bluesky应用程序密码

可用的MCP工具

认证

tool: "login"
params: {
  identifier?: string, // Your Bluesky handle or email (optional if set in env)
  password?: string    // Your Bluesky app password (optional if set in env)
}

启动时,服务器将尝试使用环境变量中的凭据自动登录。您只需要在以下情况下使用登录工具:

  • 您尚未在Claude的配置中设置环境变量
  • 您想使用不同的凭据登录
  • 自动登录失败

帖子

// Create a new post
tool: "create-post"
params: {
  text: string,           // The text content of your post
  images?: {              // Optional array of images
    data: string,         // Base64 encoded image data
    encoding: string      // Image MIME type (e.g., image/jpeg)
  }[]
}

// Get a single post
tool: "get-post"
params: {
  uri: string            // The URI of the post to fetch
}

// Get multiple posts
tool: "get-posts"
params: {
  uris: string[]        // Array of post URIs to fetch
}

// Delete a post
tool: "delete-post"
params: {
  uri: string           // The URI of the post to delete
}

交互

// Like a post
tool: "like-post"
params: {
  uri: string,          // The URI of the post to like
  cid: string          // The CID of the post to like
}

// Unlike a post
tool: "unlike-post"
params: {
  likeUri: string      // The URI of the like to remove
}

// Repost
tool: "repost"
params: {
  uri: string,         // The URI of the post to repost
  cid: string         // The CID of the post to repost
}

// Remove repost
tool: "unrepost"
params: {
  repostUri: string   // The URI of the repost to remove
}

个人资料和时间线

// Get your profile
tool: "get-profile"
params: {}

// Get timeline
tool: "get-timeline"
params: {
  limit?: number      // Number of posts to fetch (max 100)
}

提示

设置时间线格式

prompt: "format-timeline"
params: {
  timeline: any       // Timeline data to format
}

使用以下内容以人类可读的方式格式化时间线数据:

  • 作者姓名/句柄
  • 后文本
  • 参与度指标(回复、转发、点赞)
  • 时间戳
  • 嵌入式内容(链接、视频)
  • 转发信息

特性

  • ✅ Bluesky身份验证
  • ✅ 创建文本帖子
  • ✅ 支持图像上传
  • ✅ 获取用户资料
  • ✅ 获取时间线
  • ✅ 喜欢/不喜欢的帖子
  • ✅ 重新发布/取消发布
  • ✅ 富文本支持自动链接和提及检测
  • ✅ MCP与Claude兼容