Activitypub Mcp

io.github.cameronryePublished by GitHub account cameronryev3.2.1Updated Oct 24, 2026

Read-only-by-default MCP server: let LLMs explore the Fediverse — Mastodon, Misskey, Pleroma.

Overview

AI-generated overview

MCP server that lets an assistant explore and, if enabled, interact with Fediverse accounts on Mastodon, Misskey, Pleroma and compatible servers.

What you can do
  • Discover actors and read their timelines via plain ActivityPub
  • Fetch post threads, instance info, public timelines and trending hashtags or posts
  • Search instances and content through the Mastodon or Misskey API
  • Read account data when logged in: home timeline, notifications, bookmarks, favourites, relationships
  • Switch between multiple accounts
  • Optionally post, reply, delete, boost, favourite, bookmark, follow, mute, block, vote, upload media and schedule posts when writes are enabled
When to use it
Useful when you want an assistant to research or summarize Fediverse profiles and threads, triage notifications and bookmarks, or curate and publish posts on Mastodon- or Misskey-family accounts.
Requirements
Local process run with npx, requiring Node.js 20 or newer. Public read tools need no account; authenticated tools need a login performed with the CLI, which runs OAuth or MiAuth in a browser and stores credentials in a local accounts file, or the default instance and token environment variables. Write tools require ACTIVITYPUB_ENABLE_WRITES set to true. Network access to the target instances is needed.
Before you install
Writes are off by default; enabling them registers tools that post, reply, delete, follow, mute, block and upload media, so review the threat model first. Fediverse content such as posts, bios and notifications is untrusted and can carry prompt-injection payloads, and notifications are an unsolicited channel. Login credentials are saved to a local accounts file. An optional HTTP mode is gated by a secret of at least 16 characters.

Installation

In SourceWeft

  1. Open Activitypub Mcp in the dashboard and add it to a workspace.
  2. Enable the server for the chats that should use its tools.

Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.

Other MCP clients

Follow the launch instructions in the repository.

README

[ActivityPub MCP Logo]

ActivityPub MCP Server

Fediverse Client for LLMs

A lightweight Model Context Protocol (MCP) server that lets an LLM explore and interact with the existing Fediverse — Mastodon, Misskey, Foundkey, Pleroma, and compatible servers. Read-only by default; write tools are opt-in.

[npm version] [License: MIT] [TypeScript] [Node.js] [MCP Compatible]

[CI] [npm downloads] [GitHub stars]

[Glama quality and maintenance score] [Smithery]


Install

Requires Node.js 20+.

bash
npx -y activitypub-mcp

One-click install:

[Add to Cursor] [Install in VS Code]

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):

json
{  "mcpServers": {    "activitypub": {      "command": "npx",      "args": ["-y", "activitypub-mcp"]    }  }}

Restart Claude Desktop.

Cursor

Edit ~/.cursor/mcp.json:

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.

json
{  "mcpServers": {    "activitypub": {      "command": "npx",      "args": ["-y", "activitypub-mcp"],      "env": {        "ACTIVITYPUB_ENABLE_WRITES": "true"      }    }  }}

Authentication

Log in with the CLI:

bash
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 @[email protected] 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):

bash
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.

Source: README.md at commit 9cfa906

Tools

0
SourceWeft has not started this package in its sandbox yet, so its tools are not known.

Version history

1
  1. v3.2.1LatestSep 16, 2026

Score

50% of the applicable checks met

How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.

  • Reached in the last 30 days25 pts

    Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.

  • Auth declared10 pts

    Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.

  • Tools listed15 pts

    Answer tools/list without a credential, or ship a package that starts in a sandbox without one.

  • DescriptionRequired15 pts
  • Logo10 pts
  • Documentation15 pts
  • License10 pts