Order MCP
Order MCP
Ein kleines End-to-End-Beispiel für einen Groq-gestützten Bestellassistenten, der das Model Context Protocol (MCP) verwendet.
Architektur
Groq LLM -> MCP client -> MCP server -> REST order backendsrc/ai-client.tssendet die Benutzerfrage an Groq und fungiert als MCP-Client.src/index.tsist der MCP-Server und stellt dasget_order_status-Tool über stdio bereit.src/backend.tsist ein Beispiel-REST-Backend für Bestellungen unterhttp://localhost:3000.
Related MCP server: woocommerce-mcp-server
Tool-Erkennung und -Aufruf
Nach der Verbindung mit dem MCP-Server ruft der Client listTools() auf, um die Tools und ihre JSON-Schemas zu ermitteln. Er wandelt diese Definitionen in Groq-Funktionstools um und nimmt sie in die Chat-Anfrage auf. Wenn Groq einen Tool-Aufruf zurückgibt, übergibt der Client dessen Namen und Argumente an callTool(). Der MCP-Server ruft das REST-Backend auf, und der Client sendet das Tool-Ergebnis für die endgültige Antwort an Groq zurück.
Installation und Ausführung
Erfordert Node.js 20 oder höher.
npm installGeben Sie einen Groq-API-Schlüssel über die Umgebungsvariable GROQ_API_KEY an. Fügen Sie den Schlüssel nicht in den Quellcode ein und committen Sie ihn nicht in Git.
Starten Sie das REST-Backend in einem Terminal:
npm run backendFühren Sie dann den Client in einem anderen Terminal aus. Der Client startet und verbindet sich automatisch mit dem MCP-Server:
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