-
Notifications
You must be signed in to change notification settings - Fork 2
Quick Start
Cameron Rye edited this page Nov 16, 2025
·
1 revision
Get up and running with ActivityPub MCP Server in minutes!
Choose your preferred installation method:
# Quick install with npx (recommended)
npx activitypub-mcp install
# Or install globally
npm install -g activitypub-mcp
# Or clone from source
git clone https://github.com/cameronrye/activitypub-mcp.git
cd activitypub-mcp
npm install
npm run build# If installed globally
activitypub-mcp
# If installed locally
npx activitypub-mcp
# If cloned from source
npm run mcpThe server will start and listen for MCP connections via stdio.
The MCP Inspector is a great tool for testing and exploring the server:
# Install MCP Inspector
npm install -g @modelcontextprotocol/inspector
# Connect to the server
mcp-inspectorIn the inspector:
- Select "stdio" as the transport
- Enter the command:
npx activitypub-mcp(or your installation path) - Click "Connect"
Use the discover-actor tool to find a fediverse user:
{
"name": "discover-actor",
"arguments": {
"identifier": "Gargron@mastodon.social"
}
}Get recent posts from a user:
{
"name": "fetch-timeline",
"arguments": {
"identifier": "Gargron@mastodon.social",
"limit": 10
}
}Learn about a fediverse instance:
{
"name": "get-instance-info",
"arguments": {
"domain": "mastodon.social"
}
}Find fediverse instances by topic:
{
"name": "discover-instances",
"arguments": {
"topic": "technology",
"size": "medium"
}
}To use with Claude Desktop, add this to your config file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"activitypub": {
"command": "npx",
"args": ["-y", "activitypub-mcp"]
}
}
}Restart Claude Desktop to load the server.
Try the built-in prompts for guided exploration:
{
"name": "explore-fediverse",
"arguments": {
"interests": "technology and programming",
"instanceType": "mastodon"
}
}{
"name": "compare-instances",
"arguments": {
"instances": "mastodon.social, fosstodon.org, hachyderm.io",
"criteria": "community size and focus"
}
}{
"name": "discover-content",
"arguments": {
"topic": "artificial intelligence",
"contentType": "people"
}
}- Use
discover-instancesto find instances about your interests - Use
get-instance-infoto learn about the instance - Use
search-instanceto find users on that instance - Use
discover-actorto get detailed info about users - Use
fetch-timelineto see their recent posts
- Use
discover-instanceswith a topic filter - Use
search-instanceon relevant instances - Use
fetch-timelineto see content from interesting users
- Use
discover-instancesto find instances - Use
get-instance-infofor each instance - Use the
compare-instancesprompt for guided comparison
- Usage Guide - Comprehensive usage documentation
- Examples - More practical examples
- MCP Resources - Learn about available resources
- MCP Tools - Explore all available tools
- Configuration - Customize the server
Made with ❤️ by Cameron Rye