Enuygun Fs
БесплатноНе проверенEnables searching for places and tourist activities using Foursquare and Amadeus APIs, integrated with Claude Desktop and OpenAI Agent SDK.
Описание
Enables searching for places and tourist activities using Foursquare and Amadeus APIs, integrated with Claude Desktop and OpenAI Agent SDK.
README
Bu proje, Foursquare Places API ve Amadeus Activities API'lerini kullanan gelişmiş bir Model Context Protocol (MCP) server'ıdır. Claude Desktop ve OpenAI Agent SDK ile entegre edilerek mekan arama, turistik aktivite bulma ve seyahat planlaması işlemlerini gerçekleştirebilirsiniz.
✨ Özellikler
🏢 Foursquare Places API
- Mekan Arama: Belirtilen lokasyon yakınında mekanları arayın
- Mekan Detayları: Belirli bir mekanın detaylı bilgilerini alın
- Kategori Filtreleme: Restoran, kafe, müze gibi kategorilere göre filtreleyin
- Mesafe Hesaplama: Konumunuza göre mesafe bilgisi
🎯 Amadeus Activities API
- Turistik Aktiviteler: Şehirlerdeki müze, tur, etkinlik arama
- Şehir Bazlı Arama: Belirli şehirlerdeki tüm aktiviteleri listeleyin
- Fiyat Bilgisi: Aktivite fiyatları ve rezervasyon linkleri
- Detaylı Açıklamalar: HTML temizlenmiş aktivite açıklamaları
🔗 Entegrasyon Seçenekleri
- HTTP MCP Server: OpenAI Agent SDK ile entegrasyon
- Stdio MCP Server: Claude Desktop ile direkt entegrasyon
- REST API Endpoints: Direkt API erişimi
- CORS Desteği: Web uygulamaları için
📸 Fotoğraf Özellikleri (Şimdilik Devre Dışı)
Foursquare Photos API(Credit tasarrufu için kapalı)Bing Image Scraping(Yedekte tutuluyor)
🌐 Live Demo
🔗 Production Server: https://mcp-enuygun-fs.onrender.com
- Health Check: https://mcp-enuygun-fs.onrender.com/health
- MCP Endpoint: https://mcp-enuygun-fs.onrender.com/mcp
- API Endpoints: https://mcp-enuygun-fs.onrender.com/api/
🚀 Kurulum
1. Proje Kurulumu
cd /Users/emirarslan/Desktop/mcp
npm install
2. Environment Variables
.env dosyası oluşturun:
cp .env.example .env
.env dosyasını düzenleyin:
FOURSQUARE_API_KEY="YOUR_FOURSQUARE_API_KEY"
AMADEUS_API_KEY="YOUR_AMADEUS_API_KEY"
AMADEUS_API_SECRET="YOUR_AMADEUS_API_SECRET"
NOMINATIM_USER_AGENT="mcp-server/1.0 (contact: [email protected])"
3. API Key'lerini Alın
- Foursquare: developer.foursquare.com
- Amadeus: developers.amadeus.com
🎮 Kullanım
HTTP MCP Server (Önerilen)
npm run http
# Server: http://localhost:3000
# MCP Endpoint: http://localhost:3000/mcp
# Health Check: http://localhost:3000/health
Stdio MCP Server (Claude Desktop)
npm start
Development Mode
npm run http-dev # HTTP server with auto-reload
npm run dev # Stdio server with auto-reload
🧪 Test Komutları
# Temel API testleri
npm run test-api # Foursquare API testi
npm run test-simple # Kapsamlı HTTP MCP testi
# Özel testler
npm run test-photos # Foursquare Photos testi (devre dışı)
npm run test-bing # Bing Image testi (devre dışı)
# MCP Protocol testleri
npm run test-mcp # Stdio MCP testi
npm run test-http # HTTP MCP testi
npm run test-agent # OpenAI Agent SDK testi
🔧 Claude Desktop Entegrasyonu
claude_desktop_config.json dosyasına ekleyin:
{
"mcpServers": {
"foursquare-places": {
"command": "node",
"args": ["/Users/emirarslan/Desktop/mcp/server.js"],
"env": {
"FOURSQUARE_API_KEY": "YOUR_API_KEY"
}
}
}
}
🤖 OpenAI Agent SDK Entegrasyonu
import { Agent, MCPServerStreamableHttp } from '@openai/agents';
// Local development
const mcpServer = new MCPServerStreamableHttp({
url: 'http://localhost:3000/mcp',
name: 'Multi-API Travel Server',
});
// Production (Live server)
const mcpServerProd = new MCPServerStreamableHttp({
url: 'https://mcp-enuygun-fs.onrender.com/mcp',
name: 'Multi-API Travel Server (Production)',
});
const agent = new Agent({
name: 'Travel Assistant',
instructions: 'Use Foursquare and Amadeus APIs for travel planning.',
mcpServers: [mcpServerProd], // Use mcpServer for local development
});
🛠️ Available Tools
Foursquare Tools
search_places: Mekan arama{ "near": "Istanbul Kadıköy", "query": "cafe", "limit": 10, "categories": "13065" // Optional }get_place_details: Mekan detayları{ "fsq_place_id": "4eaec357b8f765aba1e03d9e" }
Amadeus Tools
search_activities: Aktivite arama{ "city": "Istanbul", "type": "museum", "limit": 10 }get_city_activities: Şehir aktiviteleri{ "city": "Cappadocia", "limit": 20 }
🌐 REST API Endpoints
Foursquare Endpoints
# Local
GET http://localhost:3000/api/search?near=Istanbul&query=cafe&limit=5
GET http://localhost:3000/api/place/:fsq_place_id
GET http://localhost:3000/api/photos/:fsq_place_id?limit=10
# Production
GET https://mcp-enuygun-fs.onrender.com/api/search?near=Istanbul&query=cafe&limit=5
GET https://mcp-enuygun-fs.onrender.com/api/place/:fsq_place_id
GET https://mcp-enuygun-fs.onrender.com/api/photos/:fsq_place_id?limit=10
Amadeus Endpoints
# Local
GET http://localhost:3000/api/activities?city=Istanbul&type=museum&limit=5
# Production
GET https://mcp-enuygun-fs.onrender.com/api/activities?city=Istanbul&type=museum&limit=5
System Endpoints
# Local
GET http://localhost:3000/health # Health check
POST http://localhost:3000/mcp # MCP protocol endpoint
# Production
GET https://mcp-enuygun-fs.onrender.com/health # Health check
POST https://mcp-enuygun-fs.onrender.com/mcp # MCP protocol endpoint
📸 Fotoğraf Özelliklerini Aktifleştirme
Foursquare Photos API'yi Açmak İçin:
http-server.jsdosyasında şu satırları bulun:// === FOURSQUARE PHOTOS API (DISABLED) === // Uncomment the methods below to re-enable Foursquare Photos API /*/*ve*/işaretlerini kaldırınBu satırı aktifleştirin:
// formattedResults = await this.enhanceWithFoursquarePhotos(formattedResults);Bu satırı değiştirin:
` 📸 Photo feature temporarily disabled\n` + // Şu hale getirin: ` 📸 ${place.foursquarePhoto || 'No photo available'}\n` +
Bing Image Scraping'i Açmak İçin:
http-server.jsdosyasında şu bölümü bulun:// === BING IMAGE SCRAPING METHODS (DISABLED) === /*/*ve*/işaretlerini kaldırınsearchPlacesmethod'unda şu satırı aktifleştirin:// formattedResults = await this.enhanceWithImages(formattedResults, (place) => { // return `${place.name} ${near}`; // });
🚨 Sorun Giderme
Yaygın Hatalar
- Server çalışmıyor: Node.js sürümünüzün 18+ olduğunu kontrol edin
- API hataları: API anahtarlarınızın geçerli olduğunu kontrol edin
- 429 Hatası: API credit'iniz bitmiş olabilir - billing sayfasından kontrol edin
- Port çakışması:
PORT=3001 npm run httpile farklı port kullanın - CORS hataları: Server'ın CORS middleware'i aktif olduğunu kontrol edin
Debug Modları
# Detaylı loglar için
DEBUG=* npm run http
# Sadece API logları
DEBUG=api npm run http
API Limitleri
- Foursquare: Günlük 1000 istek (Free tier)
- Amadeus: Aylık 1000 istek (Test environment)
- Nominatim: Saniyede 1 istek (Rate limiting)
📁 Proje Yapısı
mcp/
├── server.js # Stdio MCP server
├── http-server.js # HTTP MCP server (Ana dosya)
├── test-api.js # API testleri
├── test-simple.js # Kapsamlı testler
├── test-foursquare-photos.js # Fotoğraf testleri
├── test-bing-images.js # Bing image testleri
├── claude_desktop_config.json # Claude Desktop config
├── .env.example # Environment variables template
├── package.json # Dependencies ve scripts
└── README.md # Bu dosya
🔄 Deployment
Railway
railway login
railway init
railway deploy
Render
- GitHub repo'yu bağlayın
- Build command:
npm install - Start command:
npm start - Environment variables'ları ekleyin
ngrok (Local testing)
ngrok http 3000
# Public URL: https://xxx.ngrok-free.dev/mcp
🤝 Katkıda Bulunma
- Fork edin
- Feature branch oluşturun (
git checkout -b feature/amazing-feature) - Commit edin (
git commit -m 'Add amazing feature') - Push edin (
git push origin feature/amazing-feature) - Pull Request açın
📄 Lisans
MIT License - Detaylar için LICENSE dosyasına bakın.
🙏 Teşekkürler
🚀 Happy Coding! Bu server ile seyahat planlaması artık çok daha kolay!
Установка Enuygun Fs
У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.
▸ github.com/emirrcodes/mcp-enuygun-fsFAQ
Enuygun Fs MCP бесплатный?
Да, Enuygun Fs MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для Enuygun Fs?
Нет, Enuygun Fs работает без API-ключей и переменных окружения.
Enuygun Fs — hosted или self-hosted?
Доступен hosted-вариант: Unyly запускает сервер в облаке, локальная установка не обязательна.
Как установить Enuygun Fs в Claude Desktop, Claude Code или Cursor?
Открой Enuygun Fs на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
Fetch
Web content fetching and conversion for efficient LLM usage.
AWS KB Retrieval
Retrieval from AWS Knowledge Base using Bedrock Agent Runtime.
автор: modelcontextprotocolSpring AI MCP Server
Provides auto-configuration for setting up an MCP server in Spring Boot applications.
llm-analysis-assistant
A very streamlined mcp client that supports calling and monitoring stdio/sse/streamableHttp, and can also view request responses through the /logs page. It also
автор: xuzexin-hzCompare Enuygun Fs with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории ai
