tribeRef MCP Server
OfficialProvides persistent tribal memory, session tracking, artifact logging, decision recording, entity management, and task management using Supabase as the backend database.
Click on "Install 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., "@tribeRef MCP Serverquery tribal memory for payment architecture decisions"
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.
tribeRef MCP Server
Tribal memory infrastructure for tribeCast AI agents. This is an MCP (Model Context Protocol) server that provides persistent memory across Claude Code sessions.
What tribeRef Does
Tribal Memory (
ref_tribal_memory) - Query decisions, entities, schemas, and active tasksSession Context (
ref_session_context) - Track tokens used, items retrieved, session stateLog Artifacts (
ref_log_artifact) - Write outputs back to tribal memoryLog Decisions (
log_decision) - Record architectural and strategic decisionsManage Entities (
upsert_entity) - Create/update tracked objects (products, services, schemas)Task Management (
create_task,log_completion) - Track work items for agents
Related MCP server: memcp
Setup
1. Install Dependencies
cd packages/triberef-mcp
npm install2. Configure Supabase
Copy .env.example to .env and fill in your Supabase credentials:
cp .env.example .envRequired environment variables:
SUPABASE_URL- Your Supabase project URLSUPABASE_SERVICE_KEY- Your Supabase service role key
3. Run Database Migration
Execute the migration in your Supabase SQL editor:
supabase/migrations/001_tribemcp_foundation.sql
Or use the Supabase CLI.
4. Build
npm run build5. Run
Stdio mode (for Claude Desktop/CLI):
npm start
# or
node dist/index.cjsHTTP mode (for browser/API access):
npm run start:http
# or
TRANSPORT=http node dist/index.cjsClaude Desktop Configuration
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"triberef": {
"command": "node",
"args": ["/path/to/tribecast/packages/triberef-mcp/dist/index.cjs"],
"env": {
"SUPABASE_URL": "your-supabase-url",
"SUPABASE_SERVICE_KEY": "your-service-key"
}
}
}
}Development
# TypeScript watch mode
npm run dev
# Type checking
npm run check
# Build and inspect with MCP inspector
npm run build && npm run inspectTools
ref_tribal_memory
Query tribal memory with deduplication (items already retrieved in session are filtered).
{
"query": "payment architecture",
"include": ["decisions", "entities", "tasks"],
"max_tokens": 5000
}ref_session_context
Get current session state.
{}Returns: session ID, tokens used/remaining, items retrieved counts.
ref_log_artifact
Log an artifact back to tribal memory.
{
"task_id": "TRIBE-001",
"type": "code",
"name": "src/tools/tribal-memory.ts",
"content": "..."
}log_decision
Record an architectural decision.
{
"topic": "Database architecture",
"decision": "Use Supabase PostgreSQL",
"rationale": "Existing infrastructure, real-time subscriptions",
"tags": ["database", "infrastructure"]
}upsert_entity
Create or update an entity.
{
"name": "tribeRef",
"type": "product",
"description": "Tribal memory MCP server",
"status": "building",
"tags": ["mcp", "infrastructure"]
}create_task
Create a work item.
{
"task_id": "TRIBE-003",
"title": "Implement expert agent consultations",
"spec": "Add ref_expert_agent tool...",
"related_entities": ["tribeRef", "tribeAgent"]
}log_completion
Mark task complete with artifacts.
{
"task_id": "TRIBE-001",
"artifacts": [
{ "type": "code", "name": "src/index.ts" },
{ "type": "migration", "name": "001_foundation.sql" }
]
}Architecture
src/
├── index.ts # MCP server entry point
├── db.ts # Supabase client & types
├── session.ts # Session tracking & dedup
├── tools/
│ ├── tribal-memory.ts # ref_tribal_memory, log_decision, upsert_entity
│ ├── session-context.ts # ref_session_context
│ └── log-artifact.ts # ref_log_artifact, create_task, log_completion
└── utils/
└── tokens.ts # Token estimation utilitiesLicense
MIT (forked from ref-tools/ref-tools-mcp)
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/tribecast-org/triberef-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server