Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
LOG_MODENoLogging mode: local or prod.local
MCP_NAMENoServer name advertised to clients.mcp-retrieval
MCP_PATHNoHTTP route (http transport only)./mcp
MAX_IMAGESNoMaximum number of images per query.10
PROXY_HOSTNoProxy host. If set, all proxy credentials are required.
PROXY_PORTNoProxy port. Required when PROXY_HOST is set.
MAX_QUERIESNoMaximum number of queries/URLs per call.10
MAX_RESULTSNoMaximum number of search results per query.20
MCP_VERSIONNoServer version advertised to clients.0.1.0
PROXY_LOGINNoProxy login. Required when PROXY_HOST is set.
SERVER_PORTNoHTTP server port (http transport only).8080
PROXY_SCHEMENoProxy scheme. Required when PROXY_HOST is set.
MCP_TRANSPORTNoTransport: stdio or http.stdio
DEFAULT_IMAGESNoDefault number of images per query.5
MAX_TIMEOUT_MSNoMaximum timeout in milliseconds.10000
MIN_TIMEOUT_MSNoMinimum timeout in milliseconds.1000
PROXY_PASSWORDNoProxy password. Required when PROXY_HOST is set.
DEFAULT_RESULTSNoDefault number of search results per query.5
DEFAULT_TIMEOUT_MSNoDefault timeout in milliseconds.5000
MAX_DOCUMENT_CHARSNoMaximum characters for scraped pages.20000
SERVER_READ_TIMEOUTNoHTTP server read timeout.60s
SERVER_WRITE_TIMEOUTNoHTTP server write timeout.60s
DEFAULT_DOCUMENT_CHARSNoDefault maximum characters for scraped pages.20000
MAX_IDLE_CONNS_PER_HOSTNoHTTP connection pooling.100

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

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}
logging
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
web_scrapeA

Downloads pages by their links and returns the main text as markdown. Links are fetched in parallel; a single call handles up to 10 of them, so batch all links you need into one call instead of calling the tool per link.

Size: the 'max_chars' limit applies to each page separately, not to the whole response — 5 links stay under the limit each and the response holds all 5 texts. The limit counts characters, not tokens. A page cut short ends with '[truncated]' and its 'truncated' field is set; the cut-off part cannot be fetched afterwards, so treat what you got as all there is for that page.

web_searchA

Searches the web for one or more queries and returns snippets with links. Queries run in parallel. IMPORTANT: Always write search queries in English for best results and relevance. For images use the 'web_search_images' tool; both tools can be called in the same turn when a query needs text and images.

Freshness: set the 'date' field to restrict results by recency — 'd' (past day), 'w' (past week), 'm' (past month), 'y' (past year). Use it to prefer the most recent pages when the user asks about news or anything time-sensitive; leave it empty for all time.

Query operators (put them inside the query string itself): 'site:example.com term' limits the search to one site; 'filetype:pdf term' restricts to a file type; double quotes "exact phrase" force an exact match; a leading '-' excludes a word (term -foo); 'intitle:term' requires the word in the page title. Operators can be combined, e.g. 'site:arxiv.org filetype:pdf transformers'.

web_search_imagesA

Searches for images by one or more queries, executed in parallel. IMPORTANT: Queries must be in English ONLY.

Freshness: set the 'date' field to restrict results by recency — 'd' (past day), 'w' (past week), 'm' (past month), 'y' (past year); leave it empty for all time.

Query operators can be embedded in the query string: 'site:example.com term' limits to one site, double quotes "exact phrase" force an exact match, and a leading '-' excludes a word.

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-retrieval'

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