Back to Home
Mainakcris7 icon

mcp-python-demo

by Mainakcris7

Overview

Provides an MCP (Micro-Agent Communication Protocol) server exposing tools for basic arithmetic and fetching real-time, formatted weather information from external APIs.

Installation

Run Command
python servers/basics.py

Environment Variables

  • GEOCODING_API_KEY
  • OPEN_WEATHER_API_KEY

Security Notes

The use of 'requests.get(..., verify=False)' in the 'get_weather_data' function disables SSL certificate verification, making the application vulnerable to Man-in-the-Middle (MITM) attacks. While API keys are loaded from environment variables (good practice), this severe vulnerability significantly reduces the security posture. No other obvious critical flaws like 'eval' or hardcoded secrets were found.

Similar Servers

Stats

Interest Score0
Security Score4
Cost ClassMedium
Avg Tokens50
Stars0
Forks0
Last Update2025-11-25

Tags

MCPPythonAPI IntegrationWeatherTools