iremaltunay55
MCP Serveriremaltunay55public

deneme3

deneme3

Repository Info

0
Stars
1
Forks
0
Watchers
1
Issues
Python
Language
-
License

About This Server

deneme3

Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.

Documentation

Weather MCP Server

Bu proje, Model Context Protocol (MCP) kullanarak hava durumu bilgisi sağlayan bir FastAPI uygulamasıdır.

Özellikler

  • MCP Protokolü: Model Context Protocol standardına uygun
  • FastAPI: Modern, hızlı web framework
  • Hava Durumu API: wttr.in servisini kullanarak gerçek zamanlı hava durumu
  • Hata Yönetimi: Kapsamlı hata yakalama ve kullanıcı dostu mesajlar

Kurulum

  1. Bağımlılıkları yükleyin:
pip install -r requirements.txt
  1. Sunucuyu başlatın:
python main.py

Sunucu http://localhost:8000 adresinde çalışmaya başlayacaktır.

Kullanım

MCP Protokolü ile

MCP protokolü üzerinden /mcp endpoint'ini kullanın:

POST /mcp
{
    "method": "tools/call",
    "params": {
        "name": "get_weather",
        "arguments": {
            "city": "İstanbul"
        }
    }
}

Direkt API Kullanımı

Test amaçlı direkt endpoint'ler:

# GET isteği
curl http://localhost:8000/weather/İstanbul

# POST isteği
curl -X POST http://localhost:8000/weather \
  -H "Content-Type: application/json" \
  -d '{"name": "get_weather", "arguments": {"city": "İstanbul"}}'

API Endpoints

  • GET / - Sunucu bilgileri
  • GET /health - Sağlık kontrolü
  • POST /mcp - Ana MCP protokol handler
  • GET /weather/{city} - Basit hava durumu sorgusu
  • POST /weather - Detaylı hava durumu sorgusu

Yanıt Formatı

Başarılı yanıt örneği:

{
    "city": "İstanbul",
    "location": {
        "area_name": "Istanbul",
        "country": "Turkey",
        "region": "Istanbul"
    },
    "current_weather": {
        "temperature_c": "15",
        "temperature_f": "59",
        "feels_like_c": "14",
        "feels_like_f": "57",
        "humidity": "72",
        "description": "Partly cloudy",
        "wind_speed_kmh": "11",
        "wind_direction": "NW",
        "pressure": "1013",
        "visibility": "10"
    },
    "status": "success"
}

Hata yanıtı örneği:

{
    "city": "GeçersizŞehir",
    "error": "Hava durumu alınamadı: Bağlantı hatası - 404 Client Error",
    "status": "error"
}

Geliştirme

Sunucuyu geliştirme modunda çalıştırmak için:

uvicorn main:app --reload --host 0.0.0.0 --port 8000

Dosya Yapısı

  • main.py - Ana FastAPI uygulaması ve MCP sunucu
  • mcp_config.py - MCP konfigürasyonu ve weather tool implementasyonu
  • requirements.txt - Python bağımlılıkları
  • README.md - Bu dosya

Quick Start

1

Clone the repository

git clone https://github.com/iremaltunay55/deneme3
2

Install dependencies

cd deneme3
npm install
3

Follow the documentation

Check the repository's README.md file for specific installation and usage instructions.

Repository Details

Owneriremaltunay55
Repodeneme3
LanguagePython
License-
Last fetched8/10/2025

Recommended MCP Servers

💬

Discord MCP

Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.

integrationsdiscordchat
🔗

Knit MCP

Connect AI agents to 200+ SaaS applications and automate workflows.

integrationsautomationsaas
🕷️

Apify MCP Server

Deploy and interact with Apify actors for web scraping and data extraction.

apifycrawlerdata
🌐

BrowserStack MCP

BrowserStack MCP Server for automated testing across multiple browsers.

testingqabrowsers

Zapier MCP

A Zapier server that provides automation capabilities for various apps.

zapierautomation