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
python -m src.serverEnvironment 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
mcp_server
This server template provides a foundation for building Model Context Protocol (MCP) servers to integrate with AI assistants and other MCP clients, offering tools for GitHub, Microsoft Graph, weather data, and JWT decoding.
mcp-weather-server
Provides a production-ready Model Context Protocol (MCP) server for integrating AI applications with external weather data via streamable HTTP transport.
KensMCP
A custom Model Context Protocol (MCP) server that provides a suite of developer utilities for AI assistants to perform real actions.
http_mcp
Implements a lightweight server for the Model Context Protocol (MCP) over HTTP and STDIO, allowing exposure of Python functions as discoverable and executable remote tools and prompts.