MCP Server logo

MCP Server

by Cavumnigrum

MCP Server is a Python-based server that provides the current dollar exchange rate, weather forecast, and news from the last week. It offers a simple way to access up-to-date information from various sources.

View on GitHub

Last updated: N/A

What is MCP Server?

MCP Server is a Python application that acts as a server to provide real-time data such as the current dollar exchange rate, weather forecasts, and recent news. It aggregates data from external APIs and serves it to clients.

How to use MCP Server?

To use the MCP Server, you need to clone the repository, set up a virtual environment, install dependencies, configure API keys from exchangerate-api.com, openweathermap.org, and newsapi.org, and then run the mcp_server.py script. The server will be accessible at http://localhost:8000. A client mcp_client.py is also provided to interact with the server.

Key features of MCP Server

  • Provides current dollar exchange rate

  • Delivers weather forecasts

  • Aggregates news from the last week

  • Uses external APIs for data

  • Includes a client application

  • Supports Docker containerization

Use cases of MCP Server

  • Displaying current exchange rates in an application

  • Providing weather information to users

  • Aggregating news headlines for a dashboard

  • Building a simple information kiosk

  • Learning how to integrate multiple APIs

FAQ from MCP Server

What APIs are used by the server?

The server uses exchangerate-api.com for currency exchange rates, openweathermap.org for weather forecasts, and newsapi.org for news.

How do I configure the API keys?

You need to register on each of the API provider websites, obtain API keys, and then copy .env.example to .env and fill in the keys in the .env file.

How do I run the server?

After setting up the environment and configuring API keys, you can run the server by executing python mcp_server.py in the terminal.

Is there a client application?

Yes, there is a mcp_client.py application provided to interact with the server. Instructions for using the client are provided when it is run.

Does the project support Docker?

Yes, the project includes Dockerfiles for creating containers for both the server and the client. Use docker-compose to build and run the containers.