Mcp Server
Description
MCP (Multi-Functional Command Processor) сервер предоставляет API для получения текущего курса доллара, прогноза погоды в заданном городе и сводки новостей за последнюю неделю. ## Возможности - **Курс доллара:** Получение текущего курса доллара к рублю. - **Прогноз погоды:**…
About
MCP (Multi-Functional Command Processor) сервер предоставляет API для получения текущего курса доллара, прогноза погоды в заданном городе и сводки новостей за последнюю неделю. ## Возможности - **Курс доллара:** Получение текущего курса доллара к рублю. - **Прогноз погоды:** Получение текущей погоды в указанном…
Details
- Author
- VenGr0
- Downloads
- 138
- Categories
- Other
Jump to
- Get current USD to RUB exchange rate
- Fetch weather forecast for a given city
- Retrieve news summary from the last week
Setting up with Highlight
This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:
- Download and install Highlight from highlightai.com/download
- Navigate to the plugins tab and select "Add Custom Plugin"
-
Configure the plugin with the settings below
Plugin Name
Mcp ServerCommand (node, npx, python, etc.)Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.
- Enable "Start Automatically" if you want the plugin to start when Highlight launches
From the repository
Clone the repository, create a Python virtual environment, install dependencies from requirements.txt, and run python server.py. The server listens on http://127.0.0.1:5000. Use GET requests to the /exchange_rate, /weather?city=CityName, and /news endpoints. A Python client example is provided in the README.
Claude Desktop / Cursor
Paste into your MCP client config file to install this server.
{
"mcpServers": {
"mcp server": {
"mcp-server-vengr0": {
"command": "python",
"args": [
"-m",
"venv",
"venv"
]
}
}
}
}
McpServers
{
"mcp-server-vengr0": {
"command": "python",
"args": [
"-m",
"venv",
"venv"
]
}
}
MCP (Multi-Functional Command Processor) сервер предоставляет API для получения текущего курса доллара, прогноза погоды в заданном городе и сводки новостей за последнюю неделю.
Возможности
- Курс доллара: Получение текущего курса доллара к рублю.
- Прогноз погоды: Получение текущей погоды в указанном городе.
- Сводка новостей: Получение новостей за последнюю неделю.
Установка и запуск
Предварительные требования
- Python 3.7 или выше
- Установленный
pipУстановка
1. Клонируйте репозиторий:
``
bash
git clone https://github.com/VenGr0/mcp-server.git
cd mcp-server
`
2. Создайте виртуальное окружение и активируйте его:
`bash
python -m venv venv
source venv/bin/activate # Для Linux/MacOS
venv\Scripts\activate # Для Windows
`
3. Установите зависимости:
`bash
pip install -r requirements.txt
`
Запуск сервера
Запустите сервер:
`bash
python server.py
`
Сервер будет доступен по адресу http://127.0.0.1:5000.
Запуск тестов
Для запуска тестов выполните:
`bash
pytest tests/test_server.py
`
Использование API
Получение курса доллара
Запрос:
`bash
GET /exchange_rate
`
Ответ:
`json
{
"usd_rate": 75.50
}
`
Получение прогноза погоды
Запрос:
`bash
GET /weather?city=Moscow
`
Ответ:
`json
{
"weather": "clear sky",
"temperature": 20
}
`
Получение сводки новостей
Запрос:
`bash
GET /news
`
Ответ:
`json
{
"articles": [
{
"title": "Новость 1",
"description": "Описание новости 1",
"url": "https://example.com/news1"
},
{
"title": "Новость 2",
"description": "Описание новости 2",
"url": "https://example.com/news2"
}
]
}
`
Подключение клиента
Пример клиента на Python:
`python
import requests
BASE_URL = 'http://127.0.0.1:5000'
def get_exchange_rate():
response = requests.get(f'{BASE_URL}/exchange_rate')
return response.json()
def get_weather(city):
response = requests.get(f'{BASE_URL}/weather?city={city}')
return response.json()
def get_news():
response = requests.get(f'{BASE_URL}/news')
return response.json()
if __name__ == '__main__':
print(get_exchange_rate())
print(get_weather('Moscow'))
print(get_news())
``Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.



