Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
LEANWEB_BINDNoHost address the endpoint is published on (Compose).127.0.0.1
LEANWEB_HOSTNoBind address without Docker (`0.0.0.0` inside the container).127.0.0.1
LEANWEB_PATHNoMCP endpoint path./mcp
LEANWEB_PORTNoPort without Docker.8200
SEARXNG_SECRETYesSearXNG secret key. Generate with `openssl rand -hex 32`.
LEANWEB_CACHE_DIRNoCache directory without Docker (Compose uses the `leanweb-cache` volume)../cache
LEANWEB_LOG_LEVELNoPython log level.INFO
LEANWEB_SEARXNG_URLNoSearXNG base URL (Compose default: `http://searxng:8080`).http://127.0.0.1:8080
LEANWEB_HTTP_TIMEOUTNoPlain HTTP timeout (s).20
LEANWEB_PUBLISH_PORTNoHost port the endpoint is published on (Compose).8200
LEANWEB_READ_CEILINGNoHard ceiling for `page_section` / `page_head` / `page_select`, whatever `max_chars` asks for.16000
LEANWEB_ALLOWED_HOSTSNoAccepted `Host` headers (DNS-rebinding protection). `host:*` matches any port; `*` disables the check.localhost:*,127.0.0.1:*,[::1]:*
LEANWEB_SNIPPET_CHARSNoSnippet length per search result.200
LEANWEB_FIND_MAX_CHARSNo`page_find` cap.2000
LEANWEB_INFO_MAX_CHARSNo`page_info` cap.3000
LEANWEB_MAX_HTML_CHARSNoRaw HTML beyond this is ignored.8000000
LEANWEB_SEARCH_TIMEOUTNoSearch timeout (s).25
LEANWEB_ALLOWED_ORIGINSNoAccepted browser `Origin` headers. Requests without one always pass.http://localhost:*,http://127.0.0.1:*
LEANWEB_BROWSER_TIMEOUTNoBrowser fetch timeout (s).45
LEANWEB_CACHE_TTL_HOURSNoCache lifetime.6
LEANWEB_SEARCH_MAX_CHARSNo`web_search` cap.2500
LEANWEB_MIN_CONTENT_CHARSNoRetry with the browser below this many cleaned chars.500
LEANWEB_ALLOW_PRIVATE_URLSNo`1` allows fetching loopback/private/link-local addresses.0
LEANWEB_HEAD_DEFAULT_CHARSNoDefault `max_chars` for `page_head`.4000
LEANWEB_SEARCH_MAX_RESULTSNoUpper limit for `max_results`.10
LEANWEB_BROWSER_CONCURRENCYNoMaximum simultaneous browser fetches.2
LEANWEB_SELECT_DEFAULT_CHARSNoDefault `max_chars` for `page_select`.8000
LEANWEB_SECTION_DEFAULT_CHARSNoDefault `max_chars` for `page_section`.12000
LEANWEB_SEARCH_DEFAULT_RESULTSNoDefault `max_results`.5

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