Skip to content

API Reference

Complete API reference for the AT Protocol MCP Server, including all tools, resources, and types.

Overview

The AT Protocol MCP Server provides a comprehensive set of tools and resources for interacting with the AT Protocol ecosystem. This reference documentation covers:

  • Tools - MCP tools for performing operations
  • Resources - MCP resources for accessing data
  • Types - TypeScript type definitions

Tools

Tools are the primary way to interact with the AT Protocol through the MCP server. Each tool performs a specific operation and returns structured data.

Core Social Operations

Essential tools for social networking operations:

User Operations

Tools for managing user relationships and profiles:

Data Retrieval

Tools for searching and retrieving data:

Content Management

Tools for managing content and media:

OAuth Authentication

Tools for OAuth authentication flows:

Moderation

Tools for content and user moderation:

Real-time Streaming & Intelligence

Tools for real-time data streams:

Advanced Social Features

Tools for advanced social networking:

Batch Operations

Tools for performing multiple operations at once:

Analytics & Insights

Tools for analyzing engagement and network patterns:

Content Discovery

Tools for discovering content and users:

Composite Operations

Tools that combine multiple operations:

Rich Media

Tools for working with images and media:

Enhanced Moderation

Additional moderation tools:

Resources

Resources provide read-only access to AT Protocol data through the MCP protocol:

  • Timeline Resource - Current user's timeline feed (requires authentication)
  • Profile Resource - Current user's profile information (requires authentication)
  • Notifications Resource - Current user's notifications (requires authentication)
  • Conversation Context Resource - Tracks conversation state across LLM interactions (always available)

Types

TypeScript type definitions used throughout the server:

Authentication

Most tools require authentication. The server supports two authentication methods:

App Passwords (Development)

bash
export ATPROTO_IDENTIFIER="your-handle.bsky.social"
export ATPROTO_PASSWORD="your-app-password"

OAuth (Production)

bash
export ATPROTO_CLIENT_ID="your-client-id"
export ATPROTO_CLIENT_SECRET="your-client-secret"

Unauthenticated Mode

As of 2025, the AT Protocol API has changed to require authentication for most endpoints. Only the following tools work without authentication:

  • get_user_profile (ENHANCED mode: provides additional viewer-specific data when authenticated)
  • start_oauth_flow
  • handle_oauth_callback
  • refresh_oauth_tokens
  • revoke_oauth_tokens

Note: Tools like search_posts, get_followers, get_follows, get_thread, and get_custom_feed now require authentication.

Error Handling

All tools follow consistent error handling patterns. See the Error Handling Guide for details.

Rate Limiting

The server respects AT Protocol rate limits. See the Configuration Guide for rate limiting settings.

Examples

For practical examples of using these tools, see:

Support