Order MCP
Order MCP
Model Context Protocol(MCP)を使用し、Groq を利用する注文アシスタントの小さなエンドツーエンドの例です。
アーキテクチャ
Groq LLM -> MCP client -> MCP server -> REST order backendsrc/ai-client.tsはユーザーの質問を Groq に送信し、MCP クライアントとして機能します。src/index.tsは MCP サーバーであり、get_order_statusツールを stdio 経由で公開します。src/backend.tsは、http://localhost:3000で動作するサンプルの REST 注文バックエンドです。
Related MCP server: woocommerce-mcp-server
ツールの発見と呼び出し
MCP サーバーへの接続後、クライアントは listTools() を呼び出して、ツールとその JSON スキーマを発見します。クライアントはそれらの定義を Groq の関数ツールに変換し、チャットリクエストに含めます。Groq がツール呼び出しを返すと、クライアントはその名前と引数を callTool() に渡します。MCP サーバーが REST バックエンドを呼び出し、クライアントは最終的な応答のためにツールの結果を Groq に送り返します。
インストールと実行
Node.js 20 以降が必要です。
npm installGROQ_API_KEY 環境変数で Groq API キーを指定してください。キーをソースコードに記述したり、Git にコミットしたりしないでください。
REST バックエンドを一方のターミナルで起動します:
npm run backend次に、別のターミナルでクライアントを実行します。クライアントは自動的に起動し、MCP サーバーに接続します:
PowerShell:
$env:GROQ_API_KEY = "your-key"
npm run clientmacOS/Linux:
export GROQ_API_KEY="your-key"
npm run clientThis 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 Connectors
Hosted storefront backend for AI agents: products, cart, Stripe + PayPal, delivery, order tracking.
Real-time order tracking for Shopify merchants: look up, list, and refresh shipments.
Turn any task into the right API calls: discover, evaluate, and integrate public APIs.
Run your restaurant from an AI client: orders, menu, reports, refunds, payouts and staff.
Related MCP Servers
- FlicenseDqualityDmaintenanceEnables interaction with a restaurant FastAPI backend for menu management, order processing, customer management, and analytics through natural language.241
- AlicenseDqualityDmaintenanceProvides tools for AI assistants to interact with a WooCommerce store, enabling fetching recent orders with optional filtering and retrieving detailed information about specific orders by ID.24MIT
- FlicenseNot gradedqualityDmaintenanceEnables AI agents to verify orders in an ERP system through Supabase API, checking order existence and retrieving details.
- AlicenseAqualityBmaintenanceEnables investigating delayed e-commerce orders by searching orders, retrieving order context, diagnosing delay causes, and recommending resolutions through natural language.4MIT
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/Shreerang4/order-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server