Order MCP
Order MCP
Небольшой сквозной пример ассистента по заказам на базе Groq с использованием протокола Model Context Protocol (MCP).
Архитектура
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— пример REST-бэкенда для заказов по адресуhttp://localhost:3000.
Related MCP server: woocommerce-mcp-server
Обнаружение и вызов инструментов
После подключения к MCP-серверу клиент вызывает listTools(), чтобы обнаружить инструменты и их JSON-схемы. Он преобразует эти определения в функции-инструменты Groq и включает их в запрос к чату. Когда Groq возвращает вызов инструмента, клиент передаёт его имя и аргументы в callTool(). MCP-сервер обращается к REST-бэкенду, а клиент отправляет результат работы инструмента обратно в Groq для получения итогового ответа.
Установка и запуск
Требуется Node.js 20 или новее.
npm installУкажите API-ключ Groq через переменную окружения GROQ_API_KEY. Не помещайте ключ в исходный код и не коммитьте его в 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