Back to Home
porcupine-om icon

MCP-SERVER

Verified Safe

by 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

Run Command
python mcp_server/http_server.py

Security 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

Stats

Interest Score0
Security Score9
Cost ClassLow
Stars0
Forks0
Last Update2025-11-28

Tags

DatabaseProduct ManagementCalculatorAPISQLite