Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
X_DEBUGNoLog raw gotwi requests. Verbose; useful when an X error makes no sense.false
LOG_MODENoLogging mode: 'local' for text handler at debug level, 'prod' for JSON handler at info level.local
MCP_NAMENoServer name advertised to clients.mcp-x
MCP_PATHNoHTTP route (http transport only)./mcp
X_API_KEYYesOAuth 1.0a consumer key.
MEDIA_ROOTYesAbsolute path to the only directory x_media_upload may read from. Must exist and be a directory. No default, on purpose.
SERVER_PORTNoPort for the HTTP transport.8080
MCP_TRANSPORTNoTransport to use: 'stdio' or 'http'.stdio
POSTS_MAX_IDSNoIds per x_posts_lookup; the API's own ceiling.100
USERS_MAX_IDSNoIds per x_users_lookup call.100
POSTS_MAX_DAYSNoMaximum lookback window in days; recent search cannot look back further.7
X_ACCESS_TOKENYesUser access token. Generate it after setting the app permissions to Read and Write.
X_API_KEY_SECRETYesOAuth 1.0a consumer secret.
LISTS_MAX_RESULTSNoMaximum results for list reads.100
MEDIA_CHUNK_BYTESNoChunk size in bytes for media uploads.4194304
POSTS_MAX_QUERIESNoQueries per x_posts_search / x_posts_count call.5
POSTS_MAX_RESULTSNoMaximum results for post reads.100
USERS_MAX_RESULTSNoMaximum results for follower/following reads.1000
POSTS_DEFAULT_DAYSNoDefault lookback window in days for recent search.7
POSTS_MAX_USERNAMESNoUsernames per x_posts_by_user call.5
SERVER_READ_TIMEOUTNoHTTP server read timeout.60s
USERS_MAX_USERNAMESNoUsernames per x_users_lookup call.100
LISTS_MAX_TIMEOUT_MSNoMaximum timeout in milliseconds for list tools.60000
LISTS_MIN_TIMEOUT_MSNoMinimum timeout in milliseconds for list tools.2000
MEDIA_MAX_TIMEOUT_MSNoMaximum timeout in milliseconds for media uploads.600000
MEDIA_MIN_TIMEOUT_MSNoMinimum timeout in milliseconds for media uploads.5000
POSTS_MAX_TIMEOUT_MSNoMaximum timeout in milliseconds for post tools.60000
POSTS_MIN_TIMEOUT_MSNoMinimum timeout in milliseconds for post tools.2000
SERVER_WRITE_TIMEOUTNoHTTP server write timeout.60s
USERS_MAX_TIMEOUT_MSNoMaximum timeout in milliseconds for user tools.60000
USERS_MIN_TIMEOUT_MSNoMinimum timeout in milliseconds for user tools.2000
LISTS_DEFAULT_RESULTSNoDefault results for list reads.25
POSTS_DEFAULT_RESULTSNoDefault results for post reads.10
USERS_DEFAULT_RESULTSNoDefault results for user reads.100
X_ACCESS_TOKEN_SECRETYesUser access token secret.
MEDIA_POLL_INTERVAL_MSNoHow often FINALIZE status is polled while X transcodes.2000
MAX_IDLE_CONNS_PER_HOSTNoConnection pooling toward the X API.100
LISTS_DEFAULT_TIMEOUT_MSNoDefault timeout in milliseconds for list tools.15000
MEDIA_DEFAULT_TIMEOUT_MSNoDefault timeout in milliseconds for media uploads.120000
POSTS_DEFAULT_TIMEOUT_MSNoDefault timeout in milliseconds for post tools.15000
USERS_DEFAULT_TIMEOUT_MSNoDefault timeout in milliseconds for user tools.15000

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

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/Role1776/mcp-x'

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