GM

gbbirkisson/mcp-oda

开发工具

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

22 stars 10 forks 质量 69 趋势 14

用于与 oda.com 交互的模型上下文协议(MCP)服务器

概览

用于与 oda.com 交互的模型上下文协议(MCP)服务器 如果这个项目正是你需要的,或者对你有帮助,请考虑请我喝杯咖啡 ☕ 该MCP服务器提供了与Oda杂货购物平台程序交互的工具: - - 搜索支持挪威语术语的杂货 - - 搜索、筛选和查看食谱详情 - - 查看已保存的列表,添加或移除产品,并将整份清单导入购物车 - - 查看你最常订购的产品 - 查看购物车内容和推荐,添加/移除商品或设定精确数量,添加配方配料 - - 查看即将到来的送货时段、价格和订单截止日期(唯读) - - 所有操作作为 CLI 子命令以及 MCP 工具 - - 在重启后维护登录会话 会话数据默认存储在 ~/.mcp-oda 中 运行npx的github:gbbirkisson/mcp-oda,且无参数打印,有帮助。mcp子命令启动MCP服务器。

概述(AI 翻译)

MCP-ODA

用于与 oda.com 交互的模型上下文协议(MCP)服务器

如果这个项目正是你需要的,或者对你有帮助,请考虑购买 给我一杯咖啡 ☕

目录

  • 功能特征
  • 安装
  • 用途
  • 初始设置
  • CLI 命令
  • 配置
  • Claude桌面
  • 克劳德·科德
  • Gemini CLI
  • 故障排除
  • 会话未持续

特色

该MCP服务器提供了与Oda杂货购物平台程序交互的工具:

  • 搜索产品 - 支持挪威语词汇的杂货搜索
  • 浏览食谱 - 搜索、筛选和查看食谱详情
  • 已保存购物清单 - 查看已保存的购物清单,添加或移除产品,以及 将整份列表导入购物车
  • 购买历史 - 查看您最常订购的产品
  • 管理购物车 - 查看购物车内容和推荐,添加/移除商品或设置 精确数量,添加配方材料
  • 送货时段 - 查看即将到来的送货时段、价格和订单截止日期(只读)
  • CLI 访问 - 除了 MCP 工具外,所有作为 CLI 子命令可用的操作

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

README

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

mcp-oda

A Model Context Protocol (MCP) server for interacting with oda.com

[!CAUTION] This project is deprecated.

Oda now provides an official MCP server. Use it instead:

👉 oda.com/mcp

Table of contents

Features

This MCP server provides tools to programmatically interact with Oda’s grocery shopping platform:

  • Search products - Search for groceries with support for Norwegian terms
  • Browse recipes - Search, filter, and view recipe details
  • Saved shopping lists - View your saved lists, add or remove products, and import a whole list into the cart
  • Purchase history - See your most frequently ordered products
  • Manage shopping cart - View cart contents and recommendations, add/remove items or set exact quantities, add recipe ingredients
  • Delivery slots - See upcoming delivery slots, prices and ordering deadlines (read-only)
  • CLI access - All operations available as CLI subcommands in addition to MCP tools
  • Session persistence - Maintains login session across restarts

Installation

This project requires Node.js (v18+).

Usage

Initial Setup

Authenticate with your Oda account:

read -rsp "Oda password: " ODA_PASSWORD
printf '\n'
printf '%s' "$ODA_PASSWORD" | npx github:gbbirkisson/mcp-oda auth login --user [email protected] --pass-stdin
unset ODA_PASSWORD

Verify your login status:

npx github:gbbirkisson/mcp-oda auth user

[!NOTE] Session data is stored by default in ~/.mcp-oda

CLI Commands

Running npx github:gbbirkisson/mcp-oda with no arguments prints help. The mcp subcommand starts the MCP server. All other operations are available as subcommands:

# Start the MCP server
npx github:gbbirkisson/mcp-oda mcp

# Products
npx github:gbbirkisson/mcp-oda product search melk
npx github:gbbirkisson/mcp-oda product search melk --page 2
npx github:gbbirkisson/mcp-oda product add 132

# Saved shopping lists
npx github:gbbirkisson/mcp-oda saved-list list
npx github:gbbirkisson/mcp-oda saved-list details 123
# Adds a product to a saved list; requires an explicit confirmation string
在 GitHub 查看完整 README

安装

npx -y github:gbbirkisson/mcp-oda mcp
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "oda": { "command": "npx", "args": ["-y", "github:gbbirkisson/mcp-oda", "mcp"] } } }