About MCP Server README
MCP Server README describes a Python service for retrieving the current dollar exchange rate, weather for a specified city, and a weekly news summary. It also provides HTTP endpoints that can be tested with tools such as curl or Postman.
Key features
- 01Current dollar exchange rate
- 02Weather by city
- 03Weekly news summary
- 04HTTP endpoints with JSON responses
Use cases
- 01Checking the current dollar rate
- 02Getting a city's current temperature
- 03Retrieving a weekly news summary
MCP support
The README identifies the project as an MCP server but does not describe its MCP tools or client connection details.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.
Tools
Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.
Details
From the project READMEMCP Server README
Описание
Этот проект представляет собой MCP сервер, который предоставляет следующие функции:
- Получение текущего курса доллара.
- Прогноз погоды в заданном городе.
- Сводка новостей за последнюю неделю.
Установка
Требования
- Python 3.x
- Flask
- Requests
- Feedparser
- pytest (для тестирования)
Установка зависимостей
Для установки необходимых библиотек выполните следующую команду:
pip install -r requirements.txt
Запуск сервера
- Скачайте или клонируйте репозиторий:
git clone https://github.com/RainbollD/mcp_server_get_dollars_news_news.git
- Запустите сервер:
python main.py
Сервер будет доступен по адресу http://127.0.0.1:5000.
API
Получение курса доллара
- URL:
/rate - Метод:
GET - Ответ: JSON с текущим курсом доллара.
Получение погоды
- URL:
/weather/<city> - Метод:
GET - Параметры:
city- название города. - Ответ: JSON с текущей температурой в заданном городе.
Получение новостей
- URL:
/news - Метод:
GET - Ответ: JSON со сводкой новостей.
Тестирование
Для запуска тестов выполните команду:
pytest
Подключение клиента
Если вы используете клиент для взаимодействия с API, вы можете использовать такие инструменты, как Postman или curl для тестирования запросов. Пример использования curl:
# Получение курса доллара
curl http://127.0.0.1:5000/rate
# Получение погоды в Москве
curl http://127.0.0.1:5000/weather/Moscow
# Получение новостей
curl http://127.0.0.1:5000/news
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.