Skip to main content
Glama
README.md
<div align="center">

# ๐ŸŽฏ MCParr AI Gateway

**Turn your homelab into an AI-powered automation hub**

[![Version](https://img.shields.io/github/v/tag/sharkhunterr/mcparr?label=version&color=blue)](https://github.com/sharkhunterr/mcparr/releases)
[![Docker](https://img.shields.io/docker/v/sharkhunterr/mcparr?label=docker&color=2496ED)](https://hub.docker.com/r/sharkhunterr/mcparr)
[![Docker Pulls](https://img.shields.io/docker/pulls/sharkhunterr/mcparr?color=2496ED)](https://hub.docker.com/r/sharkhunterr/mcparr)
[![License](https://img.shields.io/badge/license-MIT-green.svg)](LICENSE)

[![Python](https://img.shields.io/badge/Python-3.11+-3776AB?logo=python&logoColor=white)](https://python.org)
[![FastAPI](https://img.shields.io/badge/FastAPI-0.104+-009688?logo=fastapi&logoColor=white)](https://fastapi.tiangolo.com)
[![React](https://img.shields.io/badge/React-18+-61DAFB?logo=react&logoColor=white)](https://reactjs.org)
[![TypeScript](https://img.shields.io/badge/TypeScript-5+-3178C6?logo=typescript&logoColor=white)](https://typescriptlang.org)
[![i18n](https://img.shields.io/badge/i18n-5_languages-blueviolet.svg)](#-multi-language-support)

![MCParr Dashboard](docs/images/dashboard_light.png)

**[Quick Start](#-quick-start)** โ€ข
**[Features](#-features)** โ€ข
**[Docker Hub](https://hub.docker.com/r/sharkhunterr/mcparr)** โ€ข
**[Documentation](docs/)** โ€ข
**[Screenshots](#-screenshots)**

</div>

---

## ๐Ÿš€ What is MCParr?

MCParr bridges AI assistants with your homelab services through the **Model Context Protocol (MCP)**. Control your entire homelab using natural language with Open WebUI, Claude, or any MCP-compatible AI assistant.

**Perfect for:**
- ๐Ÿ  Homelab enthusiasts managing services for family/friends
- ๐Ÿค– AI automation of media requests and downloads
- ๐Ÿ“Š Centralized monitoring and control
- ๐Ÿ”ง Developers building on MCP protocol

> [!WARNING]
> **Vibe Code Project** - This application was built **100% using AI-assisted development** with [Claude Code](https://claude.ai/claude-code) (Anthropic's CLI). See [Acknowledgments](#-acknowledgments) for details on why and how.

---

## โœจ Features

<table>
<tr>
<td width="33%" valign="top">

### ๐ŸŽฌ Service Integration
**15+ homelab services**
- Plex, Overseerr, Tautulli
- Radarr, Sonarr, Prowlarr
- Deluge, Jackett
- Komga, Audiobookshelf, RomM
- Wiki.js, Zammad, Authentik
- Open WebUI, Ollama

[Full service list โ†’](docs/USER_GUIDE.md#services-management)

</td>
<td width="33%" valign="top">

### ๐Ÿค– AI Automation
**100+ MCP tools**
- Natural language control
- Tool chains with IF/THEN logic
- Global cross-service search
- Group-based permissions
- Auto-config for Open WebUI

[MCP docs โ†’](docs/MCP.md)

</td>
<td width="33%" valign="top">

### ๐Ÿ“Š Observability
**Complete monitoring**
- Real-time WebSocket logs
- System metrics dashboard
- Custom alert rules
- Prometheus metrics
- Correlation ID tracing

[Monitoring guide โ†’](docs/USER_GUIDE.md#monitoring)

</td>
</tr>
</table>

### ๐ŸŽจ Modern Web UI
- ๐ŸŒ **5 languages** (EN, FR, DE, ES, IT)
- ๐ŸŒ“ Light/Dark/Auto themes
- ๐Ÿ“ฑ Fully responsive design
- ๐Ÿงญ Interactive setup wizard
- ๐Ÿ’พ Backup/restore configuration

### ๐Ÿง  AI Training (Experimental)
- Custom Ollama model training
- GPU worker support
- 94+ validated prompts
- Progress tracking

---

## ๐Ÿƒ Quick Start

### Option 1: Docker (Recommended)

```bash
# Pull the latest image
docker pull sharkhunterr/mcparr:latest

# Run with Docker Compose
curl -o docker-compose.yml https://raw.githubusercontent.com/sharkhunterr/mcparr/master/docker/docker-compose.yml
docker compose up -d
```

**Access**: http://localhost:3000

๐Ÿ“– **[Complete Docker guide โ†’](docker/README.md)** | **[Docker Hub โ†’](https://hub.docker.com/r/sharkhunterr/mcparr)**

### Option 2: Local Development

```bash
# Clone and setup
git clone https://github.com/sharkhunterr/mcparr.git
cd mcparr
npm run setup

# Start dev servers
npm run dev

# Access
# Frontend: http://localhost:3000
# API docs: http://localhost:8000/docs
```

๐Ÿ“– **[Development guide โ†’](docs/INTEGRATION_GUIDE.md)**

---

## ๐Ÿ”ง Configuration

MCParr requires minimal configuration to get started:

```yaml
# docker-compose.yml
environment:
  - LOG_LEVEL=INFO                        # debug, info, warning, error
  - DATABASE_URL=sqlite:///data/mcparr.db # or PostgreSQL
  - REDIS_URL=redis://localhost:6379     # optional cache
```

After first launch, use the **Setup Wizard** to:
1. Select your language
2. Import existing config (optional)
3. Tour MCParr features
4. Configure your services

๐Ÿ“– **[Configuration guide โ†’](docs/CONFIGURATION.md)** | **[User guide โ†’](docs/USER_GUIDE.md)**

---

## ๐Ÿ’ฌ AI Integration

### With Open WebUI (Recommended)

1. **Add Open WebUI service** in MCParr
2. Go to **MCP โ†’ Configuration**
3. Click **Auto-Configure** โ†’ Select services
4. Enable tools in Open WebUI chat

```
You: Request the new season of Foundation
AI: โœ… I've requested Foundation Season 2 via Overseerr!

You: What movies do I have about space?
AI: ๐ŸŽฌ Found 23 space movies in your Plex library...

You: How are my downloads?
AI: ๐Ÿ“ฅ You have 3 movies and 5 episodes downloading...
```

### With Claude Desktop

Add to `~/.config/claude/claude_desktop_config.json`:

```json
{
  "mcpServers": {
    "mcparr": {
      "command": "curl",
      "args": ["-N", "http://localhost:8001/sse"]
    }
  }
}
```

๐Ÿ“– **[AI integration guide โ†’](docs/MCP.md)**

---

## ๐Ÿ“ธ Screenshots

<details open>
<summary><b>๐ŸŽฏ Dashboard & Services</b></summary>

| Dashboard | Services Management |
|-----------|---------------------|
| ![Dashboard](docs/images/dashboard_light.png) | ![Services](docs/images/services.png) |

</details>

<details>
<summary><b>๐Ÿ‘ฅ User & Group Management</b></summary>

| User Auto-Detection | Group Permissions |
|---------------------|-------------------|
| ![Users](docs/images/user_auto.png) | ![Groups](docs/images/user_group_add_tool.png) |

</details>

<details>
<summary><b>๐Ÿ“Š Monitoring & Logs</b></summary>

| System Metrics | Log Viewer |
|----------------|------------|
| ![Metrics](docs/images/monitoring_metrics.png) | ![Logs](docs/images/monitoring_log.png) |

</details>

**[View all screenshots โ†’](docs/images/)**

---

## ๐Ÿ“š Documentation

| Guide | Description |
|-------|-------------|
| [Installation](docs/INSTALLATION.md) | Complete setup instructions |
| [Docker](docker/README.md) | Docker deployment guide |
| [Configuration](docs/CONFIGURATION.md) | Environment & service config |
| [User Guide](docs/USER_GUIDE.md) | Complete UI guide, services & monitoring |
| [MCP Integration](docs/MCP.md) | AI integration, tool chains & permissions |
| [API Reference](docs/API.md) | REST API endpoints |
| [Integration Guide](docs/INTEGRATION_GUIDE.md) | Developer guide for new services |
| [Scripts](scripts/README.md) | Release automation & CI/CD |

---

## ๐ŸŒ Multi-Language Support

MCParr is fully translated into **5 languages**:

๐Ÿ‡ฌ๐Ÿ‡ง English โ€ข ๐Ÿ‡ซ๐Ÿ‡ท Franรงais โ€ข ๐Ÿ‡ฉ๐Ÿ‡ช Deutsch โ€ข ๐Ÿ‡ช๐Ÿ‡ธ Espaรฑol โ€ข ๐Ÿ‡ฎ๐Ÿ‡น Italiano

All translations generated with Claude Code. Want to add a language? See [Integration Guide](docs/INTEGRATION_GUIDE.md#11-step-9-internationalization-i18n).

---

## ๐Ÿ› ๏ธ Technology Stack

**Backend**: Python 3.11 โ€ข FastAPI โ€ข SQLAlchemy โ€ข Alembic โ€ข Redis โ€ข MCP

**Frontend**: React 18 โ€ข TypeScript โ€ข Tailwind CSS โ€ข Vite โ€ข i18next

**DevOps**: Docker โ€ข GitLab CI โ€ข GitHub Actions โ€ข Prometheus

**[Architecture details โ†’](docs/INTEGRATION_GUIDE.md#1-architecture-overview)**

---

## ๐Ÿ—๏ธ Architecture

### Global Architecture

```mermaid
flowchart TB
    subgraph Clients["๐Ÿ–ฅ๏ธ AI Clients"]
        OW[Open WebUI]
        CD[Claude Desktop]
        API[REST API Client]
    end

    subgraph MCParr["๐ŸŽฏ MCParr Gateway"]
        subgraph Backend["FastAPI Backend :8000"]
            REST[REST API<br/>/api/*]
            OA[OpenAPI Tools<br/>/tools/*]
            TR[Tool Registry]
            PM[Permission Manager]
        end

        subgraph MCP["MCP Server :8001"]
            SSE[SSE Endpoint<br/>/sse]
            MSG[Message Handler]
        end

        subgraph Data["Data Layer"]
            DB[(SQLite/PostgreSQL)]
            REDIS[(Redis Cache)]
        end
    end

    subgraph Services["๐Ÿ”ง Homelab Services"]
        direction LR
        PLEX[Plex]
        OV[Overseerr]
        RAD[Radarr]
        SON[Sonarr]
        MORE[...]
    end

    OW -->|OpenAPI + JWT| OA
    CD -->|MCP Protocol| SSE
    API -->|REST| REST

    OA --> TR
    SSE --> MSG --> TR
    REST --> TR

    TR --> PM
    PM --> DB
    TR --> REDIS

    TR -->|HTTP| Services
```

### Request Flow Sequence

```mermaid
sequenceDiagram
    participant User as ๐Ÿ‘ค User
    participant AI as ๐Ÿค– AI Assistant
    participant MCParr as ๐ŸŽฏ MCParr
    participant Service as ๐Ÿ”ง Service

    User->>AI: "Request Foundation Season 2"
    AI->>MCParr: Call overseerr_request_media

    Note over MCParr: Validate JWT Token
    Note over MCParr: Check User Permissions
    Note over MCParr: Resolve User Mapping

    MCParr->>Service: POST /api/v1/request
    Service-->>MCParr: 201 Created

    Note over MCParr: Log Request
    Note over MCParr: Update Metrics

    MCParr-->>AI: Success Response
    AI-->>User: "โœ… Foundation S2 requested!"
```

---

## ๐Ÿค Contributing

Contributions welcome! Please:

1. Read the [Integration Guide](docs/INTEGRATION_GUIDE.md) for development details
2. Fork and create a feature branch
3. Run tests: `npm run lint && npm test`
4. Submit a pull request

**Releases**: We use automated release scripts. See [Scripts documentation](scripts/README.md) for details.

---

## ๐Ÿ“ฆ Releases & Docker

### Latest Release

Check [Releases](https://github.com/sharkhunterr/mcparr/releases) for changelogs and downloads.

### Docker Images

```bash
# Latest stable
docker pull sharkhunterr/mcparr:latest

# Specific version
docker pull sharkhunterr/mcparr:v0.2.33
```

**Platforms**: `linux/amd64`, `linux/arm64`

**[Docker Hub โ†’](https://hub.docker.com/r/sharkhunterr/mcparr)** | **[Release automation โ†’](scripts/README.md)**

---

## ๐Ÿ™ Acknowledgments

**The Need**: Managing 15+ homelab services for family and friends became overwhelming โ€” scattered UIs, manual requests, no unified control.

**The Solution**: MCParr was born to bridge AI assistants with homelab services, letting users make requests in natural language instead of learning multiple interfaces.

**The Approach**: As a young parent with limited time and no fullstack development experience (neither backend nor frontend), traditional coding wasn't an option. Built entirely through [Claude Code](https://claude.ai/claude-code) using "vibe coding" โ€” pure conversation, no manual coding required.

**The Architecture**: Structured using [GitHub Spec-Kit](https://github.com/github/spec-kit) methodology for maintainable, scalable design.

Special thanks to the homelab community and all contributors!

---

## ๐Ÿ“„ License

MIT License - see [LICENSE](LICENSE) file for details.

---

<div align="center">

**Built with Claude Code ๐Ÿค– for the homelab community ๐Ÿ **

[![GitHub](https://img.shields.io/badge/GitHub-sharkhunterr/mcparr-181717?logo=github)](https://github.com/sharkhunterr/mcparr)
[![Docker Hub](https://img.shields.io/badge/Docker-sharkhunterr/mcparr-2496ED?logo=docker&logoColor=white)](https://hub.docker.com/r/sharkhunterr/mcparr)
[![Documentation](https://img.shields.io/badge/Docs-Read%20Now-blue?logo=bookstack)](docs/)

[โญ Star on GitHub](https://github.com/sharkhunterr/mcparr) โ€ข [๐Ÿ› Report Bug](https://github.com/sharkhunterr/mcparr/issues) โ€ข [๐Ÿ’ก Request Feature](https://github.com/sharkhunterr/mcparr/issues)

</div>