Skip to main content
Glama
Mastodon MCP Server

Mastodon MCP Server

by jimyy23

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
HOSTNoNode/Docker only host.127.0.0.1
PORTNoNode/Docker only port.8787
DATA_DIRNoNode/Docker only directory that persists caches.
AUTH_MODENooptional allows anonymous use of public endpoints.required
READ_ONLYNoBlock mutating calls.false
APP_SCOPESNoUpper bound for scopes; the app is registered with these.… admin:read admin:write
PUBLIC_URLNoPublic origin, used for OAuth redirects and metadata.from request
SECRET_KEYNoEnables OAuth; seals tokens. Rotating it invalidates all issued tokens.
USER_AGENTNoUpstream User-Agent.mastodon-mcp/0.1
TRUST_PROXYNoUse X-Forwarded-Proto/Host when PUBLIC_URL is unset.false
MCP_API_KEYSNoComma-separated static keys.
DISABLE_ADMINNoHide and block admin endpoints.false
MASTODON_APPSNoPre-registered apps formatted as {"domain":{"client_id","client_secret"}}; redirect URI must be {PUBLIC_URL}/oauth/callback.auto-register
SCOPE_STEP_UPNoReply HTTP 403 insufficient_scope so clients re-authorize with more scopes.false
DEFAULT_SCOPESNoRequested when the client doesn't specify scopes.read write follow push profile
HTTP_INSTANCESNoLocal development against HTTP instances, e.g. localhost:3000.
MASTODON_TOKENNoServer-side token for API-key users.
ALLOWED_ORIGINSNoBrowser origins allowed to call /mcp (* allows all).same-origin
MASTODON_TOKENSNoServer-side tokens for API-key users, formatted as {"domain":"token"}.
DEFAULT_INSTANCENoInstance served at /mcp.
MAX_OUTPUT_CHARSNoTruncation limit per tool result.40000
MAX_UPLOAD_BYTESNoMedia upload limit.104857600
ALLOWED_INSTANCESNoComma-separated allowlist.any public
ALLOW_PASSTHROUGHNoAccept raw Mastodon tokens (Authorization / X-Mastodon-Token).true
TOKEN_TTL_SECONDSNoAccess token lifetime (refresh tokens don't expire).2592000
UPSTREAM_TIMEOUT_MSNoMastodon request timeout.30000
ALLOW_PRIVATE_INSTANCESNoAllow local development against private instances.false

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Server capabilities have not been inspected yet.

Tools

Functions exposed to the LLM to take actions

NameDescription

No tools

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources