eternachen/mcp-playground
Built by Metorial, the integration platform for agentic AI.
eternachen/mcp-playground
Server Summary
Fetch weather data for any city
Display formatted weather information
List available tools from the MCP server
This project is a weather query client that interacts with an MCP (Model-Client-Protocol) server to fetch and display weather information for a specified city.
openai
librarydotenv
librarymcp
libraryClone the repository:
git clone
cd
Create a virtual environment and activate it:
python -m venv .venv
source .venv/bin/activate # On Windows use `.venv\Scripts\activate`
Install the required dependencies:
pip install -r requirements.txt
Create a .env
file in the root directory and add your OpenAI API key and other configurations:
OPENAI_API_KEY=
BASE_URL=
MODEL=
Start the MCP server:
python server.py
Run the client and connect to the server:
python client.py
Interact with the client:
quit
to exit the client.server.py
: Contains the MCP server implementation and weather query tool.client.py
: Contains the MCP client implementation to interact with the server..env
: Environment variables for API keys and configurations..gitignore
: Specifies files and directories to be ignored by git.README.md
: Project documentation.This project is licensed under the MIT License.