galaxus-mcp
Enables AI assistants to search products and retrieve detailed information from Galaxus and Digitec, including prices, specifications, and price history.
README
galaxus-mcp
An unofficial Model Context Protocol server that lets AI assistants (Claude, ChatGPT, and any other MCP client) search products and read product details from Galaxus / Digitec.
⚠️ Unofficial / use at your own risk. Galaxus does not offer a public API. This server talks to the same internal GraphQL endpoints their website uses, so there's no stability guarantee: Galaxus can change the schema, rotate the persisted-query ids, or block traffic at any time. Respect their Terms of Service and
robots.txt, keep request volume low, and don't use this to resell their data. Provided as-is under the MIT license with no affiliation to Digitec Galaxus AG.
Tools
| Tool | Description |
|---|---|
search_products |
Search the catalog by keyword. Returns name, brand, price (CHF), rating, availability, image, and URL, plus category facets and a nextCursor for paging. Supports sort (relevance/price_asc/price_desc/rating/newest) and minPrice / maxPrice / brand / minRating filters. |
get_product |
Full details for a single product by numeric id, slug, or full URL: description, GTIN, specifications, images, and price history (current position vs recent low/high). |
check_price_availability |
Lightweight price + stock snapshot (incl. price-history position) for one product. Handy for price tracking. |
compare_products |
Fetch full details for 2–8 products at once for side-by-side comparison. |
list_category |
Browse a category by name, sorted/filterable, with available-brand and product-type facets to help refine. |
How it works
Galaxus's storefront is a Next.js + Relay app backed by a HotChocolate (.NET) GraphQL server. Queries are persisted: the client sends a hash + variables, not the query text.
- Search / category →
POST /graphql/o/<searchQueryHash>/useSearchDataQuery - Product / price →
POST /graphql/o/<productQueryHash>/productDetailPageQuery
Both require the headers X-Dg-Portal and X-Dg-Language. The product HTML pages are gated
behind a CAPTCHA for non-browser clients, but the GraphQL endpoint is not, so this server uses
GraphQL for every operation. Search uses skipRedirect so category-like terms still return a
product list, supports cursor pagination, and exposes the brand / product-type facets. Every
request goes through a small rate limiter, a short-lived response cache, and a timeout.
Install
npm install
npm run build
Use with Claude Code
claude mcp add galaxus -- node /absolute/path/to/galaxus_mcp/dist/index.js
Use with Claude Desktop / other MCP clients
Add to your client's MCP config (e.g. claude_desktop_config.json):
{
"mcpServers": {
"galaxus": {
"command": "node",
"args": ["/absolute/path/to/galaxus_mcp/dist/index.js"]
}
}
}
Configuration (env vars)
| Variable | Default | Notes |
|---|---|---|
GALAXUS_SITE |
galaxus.ch |
galaxus.ch, galaxus.de, or digitec.ch |
GALAXUS_PORTAL |
per-site | X-Dg-Portal value (22 = galaxus.ch) |
GALAXUS_LANGUAGE |
per-site | en, de, fr, ... |
GALAXUS_SEARCH_HASH |
captured | persisted id for useSearchDataQuery |
GALAXUS_PRODUCT_HASH |
captured | persisted id for productDetailPageQuery |
GALAXUS_MIN_INTERVAL_MS |
800 |
min delay between requests |
GALAXUS_CACHE_TTL_MS |
60000 |
response cache TTL |
GALAXUS_TIMEOUT_MS |
15000 |
per-request timeout |
GALAXUS_USER_AGENT |
Chrome UA | sent with every request |
Refreshing the persisted-query ids
If search or product calls start failing (e.g. after a Galaxus deploy), the persisted-query hashes have likely rotated. To recapture them:
- Open https://www.galaxus.ch in Chrome with DevTools → Network.
- Search for something, then open a product page.
- Find the requests to
/graphql/o/<hash>/useSearchDataQueryand/graphql/o/<hash>/productDetailPageQuery. - Set
GALAXUS_SEARCH_HASH/GALAXUS_PRODUCT_HASHto the new<hash>values.
Project layout
src/
index.ts MCP server + tool registration
config.ts env-driven config (site, portal, hashes, rate limits)
types.ts normalized models + DataProvider interface
http.ts HTTP client (throttle + cache + timeout)
providers/
graphql.ts internal-GraphQL provider
The tools talk to a DataProvider interface rather than the GraphQL client directly, so the
data source can be swapped out later if the internal API stops working.
License
MIT
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。