I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.

mcp-server
3 years
Works with Finder
1
Github Watches
0
Github Forks
0
Github Stars
MCP (Multi-Functional Command Processor) сервер предоставляет API для получения текущего курса доллара, прогноза погоды в заданном городе и сводки новостей за последнюю неделю.
Возможности
- Курс доллара: Получение текущего курса доллара к рублю.
- Прогноз погоды: Получение текущей погоды в указанном городе.
- Сводка новостей: Получение новостей за последнюю неделю.
Установка и запуск
Предварительные требования
- Python 3.7 или выше
- Установленный
pip
Установка
-
Клонируйте репозиторий:
git clone https://github.com/VenGr0/mcp-server.git cd mcp-server
-
Создайте виртуальное окружение и активируйте его:
python -m venv venv source venv/bin/activate # Для Linux/MacOS venv\Scripts\activate # Для Windows
-
Установите зависимости:
pip install -r requirements.txt
Запуск сервера
Запустите сервер:
python server.py
Сервер будет доступен по адресу http://127.0.0.1:5000
.
Запуск тестов
Для запуска тестов выполните:
pytest tests/test_server.py
Использование API
Получение курса доллара
Запрос:
GET /exchange_rate
Ответ:
{
"usd_rate": 75.50
}
Получение прогноза погоды
Запрос:
GET /weather?city=Moscow
Ответ:
{
"weather": "clear sky",
"temperature": 20
}
Получение сводки новостей
Запрос:
GET /news
Ответ:
{
"articles": [
{
"title": "Новость 1",
"description": "Описание новости 1",
"url": "https://example.com/news1"
},
{
"title": "Новость 2",
"description": "Описание новости 2",
"url": "https://example.com/news2"
}
]
}
Подключение клиента
Пример клиента на 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())
相关推荐
Evaluator for marketplace product descriptions, checks for relevancy and keyword stuffing.
Confidential guide on numerology and astrology, based of GG33 Public information
A geek-themed horoscope generator blending Bitcoin prices, tech jargon, and astrological whimsy.
Converts Figma frames into front-end code for various mobile frameworks.
Advanced software engineer GPT that excels through nailing the basics.
Therapist adept at identifying core issues and offering practical advice with images.
Discover the most comprehensive and up-to-date collection of MCP servers in the market. This repository serves as a centralized hub, offering an extensive catalog of open-source and proprietary MCP servers, complete with features, documentation links, and contributors.
Micropython I2C-based manipulation of the MCP series GPIO expander, derived from Adafruit_MCP230xx
A unified API gateway for integrating multiple etherscan-like blockchain explorer APIs with Model Context Protocol (MCP) support for AI assistants.
Mirror ofhttps://github.com/agentience/practices_mcp_server
Mirror ofhttps://github.com/bitrefill/bitrefill-mcp-server
Reviews

user_tYNbZZH2
As a dedicated user of mcp-server, I must say it has significantly streamlined my server management tasks. The user-friendly interface and efficient functionality developed by VenGr0 make it a standout in its category. Highly recommend checking it out on GitHub!