About
This is my session on mastering MCP Server
README
This repository demonstrates a minimal Model Context Protocol (MCP) server that exposes a single weather tool alongside two client entry points:
- A configuration JSON (
src/weather-mcp-server.json) that can be consumed by MCP-aware hosts. - A LangChain-based Python client (
src/langchain_weather_client.py) that invokes the MCP tool via OpenAI function calling.
Setup
Create and activate a virtual environment (optional but recommended).
Install the project dependencies:
pip install -e .Update the
.envfile with a validOPENAI_API_KEYfor the LangChain example.
Running the MCP Server
The server exposes a single tool named get_weather_by_city that always returns the same weather string. Launch it with:
python src/weather-mcp-server.py
The server communicates over stdio and is ready to be consumed by any MCP-compatible client.
Using the Sample LangChain Client
With the server available on stdio, run:
python src/langchain_weather_client.py
The script loads the OpenAI API key from .env, asks “I'm going to paris. do I need a raincoat or a winter coat?”, and lets the agent decide when to call the MCP tool before composing a final answer.
JSON Configuration
src/weather-mcp-server.json provides a simple MCP host configuration snippet that launches the server using stdio. Point your MCP-compatible client to this file (or replicate its content) to register the tool.
Installing Mastering
This server has no published package — it is built from source. Open the repository and follow its README.
▸ github.com/Dev-AI-Bootcamp/Mastering-MCP-ServerFAQ
Is Mastering MCP free?
Yes, Mastering MCP is free — one-click install via Unyly at no cost.
Does Mastering need an API key?
No, Mastering runs without API keys or environment variables.
Is Mastering hosted or self-hosted?
Self-hosted: the server runs locally on your machine via the install command above.
How do I install Mastering in Claude Desktop, Claude Code or Cursor?
Open Mastering on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
Related MCPs
GitHub
PRs, issues, code search, CI status
by GitHubFilesystem
Secure file operations with configurable access controls.
Memory
Knowledge graph-based persistent memory system.
Template MCP Server
A CLI tool to create a new Model Context Protocol server project with TypeScript support, dual transport options, and an extensible structure
by mcpdotdirectCompare Mastering with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All development MCPs
