Production-ready akademický výzkumný nástroj s Model Context Protocol (MCP) podporou, optimalizovaný pro M1 MacBook a enterprise nasazení.
- Multi-source scraping: Wikipedia, PubMed, OpenAlex s inteligentním rate limitingem
- AI-powered analýza: Automatické hodnocení kvality zdrojů a důkazů
- Safety assessment: Inteligentní bezpečnostní hodnocení výzkumných témat
- Intelligent caching: Pokročilý cache systém s kompresí a automatickou expirací
- 5 pokročilých MCP serverů: Web automation, Brave Search, GitHub, Fetch, Puppeteer
- Tool-based architektura pro seamless AI agent integraci
- RESTful API s komprehenzivními endpointy
- Real-time výzkumné schopnosti
- Memory-efficient caching s detekci tlaku paměti
- Energy-optimized retry logika a connection pooling
- Thread-safe implementace napříč všemi komponenty
- Minimální resource footprint
- Docker kontejnerizace s health checks a multi-stage buildy
- Prometheus monitoring a Grafana dashboardy
- Comprehensive error handling a structured logging
- Scalable unified architektura
- Python 3.11+
- Docker & Docker Compose
- Git
git clone https://github.com/Hamulda/advanced-academic-research-tool.git
cd advanced-academic-research-tool
python -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
pip install -r requirements.txt# Rychlý výzkumný dotaz
python core/main.py --query "BPC-157 dosing protocol" --type comprehensive --verbose
# Bezpečnostní hodnocení
python core/main.py --query "Nootropics safety" --type safety --evidence high
# JSON výstup pro API integraci
python core/main.py --query "Peptide research" --format json# Development
docker-compose up -d
# Production
docker-compose -f docker-compose.yml -f docker-compose.prod.yml up -dquick- Rychlé vyhledávání s cache prioritoubalanced- Vyvážený přístup rychlost/kvalitacomprehensive- Hloubkový výzkum všech zdrojůsafety- Zaměřeno na bezpečnostní aspektydosage- Specializace na dávkování a protokoly
high- Pouze peer-reviewed a high-impact zdrojemedium- Včetně kvalitních sekundárních zdrojůall- Všechny dostupné zdroje s hodnocením
brief- Stručné shrnutí s klíčovými bodydetailed- Kompletní analýza s odkazyexpert- Technický formát pro odborníkyjson- Strukturovaná data pro API
┌─────────────────┬──────────────────┬─────────────────┐
│ Core Engine │ MCP Servers │ Monitoring │
├─────────────────┼──────────────────┼─────────────────┤
│ • Main App │ • Web Automation │ • Prometheus │
│ • Research Orch │ • Brave Search │ • Grafana │
│ • Cache System │ • GitHub Tools │ • Health Checks │
│ • Config Mgmt │ • Fetch Tools │ • Performance │
└─────────────────┴──────────────────┴─────────────────┘
- UnifiedBiohackingResearchTool: Hlavní orchestrátor
- IntelligentResearchOrchestrator: AI-powered research engine
- UnifiedCacheManager: Pokročilý cache systém
- WebAutomationMCPServer: Web scraping a automatizace
- AcademicScraper: Specializovaný scraper pro vědecké zdroje
# Automatické cache s TTL
@cached(ttl=3600, key_prefix="research")
async def research_function(query: str):
return await expensive_operation(query)
# Manuální cache operace
cache = get_cache_manager()
await cache.set("key", data, ttl=1800)
result = await cache.get("key")- Exponential backoff pro API calls
- Per-domain rate limiting
- Circuit breaker pattern pro API ochranu
- Intelligent retry s jitter
- Input sanitization: Ochrana proti injection útokům
- SSL/TLS: Secure komunikace s external APIs
- Non-root Docker: Bezpečnostní hardening kontejnerů
- Rate limiting: Ochrana proti abuse
- Audit logging: Kompletní audit trail
- Request latency a throughput
- Cache hit/miss ratios
- Error rates po komponentách
- Resource utilization
- Real-time performance monitoring
- System health overview
- Research query analytics
- Cache performance metrics
Přístup na http://localhost:3000 (admin/admin123)
# Spuštění všech testů
python optimized_test_suite.py
# Performance benchmark
python -c "from optimized_test_suite import run_performance_benchmark; run_performance_benchmark()"
# Integration testy
pytest tests/ -v
# Type checking
mypy core/ mcp_servers/ cache/├── core/ # Hlavní aplikační logika
├── mcp_servers/ # MCP server implementace
├── cache/ # Cache systémy
├── monitoring/ # Monitoring konfigurace
├── optimization/ # Performance optimalizace
├── tests/ # Test suites
└── docker-compose.yml # Orchestrace služeb
- Vytvořte feature branch
- Implementujte s testy
- Ověřte performance impact
- Aktualizujte dokumentaci
- Vytvořte pull request
# Health check
GET /health
# Research endpoint
POST /research
{
"query": "research topic",
"type": "comprehensive",
"evidence_level": "high"
}
# Cache statistics
GET /cache/stats
# Performance metrics
GET /metricsscrape_url: Web scraping s CSS selektoryextract_links: Link extrakce s filteringbrowser_screenshot: Screenshot captureget_page_info: Detailní page analýzasearch_academic: Akademické databáze search
- research-app: Hlavní aplikace
- redis: Cache a session storage
- prometheus: Metrics collection
- grafana: Visualization
- nginx: Reverse proxy a load balancing
ENVIRONMENT=production
REDIS_URL=redis://redis:6379
DATABASE_URL=sqlite:///data/app.db
PROMETHEUS_URL=http://prometheus:9090- Fork repository
- Vytvořte feature branch (
git checkout -b feature/AmazingFeature) - Commit změny (
git commit -m 'Add AmazingFeature') - Push do branch (
git push origin feature/AmazingFeature) - Otevřete Pull Request
Distributed under the MIT License. See LICENSE for more information.
- Model Context Protocol za MCP framework
- FastAPI za výkonný web framework
- Playwright za browser automation
- Prometheus a Grafana za monitoring
Vojtěch Hamada - @Hamulda
Project Link: https://github.com/Hamulda/advanced-academic-research-tool