Skip to main content
Glama

Local Logs MCP Server

by mariosss

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
LOGS_DIRNoDirectory containing log files. If not specified, the server automatically searches for logs in priority order: ./logs, ./apps/backend/logs, ./server/logs, ./backend/logs, /var/log (Linux/Mac), C:\logs (Windows)
LOG_EXTENSIONSNoComma-separated log file extensions.log,.txt

Schema

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Tools

Functions exposed to the LLM to take actions

NameDescription
get_log_files

Get list of available log files with metadata

tail_log

Get the last N lines from a log file

get_errors

Get recent error log entries

get_server_status

Get server status summary from logs

watch_log

Monitor a log file for changes

search_logs

Search for specific text in log files

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/mariosss/local-logs-mcp-server'

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