io.github.cameronrye/activitypub-mcp MCP Server
io.github.cameronrye/activitypub-mcp
Fediverse client for LLMs—explore Mastodon, Misskey, Pleroma, and ActivityPub servers safely.
What is the io.github.cameronrye/activitypub-mcp MCP server?
The ActivityPub MCP Server is a lightweight Model Context Protocol server that lets LLMs explore and interact with the Fediverse—Mastodon, Misskey, Foundkey, Pleroma, and compatible servers. It is read-only by default, with write tools available only when explicitly enabled, prioritizing safety for LLM-driven interactions.
This server bridges LLMs to the decentralized social web, enabling discovery of actors, timeline browsing, searching, thread exploration, and trending-content analysis across ActivityPub-compatible platforms. Use it to research Fediverse content, summarize posts, curate topics, or automate social interactions—all with built-in prompt-injection protections and optional authentication.
How to install io.github.cameronrye/activitypub-mcp
Copy-paste configuration for popular MCP clients.
ACTIVITYPUB_ENABLE_WRITESEnable write/mutation tools (post, reply, follow, boost, block). Off by default: read-only unless set to 'true'. See SECURITY.md.
LOG_LEVELLogging verbosity: debug, info, warn, or error.
Tools & capabilities
Tools this server exposes to the agent.
discover-actor— Look up an actor (user or bot) by handle across any ActivityPub server using WebFinger.fetch-timeline— Retrieve recent posts from an actor's outbox on any ActivityPub-conformant server.search— Search posts, hashtags, and accounts on Mastodon- or Misskey-API instances.get-post-thread— Fetch a full conversation thread starting from a post.get-instance-info— Retrieve metadata and configuration for a Fediverse instance.get-public-timeline— Fetch the public timeline from a Mastodon- or Misskey-API instance.get-trending-hashtags— List trending hashtags on a Mastodon- or Misskey-API instance.get-trending-posts— Fetch trending posts from a Mastodon- or Misskey-API instance.discover-instances— Find and explore Fediverse instances.list-accounts— List authenticated accounts (requires login).switch-account— Switch the active authenticated account.verify-account— Verify the current authenticated account.get-home-timeline— Fetch the authenticated user's home timeline.get-notifications— Retrieve notifications for the authenticated account.get-bookmarks— List bookmarked posts for the authenticated user.get-favourites— List favorited posts for the authenticated user.get-relationship— Check relationship status with another account.post— Create a new post (write tool; requires ACTIVITYPUB_ENABLE_WRITES=true).reply— Reply to a post (write tool; requires ACTIVITYPUB_ENABLE_WRITES=true).delete— Delete a post (write tool; requires ACTIVITYPUB_ENABLE_WRITES=true).
Use cases
- Research and summarize posts from specific Fediverse accounts or trending topics.
- Discover and explore ActivityPub-compatible servers and their public timelines.
- Automate Fediverse interactions—post, reply, boost, favorite, and follow accounts (with writes enabled).
- Monitor notifications and curate bookmarks or favorites for content curation workflows.
- Build Fediverse research digests, notification triage systems, or topic-specific bots.
io.github.cameronrye/activitypub-mcp MCP server FAQ
It's an MCP server that gives LLMs read and optional write access to the Fediverse (Mastodon, Misskey, Pleroma, Lemmy, PeerTube, and other ActivityPub servers). It's read-only by default for safety.
Yes, it's open-source under the MIT license and available on npm as `activitypub-mcp`.
For Cursor, edit `~/.cursor/mcp.json` with the npx command. For Claude Desktop, use the one-click installer or manually edit the config file. VS Code Insiders also has a one-click install button.
No—public read tools (discover-actor, fetch-timeline, search, etc.) work without login. Authenticated tools (home timeline, notifications, bookmarks) require OAuth login via the CLI: `npx activitypub-mcp login mastodon.social`.
Yes, but only if you explicitly enable writes by setting `ACTIVITYPUB_ENABLE_WRITES=true` in the environment or MCP config. Write tools are opt-in for safety.
Plain ActivityPub tools work on any conformant server (Mastodon, Misskey, Lemmy, PeerTube, GoToSocial, Pixelfed). Instance-API tools (search, trending, write) require Mastodon- or Misskey-API compatibility.
README (reference)
Source of truth, from the repository.
Install
Requires Node.js 20+.
npx -y activitypub-mcp
One-click install:
Claude Desktop
One-click: download the .mcpb bundle (activitypub-mcp-<version>.mcpb) from the latest release and open it in Claude Desktop.
Manual: edit ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):
{
"mcpServers": {
"activitypub": {
"command": "npx",
"args": ["-y", "activitypub-mcp"]
}
}
}
Restart Claude Desktop.
Cursor
Edit ~/.cursor/mcp.json:
{
"mcpServers": {
"activitypub": {
"command": "npx",
"args": ["-y", "activitypub-mcp"]
}
}
}
Restart Cursor.
Read-only by default
Out of the box, only read tools are registered: discover actors, fetch timelines, search, get threads, explore instances, read trending content. No write tools exist in the MCP session, so injected fediverse content cannot trigger account actions.
Public read tools (no account needed): discover-actor, fetch-timeline, get-post-thread, get-instance-info, get-public-timeline, get-trending-hashtags, get-trending-posts, search, discover-instances.
Authenticated read tools (account required): list-accounts, switch-account, verify-account, get-home-timeline, get-notifications, get-bookmarks, get-favourites, get-relationship.
Enabling writes
Set ACTIVITYPUB_ENABLE_WRITES=true in the environment or MCP config env block. This registers the full set of mutation tools: post, reply, delete, boost, favourite, bookmark, follow, mute, block, vote, upload media, and scheduled posts. Read the threat model before enabling.
{
"mcpServers": {
"activitypub": {
"command": "npx",
"args": ["-y", "activitypub-mcp"],
"env": {
"ACTIVITYPUB_ENABLE_WRITES": "true"
}
}
}
}
Authentication
Log in with the CLI:
npx activitypub-mcp login mastodon.social
This runs OAuth (Mastodon-family) or MiAuth (Misskey) in your browser and saves credentials to ~/.config/activitypub-mcp/accounts.json. Multi-account is supported — use switch-account to change the active account.
Alternatively, set ACTIVITYPUB_DEFAULT_INSTANCE and ACTIVITYPUB_DEFAULT_TOKEN env vars for a single account without the CLI flow.
Platform support
discover-actor and fetch-timeline speak plain ActivityPub (WebFinger → actor → outbox), so they read any conformant ActivityPub server — Mastodon, Misskey, Foundkey, Pleroma/Akkoma, Lemmy (communities and users), PeerTube (channels and accounts), GoToSocial, and Pixelfed.
The instance-API read tools (search, get-trending-hashtags, get-trending-posts, get-public-timeline) and every write tool require a Mastodon- or Misskey-API instance, since they call those platforms' REST APIs. Login uses OAuth (Mastodon-family) or MiAuth (Misskey).
Example
After adding the server to your MCP client, try:
"Look up @gargron@mastodon.social and summarize their latest posts."
The model will call discover-actor to fetch the profile, then fetch-timeline to read recent posts.
See examples/ for copy-pasteable recipes — Fediverse research digests, scheduled threads, notification triage, image posts with alt text, and topic curation.
HTTP transport
In addition to stdio (default), the server supports HTTP mode with a bearer-gated /mcp endpoint and /health liveness check. Set MCP_HTTP_SECRET (min 16 chars) to enable.
To self-host it as a service, the repo includes a Dockerfile and a docker-compose.yml (HTTP mode):
export MCP_HTTP_SECRET=$(node -e "console.log(require('crypto').randomBytes(32).toString('hex'))")
docker compose up --build # then: curl http://localhost:8080/health
See the docs for full configuration.
Security
This server fetches world-writable fediverse content — posts, bios, notifications — and feeds it to the LLM. That content can contain prompt-injection payloads. Notifications are an unsolicited channel: anyone can mention your account. The <untrusted-content> envelope and read-only default reduce the risk surface, but do not eliminate it.
See SECURITY.md for the full threat model, SSRF protections, credential handling, and reporting instructions.
Documentation
The full tool reference, resource list, prompt catalog, environment variable guide, and deployment notes live on the docs site:
cameronrye.github.io/activitypub-mcp/docs/
License
MIT — see LICENSE.
Acknowledgments
Built on the Model Context Protocol by Anthropic, and interacts with the decentralized social web as specified by ActivityPub (W3C) and ActivityStreams.
Related MCP servers

Browse Gopher and Gemini protocol resources safely with SSRF protection, TLS/TOFU validation, and structured JSON output.

Offline MCP access to ZIM knowledge archives—Wikipedia, Wiktionary, Stack Exchange via Kiwix.

io.github.camgitt/memoir
Persistent, portable memory for AI coding agents across sessions and machines.

Reddit Ads
Reddit Ads API v3: campaigns, ad groups, ads, reports, plus working writes with safety tiers.
Check the bank behind an IBAN before you pay: bank-code check, BIC with source, bank-level sanctions

OpenSwissData
Swiss customs tariff (TARES), FINMA register, NOGA/NACE/ISIC codes. 3 free tools + search trial.