geizhals-mcp

geizhals-mcp

Enables AI to search Geizhals price-comparison data, including products, best prices, price history, ratings, categories, and deals.

Category
访问服务器

README

<h1 align="center">geizhals-mcp</h1>

An MCP server that lets an AI search Geizhals price comparison data: products, best prices, price history, ratings and categories. It wraps the Geizhals mobile app's API (api.geizhals.net/gh/v9) and returns the important fields to the AI.

<p align="center"> <a href="https://geizhals.at/"><img alt="Products tracked" src="https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fraw.githubusercontent.com%2FSamxel%2Fgeizhals-mcp%2Fmain%2Fcoverage.json&query=%24.products&label=products&color=green&suffix=%20tracked&cacheSeconds=3600"></a> <a href="https://geizhals.at/"><img alt="Prices compared" src="https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fraw.githubusercontent.com%2FSamxel%2Fgeizhals-mcp%2Fmain%2Fcoverage.json&query=%24.prices&label=prices&color=ff7300&suffix=%20compared&cacheSeconds=3600"></a> <a href="https://geizhals.at/"><img alt="Merchants" src="https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fraw.githubusercontent.com%2FSamxel%2Fgeizhals-mcp%2Fmain%2Fcoverage.json&query=%24.merchants&label=merchants&color=1e6fff&suffix=%20shops&cacheSeconds=3600"></a> </p>

Highlights

  • Best price across every shop
    Find a product and get its best price, full price range, star ratings and test-review count, aggregated over all Geizhals merchants instead of a single listing.

  • Know when to buy
    Pull the full price history and the current price drops (Schnäppchen), sortable by biggest percent off, so a model can answer "is this cheap right now or should I wait".

  • From keyword to category
    Search by free text or browse the complete Geizhals category tree (2200+ categories shipped with the server) to drill into exactly the right segment, then compare a shortlist side by side.

Tools

search_geizhals(query, ...)

Search products by keyword. Filters for country (loc/hloc), category and manufacturer, plus sorting and paging. Returns the hits and facet aggregates (categories, manufacturers, price range) to refine with.

get_product(product_id)

Full detail of one product: name, rating, best-price range, images, offer link and how many test reviews it has.

get_price_history(product_id, days=31)

The min/max/current summary plus the raw [timestamp, price, flag] series.

get_product_ratings(product_id)

Average rating, totals, per-star counts and the reviews link.

browse_category(category, ...)

List the products in a category by its code, with price range and sorting.

compare_products(product_ids)

Compare several products side by side.

get_deals(sort="percent", ...)

Current price drops: products whose best price just fell, with the percent and amount off. Sort by biggest percent drop, price, latest, popularity or top deals, and filter with min_discount_percent.

list_categories(query)

Browse Geizhals' category tree to find the category codes browse_category takes. The full tree ships with the server in data/categories.json.

Setup

Requires Python 3.9+.

pip install -r requirements.txt

Run

python main.py

The server starts over streamable HTTP and prints where it's listening:

Starting geizhals-mcp server on http://127.0.0.1:8000/mcp

Point your MCP client at that URL. Host, port and path live at the top of main.py.

Use it from Claude Desktop

Claude Desktop launches MCP servers over stdio, so bridge to this HTTP server with mcp-remote (needs Node.js):

  1. Start the server (python main.py) and leave it running.

  2. In Claude Desktop open Settings > Developer > Edit Config; that reveals claude_desktop_config.json. Open it and add the geizhals entry:

    {
      "mcpServers": {
        "geizhals": {
          "command": "cmd",
          "args": ["/c", "npx", "-y", "mcp-remote", "http://127.0.0.1:8000/mcp"]
        }
      }
    }
    

    On macOS/Linux drop the Windows wrapper: use "command": "npx" with "args": ["-y", "mcp-remote", "http://127.0.0.1:8000/mcp"].

  3. Save the file and restart Claude Desktop.

Notes

  • data/categories.json is a snapshot of Geizhals' category tree (title, id, children). main.py loads it for list_categories.
  • coverage.json holds the catalogue counts shown in the badges above. scripts/update_coverage.py refreshes it from the Geizhals homepage and a daily GitHub Action commits any change.
  • API details are documented in search_api.md.
  • This uses Geizhals' internal mobile API, not an official one. Be nice to it.

Troubleshooting

403 invalid request_fingerprint in payload — the HMAC secret or signing scheme in main.py (GH_HMAC_SECRET, request_fingerprint, API_HOST) no longer matches what the live Geizhals app sends. This is reverse-engineered from the app and hardcoded, so it can drift whenever Geizhals rotates the secret or changes the fingerprint scheme.

Disclaimer

This is an independent, unofficial project and is not affiliated with, endorsed by, or connected to Geizhals. "Geizhals" and all related trademarks belong to their respective owners.

It's published for educational and research purposes only. It talks to Geizhals' internal API, which is not meant for public use and may break or change at any time. You are responsible for how you use it: respect Geizhals' Terms of Service, robots rules and applicable law, and don't hammer their servers.

License

MIT LICENSE. Provided "as is", without warranty.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选