Grocy
This Model Context Protocol (MCP) server provides a complete integration with the Grocy API, allowing AI assistants to manage your household inventory, shopping lists, meal planning, chores, and more.
What is Grocy?
Grocy is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to this model context protocol (mcp) server provides a complete integration with the grocy api, allowing ai assistants to manage your household inventory, shopping lists, meal planning, chores, and more.
This Model Context Protocol (MCP) server provides a complete integration with the Grocy API, allowing AI assistants to manage your household inventory, shopping lists, meal planning, chores, and more.
This server falls under the Business Applications category on MCPgee, the world's largest MCP server directory with 33,000+ servers.
Features
- This Model Context Protocol (MCP) server provides a complete
Use Cases
Maintainer
Works with
Installation
Manual Installation
npx mcp-grocy-apiConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
How to Set Up and Use Grocy
The Grocy MCP server provides a complete integration with the Grocy self-hosted household management API, enabling AI assistants to manage inventory, shopping lists, meal planning, chores, and more. It connects directly to your Grocy instance using your personal API key, making it possible to query stock levels, add items, and automate home management tasks from an AI chat interface. This is especially useful for households running Grocy who want to interact with their data through natural language rather than the Grocy web UI.
Prerequisites
- Node.js 18 or later installed
- A running Grocy instance (self-hosted) with a valid API key
- The Grocy base URL accessible from your machine
- An MCP-compatible client such as Claude Desktop
Clone the repository
Clone the mcp-grocy-api repository from GitHub and navigate into the project directory.
git clone -b main https://github.com/saya6k/mcp-grocy-api.git
cd mcp-grocy-apiInstall dependencies and build
Install Node.js dependencies and compile the TypeScript source.
npm install
npm run buildLocate your Grocy API key
In your Grocy web interface, go to Settings → Manage API keys to generate or copy your API key. Note the base URL of your Grocy instance (e.g., http://192.168.1.100:9283 or https://grocy.yourdomain.com).
Set environment variables
Export the required environment variables before running the server. GROCY_BASE_URL is your Grocy instance URL and GROCY_APIKEY_VALUE is your API key. Optionally set GROCY_ENABLE_SSL_VERIFY to false if using self-signed certificates.
export GROCY_BASE_URL=http://your-grocy-instance
export GROCY_APIKEY_VALUE=your_api_keyConfigure your MCP client
Add the server to your Claude Desktop (or other MCP client) configuration file with the environment variables set inline.
{
"mcpServers": {
"grocy": {
"command": "npx",
"args": ["cross-env", "mcp-grocy-api"],
"env": {
"GROCY_BASE_URL": "http://your-grocy-instance",
"GROCY_APIKEY_VALUE": "your_api_key",
"GROCY_ENABLE_SSL_VERIFY": "true",
"REST_RESPONSE_SIZE_LIMIT": "10240"
}
}
}
}Verify the connection
Restart your MCP client and ask a question that touches Grocy data to verify connectivity, such as asking about current stock levels.
Grocy Examples
Client configuration
Example claude_desktop_config.json entry for the Grocy MCP server running with inline environment variables.
{
"mcpServers": {
"grocy": {
"command": "npx",
"args": ["cross-env", "mcp-grocy-api"],
"env": {
"GROCY_BASE_URL": "http://192.168.1.100:9283",
"GROCY_APIKEY_VALUE": "your_grocy_api_key_here",
"GROCY_ENABLE_SSL_VERIFY": "true",
"REST_RESPONSE_SIZE_LIMIT": "10240"
}
}
}
}Prompts to try
Example natural language prompts to use with Claude after connecting the Grocy MCP server.
- "What products are currently low in stock in my Grocy inventory?"
- "Add 2 liters of whole milk to my shopping list."
- "What meals are planned for this week in my meal plan?"
- "Which chores are overdue in Grocy?"
- "Show me all items expiring in the next 7 days."Troubleshooting Grocy
Connection refused or timeout when reaching Grocy
Verify GROCY_BASE_URL is correct and reachable from your machine. If Grocy runs on a local network IP, make sure there is no firewall blocking the port. Test with curl: curl -H 'GROCY-API-KEY: your_key' http://your-grocy-instance/api/system/info
SSL certificate verification errors
If your Grocy instance uses a self-signed certificate, set GROCY_ENABLE_SSL_VERIFY=false in the environment configuration. Only do this on trusted local networks.
Response truncated or incomplete data returned
The default REST_RESPONSE_SIZE_LIMIT is 10KB. If Grocy returns large datasets (many products, long history), increase this value, e.g., REST_RESPONSE_SIZE_LIMIT=51200 for 50KB.
Frequently Asked Questions about Grocy
What is Grocy?
Grocy is a Model Context Protocol (MCP) server that this model context protocol (mcp) server provides a complete integration with the grocy api, allowing ai assistants to manage your household inventory, shopping lists, meal planning, chores, and more. It connects AI assistants to external tools and data sources through a standardized interface.
How do I install Grocy?
Follow the installation instructions on the Grocy GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.
Which AI clients work with Grocy?
Grocy works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.
Is Grocy free to use?
Yes, Grocy is open source and available under the MIT license. You can use it freely in both personal and commercial projects.
Grocy Alternatives — Similar Business Applications Servers
Looking for alternatives to Grocy? Here are other popular business applications servers you can use with Claude, Cursor, and VS Code.
n8n
★ 189.1kA comprehensive MCP server that provides full control over n8n automation workflows through natural language. It offers 43 tools for managing workflows, executions, credentials, and data tables, with safety features like write-mode protection and dou
LobeHub
★ 77.5k🤯 LobeHub is your Chief Agent Operator, organizing your agents into 7×24 operations by hiring, scheduling, and reporting on your entire AI team.
Jeecgboot
★ 46.4kAI 低代码平台,「低代码 + 零代码」双模式驱动:低代码一键生成前后端代码,零代码 5 分钟搭建系统,AI Skills 一句话画流程、设计表单、生成整套系统。内置 AI聊天、知识库、流程编排、MCP插件等,兼容主流大模型。引领「AI 生成 → 在线配置 → 代码生成 → 手工合并->AI修改」开发模式,消除 Java 项目 80% 的重复工作,提效而不失灵活。
CowAgent
★ 44.7kCowAgent (chatgpt-on-wechat) 是基于大模型的超级AI助理,能主动思考和任务规划、访问操作系统和外部资源、创造和执行Skills、通过长期记忆和知识库不断成长,比OpenClaw更轻量和便捷。同时支持微信、飞书、钉钉、企微、QQ、公众号、网页等接入,可选择DeepSeek/OpenAI/Claude/Gemini/ MiniMax/Qwen/GLM/LinkAI,能处理文本、语音、图片和文件,可快速搭建个人AI助理和企业数字员工。
Minds Platform
★ 39.2kPlatform dedicated to building an open foundation for applied Artificial Intelligence, designed for people seeking production-ready AI systems they can truly control, extend and deploy anywhere.
Astrbot
★ 32.8kAI Agent Assistant & development framework that integrates lots of IM platforms, LLMs, plugins and AI feature, and can be your openclaw alternative. ✨
Browse More Business Applications MCP Servers
Explore all business applications servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.
Set Up Grocy in Your Editor
Choose your AI client for step-by-step setup instructions.
Quick Config Preview
Add this to your claude_desktop_config.json or .cursor/mcp.json
Ready to use Grocy?
Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.