Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
MCP_LOG_FILENoOptional path to a log file for MCP server logs
MCP_LOG_LEVELNoLogging level for the MCP server (e.g., INFO, DEBUG, WARNING, ERROR)INFO
LOG_DIRECTORIESNoJSON array of directories containing log files to analyze (e.g., '["/path/to/your/app/logs"]')
PYTHONIOENCODINGNoSet Python I/O encodingutf-8
PYTHONUNBUFFEREDNoSet to '1' to ensure Python output is not buffered1
LOG_PATTERNS_ERRORNoJSON array of regex patterns to identify error log entries (e.g., '["Exception:.*"]')
LOG_CONTEXT_LINES_AFTERNoNumber of lines to include after a matched log entry for context
LOG_CONTEXT_LINES_BEFORENoNumber of lines to include before a matched log entry for context

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/Darkstar326/log_analyzer_mcp'

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