Back to Home
Angelxd0714 icon

mcp-catalog-server

by Angelxd0714

Overview

Provides a product catalog API, allowing AI agents to interact with product data (search, retrieve, create, update, delete) via the Model Context Protocol (MCP).

Installation

Run Command
sh -c "node dist/server.js & sleep 10 && npx @modelcontextprotocol/inspector node dist/server.js && wait"

Security Notes

The server hardcodes MongoDB credentials ("mongo:mongo") and connection details ("localhost:27018") in `src/config/db.ts`. Crucially, it does not use environment variables (e.g., `process.env.MONGO_URI`) for database connection, even though `docker-compose.yml` attempts to set `MONGO_URI`. This means the application, as written, will always try to connect with the hardcoded, weak credentials and specific host/port, regardless of environment variables, posing a severe vulnerability for any non-local deployment. The `docker-compose.yml` also has a mismatch in MongoDB port (`27017` in compose, `27018` hardcoded in code) and host (`db` in compose, `localhost` hardcoded in code), which would prevent the server from connecting to the database in the provided Docker setup without code modification.

Similar Servers

Stats

Interest Score0
Security Score2
Cost ClassMedium
Avg Tokens5000
Stars0
Forks0
Last Update2025-11-23

Tags

MCP ServerProduct CatalogE-commerce APIAI Agent ToolCRUD