tribe-mcp
MCP server that exposes TRIBE brand data from a Turso database, enabling brand-grounded analysis of neural fingerprints, organic posts, and brands through tools like list_brands, get_fingerprint, and compare_fingerprints.
README
tribe-mcp
Standalone MCP server that exposes TRIBE brand data — neural fingerprints, organic posts, and brands — from a Turso (libsql) database to MCP clients like Claude. Lets you do brand-grounded analysis over real data. No app or dashboard required; it only needs a Turso DB with the expected tables.
Tools
| Tool | What it does |
|---|---|
list_brands |
Discover brand IDs to use with the other tools. |
list_fingerprints |
List TRIBE fingerprints (filter by brand / label). |
get_fingerprint |
Pull a full fingerprint with channels + timeline by ID. |
compare_fingerprints |
Pull two fingerprints side-by-side for A/B analysis. |
list_organic_posts |
List Instagram + TikTok posts logged for a brand. |
get_organic_post |
Pull a single organic post with its retention curve. |
write_insight |
Persist an analysis back to the DB so other tools/UIs can read it. |
Setup
Requires Node 18+ and a Turso database (the tables are defined in src/db.ts).
git clone https://github.com/<you>/tribe-mcp.git
cd tribe-mcp
npm install
cp .env.example .env # fill in TURSO_DATABASE_URL + TURSO_AUTH_TOKEN
npm run build
Smoke-test:
TURSO_DATABASE_URL=... TURSO_AUTH_TOKEN=... npm start
# prints "tribe-mcp ready (stdio)" then waits for MCP messages; Ctrl-C to exit.
Connect to Claude
Claude Code (available in every project):
claude mcp add tribe -s user \
-e TURSO_DATABASE_URL="libsql://<your-db>.turso.io" \
-e TURSO_AUTH_TOKEN="<your-token>" \
-- node /ABSOLUTE/PATH/TO/tribe-mcp/dist/index.js
Claude Desktop — add to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"tribe": {
"command": "node",
"args": ["/ABSOLUTE/PATH/TO/tribe-mcp/dist/index.js"],
"env": {
"TURSO_DATABASE_URL": "libsql://<your-db>.turso.io",
"TURSO_AUTH_TOKEN": "<your-token>"
}
}
}
}
Restart the client; the tribe tools appear in conversation.
The model (Modal) — modal_app.py
modal_app.py is the inference backend that produces the fingerprints this MCP
reads. It runs Meta FAIR's TRIBE v2 brain-encoding pipeline on a Modal GPU:
video URL / upload
→ yt-dlp + ffmpeg
→ V-JEPA2 (video) + Wav2Vec2 (audio) + LLaMA (transcript text) features per fMRI TR
→ TRIBE v2 brain encoder → Schaefer-400 / 7-network parcel time-series (T × 400)
→ reduce to 9 channels + global stats + nilearn 3D brain + Whisper transcript
→ Fingerprint JSON (stored in Turso → served by this MCP)
Endpoints (deployed at https://<workspace>--api.modal.run): POST /start → job_id,
GET /poll?job_id=… → running|complete|error, GET /health, plus /serve_brain,
/serve_video, /predictions.
Deploy
pip install modal && modal token new # one-time
# optional Bearer auth (recommended for a public endpoint):
modal secret create tribe-api-key TRIBE_API_KEY="$(openssl rand -base64 32)"
modal deploy modal_app.py
curl https://<workspace>--api.modal.run/health # {"status":"ok","atlas":"schaefer_400_7networks_v1",...}
TRIBE weights
Set TRIBE_CKPT (a path baked into the image or on the mounted Volume) to Meta's
trained TRIBE v2 brain-encoder checkpoint. Without it, a deterministic placeholder
encoder runs so the whole app is end-to-end testable — its numbers are structurally
valid but not real brain predictions.
⚠️ Reconstruction + license. The original
tribev2-by-meta/modal_app.pywas lost; this file is reconstructed from the dashboard's exact API contract + design doc — the serving contract and feature pipeline are faithful; supply the checkpoint for real predictions. TRIBE v2 is CC BY-NC (research only) — this wrapper is MIT, but the model weights are not; don't ship client-facing deliverables from its outputs without a commercial license from Meta.
License
MIT — see LICENSE. (Applies to this wrapper code, not the TRIBE v2 weights.)
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。