python-mcp-server
Verified Safeby PinXian53
Overview
Demonstrates implementing Model Context Protocol (MCP) servers in Python using STDIO, SSE, and Streamable HTTP connection modes, providing weather tools via the National Weather Service API.
Installation
python weather.pySecurity Notes
No 'eval', obfuscation, or hardcoded secrets found. Uses 'httpx' for external API calls to 'api.weather.gov'. The general 'except Exception' block in 'make_nws_request' could be refined for more specific error handling, but no direct vulnerabilities are present in the provided code. Deployment for public access would require additional security considerations external to this code.
Similar Servers
fastchat-mcp
A Python client integrating Language Models (LLMs) with Model Context Protocol (MCP) servers, enabling natural language interaction with external tools, resources, and prompts via terminal or a FastAPI/WebSocket API.
mcp-server-ch5
This server demonstrates a basic Model Context Protocol (MCP) server exposing simple utility tools (greeting, arithmetic, server info) over standard I/O (stdio).
test-mcp-server
This server provides a simple HTTP API endpoint using FastMCP to expose a basic mathematical addition function.
mcp-server
Provides a command-line interface (CLI) based server built with a Python SDK, likely for a custom 'mcp' protocol or service.