Sport5 Fantasy League MCP Server
Provides Google OAuth 2.0 authentication integration for secure login to Sport5 fantasy sports platform, enabling automated team management and league data access
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Sport5 Fantasy League MCP Serverהראה את הקבוצה שלי ותמליץ לי על קפטן למחזור הקרוב"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Sport5 Fantasy MCP Server עם Google OAuth
תיאור
שרת MCP (Model Context Protocol) להתחברות וניהול נתונים של אתר הפנטזי של ספורט 5. השרת תומך בשני סוגי התחברות:
התחברות Google OAuth - אבטחה מתקדמת דרך Google
התחברות רגילה - עם מייל וסיסמה
Related MCP server: Mashov MCP Server
תכונות
✅ התחברות דרך Google OAuth 2.0
✅ התחברות רגילה עם פרטי משתמש
✅ קבלת פרטי הקבוצה שלך
✅ צפייה בטבלת הליגה
✅ שרת OAuth מקומי לטיפול ב-callbacks
✅ תמיכה בעברית ואנגלית
✅ לוגים מפורטים ומידע על שגיאות
הגדרת Google OAuth
שלב 1: יצירת Google OAuth Client
כנס ל-Google Cloud Console
צור פרויקט חדש או בחר פרויקט קיים
הפעל את "Google OAuth2 API"
עבור ל-"APIs & Services" > "Credentials"
שלב 2: הגדרת OAuth Consent Screen
לחץ על "OAuth consent screen"
בחר "External" (אלא אם יש לך Google Workspace)
מלא את השדות הנדרשים:
Application name: Sport5 Fantasy MCP
User support email: המייל שלך
Developer contact information: המייל שלך
Authorized domains: הוסף
localhost(לפיתוח)
שלב 3: יצירת OAuth 2.0 Client ID
לחץ על "Create Credentials" > "OAuth 2.0 Client ID"
Application type: Web application
Name: Sport5 Fantasy Client
Authorized redirect URIs: הוסף
http://localhost:8000/oauth/callbackלחץ "Create"
שמור את:
Client ID: נראה כמו
123456789-abc.apps.googleusercontent.comClient Secret: נראה כמו
GOCSPX-abc123...
התקנה
דרישות מקדימות
Python 3.8+
pip package manager
התקנת חבילות
pip install -r requirements.txtאו להתקנה ידנית:
pip install aiohttp beautifulsoup4 mcp lxml aiohttp-cors python-dotenvהגדרת משתני סביבה (אופציונלי)
צור קובץ .env עם הפרטים שלך:
GOOGLE_CLIENT_ID=your-client-id-here
GOOGLE_CLIENT_SECRET=your-client-secret-hereהפעלה
הפעלת השרת
python sport5_mcp_google.pyהשרת יתחיל להאזין על stdio ויהיה מוכן לחיבור עם Claude.
הגדרה עם Claude Desktop
הוסף את הקונפיגורציה הבאה ל-claude_desktop_config.json:
{
"mcpServers": {
"sport5-fantasy-oauth": {
"command": "python",
"args": ["C:\\path\\to\\your\\sport5_mcp_google.py"],
"env": {
"GOOGLE_CLIENT_ID": "your-client-id",
"GOOGLE_CLIENT_SECRET": "your-client-secret"
}
}
}
}שימוש
1. הגדרת Google OAuth
הגדר Google OAuth עם:
Client ID: 123456789-abc.apps.googleusercontent.com
Client Secret: GOCSPX-abc123...2. התחברות דרך Google
התחבר דרך Google OAuthהשרת יפתח דפדפן להתחברות. לאחר האישור, חזור ל-Claude.
3. התחברות רגילה (אלטרנטיבה)
התחבר לאתר הפנטזי עם המייל myemail@example.com והסיסמה mypassword4. קבלת נתונים
הראה את הקבוצה שלי
הראה את טבלת הליגהכלים זמינים
כלי | תיאור | פרמטרים נדרשים |
| הגדרת OAuth של Google |
|
| התחברות דרך Google | ללא |
| התחברות רגילה |
|
| קבלת פרטי הקבוצה | ללא |
| קבלת טבלת הליגה | ללא |
מבנה הפרויקט
Sport5FantasyLeagueMCPServer/
├── sport5_mcp_google.py # השרת הראשי
├── requirements.txt # חבילות נדרשות
├── .env.example # דוגמה למשתני סביבה
├── .env # משתני סביבה (לא נכלל ב-git)
└── README.md # התיעוד הזהזרימת עבודה
הגדרה ראשונית: הפעלת השרת + הגדרת Google OAuth
התחברות: בחירה בין Google OAuth או התחברות רגילה
שימוש: קבלת נתוני קבוצה, טבלאות ליגה, וכו'
ניתוק: הפגישה נשמרת עד סגירת השרת
השוואה בין דרכי התחברות
Google OAuth
✅ אבטחה גבוהה יותר
✅ לא צריך לשמור סיסמאות
✅ תמיכה ברענון אוטומטי
❌ דורש הגדרה מורכבת יותר
❌ תלוי באתר ספורט 5 שיתמוך בGoogle OAuth
התחברות רגילה
✅ פשוט להגדרה
✅ עובד עם כל אתר
✅ ישיר ומהיר
❌ צריך לשמור פרטי התחברות (זמנית)
❌ פחות מאובטח
פתרון בעיות
Google OAuth לא עובד
בעיה: שגיאת redirect URI
הפתרון: ודא שה-redirect URI במדויק: http://localhost:8000/oauth/callbackבעיה: השרת לא מגיב
הפתרון: בדוק שהשרת רץ על פורט 8000 ושאין חומת אש חוסמתבעיה: Client ID או Secret שגויים
הפתרון: בדוק את הפרטים ב-Google Cloud Consoleאתר ספורט 5 לא מכיר Google OAuth
במקרה זה האתר לא תומך בהתחברות Google. פתרונות:
השתמש בהתחברות רגילה
בדוק אם יש אפשרות ליצור חשבון חדש דרך Google באתר
צור קשר עם תמיכת האתר
שגיאות הרשאות
הפתרון: ודא שהמשתמש שלך מאושר ב-OAuth consent screenשגיאות התקנה
# Windows - אם יש בעיות עם lxml
pip install --upgrade pip setuptools wheel
pip install lxml --force-reinstall
# בעיות עם aiohttp
pip install aiohttp --force-reinstallאבטחה וביטחון
🔒 סיסמאות נשמרות רק בזיכרון במשך הפגישה
🔒 Google OAuth משתמש בתקני OAuth 2.0 מתקדמים
🔒 כל התקשורת עם Google מוצפנת (HTTPS)
🔒 State parameter מונע CSRF attacks
🔒 מומלץ להשתמש ב-HTTPS בפרודקשן
פיתוח והרחבות
הוספת תכונות חדשות
הוסף כלי חדש ב-
handle_list_tools()מימש את הלוגיקה ב-
handle_call_tool()הוסף פונקציונליות ל-
Sport5FantasyClient
דיבוג
הפעל עם רמת לוג מפורטת:
logging.basicConfig(level=logging.DEBUG)תרומה לפרויקט
Fork הרפוזיטורי
צור branch חדש לתכונה
עשה commit לשינויים
שלח Pull Request
רישיון
פרויקט זה הוא קוד פתוח ונמצא תחת רישיון MIT.
יצירת קשר
אם יש שאלות או בעיות, אנא פתח Issue בגיטהאב או צור קשר.
This server cannot be deployed
Maintenance
Related MCP Connectors
Fantasy football for any AI agent: draft board, start/sit, waivers, your Sleeper league. Free.
FPL data, points predictions, and transfer, captain and chip advice for any team.
141Fantasy analysis for your ESPN, Yahoo, and Sleeper leagues. Reads your leagues, never changes them.
- NFL MCPOAuthcom.nflmcp
NFL analytics tools for AI agents: stats, fantasy, injuries, schedules, and advanced analysis.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables users to query real-time weather data for Israeli cities using natural language, automatically scraping a weather website via Playwright and returning AI-generated answers.-
- AlicenseNot gradedqualityDmaintenanceEnables interaction with the Mashov school management system API, allowing retrieval of grades, schedule, messages, and more through natural language.3MIT
- FlicenseAqualityDmaintenanceEnables LLMs to fetch Israeli weather forecasts by controlling a real browser via Playwright, simulating human interactions like typing and clicking on a weather website.4-
- FlicenseNot gradedqualityDmaintenanceAutomatically fetches weather forecasts for Israeli cities from Weather2Day and provides answers through Claude.-