OurGroceries MCP

OurGroceries MCP

Unofficial MCP server to manage grocery lists in OurGroceries. Enables listing, adding, completing, removing, and moving items.

Category
访问服务器

README

<!-- mcp-name: io.github.OriginalByteMe/our-groceries-mcp -->

OurGroceries MCP

An unofficial Model Context Protocol (MCP) server for an OurGroceries account. It relies on an unofficial API client; upstream behavior, availability, and compatibility can change without notice. Review every result and verify important changes in OurGroceries.

[!WARNING] The Streamable HTTP server has no built-in application authentication. Never expose it directly to the internet: anyone who can reach it can use the configured grocery account. Bind it to localhost, or put it behind an authenticated, trusted tunnel or reverse proxy that enforces authentication before forwarding requests.

Prerequisites

  • An OurGroceries account and its credentials.
  • For a source install: uv and Python 3.12 or later.
  • For the container option: Docker.
  • An MCP client for stdio or Streamable HTTP.

The server reads OURGROCERIES_EMAIL and OURGROCERIES_PASSWORD from its process environment. .env is a local template, not an automatically loaded configuration file. Keep it private and never commit it.

Install and configure

Source with uv

git clone https://github.com/OriginalByteMe/our-groceries-mcp.git
cd our-groceries-mcp
cp .env.example .env
# Edit .env locally; do not commit it.
uv sync --locked

Set placeholders in .env only on your machine:

OURGROCERIES_EMAIL=""
OURGROCERIES_PASSWORD=""

For a shell-launched server, export the file first:

set -a
. ./.env
set +a

Docker

The image starts the Streamable HTTP transport. Build it and publish the port only on localhost:

docker build -t our-groceries-mcp .
docker run --rm --env-file .env -p 127.0.0.1:8000:8000 our-groceries-mcp

Its MCP endpoint is http://127.0.0.1:8000/mcp. This is an MCP endpoint, not a browser UI. If remote access is necessary, retain the localhost binding and use an authenticated trusted tunnel or reverse proxy; do not forward the port unauthenticated.

Install the agent skill

For agents that support Vercel Skills, install the repository skill:

npx skills add OriginalByteMe/our-groceries-mcp --skill our-groceries-mcp

This installs guidance, not credentials. Configure credentials locally in the MCP client or environment.

Connect an MCP client

Stdio (recommended)

After uv sync --locked, add this JSON to your client's MCP server configuration. Replace the absolute checkout path and placeholders locally; do not put real credentials in a shared config file.

{
  "mcpServers": {
    "our-groceries": {
      "command": "uv",
      "args": [
        "run",
        "--directory",
        "/absolute/path/to/our-groceries-mcp",
        "--locked",
        "our-groceries-mcp"
      ],
      "env": {
        "OURGROCERIES_EMAIL": "",
        "OURGROCERIES_PASSWORD": ""
      }
    }
  }
}

Stdio keeps the server local to the client process and is the safest default.

Streamable HTTP

For a source checkout, after exporting the environment variables, run:

uv run --locked our-groceries-mcp \
  --transport streamable-http \
  --host 127.0.0.1 \
  --port 8000

Connect an MCP client to http://127.0.0.1:8000/mcp. The endpoint has no HTTP authentication. Do not use 0.0.0.0 or a public host unless an authenticated trusted tunnel or reverse proxy protects every request.

Read-only smoke check

From a configured source checkout, this launches the server over stdio, initializes MCP, and calls the real read-only list_grocery_lists tool. It prints no grocery-list contents.

set -a
. ./.env
set +a
uv run --locked python - <<'PY'
import asyncio
import os

from mcp import ClientSession, StdioServerParameters
from mcp.client.stdio import stdio_client


async def main() -> None:
    server = StdioServerParameters(
        command="uv",
        args=["run", "--locked", "our-groceries-mcp"],
        env=dict(os.environ),
    )
    async with stdio_client(server) as (read, write):
        async with ClientSession(read, write) as session:
            await session.initialize()
            result = await session.call_tool("list_grocery_lists", {})
            if result.isError:
                raise RuntimeError("list_grocery_lists failed")
    print("Read-only MCP smoke check passed.")


asyncio.run(main())
PY

This contacts the live OurGroceries account. Do not run it with credentials you do not intend to use.

Tools and confirmation

List and item names are resolved by case-insensitive exact match. Resolve ambiguity with list_grocery_lists or get_items before a mutation.

Tool Parameters Behavior
list_grocery_lists none Read available lists.
get_items list_name Read items in one list.
add_item list_name, item, optional quantity, note Adds immediately; it has no confirmation flag. Ask before calling it.
complete_item list_name, item, optional confirm Returns a preview by default. Marking complete requires confirm: true.
remove_item list_name, item, optional confirm Returns a preview by default. Permanent removal requires confirm: true.
move_item source_list, destination_list, item, optional confirm Returns a preview by default. Moving requires confirm: true.

For complete_item, remove_item, and move_item, first call with the default confirm: false, show the preview, and only call again with confirm: true after explicit user approval. add_item is an immediate write, so obtain approval before the first call.

[!CAUTION] move_item is not atomic: it adds the item to the destination, then removes it from the source. If removal fails, the item can exist in both lists. Inspect both lists before retrying so a retry does not create another duplicate.

Troubleshooting

  • Credentials are not configured: pass both environment variables to the server process; .env alone is not loaded automatically.
  • Authentication failed or requests fail: verify the account credentials and network, then retry later. This is an unofficial integration and upstream API changes can break it.
  • List or item not found / ambiguous: use the read tools and provide one case-insensitive exact name; rename duplicate lists or items in OurGroceries if needed.
  • Cannot connect over HTTP: ensure the server is running, use /mcp (not /), and keep the host/port local unless an authenticated proxy or tunnel is in place.
  • A move reports partial failure: check both source and destination lists manually before deciding whether to remove, move, or retry the item.

Development and testing

Install development dependencies and run the offline test suite with the lockfile:

uv sync --locked --all-groups
uv run --locked pytest -m "not live"

Tests marked live require a deliberately configured live account and are excluded by default. Do not add credentials to test output, fixtures, or committed files.

Security

See SECURITY.md before enabling Streamable HTTP. In particular, direct unauthenticated internet exposure grants grocery-account access to callers.

推荐服务器

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 模型以安全和受控的方式获取实时的网络信息。

官方
精选