leanweb-mcp
by 0xJonty
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| LEANWEB_BIND | No | Host address the endpoint is published on (Compose). | 127.0.0.1 |
| LEANWEB_HOST | No | Bind address without Docker (`0.0.0.0` inside the container). | 127.0.0.1 |
| LEANWEB_PATH | No | MCP endpoint path. | /mcp |
| LEANWEB_PORT | No | Port without Docker. | 8200 |
| SEARXNG_SECRET | Yes | SearXNG secret key. Generate with `openssl rand -hex 32`. | |
| LEANWEB_CACHE_DIR | No | Cache directory without Docker (Compose uses the `leanweb-cache` volume). | ./cache |
| LEANWEB_LOG_LEVEL | No | Python log level. | INFO |
| LEANWEB_SEARXNG_URL | No | SearXNG base URL (Compose default: `http://searxng:8080`). | http://127.0.0.1:8080 |
| LEANWEB_HTTP_TIMEOUT | No | Plain HTTP timeout (s). | 20 |
| LEANWEB_PUBLISH_PORT | No | Host port the endpoint is published on (Compose). | 8200 |
| LEANWEB_READ_CEILING | No | Hard ceiling for `page_section` / `page_head` / `page_select`, whatever `max_chars` asks for. | 16000 |
| LEANWEB_ALLOWED_HOSTS | No | Accepted `Host` headers (DNS-rebinding protection). `host:*` matches any port; `*` disables the check. | localhost:*,127.0.0.1:*,[::1]:* |
| LEANWEB_SNIPPET_CHARS | No | Snippet length per search result. | 200 |
| LEANWEB_FIND_MAX_CHARS | No | `page_find` cap. | 2000 |
| LEANWEB_INFO_MAX_CHARS | No | `page_info` cap. | 3000 |
| LEANWEB_MAX_HTML_CHARS | No | Raw HTML beyond this is ignored. | 8000000 |
| LEANWEB_SEARCH_TIMEOUT | No | Search timeout (s). | 25 |
| LEANWEB_ALLOWED_ORIGINS | No | Accepted browser `Origin` headers. Requests without one always pass. | http://localhost:*,http://127.0.0.1:* |
| LEANWEB_BROWSER_TIMEOUT | No | Browser fetch timeout (s). | 45 |
| LEANWEB_CACHE_TTL_HOURS | No | Cache lifetime. | 6 |
| LEANWEB_SEARCH_MAX_CHARS | No | `web_search` cap. | 2500 |
| LEANWEB_MIN_CONTENT_CHARS | No | Retry with the browser below this many cleaned chars. | 500 |
| LEANWEB_ALLOW_PRIVATE_URLS | No | `1` allows fetching loopback/private/link-local addresses. | 0 |
| LEANWEB_HEAD_DEFAULT_CHARS | No | Default `max_chars` for `page_head`. | 4000 |
| LEANWEB_SEARCH_MAX_RESULTS | No | Upper limit for `max_results`. | 10 |
| LEANWEB_BROWSER_CONCURRENCY | No | Maximum simultaneous browser fetches. | 2 |
| LEANWEB_SELECT_DEFAULT_CHARS | No | Default `max_chars` for `page_select`. | 8000 |
| LEANWEB_SECTION_DEFAULT_CHARS | No | Default `max_chars` for `page_section`. | 12000 |
| LEANWEB_SEARCH_DEFAULT_RESULTS | No | Default `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
| Name | Description |
|---|---|
No tools | |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues