Skip to main content
Glama
eneidyscastellano

smart-retail-mcp

🤖 Smart Retail MCP Server

基于 Model Context Protocol (MCP) 的工具服务器,为 AI 代理提供库存预测分析能力。

可用工具

工具

描述

get_current_stock

获取所有产品的当前库存以及供应商的交货时间

get_sales_velocity

计算过去 N 天内每个产品的日均销售速度

create_ai_recommendation

当库存将在下次交货前耗尽时创建补货警报

Related MCP server: Inventory Management AI MCP

架构

src/
├── index.ts   → Definición e implementación de herramientas MCP (stdio transport)
├── db.ts      → Pool de conexión a PostgreSQL
└── seed.ts    → Script para insertar datos de prueba

配置

环境变量 (.env)

DATABASE_URL=postgresql://usuario:password@localhost:5432/smart_retail

脚本

npm start      # Ejecutar el servidor MCP
npm run dev    # Desarrollo con hot-reload (tsx watch)
npm run seed   # Insertar datos de prueba
npm run build  # Compilar TypeScript

依赖

  • @modelcontextprotocol/sdk — MCP 官方 SDK

  • pg — PostgreSQL 客户端

  • dotenv — 环境变量

通信

服务器通过 stdio(stdin/stdout)进行通信。Next.js 前端使用 MCP SDK 的 StdioClientTransport 将其作为子进程启动。它不暴露 HTTP 端口。

许可证

ISC

F
license - not found
-
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

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

  • A
    license
    -
    quality
    C
    maintenance
    An MCP server for supply chain intelligence that enables conversational querying of eight operational KPIs and anomaly detection data through Claude. It allows users to analyze performance metrics like OTIF and inventory turnover while providing LLM-generated root-cause explanations.
    10
    MIT
  • F
    license
    A
    quality
    B
    maintenance
    MCP server for querying inventory items and stock levels via internal API, enabling AI chatbots to look up product codes and current quantities.
    2

View all related MCP servers

Related MCP Connectors

  • MCP server connecting AI agents to non-custodial staking data across 130+ networks.

  • MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.

  • Cloud-hosted MCP server for durable AI memory

View all MCP Connectors

Latest Blog Posts

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/eneidyscastellano/smart-retail-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server