mcpField
B
Bluesky Context Server

Bluesky Context Server

本地服务
github.com/laulauland社交媒体3563 周前更新

关于 Bluesky Context Server

Bluesky Context Server 是一个 MCP 服务,可让 Claude Desktop 等 MCP 客户端访问 Bluesky 账户。用户可通过 AI 助手查询个人资料、帖子、时间线并进行搜索。项目需要使用 Bluesky 应用专用密码进行身份验证。

主要功能

  1. 01查询个人资料、关注与粉丝列表
  2. 02获取个人帖子、时间线与点赞内容
  3. 03搜索帖子和用户资料
  4. 04支持 Bun 与 Node.js v22.6.0+ 运行
  5. 05通过 Smithery 或手动方式安装

适用场景

  1. 01通过 AI 助手查看 Bluesky 时间线内容
  2. 02搜索与某一主题相关的 Bluesky 帖子
  3. 03查询最近的粉丝与关注变化

MCP 相关

该项目是一个 MCP 服务,向 Claude Desktop 等 MCP 客户端暴露 bluesky_get_profile、bluesky_search_posts 等工具,用于读取 Bluesky 数据。

配置

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

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

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

安装包
npm@smithery/cli

工具

还没有获取到工具列表

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

README 原文English

来自项目 README

README 暂无中文译文,以下为英文原文;中文介绍见上方。

Bluesky Context Server

smithery badge

A Model Context Protocol (MCP) server that enables MCP clients like Claude Desktop to interact with Bluesky. Query your profile, search posts, get your timeline, and more directly from your AI assistant.

Prerequisites

  • Runtime: Either Bun or Node.js v22.6.0+
  • A Bluesky account

Setup

1. Get Your Bluesky Credentials

You'll need two pieces of information from your Bluesky account:

BLUESKY_IDENTIFIER

This is your Bluesky handle (username). It can be in either format:

  • username.bsky.social (e.g., alice.bsky.social)
  • @username.bsky.social (e.g., @alice.bsky.social)
BLUESKY_APP_KEY

This is an App Password, which is different from your regular Bluesky password. To create one:

  1. Go to Bluesky Settings
  2. Navigate to "Privacy and Security" → "App Passwords"
  3. Click "Add App Password"
  4. Give it a name (e.g., "MCP Server")
  5. Copy the generated password (it looks like xxxx-xxxx-xxxx-xxxx)

⚠️ Important: Use the App Password, not your regular account password!

2. Installation
Option A: Installing via Smithery (Recommended)

To install Bluesky Context Server for Claude Desktop automatically via Smithery:

npx -y @smithery/cli install @laulauland/bluesky-context-server --client claude

Then add your credentials to the generated configuration.

Option B: Manual Installation
  1. Clone or download this repository
  2. Configure your Claude Desktop app to use the MCP server:

Using Bun:

// ~/Library/Application Support/Claude/config.json (macOS)
// %APPDATA%/Claude/config.json (Windows)
{
	"mcpServers": {
		"bluesky": {
			"command": "/Users/your-username/.bun/bin/bun",
			"args": [
				"/path/to/bluesky-context-server/packages/server/bin/index.ts"
			],
			"env": {
				"BLUESKY_APP_KEY": "your-app-password-here",
				"BLUESKY_IDENTIFIER": "your-handle.bsky.social"
			}
		}
	}
}

Using Node.js:

// ~/Library/Application Support/Claude/config.json (macOS)
// %APPDATA%/Claude/config.json (Windows)
{
	"mcpServers": {
		"bluesky": {
			"command": "node",
			"args": [
				"--experimental-strip-types",
				"/path/to/bluesky-context-server/packages/server/bin/index.ts"
			],
			"env": {
				"BLUESKY_APP_KEY": "your-app-password-here",
				"BLUESKY_IDENTIFIER": "your-handle.bsky.social"
			}
		}
	}
}
  1. Restart Claude Desktop
3. Testing the Connection

After setup, you can test the connection by asking Claude something like:

  • "Can you get my Bluesky profile?"
  • "Show me my recent posts on Bluesky"
  • "Search for posts about AI on Bluesky"

Available MCP Tools

This server provides the following tools that Claude can use:

Profile & Account Tools
bluesky_get_profile

Get your Bluesky profile information including display name, bio, follower count, etc.

  • Parameters: None
  • Returns: Complete profile data
bluesky_get_follows

Get a list of accounts you follow.

  • Parameters:
    • limit (optional): Max items to return (default 50, max 100)
    • cursor (optional): Pagination cursor for next page
  • Returns: List of followed accounts with profile info
bluesky_get_followers

Get a list of accounts following you.

  • Parameters:
    • limit (optional): Max items to return (default 50, max 100)
    • cursor (optional): Pagination cursor for next page
  • Returns: List of followers with profile info
Post & Feed Tools
bluesky_get_posts

Get your recent posts.

  • Parameters:
    • limit (optional): Max items to return (default 50, max 100)
    • cursor (optional): Pagination cursor for next page
  • Returns: Your recent posts with engagement data
bluesky_get_personal_feed

Get your personalized Bluesky timeline/feed.

  • Parameters:
    • limit (optional): Max items to return (default 50, max 100)
    • cursor (optional): Pagination cursor for next page
  • Returns: Posts from your personalized feed
bluesky_get_liked_posts

Get posts you've liked.

  • Parameters:
    • limit (optional): Max items to return (default 50, max 100)
    • cursor (optional): Pagination cursor for next page
  • Returns: Posts you've liked
Search Tools
bluesky_search_posts

Search for posts across Bluesky.

  • Parameters:
    • query (required): Search query string
    • limit (optional): Max items to return (default 50, max 100)
    • cursor (optional): Pagination cursor for next page
  • Returns: Posts matching your search query
bluesky_search_profiles

Search for Bluesky user profiles.

  • Parameters:
    • query (required): Search query string
    • limit (optional): Max items to return (default 50, max 100)
    • cursor (optional): Pagination cursor for next page
  • Returns: User profiles matching your search query

Example Usage

Once configured, you can ask Claude things like:

  • "What's in my Bluesky feed today?"
  • "Search for posts about TypeScript on Bluesky"
  • "Who are my most recent followers?"
  • "Show me posts I've liked recently"
  • "Find Bluesky users interested in AI"

Troubleshooting

Common Issues
  1. "Authentication failed": Double-check your BLUESKY_APP_KEY and BLUESKY_IDENTIFIER
  2. "Server not responding": Ensure Bun is installed and the path to the server is correct
  3. "Permission denied": Make sure the server file has execute permissions
Getting Help

If you encounter issues:

  1. Check that your Bluesky credentials are correct
  2. Verify Bun is installed: bun --version
  3. Test the server manually: cd packages/server && bun start
  4. Check Claude Desktop's logs for error messages

评论

支持 Markdown

第一次接触 MCP?

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

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