MCP Server logo

MCP Server

by VenGr0

The MCP server provides an API for retrieving the current dollar exchange rate, weather forecast for a given city, and a summary of news for the past week. It offers functionalities for accessing financial, meteorological, and informational data.

View on GitHub

Last updated: N/A

What is MCP Server?

The MCP (Multi-Functional Command Processor) server is a Python-based API that provides access to real-time data, including the current dollar exchange rate, weather forecasts for specified cities, and a summary of news articles from the past week.

How to use MCP Server?

To use the server, clone the repository, set up a virtual environment, install the dependencies using pip install -r requirements.txt, and run the server using python server.py. The API endpoints can then be accessed via HTTP requests to retrieve the desired information.

Key features of MCP Server

  • Retrieves current dollar exchange rate

  • Provides weather forecasts for specified cities

  • Summarizes news articles from the past week

  • Easy to install and run using Python

Use cases of MCP Server

  • Financial applications needing real-time currency data

  • Weather applications requiring current weather information

  • News aggregators needing a summary of recent news

  • Integration into other applications requiring external data sources

FAQ from MCP Server

How do I get the dollar exchange rate?

Send a GET request to the /exchange_rate endpoint.

How do I get the weather forecast for a city?

Send a GET request to the /weather?city=CityName endpoint, replacing CityName with the desired city.

How do I get the latest news?

Send a GET request to the /news endpoint.

What are the prerequisites for running the server?

You need Python 3.7 or higher and pip installed.

Where can I find the requirements.txt file?

The requirements.txt file is located in the root directory of the cloned repository.