Tribal - MCP server for error knowledge tracking and retrieval

Tribal - MCP server for error knowledge tracking and retrieval

tribal_mcp_server•byagentience

Tribal stores and retrieves programming error records with solutions, offering a native MCP interface and REST API backed by ChromaDB vector similarity search.

License: MIT License•Runtime: Awaiting documentation review•Category: developer tools

WHAT IT DOES

  • •Provides MCP tools to add, get, update, delete, search, and find similar error records, plus JWT token retrieval.
  • •Uses ChromaDB to store error records and solutions and performs semantic similarity searches.
  • •Can be deployed via Docker and connects to Claude for Desktop and Claude Code over MCP.

BEST FOR

  • •Helping Claude remember programming errors and reuse prior solutions across coding sessions.
  • •Looking up similar past errors and their solutions when a developer hits a problem.

ABOUT TRIBAL_MCP_SERVER

Tribal - MCP server for error knowledge tracking and retrieval is cataloged as an MCP server attributed to agentience. Tribal stores and retrieves programming error records with solutions, offering a native MCP interface and REST API backed by ChromaDB vector similarity search. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT License. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for Tribal - MCP server for error knowledge tracking and retrieval are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

How does Tribal find relevant prior solutions?

It vectorizes the incoming error and searches ChromaDB for similar stored errors, returning relevant solutions.

Does Tribal support authentication?

Yes, it uses JWT authentication with API keys, and authentication requirements can be configured.

上游原版 README

在 GitHub 查看同一版本原文

README.md · eb60cde00f72 · 采集于 2026-11-13 10:35:44 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

Tribal - Knowledge Service

Tribal is an MCP (Model Context Protocol) server implementation for error knowledge tracking and retrieval. It provides both REST API and native MCP interfaces for integration with tools like Claude Code and Cline.

Features

  • Store and retrieve error records with full context
  • Vector similarity search using ChromaDB
  • REST API (FastAPI) and native MCP interfaces
  • JWT authentication with API keys
  • Local storage (ChromaDB) and AWS integration
  • Docker-compose deployment
  • CLI client integration

Overview

Tribal helps Claude remember and learn from programming errors. When you start a Claude Code session, Tribal is automatically available through MCP without additional imports.

Claude will:

  1. Store programming errors and solutions
  2. Search for similar errors when you encounter problems
  3. Build a knowledge base specific to your coding patterns

Packaging and Installing Tribal with uv

Prerequisites

  • Python 3.12+
  • uv package manager (recommended)

Build and Install Steps

Option 1: Direct installation with uv

The simplest approach is to install directly from the current directory:

# From the project root directory
cd /path/to/tribal

# Install using uv
uv pip install .

Option 2: Development Installation

For development work where you want changes to be immediately reflected:

# From the project root directory
cd /path/to/tribal

# Install in development mode
uv pip install -e .

Option 3: Build the package first

If you want to build a distributable package:

# Make sure you're in the project root directory
cd /path/to/tribal

# Install the build package if needed
uv pip install build

# Build the package
python -m build

# This creates distribution files in the dist/ directory
# Now install the wheel file
uv pip install dist/tribal-0.1.0-py3-none-any.whl

Option 4: Using the uv tool install command

You can also use the tool installation approach:

# Install as a global tool
cd /path/to/tribal
uv tool install .

# Or install in development mode
uv tool install -e .

Verification

After installation, verify that the tool is properly installed:

# Check the installation
which tribal

# Check the version
tribal version

Integration with Claude

After installation, you can integrate with Claude:

# Add Tribal to Claude Code
claude mcp add tribal --launch "tribal"

# Verify the configuration
claude mcp list

# For Docker container
claude mcp add tribal http://localhost:5000

Usage

Available MCP Tools

