TR

tomaspavlin/rohlik-mcp

API 开发

本页由 AI 翻译,技术细节请以原文为准。 查看原文

122 stars 32 forks 质量 72 趋势 0MIT

tomaspavlin/rohlik-mcp 是从 https://github.com/tomaspavlin/rohlik-mcp. 导入的 MCP 服务器候选

概览

tomaspavlin/rohlik-mcp 是从 https://github.com/tomaspavlin/rohlik-mcp. 导入的 MCP 服务器候选

概述(AI 翻译)

增强你喜爱的LLM,具备购买杂货的功能。

[!警告] 该 MCP 服务器是为研究目的而建,采用逆向工程的 Rohlik API。仅供个人使用。

这是一个模型上下文协议(MCP)服务器,使AI助手能够与Rohlik集团跨多个国家的在线杂货配送服务交互。该服务器提供搜索产品、购物车管理和账户信息访问的工具。

支持的服务:

与Rohlik MCP配合效果很好的示例LLM提示:

** 🛒 常规购物:**

  • 将苹果派的食材加入购物车。仅限无麸质且经济实惠。
  • 或者,实际上,我想做南瓜派代替苹果派。换个食材。
  • 我的购物车里有哪些商品?
  • 将附带购物清单照片中的商品加入购物车。
  • 把我在Rohlik标记为最喜欢的面包加入购物车。

** 🤖 智能购物:**

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

Rohlik MCP Server

Enhance your favourite LLM with capabilities to buy groceries.

[!WARNING] This MCP server is made for study purposes with use of reverse engineered Rohlik API. It is for personal use only.

This is a Model Context Protocol (MCP) server that enables AI assistants to interact with the Rohlik Group’s online grocery delivery services across multiple countries. This server provides tools for searching products, managing shopping carts, and accessing account info.

Supported Services:

Example LLM prompts that work very well with the Rohlik MCP:

🛒 Regular Shopping:

  • Add ingredients for apple pie to the cart. Only gluten-free and budget-friendly.
  • Or actually, instead of apple pie I want to make pumpkin pie. Change the ingredients.
  • What are the items in my cart?
  • Add the items in the attached shopping list photo to the cart.
  • Add the bread I marked as favorite in Rohlik to my cart.

🤖 Smart Shopping:

  • “Add breakfast items I typically order”
  • “Show me lunch suggestions for this week”
  • “What do I usually buy for dinner?”
  • “I need snacks - suggest what I normally order”
  • “Show my top 20 most purchased items”
  • “What can I do with Rohlik MCP?”

💰 Deals & Discounts:

  • What’s on sale this week?

📅 Planning:

  • What are the cheapest delivery slots for tomorrow?
  • When is my next delivery?
  • Show my last 5 orders

📚 Documentation

New to Rohlik MCP? Check out our Complete Guide for Newcomers!

Usage

Claude Desktop Configuration

Add the MCP to Claude Desktop configuration:

  • On MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • On Windows: %APPDATA%/Claude/claude_desktop_config.json

Add the following configuration:

{
  "mcpServers": {
    "rohlik": {
      "command": "npx",
      "args": ["-y", "@tomaspavlin/rohlik-mcp"],
      "env": {
        "ROHLIK_USERNAME": "[email protected]",
        "ROHLIK_PASSWORD": "your-password",
        "ROHLIK_BASE_URL": "https://www.rohlik.cz"
      }
    }
  }
}

Supported Regions

The server supports multiple Rohlik regions by setting the ROHLIK_BASE_URL environment variable:

  • Czech Republic: https://www.rohlik.cz (default)
  • Germany: https://www.knuspr.de
  • Austria: https://www.gurkerl.at
  • Hungary: https://www.kifli.hu
  • Romania: https://www.sezamo.ro
  • Italy (planned): https://www.sezamo.it
在 GitHub 查看完整 README

安装

npx -y @tomaspavlin/rohlik-mcp
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "rohlik": { "command": "npx", "args": ["-y", "@tomaspavlin/rohlik-mcp"], "env": { "ROHLIK_USERNAME": "[email protected]", "ROHLIK_PASSWORD": "your-password", "ROHLIK_BASE_URL": "https://www.rohlik.cz" } } } }