MCP-SERVER
Verified Safeby porcupine-om
Overview
Provides a backend API for managing a product database (SQLite) and performing safe mathematical calculations, designed for integration with client applications like AI-powered chatbots.
Installation
python mcp_server/http_server.pySecurity Notes
The 'calculate' tool uses `ast.parse` and a custom `safe_eval` function with a whitelist of operators and node types, effectively preventing arbitrary code execution and mitigating the risk typically associated with `eval()`. Database interactions use parameterized queries (`?`) to prevent SQL injection vulnerabilities. Secrets (like API keys for external services) are correctly handled through environment variables (in the client bot code), not hardcoded. The HTTP server defaults to binding on `0.0.0.0`, which is common for local development but should be reconfigured for production environments to a specific interface or secured behind a proxy.
Similar Servers
MCP-PostgreSQL-Ops
The MCP server provides professional operations, monitoring, and management capabilities for PostgreSQL databases using natural language queries.
groceries-mcp
Orchestrates automated grocery shopping using an LLM agent that interacts with various grocery vendor APIs via Model Context Protocol (MCP) tools.
McpServer
A dual-mode server for supermarket inventory and sales management, supporting both Web API (REST) and console/MCP operation for integration with AI tools.
mcp-server-monmarche
Connects LLMs to the Mon Marché French grocery store for product search, cart management, and order interaction.