TinyBrain

License: MIT Go Version MCP Protocol Security Focused

Security-focused LLM memory storage with intelligence gathering, reverse engineering, and MITRE ATT&CK integration.

TinyBrain is a Model Context Protocol (MCP) server designed for security professionals, penetration testers, and AI assistants working on offensive security tasks. It provides intelligent memory management, pattern recognition, and comprehensive intelligence gathering capabilities.

๐Ÿš€ Quick Start

# Install from source (recommended)
go install github.com/rainmana/tinybrain/cmd/server@latest

# Start the server
tinybrain serve --dir ~/.tinybrain

# Access admin dashboard
open http://127.0.0.1:8090/_/

# Or use Docker
docker build -t tinybrain .
docker run -p 8090:8090 tinybrain

โœจ Key Features

๐Ÿ“š Documentation

๐Ÿ“– Complete Documentation - Comprehensive documentation index

Quick Access:

๐Ÿ› ๏ธ Installation

From Source

go install github.com/rainmana/tinybrain/cmd/server@latest

Docker

docker pull rainmana/tinybrain:latest

Pre-built Binaries

Download from Releases

๐Ÿ’ก Usage

Basic Example

// Create a new intelligence session
session := &Session{
    Name: "OSINT Intelligence Gathering",
    TaskType: "intelligence_analysis",
    IntelligenceType: "osint",
    Classification: "unclassified",
    ThreatLevel: "medium",
}

// Store intelligence findings
finding := &IntelligenceFinding{
    Title: "Social Media Intelligence",
    IntelligenceType: "osint",
    ThreatLevel: "medium",
    MITRETactic: "TA0001",
    MITRETechnique: "T1591",
    KillChainPhase: "reconnaissance",
}

MCP Integration

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "mcp_tinybrain-mcp-server_create_session",
    "arguments": {
      "name": "Security Assessment",
      "task_type": "penetration_test",
      "intelligence_type": "osint"
    }
  }
}

๐Ÿ—๏ธ Architecture

TinyBrain is built with:

PocketBase Integration Benefits

๐Ÿงช Testing

# Run all tests
make test

# Run with coverage
make test-coverage

# Run specific test suite
go test -v ./internal/repository

๐Ÿ“Š Performance

๐Ÿค Contributing

We welcome contributions! Please see our Contributing Guide for details.

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Add tests
  5. Submit a pull request

๐Ÿ“„ License

MIT License - see LICENSE file for details.

๐Ÿ™ Acknowledgments

๐Ÿ“ž Support


TinyBrain - Empowering security professionals with intelligent memory management and comprehensive intelligence gathering capabilities.