Skip to main content
Glama
damienbenveniste

Substack Draft MCP Server

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
HOSTNoHTTP bind host (default: 127.0.0.1 outside production, 0.0.0.0 in production)
PORTNoHTTP port (default: 8787)
NODE_ENVNoNode environment (e.g., production, development)
AUTH_MODENoAuthentication mode: noauth, static_bearer, or oauth
LOG_LEVELNoLog level (e.g., info, debug)
MCP_TRANSPORTNoMCP transport mode: http or stdio
MAX_BODY_BYTESNoMax accepted body size for Markdown text and serialized blocks_v1 input
OAUTH_JWKS_URLNoJWKS endpoint URL for JWT verification (required for oauth mode)
MAX_IMAGE_BYTESNoMax accepted image payload size before upload
MCP_PATH_SECRETNoOptional single URL-safe path segment to move MCP endpoint from /mcp to /mcp/<secret>
MCP_BEARER_TOKENNoBearer token for static_bearer auth mode
SUBSTACK_USER_IDNoPositive numeric Substack user id for draft bylines
MCP_PUBLIC_BASE_URLNoPublic HTTPS origin of this MCP server (required for oauth mode)
SUBSTACK_USER_AGENTNoOptional browser-like user agent for Substack requests
OAUTH_JWT_ALGORITHMSNoComma-separated asymmetric JWT signing algorithms (default: RS256,ES256)
PREVIEW_TOKEN_SECRETNoHMAC secret for confirmation tokens; required for write operations
SUBSTACK_SESSION_TOKENNoSubstack session cookie value for authentication
SUBSTACK_PUBLICATION_URLNoPublic HTTPS publication origin for Substack API client
SUBSTACK_REQUEST_TIMEOUT_MSNoTimeout in milliseconds for outbound Substack API requests and remote image fetches (default: 30000)
CONFIRMATION_TOKEN_TTL_SECONDSNoPositive confirmation token lifetime in seconds
OAUTH_AUTHORIZATION_SERVER_URLNoOAuth authorization server issuer URL (required for oauth mode)
OAUTH_RESOURCE_DOCUMENTATION_URLNoOptional documentation URL for OAuth protected resource metadata

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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/damienbenveniste/substack-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server