Back to Home
irobust icon

MCP-Workshop

Verified Safe

by irobust

Overview

Implements a basic Model Context Protocol (MCP) server using FastAPI to provide a discoverable and executable 'get_weather' tool for LLMs.

Installation

Run Command
uvicorn 01-Validate-MCP-Data.main:app --host 0.0.0.0 --port 8000

Security Notes

The server dynamically calls tool functions using `**arguments` from the request. In this specific implementation, the `tool_registry` is fixed to a single, simple `get_weather` function which is not exploitable. However, if the server were extended with more complex or dynamically loaded tools, careful validation of input and tool logic would be critical to prevent arbitrary code execution or injection vulnerabilities. No hardcoded secrets or direct shell commands are present.

Similar Servers

Stats

Interest Score0
Security Score8
Cost ClassLow
Avg Tokens50
Stars0
Forks0
Last Update2025-11-30

Tags

Model Context ProtocolFastAPIAPIWeather ToolLLM Integration