Tribal provides these MCP tools:

  1. add_error - Create new error record (POST /errors)
  2. get_error - Retrieve error by UUID (GET /errors/{id})
  3. update_error - Modify existing error (PUT /errors/{id})
  4. delete_error - Remove error record (DELETE /errors/{id})
  5. search_errors - Find errors by criteria (GET /errors)
  6. find_similar - Semantic similarity search (GET /errors/similar)
  7. get_token - Obtain JWT token (POST /token)

Example Usage with Claude

When Claude encounters an error:

I'll track this error and look for similar problems in our knowledge base.

When Claude finds a solution:

I've found a solution! I'll store this in our knowledge base for next time.

Commands for Claude

You can ask Claude to:

  • "Look for similar errors in our Tribal knowledge base"
  • "Store this solution to our error database"
  • "Check if we've seen this error before"

Running the Server

Using the tribal command

# Run the server
tribal

# Get help
tribal help

# Show version
tribal version

# Run with options
tribal server --port 5000 --auto-port

Using Python modules

# Run the Tribal server
python -m mcp_server_tribal.mcp_app

# Run the FastAPI backend server
python -m mcp_server_tribal.app

Using legacy entry points

# Legacy MCP server
mcp-server

# Legacy FastAPI server
mcp-api

Command-line Options

# Development mode with auto-reload
mcp-api --reload
mcp-server --reload

# Custom port
mcp-api --port 8080
mcp-server --port 5000

# Auto port selection
mcp-api --auto-port
mcp-server --auto-port

The FastAPI server will be available at http://localhost:8000 with API documentation at /docs. The MCP server will be available at http://localhost:5000 for Claude and other MCP-compatible LLMs.

Environment Variables

FastAPI Server

  • PERSIST_DIRECTORY: ChromaDB storage path (default: "./chroma_db")
  • API_KEY: Authentication key (default: "dev-api-key")
  • SECRET_KEY: JWT signing key (default: "insecure-dev-key-change-in-production")
  • REQUIRE_AUTH: Authentication requirement (default: "false")
  • PORT: Server port (default: 8000)

MCP Server

  • MCP_API_URL: FastAPI server URL (default: "http://localhost:8000")
  • MCP_PORT: MCP server port (default: 5000)
  • MCP_HOST: Host to bind to (default: "0.0.0.0")
  • API_KEY: FastAPI access key (default: "dev-api-key")
  • AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_S3_BUCKET: For AWS integration

API Endpoints

  • POST /errors: Create new error record
  • GET /errors/{error_id}: Get error by ID
  • PUT /errors/{error_id}: Update error record
  • DELETE /errors/{error_id}: Delete error
  • GET /errors: Search errors by criteria
  • GET /errors/similar: Find similar errors
  • POST /token: Get authentication token

Using the Client

# Add a new error record
mcp-client --action add --error-type ImportError --language python --error-message "No module named 'requests'" --solution-description "Install requests" --solution-explanation "You need to install the requests package"

# Get an error by ID
mcp-client --action get --id <error-id>

# Search for errors
mcp-client --action search --error-type ImportError --language python

# Find similar errors
mcp-client --action similar --query "ModuleNotFoundError: No module named 'pandas'"

How It Works

  1. Tribal uses ChromaDB to store error records and solutions
  2. When Claude encounters an error, it sends the error details to Tribal
  3. Tribal vectorizes the error and searches for similar ones
  4. Claude gets back relevant solutions to suggest
  5. New solutions are stored for future reference

Development

Running Tests

pytest
pytest tests/path_to_test.py::test_name  # For specific tests

Linting and Type Checking

ruff check .
mypy .
black .

GitHub Workflow

This project uses GitHub Actions for continuous integration and deployment. The workflow automatically runs tests, linting, and type checking on push to main and pull requests.

Workflow Steps

  1. Test: Runs linting, type checking, and unit tests

    • Uses Python 3.12
    • Installs dependencies with uv
    • Runs ruff, black, mypy, and pytest
  2. Build and Publish: Builds and publishes the package to PyPI

    • Triggered only on push to main branch
    • Uses Python's build system
    • Publishes to PyPI using twine

