Sneaker Catalog MCP Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Sneaker Catalog MCP ServerFind 'Nike Air Max 90' and show available sizes."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Sneaker Catalog — Data Layer, MCP Server & Agent
A small e-commerce catalog for sneakers, built in three layers:
Data layer — Postgres + pgvector, with keyword and semantic search over products.
MCP server — exposes the catalog as tools (
search,get_product_details,get_stock) over the Model Context Protocol.Agent — a CLI chat agent that connects to the MCP server and answers questions about the catalog purely by calling those tools.
Architecture
┌─────────────┐ MCP (stdio) ┌──────────────┐ ┌────────────────┐
│ agent/cli │ ──────────────▶ │ mcp_server │ ─────▶ │ Postgres + │
│ (OpenAI llm) │ ◀────────────── │ (tool calls) │ ◀───── │ pgvector │
└─────────────┘ └──────────────┘ └────────────────┘db/— plain Python functions (search_products,get_product,check_stock,filter_products) that query Postgres directly.mcp_server/— wraps those functions as MCP tools using the official Python MCP SDK.agent/— a REPL that spawns the MCP server as a subprocess, converts its tool schemas to OpenAI's function-calling format, and runs the request → tool-call → result loop until the model has a final answer.
Search is hybrid: full-text keyword ranking (Postgres tsvector) blended with semantic similarity (OpenAI embeddings + pgvector cosine distance).
Related MCP server: ecommerce-catalog-agent
Prerequisites
Docker (recommended path), or Python 3.14 + a local Postgres with the
vectorextensionAn OpenAI API key with access to an embeddings model (
text-embedding-3-small) and a chat model (e.g.gpt-5-mini)
Quickstart (Docker)
make setup # cp .env.example .env — then edit it: POSTGRES_* / OPENAI_API_KEY
make up # starts Postgres, seeds the catalog
make logs # confirm "Seed complete." (Ctrl+C to stop tailing)
make agent # chat with the catalog
agent(andmcp-server) depend onseed, somake agentre-runs the seed step first on every invocation. Seeding checks whether the catalog is already populated and skips instantly if so, so this is fast and harmless.
Type a question at the > prompt. Type exit (or Ctrl+D) to quit.
Other services
make mcp-server # run the MCP server standalone, e.g. to attach MCP Inspector
make inspector # run MCP Inspector against the containerized serverThe MCP server uses stdio transport, so it only runs attached to a terminal — it's excluded from make up's default services (behind the tools compose profile) to avoid a crash loop when started detached.
Run make help to see all available commands, or make down to stop everything.
Quickstart (local, no Docker)
make venv # create venv + install requirements
make db-up # just the Postgres container
make seed-local # seed the catalog once
make agent-local # chat with the agentTo test the MCP server directly with Inspector:
source venv/bin/activate
npx @modelcontextprotocol/inspector python -m mcp_server.serverProject layout
db/
schema.sql products, variants, inventory, prices + pgvector/tsvector indexes
seed.py idempotent catalog seeding (embeds descriptions via OpenAI)
search.py hybrid keyword + semantic search
product.py get_product() — product + all variants
stock.py check_stock() — inventory by SKU
filters.py SQL filtering by category / price
mcp_server/
server.py MCP tool definitions (search, get_product_details, get_stock)
agent/
cli.py interactive chat agent (OpenAI function-calling + MCP client)
docker-compose.yml db, seed, mcp-server, agent services
Dockerfile shared image for seed / mcp-server / agent
Makefile `make help` for all available commands
agent-start.sh local (non-Docker) launcher for the agentEnvironment variables
Variable | Used by | Notes |
| db, all Python services | |
| db connections | defaults to |
| seeding (embeddings), search (query embeddings), agent (chat) |
See .env.example for a template.
This server cannot be deployed
Maintenance
Related MCP Connectors
AI-agent product catalog: search, lookup & purchase routing over verified merchant data.
Agent-native product catalog: 300M+ products, 150,000+ stores, deliver_to ranking.
AI shopping gateway for product search, inventory, carts, and merchant-hosted checkout.
Agentic commerce gateway: discovery, search, checkout across Shopify/Woo/Odoo/PrestaShop.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables AI agents to manage an in-memory product catalog with tools to add products, search by name or category, and retrieve product details by ID.-
- FlicenseNot gradedqualityDmaintenanceEnables conversational product search and validation for e-commerce catalogs, with hybrid retrieval and live price/stock checks from a database.-
- FlicenseNot gradedqualityCmaintenanceEnables identification of BSN SKU/material and real-time inventory availability through natural language queries and vector search.-
- AlicenseNot gradedqualityBmaintenanceExposes product catalog and semantic search as tools for an LLM agent, enabling natural language product recommendations based on intent rather than keyword matching.1MIT