ultratribe-mcp
Allows analyzing YouTube live streams and videos in real-time, displaying which brain regions are activated in a 3D brain model.
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., "@ultratribe-mcp List the available fMRI studies."
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.
UltraTribe
Enterprise-Grade Multi-Modal Neural Brain Encoding Framework & Real-Time Cortex Stream Visualizer
Canli Yayin & YouTube 3D Beyin Analizoru (live_stream_analyzer)
UltraTribe, herhangi bir YouTube canli yayinini veya videosunu anlik olarak analiz edip izleyen insan beyninde hangi bolgelerin (Gorsel V1-V4, Yuz FFA, Mekan PPA, Isitsel A1, Dil Wernicke/Broca, Amigdala, Prefrontal) ne nedenle aktiflestigini interaktif 3D WebGL beyin modeli uzerinde canli gosteren web arayuzune sahiptir.
Tek Tikla Baslatma (Windows)
Proje dizinindeki baslat.bat dosyasina cift tiklayin:
Gerekli kutuphaneleri otomatik kontrol eder ve kurar.
Asenkron FastAPI + WebSocket analiz sunucusunu baslatir.
Tarayicinizda
http://127.0.0.1:8080adresini otomatik acar.
# Manuel baslatmak icin:
python -m uvicorn live_stream_analyzer.backend.app:app --host 127.0.0.1 --port 8080Related MCP server: Ollama MCP Server
Model Context Protocol (MCP) Specification
UltraTribe, LLM tabanli otonom ajanlarin (Claude, Antigravity, Cursor, OpenAI Swarm vb.) sistemi programatik olarak denetlemesi, benchmark yapmasi ve cikarim yurutmesi icin yerlesik Model Context Protocol (JSON-RPC 2.0) sunucusu barindirir.
MCP Server Baslatma
# JSON-RPC 2.0 STDIO Ajan Baglantisi
python -m ultratribe.mcp
# veya
ultratribe-mcp
# Kendi Kendini Test Etme (Diagnostics & In-Memory Benchmark)
python -m ultratribe.mcp.server --testMCP Tools Schema
{
"tools": [
{
"name": "system_diagnostics",
"description": "Donanim kaynaklarini (CUDA, VRAM, PyTorch, FlashAttention-2, BF16 destegi) denetler.",
"inputSchema": { "type": "object", "properties": {} }
},
{
"name": "benchmark_inference",
"description": "Sentetik girdi ile bellek-ici ileri yayilim (forward pass) gecikme (latency), verim (throughput) ve tepe VRAM olcumu yapar.",
"inputSchema": {
"type": "object",
"properties": {
"batch_size": { "type": "integer", "default": 4 },
"seq_len": { "type": "integer", "default": 64 },
"iterations": { "type": "integer", "default": 5 }
}
}
},
{
"name": "list_supported_studies",
"description": "Sistemde kayitli fMRI calisma veri setlerini listeler (Algonauts 2025, BOLD5000, Wen 2017, Lebel 2023).",
"inputSchema": { "type": "object", "properties": {} }
},
{
"name": "get_atlas_regions",
"description": "Kortikal HCP veya Subkortikal Harvard-Oxford ROI beyin bolge indekslerini dondurur.",
"inputSchema": {
"type": "object",
"properties": {
"atlas_type": {
"type": "string",
"enum": ["cortical_hcp", "subcortical_harvard_oxford"],
"default": "cortical_hcp"
}
}
}
}
]
}Donanim ve Kaynak Optimizasyon Metrikleri
Bilesen | Onceki Durum (TRIBE v2) | UltraTribe v4 | Optimizasyon Yontemi |
Egitim GPU VRAM | 18.0 GB - 24.0 GB | 6.5 GB - 8.5 GB |
|
Cikarim GPU VRAM | 6.2 GB - 8.0 GB | 1.8 GB - 2.2 GB |
|
Sistem RAM Kullanimi | 32.0 GB - 64.0 GB+ | 8.0 GB - 14.0 GB |
|
Batch Gecikmesi (Latency) | ~18.40 ms | ~1.59 ms | Vektorize Temporal Dropout ( |
Cikarim Verimi | ~120 ornek / sn | 1,250+ ornek / sn | Tekil GPU->CPU Transferi + Kernel Optimizasyonu |
Disk I/O Yuk | Yuksek gecici dosya yazimi | Sifir disk I/O | Bellek-ici akis (In-memory streaming) |
ROI Ozetleme | For-loop iterasyonu | Sparse CSR matris carpimi |
|
Hizli Baslangic
1. Paket Kurulumu
# Standart gelistirici kurulumu
pip install -e .
# Tam kurumsal kurulum (API, gorsellestirme ve test araclari dahil)
pip install -e ".[serve,viz,dev]"2. Python Cikarim Pipeline
import torch
from ultratribe.core import FmriEncoderModel
from ultratribe.config import TribeConfig
# 1. Pydantic v2 tabanli tip-guvenli yapilandirma
config = TribeConfig().model
# 2. Model baslatma
model = FmriEncoderModel(config)
# 3. Girdi tensörleri hazirlama (Batch, Time, Modality_Dim)
dummy_batch = {
"subject_id": torch.tensor([0]),
"video": torch.randn(1, 64, 64),
"audio": torch.randn(1, 64, 32),
}
# 4. Hizli cikarim
with torch.inference_mode():
cortex_output = model(dummy_batch)
# Cikti boyutu: (Batch: 1, Vertices: 20484, Timesteps: 64)
print(f"Cikti Tensör Boyutu: {cortex_output.shape}")Moduler Mimari ve Dizin Hiyerarsisi
ultratribe/
|-- live_stream_analyzer/ # Canli YouTube ve Video 3D Beyin Analiz Uygulamasi
| |-- backend/ # FastAPI, WebSocket, Nöral Kodlama Motoru, Explainer
| |-- frontend/ # OLED True Dark WebGL (Three.js) 3D Beyin Arayuzu
| `-- baslat.bat # Tek tikla Windows baslatici
|-- core/ # Sinir Agi ve Egitim Cekirdegi (FmriEncoderModel, FlashAttention-2)
|-- mcp/ # Model Context Protocol Katmani (Tools & Resources)
|-- api/ # REST & SSE Cikarim Sunucusu (FastAPI, Rate Limiting)
|-- data/ # MMap Streaming Veri Yukleyici & Donusumler
|-- config/ # Pydantic v2 Tip-Guvenli Sema & Hiperparametreler
|-- shared/ # Sparse ROI Hesaplama, Saf Fonksiyonlar
|-- viz/ # 3D Beyin Gorsellestirme
|-- demo.py # Tek-satir TribeModel yukleyici
|-- Dockerfile # Multi-stage container tanimi
`-- docker-compose.yml # API + Redis + Prometheus + Grafana servisleriTest ve Dogrulama
# 1. MCP Protokol Dogrulamasi
python -m ultratribe.mcp.server --test
# 2. Birim Testleri
python -m unittest discover -s tests -p "test_*.py"Lisans
Bu yazilim MIT Lisansi altinda lisanslanmistir.
Available Tools
4 toolsbenchmark_inferenceC
Runs synthetic in-memory benchmark to test model speed (ms/batch), throughput, and VRAM footprint.
Inputs: seq_len, batch_size, iterations.
get_atlas_regionsC
Retrieves Human Connectome Project (HCP) cortical or Harvard-Oxford subcortical ROI regions.
Inputs: atlas_type.
list_supported_studiesA
Lists available neural decoding studies (Algonauts 2025, BOLD5000, Wen 2017, Lebel 2023).
Inputs: no named parameters.
system_diagnosticsA
Returns hardware info, CUDA capability, VRAM, and UltraTribe framework status.
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
Each tool has a clearly distinct purpose: system diagnostics, inference benchmarking, listing supported datasets, and fetching atlas regions. There is no meaningful overlap between any two tools.
Three tools follow a clear verb_noun pattern (benchmark_inference, list_supported_studies, get_atlas_regions), but system_diagnostics breaks the pattern by using a noun phrase. The naming remains readable and mostly consistent.
Four tools is a reasonable size for a specialized server, but the set feels slightly minimal for the breadth of 'neural decoding' hinted at by the study and atlas tools. Still, each tool has a clear role and the count is not problematic.
The tools cover diagnostics, benchmarking, study listing, and atlas region lookup, but there are no tools to fetch study details, access actual neural data, or run decoding workflows. This creates notable gaps if the server is meant to support end-to-end neural decoding research.
Maintenance
Related MCP Connectors
Remote MCP server exposing SMI Aware tools, resources, and skills over Streamable HTTP.
AI Reasoning Cache & Consensus Layer with 11 MCP tools via Streamable HTTP.
Nifty's MCP server — exposes tasks, projects, messages, and files as tools for AI agents.
Exposes FEDLIN's public security scanners as agent-callable tools over Streamable HTTP.
Related MCP Servers
- FlicenseAqualityBmaintenanceExposes NeuroGraph's scientific API to AI models as MCP tools, enabling them to query, analyze, and visualize brain networks — regions, tracts, connectivity, literature, and cross-species homologies — drawn from a portable SSD-based neuroimaging data library. Lets models read real atlas data, load datasets, compute graph metrics, and produce visualization scene descriptors without acting as the scientific engine itself.123-
- AlicenseNot gradedqualityAmaintenanceEnables MCP-compatible clients to manage and run local or cloud LLMs, generate completions and embeddings, and perform web search/fetch through exposed tools.956 npmAGPL 3.0
- AlicenseNot gradedqualityCmaintenanceEnables AI clients to perform sandboxed file-system operations, read-only SQLite querying and schema inspection, environment diagnostics, and cryptographic hashing over Stdio or HTTP using JSON-RPC.2MIT
- AlicenseNot gradedqualityBmaintenanceEnables LLMs and autonomous agents to calculate and monitor frontal cerebral regional oxygen saturation, fractional tissue oxygen extraction, and cognitive endurance through native JSON-RPC tool integration.7MIT