Testing Locally

You can test the GitHub workflow locally using the provided script:

# Make the script executable
chmod +x scripts/test-workflow.sh

# Run the workflow locally
./scripts/test-workflow.sh

This script simulates the GitHub workflow steps on your local machine:

  • Checks Python version (3.12 recommended)
  • Installs dependencies using uv
  • Runs linting with ruff
  • Checks formatting with black
  • Runs type checking with mypy
  • Runs tests with pytest
  • Builds the package

Note: The script skips the publishing step for local testing.

Project Structure

tribal/
├── src/
│   ├── mcp_server_tribal/      # Core package
│   │   ├── api/                # FastAPI endpoints
│   │   ├── cli/                # Command-line interface
│   │   ├── models/             # Pydantic models
│   │   ├── services/           # Service layer
│   │   │   ├── aws/            # AWS integrations
│   │   │   └── chroma_storage.py # ChromaDB implementation
│   │   └── utils/              # Utility functions
│   └── examples/               # Example usage code
├── tests/                      # pytest test suite
├── docker-compose.yml          # Docker production setup
├── pyproject.toml              # Project configuration
├── VERSIONING.md               # Versioning strategy documentation
├── CHANGELOG.md                # Version history
├── .bumpversion.cfg            # Version bumping configuration
└── README.md                   # Project documentation

Versioning

Tribal follows Semantic Versioning. See VERSIONING.md for complete details about:

  • Version numbering (MAJOR.MINOR.PATCH)
  • Schema versioning for database compatibility
  • Branch naming conventions
  • Release and hotfix procedures

Check the version with:

# Display version information
tribal version

Managing Dependencies

# Add a dependency
uv pip add <package-name>

# Add a development dependency
uv pip add <package-name>

# Update dependencies
uv pip sync requirements.txt requirements-dev.txt

Deployment

Docker Deployment

# Build and start containers
docker-compose up -d --build

# View logs
docker-compose logs -f

# Stop containers
docker-compose down

# With custom environment variables
API_PORT=8080 MCP_PORT=5000 REQUIRE_AUTH=true API_KEY=your-secret-key docker-start

Claude for Desktop Integration

Option 1: Let Claude for Desktop Launch the Server

  1. Open ~/Library/Application Support/Claude/claude_desktop_config.json

  2. Add the MCP server configuration (assumes Tribal tool is already installed):

    {
      "mcpServers": [
        {
          "name": "tribal",
          "launchCommand": "tribal"
        }
      ]
    }
    
  3. Restart Claude for Desktop

Option 2: Connect to Running Docker Container

  1. Start the container:

    cd /path/to/tribal
    docker-start
    
  2. Configure Claude for Desktop:

    {
      "mcpServers": [
        {
          "name": "tribal",
          "url": "http://localhost:5000"
        }
      ]
    }
    

Claude Code CLI Integration

# For Docker container
claude mcp add tribal http://localhost:5000

# For directly launched server
claude mcp add tribal --launch "tribal"

# Test the connection
claude mcp list
claude mcp test tribal

Troubleshooting

  1. Verify Tribal installation: which tribal
  2. Check configuration: claude mcp list
  3. Test server status: tribal status
  4. Look for error messages in the Claude output
  5. Check the database directory exists and has proper permissions

Cloud Deployment

The project includes placeholder implementations for AWS services:

  • S3Storage: For storing error records in Amazon S3
  • DynamoDBStorage: For using DynamoDB as the database

License

MIT License

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for Tribal - MCP server for error knowledge tracking and retrieval from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/tribal_mcp_server)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related developer tools MCP Servers

Alternative and complementary servers in the same category

View all in developer tools →
Postbye
postbye-mcp•postbye-team

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools
Singapore Proxy MCP
singapore-proxy-mcp•Xavierfok

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

0
Developer Tools

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools