social
Mastodon MCP Gateway for AI Agents
Expose Mastodon tools to Claude Code, Cursor, Codex, and other MCP clients through the local KosmoKrator MCP gateway.
6 functions 5 read 1 write Bearer token auth
Mastodon MCP Gateway
Expose Mastodon to MCP clients with `kosmokrator mcp:serve --integration=mastodon`.
If the client has never used KosmoKrator before, install it first, then register this integration as a stdio MCP server. The gateway exposes only the selected integration in the example below.
curl -fsSL https://raw.githubusercontent.com/OpenCompanyApp/kosmokrator/main/install.sh | bash kosmokrator mcp:gateway:install --integration=mastodon --write=deny --json {
"mcpServers": {
"kosmokrator-mastodon": {
"type": "stdio",
"command": "kosmo",
"args": [
"mcp:serve",
"--integration=mastodon",
"--write=deny"
]
}
}
} Serve Manually
kosmokrator mcp:serve --integration=mastodon --write=deny MCP Tool Names
KosmoKrator exposes integration tools through the gateway with stable names:
| MCP tool | Source function | Type |
|---|---|---|
integration__mastodon__mastodon_list_statuses | mastodon.mastodon_list_statuses | Read read |
integration__mastodon__mastodon_get_status | mastodon.mastodon_get_status | Read read |
integration__mastodon__mastodon_create_status | mastodon.mastodon_create_status | Write write |
integration__mastodon__mastodon_list_accounts | mastodon.mastodon_list_accounts | Read read |
integration__mastodon__mastodon_get_account | mastodon.mastodon_get_account | Read read |
integration__mastodon__mastodon_get_current_user | mastodon.mastodon_get_current_user | Read read |
Write Access
Start with --write=deny for read-only MCP clients. Use --write=ask or
--write=allow only when the client and workspace are trusted.