跳到正文
DEV Community· Jan Herklotz·· 10 天前AI 評分46

建立用於產品搜尋及供貨查詢的 MCP 伺服器

Building MCP Servers for Product Search and Availability

AI 導讀

作者建立多個 MCP 伺服器,讓 AI 助手搜尋商品、查閲價格及供貨情況,涵蓋 Apple Store、MediaMarkt、MediaWorld、Saturn、MaxGaming 和 Kleinanzeigen。各伺服器均以開源方式提供;作者指出,整合網站資料時須區分商品缺貨與無法查詢。

正文

Jan Herklotz

I recently built a few MCP servers that let AI assistants search listings, find products, and check prices and availability.

The idea was simple: instead of opening several websites and searching each one manually, I wanted to ask an assistant to find what I was looking for.

So far, I’ve built servers for:

What I learned

MCP gives each server a consistent way to expose tools to an assistant. The more interesting work is figuring out how to get useful data from each site and return it in a form the assistant can work with.

Every site is different. Product pages expose options and variants differently, availability depends on the storefront or location, and search results don’t always match the query as closely as you’d expect.

There’s also a difference between “unavailable” and “I couldn’t check.” If a request fails or data is missing, the assistant needs to know rather than treating it as an out-of-stock result.

What’s next

I’m interested in making these servers easier to use and improving coverage where product pages or storefronts behave differently.

They’re all open source, so feel free to try them out, report issues, or contribute. I’d also be interested to hear what other stores or services would be useful to connect through MCP.

來源:DEV Community · dev.to