MCP Learning
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MCP LearningWhat's the weather in Tokyo?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MCP Learning
A simple Python MCP (Model Context Protocol) server built with FastMCP, created while learning how MCP servers work.
What this project does
This server exposes two tools that can be called through an MCP client (like the MCP Inspector):
get_weather(city)— returns a sample weather response for a given cityadd_numbers(a, b)— returns the sum of two numbers
Related MCP server: Banana
Tech used
Python
FastMCP (
mcp.server.fastmcp)MCP Inspector for testing
How to run
Install dependencies:
pip install "mcp[cli]"Run the server directly:
py server.pyOr launch it through the Inspector (recommended for testing):
npx @modelcontextprotocol/inspector py server.pyIn the Inspector UI, click Connect, go to the Tools tab, click List Tools, and try out
get_weatheroradd_numbers.
What I learned
Setting up a basic MCP server using FastMCP
Fixing a Windows PATH issue (
pythonnot recognized → usepyinstead)Connecting a Node.js-based Inspector to a Python server as a subprocess
Debugging simple typos in tool decorators (
@mcp.tool())
Next steps
Add more tools
Explore MCP resources and prompts
Connect this server to a real MCP client
This server cannot be deployed
Maintenance
Related MCP Connectors
An MCP server for weather information by @kulybaba
An MCP server for weather information by @kulybaba
Related MCP Servers
- AlicenseNot gradedqualityFmaintenanceA simple minimal weather mcp server :)24MIT
- FlicenseBqualityDmaintenanceA simple MCP server that provides tools for adding numbers, creating text files, and logging entries.31-
- FlicenseNot gradedqualityDmaintenanceA lightweight MCP server providing tools for adding integers, getting current time, and fetching weather forecasts via wttr.in.-
- AlicenseNot gradedqualityCmaintenanceCustom MCP server demonstrating the Model Context Protocol with tools for arithmetic calculation and weather lookup.MIT