MCP Project Setup is an MCP server starter template that provides boilerplate configurations and sample implementations for building Model Context Protocol services with Python and FastMCP. The repository connects to external APIs like OpenWeatherMap and provides ready-to-run examples, including a greeting tool, resource handlers, and a live weather query tool. Developers and AI engineers use this project to learn MCP architecture, test server components using the MCP inspector, and connect custom local tools directly to LLM command-line interfaces like the Gemini CLI. By providing predefined Python scripts for tools and resources alongside environment configuration files, the project eliminates repetitive boilerplate setup. Developers can run development servers locally, test function endpoints via command-line arguments, and integrate standard stdio-based MCP servers into external AI clients by configuring JSON settings with executable paths and necessary environment variables.
Category: Other & General Purpose
Tags: boilerplate, starter, template, weather
bash conda create -n mcp python=3.12 -y curl -LsSf https://astral.sh/uv/install.sh | sh conda run -n mcp uv pip install fastmcp 2. Configure your OpenWeatherMap API key in a .env file: env OPENWEATHER_API_KEY=YOUR_API_KEY_HERE 3. To integrate with Gemini CLI, locate ~/.gemini/settings.json (or %APPDATA%\gemini\settings.json on Windows) and add the server configuration under mcpServers: json { "mcpServers": { "weather_server": { "command": "uv", "args": ["run", "/absolute/path/to/mcp/mcp_weather.py"], "cwd": "/absolute/path/to/mcp", "timeout": 10000 } } }Part of MCP Servers
You install the project by cloning the repository, creating a Python 3.12 Conda environment, and installing the fastmcp package using uv pip install fastmcp. You also need to configure any necessary environment variables like OPENWEATHER_API_KEY in a local .env file.
It serves as a boilerplate project providing working examples of FastMCP servers. It includes a basic Hello World tool, an MCP resource definition script, and an OpenWeatherMap server that delivers real-time weather data to compatible language model clients.
The project includes explicit configuration instructions for integrating with Google Gemini CLI via its settings.json configuration file. Because it exposes standard MCP servers through FastMCP, it can also connect to other stdio-compatible MCP clients and the FastMCP developer inspector.
You can inspect and test tools visually by launching the FastMCP inspector with fastmcp dev mcp_hello.py:mcp, or run automated script tests directly from the command line using uv run mcp_weather.py --test.