Installation & Setup
Get the ActivityPub MCP Server up and running in your environment. This guide covers installation, configuration, and initial setup.
📋 Prerequisites
Claude Desktop (Optional)
For the best experience, install Claude Desktop for seamless AI integration.
Download ClaudeMCP Inspector (Optional)
Useful for testing and debugging MCP connections.
npm install -g @modelcontextprotocol/inspector
🚀 Quick Installation
The fastest way to get started is using npx:
Install and Configure
npx activitypub-mcp install
This command will:
- Install the latest version of the server
- Detect your MCP client (Claude Desktop, Cursor, etc.)
- Automatically configure the client
- Verify the installation
Manual Configuration
If you prefer manual setup, add this to your Claude Desktop configuration:
{`{
"mcpServers": {
"activitypub": {
"command": "npx",
"args": ["-y", "activitypub-mcp"],
"env": {
"LOG_LEVEL": "info"
}
}
}
}`}
⚙️ Configuration Options
Customize the server behavior with environment variables:
Variable | Default | Description |
---|---|---|
LOG_LEVEL | info | Logging level: debug, info, warning, error, fatal |
USER_AGENT | ActivityPub-MCP-Server/1.0 | Custom User-Agent for HTTP requests |
REQUEST_TIMEOUT | 30000 | HTTP request timeout in milliseconds |
CACHE_TTL | 300 | Cache time-to-live in seconds |
🔍 Verification
Verify your installation is working correctly:
Step 1: Test MCP Connection
Use the MCP Inspector to test the connection:
npx @modelcontextprotocol/inspector
Connect to: npx activitypub-mcp
Step 2: Test Basic Functionality
Try discovering a fediverse actor:
# In MCP Inspector or Claude Desktop
discover-actor @mastodon@mastodon.social
Step 3: Check Server Info
Verify the server is providing information:
# Request the server-info resource
activitypub://server-info