Mastodon MCP Server
by jimyy23
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| HOST | No | Node/Docker only host. | 127.0.0.1 |
| PORT | No | Node/Docker only port. | 8787 |
| DATA_DIR | No | Node/Docker only directory that persists caches. | |
| AUTH_MODE | No | optional allows anonymous use of public endpoints. | required |
| READ_ONLY | No | Block mutating calls. | false |
| APP_SCOPES | No | Upper bound for scopes; the app is registered with these. | … admin:read admin:write |
| PUBLIC_URL | No | Public origin, used for OAuth redirects and metadata. | from request |
| SECRET_KEY | No | Enables OAuth; seals tokens. Rotating it invalidates all issued tokens. | |
| USER_AGENT | No | Upstream User-Agent. | mastodon-mcp/0.1 |
| TRUST_PROXY | No | Use X-Forwarded-Proto/Host when PUBLIC_URL is unset. | false |
| MCP_API_KEYS | No | Comma-separated static keys. | |
| DISABLE_ADMIN | No | Hide and block admin endpoints. | false |
| MASTODON_APPS | No | Pre-registered apps formatted as {"domain":{"client_id","client_secret"}}; redirect URI must be {PUBLIC_URL}/oauth/callback. | auto-register |
| SCOPE_STEP_UP | No | Reply HTTP 403 insufficient_scope so clients re-authorize with more scopes. | false |
| DEFAULT_SCOPES | No | Requested when the client doesn't specify scopes. | read write follow push profile |
| HTTP_INSTANCES | No | Local development against HTTP instances, e.g. localhost:3000. | |
| MASTODON_TOKEN | No | Server-side token for API-key users. | |
| ALLOWED_ORIGINS | No | Browser origins allowed to call /mcp (* allows all). | same-origin |
| MASTODON_TOKENS | No | Server-side tokens for API-key users, formatted as {"domain":"token"}. | |
| DEFAULT_INSTANCE | No | Instance served at /mcp. | |
| MAX_OUTPUT_CHARS | No | Truncation limit per tool result. | 40000 |
| MAX_UPLOAD_BYTES | No | Media upload limit. | 104857600 |
| ALLOWED_INSTANCES | No | Comma-separated allowlist. | any public |
| ALLOW_PASSTHROUGH | No | Accept raw Mastodon tokens (Authorization / X-Mastodon-Token). | true |
| TOKEN_TTL_SECONDS | No | Access token lifetime (refresh tokens don't expire). | 2592000 |
| UPSTREAM_TIMEOUT_MS | No | Mastodon request timeout. | 30000 |
| ALLOW_PRIVATE_INSTANCES | No | Allow 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
| Name | Description |
|---|---|
No tools | |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues