Back to Home
daniel-iliesh icon

grocy-mcp

by daniel-iliesh

Overview

Provides an LLM-friendly API layer over the Grocy REST API, enabling structured tools for managing stock, shopping lists, recipes, chores, and tasks within a Home Assistant environment.

Installation

Run Command
uv run python server.py

Environment Variables

  • GROCY_API_URL
  • GROCY_API_KEY
  • HA_TOKEN

Security Notes

The server uses a fully open CORS policy (`allow_origins=["*"]`), which is explicitly mentioned as being for 'browser-based MCP Inspector'. While this might be acceptable for a strictly local and isolated development/testing environment, exposing a server with such a permissive CORS policy to any network, especially the internet, presents a significant security risk. It could enable Cross-Site Request Forgery (CSRF) or data exfiltration from other websites. The authentication mechanism using Home Assistant's ingress session tokens and Grocy API keys from environment variables is good practice for credential management, but the open CORS undermines overall security for broader deployment. Errors from the Grocy API are also logged in detail, which could potentially expose sensitive information if not handled securely in production logs.

Similar Servers

Stats

Interest Score0
Security Score4
Cost ClassMedium
Avg Tokens1000
Stars0
Forks0
Last Update2025-11-30

Tags

GrocyMCP ServerHome AssistantLLM IntegrationStock ManagementAPI Wrapper