MCP Server logo

MCP Server

by RainbollD

This project is an MCP server providing functionalities such as fetching the current dollar exchange rate, weather forecast for a given city, and a summary of the latest news.

View on GitHub

Last updated: N/A

What is MCP Server?

The MCP Server is a Python-based server built with Flask that provides API endpoints for retrieving the current dollar exchange rate, weather information for a specified city, and a summary of recent news.

How to use MCP Server?

To use the server, clone the repository, install the required dependencies using pip install -r requirements.txt, and then run the main.py script. The server will be accessible at http://127.0.0.1:5000. Use the provided API endpoints to retrieve data.

Key features of MCP Server

  • Dollar exchange rate retrieval

  • Weather forecast by city

  • News summary

  • Simple API endpoints

Use cases of MCP Server

  • Displaying current dollar rate in an application

  • Providing weather information to users

  • Aggregating news from different sources

  • Building a personal dashboard with relevant information

FAQ from MCP Server

How do I install the dependencies?

Run pip install -r requirements.txt in your terminal.

What is the default port the server runs on?

The server runs on port 5000 by default.

How do I get the dollar exchange rate?

Send a GET request to the /rate endpoint.

How do I get the weather for a specific city?

Send a GET request to the /weather/<city> endpoint, replacing <city> with the city name.

How do I get the latest news?

Send a GET request to the /news endpoint.