Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
MODENoServer mode: both HTTP+STDIO, HTTP only, or STDIO only. Options: both, http, stdioboth
PORTNoServer port (MCP HTTP/S; CLI daemon uses 3210 by default)3211
LOG_LEVELNoquiet suppresses startup config logs (MCP stdio bare startup is silent by default; use LOG_LEVEL=normal for diagnostics). Options: normal, quietnormal
PROXY_URLNoProxy server URLhttp://127.0.0.1:7890
USE_PROXYNoEnable HTTP proxyfalse
CORS_ORIGINNoCORS origin configuration*
ENABLE_CORSNoEnable CORSfalse
EXA_API_KEYNoOptional. Only needed for exa engine. Get a free key from https://dashboard.exa.ai/api-keys
SEARCH_MODENoSearch strategy. Currently only affects Bing: request only, request then Playwright fallback, or force Playwright. Options: request, auto, playwrightauto
FAKE_IP_CIDRSNoTreat DNS answers in these CIDRs as synthetic fake-IP results and do not block them as private-network DNS answers. Literal private/local targets and other private-network DNS answers remain blocked
PROXY_ENGINESNoWith USE_PROXY=true, only the engines in this whitelist route through the proxy; others stay direct. Empty = all engines proxied (legacy global behavior). Recommended for mainland China: PROXY_ENGINES=duckduckgo,exa,brave,startpage
CONTEXT7_API_KEYNoOptional API key for higher rate limits on Context7 docs tools
PLAYWRIGHT_PACKAGENoWhich Playwright client package to resolve when browser mode is enabled. Options: auto, playwright, playwright-coreauto
PLAYWRIGHT_HEADLESSNoWhether Playwright Chromium runs in headless modetrue
MCP_TOOL_SEARCH_NAMENoCustom name for the search toolsearch
DEFAULT_SEARCH_ENGINENoDefault search engine. Options: bing, duckduckgo, exa, brave, baidu, csdn, juejin, startpage, sogoubing
ALLOWED_SEARCH_ENGINESNoLimit which search engines can be used; if the default engine is not in this list, the first allowed engine becomes the default
FETCH_WEB_INSECURE_TLSNoDisable TLS certificate verification for fetchWebContent only. Use only when a target site has a broken certificate chainfalse
PLAYWRIGHT_MODULE_PATHNoReuse an existing Playwright client package outside this project
PLAYWRIGHT_WS_ENDPOINTNoValid Playwright ws:// / wss:// endpoint
BING_IMPERSONATE_TARGETNoBrowser fingerprint target for Bing's HTTP mode. Any curl-cffi-node impersonate target (e.g. chrome131, chrome124, chrome116)chrome131
MCP_TOOL_FETCH_WEB_NAMENoCustom name for generic web/Markdown fetch toolfetchWebContent
PLAYWRIGHT_CDP_ENDPOINTNoValid Chromium CDP endpoint
BING_PLAYWRIGHT_FALLBACKNoIn auto mode, when Bing's request mode hits an anti-bot page: true = launch a Playwright browser (slow, ~400MB); false = surface the error so the search service can cascade to lighter engines (e.g. duckduckgo/brave) via minResultstrue
MCP_TOOL_FETCH_CSDN_NAMENoCustom name for the CSDN article fetch toolfetchCsdnArticle
MCP_TOOL_FETCH_GITHUB_NAMENoCustom name for the GitHub README fetch toolfetchGithubReadme
MCP_TOOL_FETCH_JUEJIN_NAMENoCustom name for the Juejin article fetch toolfetchJuejinArticle
PLAYWRIGHT_EXECUTABLE_PATHNoLaunch an existing Chromium/Chrome executable without installing bundled browsers
OPEN_WEBSEARCH_QUIET_STARTUPNoSuppress startup config logs (compatibility switch, equivalent to LOG_LEVEL=quiet)false
STARTPAGE_PLAYWRIGHT_FALLBACKNofalse = do not launch a Playwright browser for Startpage's Anubis anti-bot warmup (saves ~400MB memory and seconds of latency); surface the error so minResults can cascade to lighter engines insteadtrue
PLAYWRIGHT_NAVIGATION_TIMEOUT_MSNoTimeout for Playwright navigation and Bing result waits20000

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

