InstacartCartSubstitutionAffinityResolver
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
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: genpark-commerce-dynamic-bundling-recommender-skill
🌟 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
Related MCP Connectors
AI shopping gateway for product search, inventory, carts, and merchant-hosted checkout.
Live product discovery for AI shopping agents, with shopper-approved retailer handoff.
Search live store shelves, verify delivery windows, and run instant AI agent checkouts.
Co-purchase intelligence and merchant ops tools for AI shopping, ecommerce, and B2B agents
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceEnables real-time multi-merchant price comparison, coupon stacking, delivery-speed trade-offs, stock volatility tracking, and optimal purchase routing for cross-platform commerce inventory arbitrage.7MIT
- AlicenseNot gradedqualityBmaintenanceEnables agents to analyze cart items and intent, compute product complementary affinity scores, respect merchant margin constraints, and synthesize personalized discount bundles for cross-sell recommendations.7MIT
- AlicenseNot gradedqualityBmaintenanceEnables analysis of cart items and shopper intent, computation of complementary product affinity scores, enforcement of merchant margin constraints, and synthesis of personalized discount bundles and cross-sell recommendations via MCP.7MIT
- FlicenseNot gradedqualityBmaintenanceEnables autonomous tracking of household food consumption and expiration, applying dietary filters such as organic, gluten-free, and low-sugar to generate optimized grocery replenishment baskets within a specified budget.7-