The Bluesky Context Server is a Model Context Protocol (MCP) server that connects your AI assistant, like Claude Desktop, to your Bluesky account. It allows your AI to access your Bluesky profile, search for posts, view your timeline, and perform other interactions directly from your conversations.
Before getting started, you'll need:
You'll need two pieces of information:
This is your Bluesky handle in either format:
username.bsky.social
@username.bsky.social
This is an App Password (different from your regular password):
xxxx-xxxx-xxxx-xxxx
)⚠️ Important: Use the App Password, not your regular account password!
To install automatically via Smithery:
npx -y @smithery/cli install @laulauland/bluesky-context-server --client claude
Then add your credentials to the generated configuration.
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"
}
}
}
}
After setup, test the connection by asking Claude:
bluesky_get_profile
Get your Bluesky profile information.
bluesky_get_follows
Get a list of accounts you follow.
limit
(optional): Max items to return (default 50, max 100)cursor
(optional): Pagination cursor for next pagebluesky_get_followers
Get a list of accounts following you.
limit
(optional): Max items to return (default 50, max 100)cursor
(optional): Pagination cursor for next pagebluesky_get_posts
Get your recent posts.
limit
(optional): Max items to return (default 50, max 100)cursor
(optional): Pagination cursor for next pagebluesky_get_personal_feed
Get your personalized Bluesky timeline/feed.
limit
(optional): Max items to return (default 50, max 100)cursor
(optional): Pagination cursor for next pagebluesky_get_liked_posts
Get posts you've liked.
limit
(optional): Max items to return (default 50, max 100)cursor
(optional): Pagination cursor for next pagebluesky_search_posts
Search for posts across Bluesky.
query
(required): Search query stringlimit
(optional): Max items to return (default 50, max 100)cursor
(optional): Pagination cursor for next pagebluesky_search_profiles
Search for Bluesky user profiles.
query
(required): Search query stringlimit
(optional): Max items to return (default 50, max 100)cursor
(optional): Pagination cursor for next pageOnce configured, you can ask Claude:
BLUESKY_APP_KEY
and BLUESKY_IDENTIFIER
If you encounter problems:
bun --version
cd packages/server && bun start
To add this MCP server to Claude Code, run this command in your terminal:
claude mcp add-json "bluesky" '{"command":"bun","args":["index.ts"],"env":{"BLUESKY_APP_KEY":"","BLUESKY_IDENTIFIER":""}}'
See the official Claude Code MCP documentation for more details.
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"bluesky": {
"command": "bun",
"args": [
"index.ts"
],
"env": {
"BLUESKY_APP_KEY": "",
"BLUESKY_IDENTIFIER": ""
}
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.
To add this MCP server to Claude Desktop:
1. Find your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
~/.config/Claude/claude_desktop_config.json
2. Add this to your configuration file:
{
"mcpServers": {
"bluesky": {
"command": "bun",
"args": [
"index.ts"
],
"env": {
"BLUESKY_APP_KEY": "",
"BLUESKY_IDENTIFIER": ""
}
}
}
}
3. Restart Claude Desktop for the changes to take effect