Back to Home
a607ernie icon

mcp-server-http

by a607ernie

Overview

This server acts as a Model Context Protocol (MCP) server, providing various mock tools (weather, employee info, user info, product search, news, calculator) via a Streamable HTTP API for potential use by AI models.

Installation

Run Command
python -m src.server

Environment Variables

  • PORT

Security Notes

CRITICAL: The `calculate` tool in `src/app/tools/products.py` uses `eval(expression)` directly on user-provided input. This allows arbitrary code execution and is an extreme security vulnerability. The code explicitly acknowledges this risk with a comment, but it is still present. Additionally, `enable_dns_rebinding_protection` is explicitly set to `False` in `src/settings.py`, which could be a security concern depending on the deployment scenario.

Similar Servers

Stats

Interest Score0
Security Score2
Cost ClassLow
Avg Tokens80
Stars0
Forks0
Last Update2026-01-17

Tags

MCPStreamable HTTPPythonDemoTooling