Kroger MCP
A FastMCP server that provides AI assistants like Claude with access to Kroger's grocery shopping functionality through the Model Context Protocol (MCP). This server enables AI assistants to find stores, search products, manage shopping carts, and ac
What is Kroger MCP?
Kroger MCP is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to fastmcp server that provides ai assistants like claude with access to kroger's grocery shopping functionality through the model context protocol (mcp). this server enables ai assistants to find stores...
A FastMCP server that provides AI assistants like Claude with access to Kroger's grocery shopping functionality through the Model Context Protocol (MCP). This server enables AI assistants to find stores, search products, manage shopping carts, and ac
This server falls under the Business Applications category on MCPgee, the world's largest MCP server directory with 33,000+ servers.
Features
- A FastMCP server that provides AI assistants like Claude wit
Use Cases
Maintainer
Works with
Installation
Manual Installation
npx kroger-mcp-serverConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
How to Set Up and Use Kroger MCP
Kroger MCP Server is a Python FastMCP server that gives AI assistants like Claude access to Kroger's full grocery shopping platform via the official Kroger API. It enables finding stores by zip code, searching products with pricing data, managing shopping carts, and completing purchases — all through natural-language requests. The server uses OAuth2 for user authentication, so cart and purchase operations act on behalf of a real Kroger account, making it a practical tool for AI-assisted grocery planning and shopping automation.
Prerequisites
- Python 3.10 or higher with uv or pip
- Free Kroger Developer API credentials (Client ID, Client Secret, Redirect URI) from https://developer.kroger.com
- A Kroger customer account (required for cart and purchase operations)
- An MCP-compatible client such as Claude Desktop
Register for Kroger API credentials
Visit https://developer.kroger.com/manage/apps/register, create a developer account, register a new application, and record your Client ID, Client Secret, and the Redirect URI you configure (typically http://localhost:8000/callback).
Install the package
Install kroger-mcp from PyPI using uv (recommended) or pip. macOS users must clone the repo and use Option 2 with a local uv run command.
# Linux / Windows — install from PyPI:
uv pip install kroger-mcp
# macOS — clone and run locally:
git clone https://github.com/CupOfOwls/kroger-mcp
cd kroger-mcp
uv syncConfigure environment variables
Create a .env file in the project root or pass credentials via the MCP client config. KROGER_USER_ZIP_CODE sets the default location for store searches.
KROGER_CLIENT_ID=your_client_id_here
KROGER_CLIENT_SECRET=your_client_secret_here
KROGER_REDIRECT_URI=http://localhost:8000/callback
KROGER_USER_ZIP_CODE=90274Add to Claude Desktop configuration
Add the kroger-mcp server entry to claude_desktop_config.json. Use uvx for PyPI-installed packages (Linux/Windows) or the local uv run form for macOS clones.
{
"mcpServers": {
"kroger": {
"command": "uvx",
"args": ["kroger-mcp"],
"env": {
"KROGER_CLIENT_ID": "your_client_id",
"KROGER_CLIENT_SECRET": "your_client_secret",
"KROGER_REDIRECT_URI": "http://localhost:8000/callback",
"KROGER_USER_ZIP_CODE": "10001"
}
}
}
}Authorize your Kroger account on first use
The first time you invoke a cart or purchase tool, the server will open a browser window asking you to log in to Kroger and authorize your registered developer app. This grants the server access to act on your behalf.
Kroger MCP Examples
Client configuration
claude_desktop_config.json for running kroger-mcp via uvx on Linux or Windows. macOS users should use the local uv run variant shown in the README.
{
"mcpServers": {
"kroger": {
"command": "uvx",
"args": ["kroger-mcp"],
"env": {
"KROGER_CLIENT_ID": "your_client_id",
"KROGER_CLIENT_SECRET": "your_client_secret",
"KROGER_REDIRECT_URI": "http://localhost:8000/callback",
"KROGER_USER_ZIP_CODE": "90274"
}
}
}
}Prompts to try
Natural-language shopping prompts that exercise the store search, product search, and cart management tools.
- "Find the closest Kroger store to zip code 90274."
- "Search for organic whole milk and show me the prices at my preferred store."
- "Add two gallons of 2% milk and a dozen eggs to my cart."
- "Show me what's currently in my cart."
- "Find a recipe for chicken stir fry and add all the ingredients to my cart."Troubleshooting Kroger MCP
macOS users get an error when using the uvx installation method
The README explicitly states that macOS users must use Option 2: clone the repository locally and configure with 'uv run' pointing to the cloned directory. The uvx method is not supported on macOS.
OAuth authorization page never opens, or the callback returns a redirect error
Ensure KROGER_REDIRECT_URI in your .env or MCP config exactly matches the redirect URI registered in your Kroger Developer Portal app settings, including the http/https scheme and port number.
Product searches return empty results
Confirm KROGER_USER_ZIP_CODE is set to a valid US zip code served by Kroger. Use the search_locations tool first to verify stores exist in your area before searching products.
Frequently Asked Questions about Kroger MCP
What is Kroger MCP?
Kroger MCP is a Model Context Protocol (MCP) server that fastmcp server that provides ai assistants like claude with access to kroger's grocery shopping functionality through the model context protocol (mcp). this server enables ai assistants to find stores, search products, manage shopping carts, and ac It connects AI assistants to external tools and data sources through a standardized interface.
How do I install Kroger MCP?
Follow the installation instructions on the Kroger MCP GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.
Which AI clients work with Kroger MCP?
Kroger MCP works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.
Is Kroger MCP free to use?
Yes, Kroger MCP is open source and available under the MIT License license. You can use it freely in both personal and commercial projects.
Kroger MCP Alternatives — Similar Business Applications Servers
Looking for alternatives to Kroger MCP? 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 Kroger MCP 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 Kroger MCP?
Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.