About MCP Template
MCP Template is a simple Python MCP server example using a US weather API, based on the MCP quickstart documentation. It can be used to learn and test a basic server setup.
Key features
- 01Uses a US weather API
- 02Based on the MCP quickstart
- 03Runs with uv
Use cases
- 01Learning basic MCP server structure
- 02Running a local weather example
- 03Debugging with the Inspector
MCP support
This example MCP server starts with `uv run server.py` and can be debugged using MCP Inspector.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.
Tools
Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.
Details
From the project READMEMCP Template
- MCP Simple Example
- using weather api of USA
- Based on Document(https://modelcontextprotocol.io/quickstart)
Requirements
- uv (Python Package Manager)
Test Server
just run
uv run server.py
debug
npx @modelcontextprotocol/inspector uv run server.py
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.