MCP cover image
mcp_server_get_dollars_news_news logo
Public

mcp_server_get_dollars_news_news

See in Github
2025-03-19

1

Github Watches

1

Github Forks

0

Github Stars

MCP Server README

Описание

Этот проект представляет собой MCP сервер, который предоставляет следующие функции:

  • Получение текущего курса доллара.
  • Прогноз погоды в заданном городе.
  • Сводка новостей за последнюю неделю.

Установка

Требования

  • Python 3.x
  • Flask
  • Requests
  • Feedparser
  • pytest (для тестирования)

Установка зависимостей

Для установки необходимых библиотек выполните следующую команду:

pip install -r requirements.txt

Запуск сервера

  1. Скачайте или клонируйте репозиторий:
git clone https://github.com/RainbollD/mcp_server_get_dollars_news_news.git
  1. Запустите сервер:
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

相关推荐

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

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Bora Yalcin
  • Evaluator for marketplace product descriptions, checks for relevancy and keyword stuffing.

  • Yusuf Emre Yeşilyurt
  • I find academic articles and books for research and literature reviews.

  • https://maiplestudio.com
  • Find Exhibitors, Speakers and more

  • Carlos Ferrin
  • Encuentra películas y series en plataformas de streaming.

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • Contraband Interactive
  • Emulating Dr. Jordan B. Peterson's style in providing life advice and insights.

  • rustassistant.com
  • Your go-to expert in the Rust ecosystem, specializing in precise code interpretation, up-to-date crate version checking, and in-depth source code analysis. I offer accurate, context-aware insights for all your Rust programming questions.

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • apappascs
  • 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.

  • ShrimpingIt
  • Micropython I2C-based manipulation of the MCP series GPIO expander, derived from Adafruit_MCP230xx

  • modelcontextprotocol
  • Model Context Protocol Servers

  • OffchainLabs
  • Go implementation of Ethereum proof of stake

  • Mintplex-Labs
  • The all-in-one Desktop & Docker AI application with built-in RAG, AI agents, No-code agent builder, MCP compatibility, and more.

  • huahuayu
  • A unified API gateway for integrating multiple etherscan-like blockchain explorer APIs with Model Context Protocol (MCP) support for AI assistants.

    Reviews

    1 (1)
    Avatar
    user_6Rh1hS5v
    2025-04-16

    The Discord MCP Bot - Server Component by mastra-ai is a game-changer for any Discord server. Its seamless integration and user-friendly interface make it a must-have tool for server administrators. I've noticed a significant improvement in managing server tasks efficiently. Highly recommended for anyone looking to enhance their Discord experience! Check it out at https://mcp.so/server/discord-mcp-server/mastra-ai.