Agentic Swiggy MCP Server
エージェント型 Swiggy MCP サーバー
フードデリバリーアシスタント(Swiggy など)を模した、高度にモジュール化された非決定的なエージェント型 Model Context Protocol (MCP) サーバーです。LangGraph、FastMCP、ChromaDB で構築されており、インテリジェントな ReAct エージェントを活用して、タスクの動的なルーティング、質問への回答、レコメンデーションの提供、そして Human-in-the-Loop (HITL) ワークフローによる安全なフード注文の実行を行います。
主な機能
非決定的 ReAct エージェント: エージェントはハードコードされたワークフローなしに、会話コンテキストに基づいて使用するツールを動的に決定します。
Human-In-The-Loop (HITL): 注文処理は安全にインターセプトされます。エージェントは実際の取引を確定する前に、人間の承認を求めて実行を一時停止します。
マルチフォーマット RAG インジェスト:
.json、.csv、.md、.txt、.pdfファイルをユニバーサルに解析し、ローカルの ChromaDB ベクターストアに取り込む、分離されたインジェストパイプラインです。コンテキストに基づくレコメンデーション: ユーザーの現在の地理的位置と時刻に基づいて動的に評価された、上位 3 件のフードアイテムを推奨します。
Model Context Protocol (MCP): エージェントの機能を標準化された MCP ツールとして公開し、最新の LLM クライアント(Claude Desktop など)から検出・利用可能にします。
100% ローカル埋め込み: コスト不要でオフラインのベクター埋め込みを実現する、HuggingFace
sentence-transformersの組み込みサポートを提供します。
Related MCP server: Food402
プロジェクト構造
swiggy_agent/
├── data/
│ ├── restaurants_menu.json # Restaurant catalog & timings
│ ├── order_history.json # Past & active order records
│ ├── food_reviews.csv # Customer reviews & sentiment
│ └── platform_policies.md # Packaging & late-night guidelines
├── src/
│ ├── ingestion.py # Multi-format universal data ingestor
│ ├── tools/
│ │ ├── __init__.py
│ │ ├── order_tool.py # Tool 1: Order Food (HITL sensitive)
│ │ ├── recommendation_tool.py # Tool 2: Geo/Time Recommendations
│ │ ├── history_tool.py # Tool 3: Order tracking & history
│ │ └── rag_tool.py # Tool 4: Review retrieval RAG
│ ├── agent.py # Non-deterministic LangGraph agent + HITL
│ └── mcp_server.py # FastMCP Server exposing tools
├── requirements.txt
├── .env # Environment variables (API Keys)
└── main.py # Entry point for interactive CLI testingセットアップとインストール
1. 依存関係のインストール
Python 3.10 以上がインストールされていることを確認してください。必要なパッケージをインストールします:
pip install -r requirements.txt
# Alternatively, install manually:
pip install mcp langchain langchain-openai langchain-huggingface langchain-chroma langgraph chromadb sentence-transformers python-dotenv2. 環境変数の設定
ルートディレクトリに .env ファイルを作成し、LLM API キー(例: Google Gemini、OpenAI、Groq)を追加します:
# Example using Google Gemini (Recommended for free tier)
GEMINI_API_KEY=your_api_key_here
# Example using OpenAI (If applicable)
# OPENAI_API_KEY=your_api_key_here3. ベクターデータベースの初期化
エージェントを実行する前に、合成データを取り込んでローカルの ChromaDB ベクターストアを構築します:
python src/ingestion.py使用方法
オプション 1: インタラクティブエージェントデモの実行
ターミナルで LangGraph エージェントと Human-in-the-Loop 注文ワークフローをテストします:
python main.py*次のようなプロンプトを試してください: 「こんにちは、私は Koramangala にいる USR_500 です。時刻は 21:00 です。この辺りで何かおいしいものはありますか? 人々の意見をレビューで確認して、評価が良ければ 1 人前を 5th Block に注文してください。」
オプション 2: MCP サーバーの起動
ツールを MCP 互換クライアント(Claude Desktop や外部アプリなど)に公開するには:
python src/mcp_server.pyツールリファレンス
ツール名 | 説明 | 出力 |
| フードの注文を行います。ユーザーからの | JSON 確認 |
|
| JSON 配列 |
| 特定のユーザー ID のアクティブな注文データと過去の注文データを取得します。 | JSON 辞書 |
| レビュー、メニュー、プラットフォームポリシーに対して RAG セマンティック検索を実行します。 | Markdown テキスト |
ライセンス
MIT ライセンス
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceA proof-of-concept Model Context Protocol server that enables LLM applications to interact with Uber Eats, allowing AI agents to browse and order food through natural language.235
- AlicenseNot gradedqualityDmaintenanceAn MCP server that enables AI assistants to order food from TGO Yemek by browsing restaurants, managing carts, and completing checkouts. It allows users to handle address selection and order tracking directly through natural language interactions.3714MIT
- AlicenseNot gradedqualityCmaintenanceAn MCP server that enables AI agents to discover restaurants and place food delivery orders on Uber Eats and Thuisbezorgd (Just Eat Takeaway). It provides tools for restaurant discovery and order management through normalized platform APIs.22MIT
- AlicenseAqualityDmaintenanceMCP server for Chipotle — let AI agents find locations, browse menus, build custom orders, and checkout for pickup or delivery.41850MIT
Related MCP Connectors
MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.
MCP server providing access to the Scorecard API to evaluate and optimize LLM systems.
MCP server for AI dialogue using various LLM models via AceDataCloud
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Ichibu013/Swiggy-Agentic-MCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server