BlueSky MCP Server
BlueSky MCP サーバー
BlueSkyソーシャルネットワークデータへのアクセスを公式APIを通じて提供するモデルコンテキストプロトコル(MCP)サーバー。ユーザープロファイルとソーシャルグラフ情報を取得するための標準化されたインターフェースを実装しています。
特徴
詳細なユーザープロフィール情報を取得する
ページ区切りでユーザーのフォローリストを取得する
組み込みの認証処理とセッション管理
包括的なエラー処理
Related MCP server: Bluesky MCP Server
インストール
クロードデスクトップ
MacOSの場合:
~/Library/Application\ Support/Claude/claude_desktop_config.jsonWindows の場合:
%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 リポジトリ内:
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利用可能なツール
サーバーは次の 2 つのツールを実装します。
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 サーバーを使用するには、次のことが必要です。
BlueSkyアカウントをお持ちでない場合は作成してください
BlueSkyアカウント設定でアプリパスワードを生成する
次の環境変数を設定します。
BLUESKY_IDENTIFIER: BlueSky ハンドル (例: "username.bsky.social")BLUESKY_APP_PASSWORD: 生成されたアプリパスワード
貢献
貢献を歓迎します!お気軽にプルリクエストを送信してください。
ライセンス
このMCPサーバーはMITライセンスに基づいてライセンスされています。つまり、MITライセンスの条件に従って、ソフトウェアを自由に使用、改変、配布することができます。詳細については、プロジェクトリポジトリのLICENSEファイルをご覧ください。
Available Tools
8 toolsbluesky_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
Scored across 8 tools
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.
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'.
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.
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
Related MCP Connectors
Bulk Bluesky profiles plus full follower/following exports via the open AT Protocol. Pay per record.
Export full Bluesky follower/following lists with profile stats. Audience and lead research.
Bluesky posts, profiles, feeds, threads & Substack newsletter search and publication feed MCP API.
Related MCP Servers
- AlicenseAqualityBmaintenanceEnables 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.51145 npm10MIT
- AlicenseBqualityDmaintenanceA 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.32MIT
- AlicenseNot gradedqualityCmaintenanceEnables interaction with Bluesky social network through the AT Protocol, including searching posts, fetching profiles, browsing feeds, and retrieving threads and follower data.68 npmMIT
- AlicenseAqualityBmaintenanceEnables 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.41MIT