Skip to main content
Glama
BlueSky MCP Server

BlueSky MCP Server

by berlinbra

BlueSky MCP 服务器

一个模型上下文协议 (MCP) 服务器,可通过其官方 API 访问BlueSky社交网络数据。该服务器实现了一个标准化接口,用于检索用户个人资料和社交图谱信息。

特征

  • 获取详细的用户资料信息

  • 使用分页检索用户关注列表

  • 内置身份验证处理和会话管理

  • 全面的错误处理

Related MCP server: Bluesky MCP Server

安装

克劳德桌面

  • 在 MacOS 上: ~/Library/Application\ Support/Claude/claude_desktop_config.json

  • 在 Windows 上: %APPDATA%/Claude/claude_desktop_config.json

    "mcpServers": {
        "bluesky-mcp": {
            "command": "uv",
            "args": [
            "--directory",
            "C:\\Users\\{INSERT_USER}\\YOUR\\PATH\\TO\\bluesky-mcp\\bluesky-mcp",
            "run",
            "src/bluesky_mcp/server.py"
            ],
            "env": {
                "BLUESKY_IDENTIFIER": "your.handle.bsky.social",
                "BLUESKY_APP_PASSWORD": "your-app-password"
            }
        }
    }

本地运行

安装库

uv pip install -e .

跑步

通过 json 文件将 Claude 客户端与 MCP 工具连接并安装软件包后,Claude 应该可以看到服务器的 mcp 工具:

您可以通过以下方式自行运行服务器:在 bluesky_mcp repo 中:

uv run src/bluesky_mcp/server.py

*如果您想与服务器一起运行服务器检查器:

npx @modelcontextprotocol/inspector uv --directory C:\\Users\\{INSERT_USER}\\YOUR\\PATH\\TO\\bluesky-mcp run src/bluesky_mcp/server.py

可用工具

服务器实现了两个工具:

  • get-profile :获取 BlueSky 用户的详细个人资料信息

  • get-follows :获取指定用户关注的帐户列表

获取配置文件

检索给定 BlueSky 用户的详细个人资料信息。

输入模式:

{
    "handle": {
        "type": "string",
        "description": "The user's handle (e.g., 'alice.bsky.social')"
    }
}

响应示例:

Profile information for alice.bsky.social:

Handle: alice.bsky.social
Display Name: Alice
Description: Just a BlueSky user sharing thoughts
Followers: 1234
Following: 567
Posts: 789

获取关注

检索指定用户关注的帐户列表,支持分页。

输入模式:

{
    "actor": {
        "type": "string",
        "description": "The user's handle (e.g., 'alice.bsky.social')"
    },
    "limit": {
        "type": "integer",
        "description": "Maximum number of results to return",
        "default": 50,
        "minimum": 1,
        "maximum": 100
    },
    "cursor": {
        "type": "string",
        "description": "Pagination cursor",
        "optional": true
    }
}

响应示例:

Follows for alice.bsky.social:

Follows:
Handle: bob.bsky.social
Display Name: Bob
---
Handle: carol.bsky.social
Display Name: Carol
---
Handle: dave.bsky.social
Display Name: Dave
---

More results available. Use cursor: bafygeia...

错误处理

该服务器包括针对各种场景的全面错误处理:

  • 身份验证失败

  • 速率限制

  • 网络连接问题

  • 参数无效

  • 超时处理

  • 格式错误的响应

错误消息以清晰、人类可读的格式返回。

先决条件

  • Python 3.12 或更高版本

  • httpx

  • 甲基氯丙烯

验证

要使用此 MCP 服务器,您需要:

  1. 如果您没有 BlueSky 帐户,请创建一个

  2. 在您的 BlueSky 帐户设置中生成应用程序密码

  3. 设置以下环境变量:

    • BLUESKY_IDENTIFIER :您的 BlueSky 用户名(例如“username.bsky.social”)

    • BLUESKY_APP_PASSWORD :您生成的应用密码

贡献

欢迎贡献代码!欢迎提交 Pull 请求。

执照

此 MCP 服务器采用 MIT 许可证。这意味着您可以自由使用、修改和分发该软件,但须遵守 MIT 许可证的条款和条件。更多详情,请参阅项目仓库中的 LICENSE 文件。

Available Tools

8 tools
bluesky_get_followersC

Get a list of accounts following the user

Inputs: limit, cursor.

bluesky_get_followsC

Get a list of accounts the user follows

Inputs: limit, cursor.

bluesky_get_liked_postsC

Get a list of posts liked by the user

Inputs: limit, cursor.

bluesky_get_personal_feedC

Get your personalized Bluesky feed

Inputs: limit, cursor.

bluesky_get_postsC

Get recent posts from a user

Inputs: limit, cursor.

bluesky_get_profileB

Get a user's profile information

Inputs: no named parameters.

bluesky_search_postsC

Search for posts on Bluesky

Inputs: query (required), limit, cursor.

bluesky_search_profilesC

Search for Bluesky profiles

Inputs: query (required), limit, cursor.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.4/5.0

    Scored across 8 tools

    Disambiguation5/5

    Every tool has a clearly distinct purpose targeting specific Bluesky resources: followers, follows, liked posts, personal feed, user posts, profiles, post search, and profile search. No ambiguity exists as each tool name precisely indicates what it retrieves.

    Naming Consistency5/5

    All tools follow a consistent 'bluesky_verb_noun' pattern with snake_case throughout. The naming is highly predictable, using verbs like 'get' and 'search' paired with specific nouns like 'followers', 'posts', or 'profiles'.

    Tool Count5/5

    With 8 tools, this server is well-scoped for social media interaction on Bluesky. Each tool earns its place by covering distinct aspects of user data, feeds, and search functionality without being overwhelming or insufficient.

    Completeness4/5

    The toolset provides comprehensive read/search coverage for Bluesky's core features, including user relationships, content consumption, and discovery. A minor gap exists in write operations (e.g., posting, liking, following), but agents can effectively navigate the available surface for information retrieval tasks.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      B
      maintenance
      Enables LLMs to interact with the AT Protocol ecosystem, including Bluesky, through natural language. Supports public data access without authentication and full write operations with authentication.
      51
      145 npm
      10
      MIT
    • A
      license
      B
      quality
      D
      maintenance
      A Model Context Protocol server that connects to Bluesky and provides natural language tools to interact with the ATProtocol, enabling feed fetching, post management, search, and profile analysis.
      32
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables interaction with Bluesky social network through the AT Protocol, including searching posts, fetching profiles, browsing feeds, and retrieving threads and follower data.
      68 npm
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Enables AI agents to post, reply, run threads, read timelines, search, manage follows, and analyze engagement on Bluesky, with setup requiring only a handle and app password.
      41
      MIT