MCP server · Audited from source
mastodon-mcp-cli
by thenavidm/mastodon-mcp-cliMIT licenceAudited 11 Oct 2026 · source bca0c006b647
Is it safe? With care — CAUTION, grade B (89/100). It exposes 51 tools: 35 read, 9 write and 7 destructive. The audit recorded 9 findings (0 critical, 0 high, 3 medium, 6 low). Maintainer's description: Mastodon MCP server and CLI for Claude Code, Codex and AI agents. 76 tools for posting, editing, threads, timelines, search, lists, notifications and following, across any instance.
Cite
Cite this page
ModelsAtlas. “mastodon-mcp-cli (thenavidm/mastodon-mcp-cli)”. Retrieved 11 Oct 2026. https://modelsatlas.com/mcp/thenavidm/mastodon-mcp-cli
Trust audit
Audit 0.4.1 · full source read 11 Oct 2026
9 findings, listed below with the file and line each was found on. Grade A needs a sandboxed behavioural run too; this audit read the source only.
What the source does
- FilesystemDeclared1 observation
- NetworkDeclared7 observations
- ShellNone observedNothing seen in the source
- DependenciesNot pinnedSome ranges float
- SecretsNone foundNo keys in source
“Declared” means the server says it does this and the source agrees. Browser, file and shell access are expected of some kinds of server.
Five audit layers
| Layer | What we check | Result |
|---|---|---|
L0 Provenance | Repo owner, licence, archive status, activity | PASS 1 finding |
L1 Static source | Secrets, path traversal, supply chain | WARN 5 findings |
L2 Instructions | Prompt injection and authority framing in docs and tool descriptions | PASS 2 findings |
L3 Inventory | Declared tools match the source | WARN 1 finding |
L4 Sandbox | Run in isolation and watch behaviour | SKIPPED |
Provenance & runtime
Who published it, and what the audit could and could not run
Provenance
- Repository owner
thenavidmUser accountAccount type recorded when we read the repository. - PackagePublished on npm
@thenavidm/mastodon-mcp-cliat version 2.0.1 - LicenceMITFrom the repository, as read at the audited commit.
- Last push6 days agoActivity of the repository when we read it.
- Source commit readbca0c006b647The audit covers exactly this commit, read on 11 Oct 2026.
Runtime
- Sandbox runNot run yetThis audit read the source only; it did not execute the server.
- Tool inventory51 declaredRead from the source and classed read, write or destructive.
Every value here is read from the record's own repository and audit.Suggest a correction
Findings (9)
Sorted by severity
MEDIUMNetwork egressnet.raw_ip · src/auth/login.ts:124
const url = new URL(req.url ?? "/", `http://127.0.0.1:${port}`);- Why
- No further detail recorded for this rule.
- Fix
- —
MEDIUMNetwork egressnet.raw_ip · src/auth/login.ts:194
const redirectUri = oob ? OOB_REDIRECT : `http://127.0.0.1:${port}/callback`;- Why
- No further detail recorded for this rule.
- Fix
- —
MEDIUMFilesystem / pathmcp.destructive_tools
block_domain, clear_notifications, delete_list, delete_status, dismiss_notification, remove_from_list, unblock_account
- Why
- 7 tool(s) can delete or overwrite
- Fix
- prefer a read-only mode or scoped tokens; the page states the blast radius
LOWNetwork egressnet.raw_ip · tests/cli.test.ts:69
vi.stubEnv("MASTODON_URL", "http://127.0.0.1:9");- Why
- No further detail recorded for this rule.
- Fix
- —
LOWObfuscation / stealthobf.zero_width · tests/text.test.ts:25
const family = "👨👩👧👦";
- Why
- No further detail recorded for this rule.
- Fix
- —
LOWSupply chainsupply.unpinned · package.json
@thenavidm/slipway, zod, @types/node, ajv, typescript, vitest
- Why
- 6 dependency range(s) float
- Fix
- pin exact versions or ship a lockfile
LOWPrompt injectionprompt.transfer_instruction · CHANGELOG.md:32
Node 22 or newer. Scripts keep working for success, usage errors and missing setup; a script that treated exit 1 as "unknown command" or "read-only" should read 2. Over MCP, expect an approval prompt
- Why
- an instruction to move sensitive data to an outside destination
- Fix
- remove; a skill never needs the user's secrets off the machine
LOWPrompt injectionprompt.transfer_instruction · README.md:795
- **An access token reaches your whole account.** It can post, delete, follow and block as you. Revoke it at `https://your-instance/oauth/authorized_applications`.
- Why
- an instruction to move sensitive data to an outside destination
- Fix
- remove; a skill never needs the user's secrets off the machine
Tools it exposes
51 declared in source · 7 destructive
7 tools can delete or overwrite. An agent that can be talked into calling a tool can be talked into calling this one, so give it a token scoped to what you need.
| Tool | Risk | What it does |
|---|---|---|
block_domain | destructive | Hide every account on an entire instance and remove their followers. This is the blunt instrument for a server that is a persistent problem rather than one account. Needs confirm: true. |
clear_notifications | destructive | Delete all notifications permanently. This is not the same as marking them read, and there is no undo. Needs confirm: true. |
delete_list | destructive | Delete a list. The accounts on it are not affected, only the list. Needs confirm: true. |
delete_status | destructive | Delete one of your own statuses. This cannot be undone and it discards every boost, reply and favourite it had. To fix a mistake, prefer edit_status, which keeps all of that. Needs confirm: true. |
dismiss_notification | destructive | Remove a single notification from the list. This is not undoable. |
remove_from_list | destructive | Remove accounts from a list. They are not unfollowed. |
unblock_account | destructive | Remove a block. Any follows the block severed do not come back; both sides have to follow again. |
add_to_list | write | Add accounts to a list. You have to already follow an account before you can put it on a list, which is the error people hit here. |
create_list | write | Create a curated list. Add accounts to it with add_to_list. |
follow_hashtag | write | Follow a hashtag, so every public post carrying it appears in your home timeline. The main way to build a feed on Mastodon. |
get_announcements | write | Announcements from the people who run your instance: downtime, rule changes, moderation decisions. Worth checking when something stops working. |
get_followed_hashtags | write | Hashtags you follow. Following a hashtag puts every public post carrying it into your home timeline, which is how you build a feed on a network with no algorithm. Neither existing Mastodon MCP server exposes this. |
post_thread | write | Publish several statuses as one thread, each replying to the last. Every part is checked against this instance |
reschedule_status | write | Change when a scheduled status will publish. Minimum five minutes ahead. |
unfollow_hashtag | write | Stop a hashtag |
update_profile | write | Change your display name, bio, or the four metadata fields on your profile. Only the arguments you pass are changed. Public the moment it runs, so it needs confirm: true. |
answer_follow_request | read | Approve or reject a pending follow request. Rejecting is silent; they are not told. |
block_account | read | Block an account. This is visible to them, removes any follow in either direction, and hides your posts from them. Reversible, but the follows do not come back. Needs confirm: true. |
browse_directory | read | Accounts that have opted into being discoverable, newest or most recently active first. Scoped to your own instance unless you ask for the wider network. A way to find people on a network with no recommendation engine. |
cancel_scheduled_status | read | Cancel a status that was scheduled but has not published. |
catch-up | read | Summarise what happened while you were away |
draft-thread | read | Turn an idea into a thread, without posting it |
find-my-people | read | Find accounts worth following on a topic |
get_account | read | Full profile for any account: bio, counts, the metadata fields with their verification state, and whether you follow each other. Accepts @user@instance, a bare local username, or a numeric id. Resolves accounts your instance has never seen before. |
get_blocked_domains | read | Whole instances you have blocked. |
get_bookmarks | read | Statuses a connected account has bookmarked. Unlike favourites, bookmarks are private. |
get_boosted_by | read | The accounts that boosted a status, as far as your instance knows. |
get_conversations | read | Direct conversations, newest first, each with its participants and last message. Mastodon direct messages are statuses with visibility |
get_favourited_by | read | The accounts that favourited a status. Federation means this is only who your instance knows about, not necessarily everyone. |
get_favourites | read | Statuses a connected account has favourited, newest first. |
get_follow_requests | read | Accounts waiting for you to approve their follow. Only meaningful on a locked account. |
get_followers | read | Accounts that follow a given account. Pages automatically past the 40-per-request ceiling. |
get_following | read | Accounts a given account follows. Pages automatically. |
get_list_members | read | The accounts on one of your lists. |
get_lists | read | Your curated lists. Pass a list id to get_list_timeline to read it, which is the closest thing Mastodon has to a custom feed. |
get_notifications | read | Mentions, boosts, favourites, follows, poll results and edits to posts you interacted with. Filter by type to get only the ones that need an answer: |
get_read_position | read | The last notification and home-timeline entry you marked read, shared across every client on this account. Pass the returned id as since_id to fetch only what is new. |
get_relationships | read | For each account named, whether you follow them, whether they follow you, and whether either of you has muted or blocked the other. One call for a whole list: use this before a bulk follow or unfollow rather than reading each profile. |
get_status | read | A single status by id, with its media, poll, link preview and engagement counts. |
get_suggested_follows | read | Accounts the instance suggests you follow, with the reason for each suggestion. |
get_thread | read | A status together with everything above and below it, nested into the real reply tree. Mastodon returns two flat lists and leaves the structure to you; this rebuilds it. Read this before replying, so the reply lands with context. |
get_trends | read | What is trending on this instance right now: hashtags, statuses, or links. Trends are per instance, not network-wide, so a small themed server shows something completely different from mastodon.social. |
list_accounts | read | Every Mastodon account this server can act as, and which instance each lives on. Mastodon is federated, so an account is a token plus an instance: the same handle on two servers is two different people. Use the handle from here as the |
list_scheduled_statuses | read | Statuses queued with scheduled_at that have not published yet. |
mark_read | read | Record how far you have read, so the next get_notifications with since_id returns only what is new. Syncs to the web app and every other client. Affects only your own view. |
report | read | Report an account, optionally with specific statuses, to your instance |
search | read | Search for accounts, statuses or hashtags. Pasting a URL here with resolve on is also how you pull in a remote post or profile your instance has never seen. Note that most instances do not full-text search public statuses: a thin result set is usually the instance |
translate_status | read | Translate a status into your language using the instance |
unblock_domain | read | Lift a domain block. Followers removed by the block are not restored. |
vote_poll | read | Vote in a poll by option index, counting from zero. A vote cannot be changed or taken back, so it needs confirm: true. |
whoami | read | Authenticate against the instance and return the live profile. Use this to confirm a token still works, or when the user says |
Install
Package version 2.0.1 · audited commit bca0c00
Read the findings first. The most severe is Network egress (medium) at src/auth/login.ts.
One-click links open your editor with the config below filled in, exactly as the snippets show it, pinned to version 2.0.1. The audit covers commit bca0c00 only.
claude mcp add mastodon-mcp-cli --env MASTODON_ACCESS_TOKEN=${MASTODON_ACCESS_TOKEN} -- npx -y @thenavidm/[email protected]{
"mcpServers": {
"mastodon-mcp-cli": {
"command": "npx",
"args": [
"-y",
"@thenavidm/[email protected]"
],
"env": {
"MASTODON_ACCESS_TOKEN": "${MASTODON_ACCESS_TOKEN}"
}
}
}
}The command pins the package version recorded in the source (2.0.1); the audit covers commit bca0c006b647. Transport: not declared. Reads this environment variable: MASTODON_ACCESS_TOKEN. Give it the narrowest token it needs.
Audit history
- !CAUTION B 89 / 100
First audit ·
bca0c006b647
README badge
For maintainers · updates on every re-audit
[](https://modelsatlas.com/mcp/thenavidm/mastodon-mcp-cli/)
The badge always shows the latest audit; a maintainer cannot pin an old verdict.
Other ratings
Cited, never blended into our score
No third-party security ratings are recorded for this server yet. When they exist they appear here with their source and date, beside, not inside, our grade.
Questions about mastodon-mcp-cli
What is the mastodon-mcp-cli MCP server?
What tools does mastodon-mcp-cli expose?
Is mastodon-mcp-cli safe to connect to an agent?
What credentials does mastodon-mcp-cli need?
How current is this page?
Sources
- thenavidm/mastodon-mcp-cli on GitHub — the source we read, its licence, stars and activityObserved · 11 Oct 2026
- ModelsAtlas trust audit — CAUTION verdict for commit bca0c006b647Observed · 11 Oct 2026
Spotted something wrong? Report a correction · Methodology
Keep going in your AI
Opens with this page as the source. We add nothing else to the prompt.
- What is the mastodon-mcp-cli MCP server?
- What tools does mastodon-mcp-cli expose?
- Is mastodon-mcp-cli safe to connect to an agent?