mcpField
B
Bluesky MCP Server

Bluesky MCP Server

本地服务
github.com社交媒体766 周前更新

关于 Bluesky MCP Server

Bluesky MCP Server 通过 AT Protocol 让 Claude Desktop 等 MCP 客户端操作 Bluesky,支持发布内容、查看个人资料与时间线,以及互动。

主要功能

  1. 01Bluesky 身份验证
  2. 02发布文本和图片帖子
  3. 03读取个人资料和时间线
  4. 04点赞和转发内容
  5. 05自动识别链接和提及
  6. 06格式化时间线输出

适用场景

  1. 01向 Bluesky 发布文本或图片
  2. 02查看个人资料和近期时间线
  3. 03为帖子点赞或转发
  4. 04将时间线数据整理为易读内容

MCP 相关

向 MCP 客户端提供 Bluesky 身份验证、发布、资料、时间线和互动工具,并提供时间线格式化提示词。

配置

本地服务的配置在各客户端中通用,复制后粘贴到客户端的 MCP 配置文件即可。

mcp.json · 通用配置
{
"mcpServers": {
"bluesky": {
"command": "npx",
"args": [
"-y",
"@smithery/cli"
]
}
}
}
启动命令npx -y @smithery/cli

本地服务需要在你的电脑上安装运行环境(如 Node.js 18+)。各客户端的配置文件位置不同,请参考客户端文档。

安装包
npm@smithery/cli

工具

还没有获取到工具列表

本地服务需要在你的电脑上运行后才能读取工具,维护者暂未提供工具列表。

详细介绍

Bluesky MCP 服务

smithery badge

一个用于 Bluesky 的模型上下文协议(MCP)服务,可通过 AT Protocol 代替你发布内容。

设置

通过 Smithery 安装

通过 Smithery 自动为 Claude Desktop 安装 bluesky-mcp:

npx -y @smithery/cli install @semioz/bluesky-mcp --client claude
手动安装

配置 Claude for Desktop:

打开 Claude for Desktop 应用的配置文件 ~/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 搭配使用

评论

支持 Markdown

第一次接触 MCP?

从协议是什么,到在客户端里装上第一个服务,这几条回答覆盖了大多数入门问题。

一个开放协议,规定了 AI 应用如何以统一方式连接外部工具与数据源。客户端负责与模型对话,MCP 服务负责提供工具、资源和提示模板,两者通过标准消息通信,同一个服务可以被不同客户端复用。