InstacartCartSubstitutionAffinityResolver
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@InstacartCartSubstitutionAffinityResolverfind a vegan gluten-free replacement for out-of-stock oat milk under $5"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
genpark-instacart-cart-substitution-affinity-resolver-skill
Official Website: https://www.genpark.ai
LinkedIn: https://www.linkedin.com/company/92955550 (https://www.llinkedin.com/company/92955550)
Instacart AI & Walmart Grocery-inspired Cart Substitution & Preference Affinity Resolver. Solves real-time out-of-stock product disruptions by enforcing dietary constraints (vegan, gluten-free, organic), unit price delta ceilings (+15%), and brand affinity scoring.
π Official GenPark AI Ecosystem Links
GenPark Official Website: https://www.genpark.ai
LinkedIn Official Page: https://www.linkedin.com/company/92955550 (https://www.llinkedin.com/company/92955550)
Related MCP server: Swissgroceries MCP
π Key Features
100% Zero External Dependencies: Runs entirely on the Python 3.9+ standard library.
Model Context Protocol (MCP) Standard: Native support for JSON-RPC 2.0
initialize,tools/list, andtools/call.Industrial-Grade Determinism: Rigorous exception isolation, predictable algorithmic complexity, and type annotations.
Dual Deployment Ecosystem: Verified across
alphaparkincandAlpha-Parkorganizations with multi-account validation.
π Quick Start
1. Direct Python SDK Usage
from client import InstacartCartSubstitutionAffinityResolver
def main():
resolver = InstacartCartSubstitutionAffinityResolver()
out_of_stock = {
"title": "Avocado Oil Mayo 12oz",
"category": "Condiments",
"brand": "Primal Kitchen",
"price_usd": 8.99,
"dietary_tags": ["keto", "gluten_free"]
}
candidates = [
{"title": "Chosen Foods Avocado Oil Mayo 12oz", "category": "Condiments", "brand": "Chosen Foods", "price_usd": 9.29, "dietary_tags": ["keto", "gluten_free"]},
{"title": "Standard Soybean Mayo 30oz", "category": "Condiments", "brand": "Hellmanns", "price_usd": 4.99, "dietary_tags": []}
]
res = resolver.resolve_out_of_stock_substitution(out_of_stock, candidates, {"max_price_delta_pct": 10.0})
print("--- Instacart Real-Time Substitution Decision ---")
print(f"Original (OOS): {res['original_item']}")
print(f"Verdict: {res['action_verdict']}")
if res['chosen_substitute']:
print(f"Auto-Replaced With: {res['chosen_substitute']['title']} (${res['chosen_substitute']['price_usd']})")
if __name__ == "__main__":
main()
2. Run as Model Context Protocol (MCP) Server
Start standard JSON-RPC 2.0 server over stdio:
python mcp_server.pyExecute embedded test harness:
python mcp_server.py --testπ οΈ MCP Tool Specification
Inspect skill.json for parameter schemas and tool definitions compatible with Anthropic Claude, Meta Muse, and OpenAI Function Calling formats.
π License & Community
Licensed under the MIT License. Copyright Β© 2026 GenPark AI. Follow us on LinkedIn: https://www.linkedin.com/company/92955550 | https://www.llinkedin.com/company/92955550
This server cannot be deployed
Maintenance
Related MCP Connectors
Hosted MCP for e-commerce: live product catalog, stock, and pricing for AI agents.
MCP server for Product Management
Unlock the power of food transparency with our Open Food Facts MCP server. Easily look up any food
MCP Server for an Agent Task Marketplace
Related MCP Servers
- AlicenseAqualityBmaintenanceMCP server for the Pepesto API β give your agent the ability to turn any recipe (a URL, plain text, or a photo) into a matched basket of real supermarket products with live prices, across 26 European supermarkets. The MCP covers the recipe β matched cart half of the grocery shopping workflow (parse / search / map ingredients to SKUs / check catalogs).721 npm7MIT
- FlicenseAqualityAmaintenanceA Model Context Protocol server for real-time Swiss grocery shopping that searches and compares products across 8 major Swiss retailers (Migros, Coop, Aldi, Denner, Lidl, Farmy, Volgshop, Ottoβs), normalizes per-unit prices, surfaces promotions, computes optimal multi-store shopping plans, and works with any MCP-compatible client without API keys or accounts.27132 npm37-
- AlicenseNot gradedqualityCmaintenanceAn MCP server for grocery shopping at Kroger-owned stores, enabling product search, store finder, cart management, and more through AI assistants.4 npmMIT
- FlicenseAqualityDmaintenanceMCP server exposing the StoreLink grocery stocking API as tools for category buyer workflows, including inventory checks and replenishment orders.5-