my-websearch provides 4 focused tools for web search, web extraction, Git repositories, and documentation:

  1. 'search': Multi-engine web and code search. Use for finding pages, articles, issues, and code snippets across Bing, Baidu, DuckDuckGo, Brave, GitHub, grep.app, etc. Supports multi-query, timeRange (day/week/month/year), and site filters.

  2. 'fetchWebContent': Extract readable content and markdown from generic web pages and PDF files. Use for reading articles, blogs, documentation pages, or downloading and parsing PDF documents.

  3. 'fetchGithubContent': Fetch GitHub/Gitee content by URL: README, a single source file (/blob/), a directory tree (/tree/), an Issue (/issues/), or a PR (/pull/ on GitHub, /pulls/ on Gitee). Examples: https://github.com/owner/repo/blob/main/src/index.ts ; https://gitee.com/owner/repo/blob/master/README.md ; https://github.com/owner/repo/issues/42 ; https://gitee.com/owner/repo/pulls/4 — ref may be a branch, tag, or commit; one file or directory per call, not a whole-repo clone.

  4. 'queryDocs': Direct access to official documentation and code snippets for libraries and frameworks (Context7 with npm/PyPI and GitHub fallback). Always prefer queryDocs over general web search for official library APIs and examples.

Routing guidance:

  • Prefer 'queryDocs' for official package documentation (no proxy required).

  • Prefer 'fetchGithubContent' for GitHub/Gitee repos, files, issues, and PRs.

  • Prefer 'fetchWebContent' for generic URLs and PDF files.

  • Use 'search' with site: operator (e.g. site:docs.python.org) or timeRange for targeted queries.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}
prompts
{
  "listChanged": true
}
resources
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
searchA

Search the web across engines (CN/EN/Code). Supports multi-query ('queries'), timeRange, site filter. Pass fetchTop (1~3) to auto-fetch top full articles as research brief in one turn. No API keys required.

fetchWebContentA

Fetch readable web content/docs/PDFs. Auto-cleans ads, keeps code/tables. Supports outline mode & sectionId for long docs, BM25 focus, batch URLs (1-3), and startIndex paging.

fetchGithubContentA

Fetch GitHub/Gitee by URL: README, file (/blob/, lines), tree, issue, PR, commit, releases, or repo symbol search ('symbol'). Example: https://github.com/o/r/blob/main/src/index.ts — ref can be branch/tag/commit; not a repo clone.

queryDocsA

Fetch docs, API references & syntax-extracted sections for packages/APIs/tools. Multi-source: 'auto' (smart fallback), 'official', 'docs.rs', 'pkg.go.dev', 'devdocs' (800+ tools/langs), 'mdn' (Web standards), 'javadoc', 'context7', 'npm', 'pypi'.

Prompts

Interactive templates invoked by user choice

NameDescription
deep-researchMulti-source research with query fan-out, official docs, and citation-backed synthesis.
code-lookupLook up official docs, source code, and release notes for a library API question.

Resources

Contextual data attached and managed by the client

NameDescription
websearch-page-cacheRecently cached pages from fetchWebContent (metadata only).
websearch-docs-cacheRecently cached queryDocs results (metadata only).

TDQS

A3.8/5.0

Scored across 4 tools

Disambiguation4/5

The tools have mostly distinct roles: search for discovery, fetchWebContent for generic URLs, queryDocs for package/API documentation, and fetchGithubContent for GitHub/Gitee resources. There is some overlap between fetchWebContent and queryDocs for documentation URLs, and between fetchWebContent and fetchGithubContent for GitHub URLs, but the descriptions provide clear specialization guidance.

Naming Consistency4/5

All names are camelCase except the bare 'search', and they use readable verb-based naming. The mix of 'search', 'fetch', and 'query' is a minor deviation from a single verb_noun pattern, but the set remains predictable and easy to scan.

Tool Count5/5

Four tools is well-scoped for a web research and content retrieval server. Each tool covers a distinct retrieval mode and no tool feels redundant or extraneous.

Completeness4/5

The surface covers core research workflows: discovery via search, general page fetching, documentation lookup, and GitHub/Gitee content retrieval. Minor gaps exist around non-document formats or specialized vertical search, but agents can work around these with the provided tools.

Maintenance

ActivityActive
ResponsivenessOutdated data