Foliant

Foliant

Self-hosted MCP server for D&D 5e rules reference, answering rule questions, providing character summaries, and assisting with character creation, based on imported sources with proper attribution.

Category
Visit Server

README

Foliant für D&D

CI License: MIT Python

Self-hosted MCP-Server als Regel-Nachschlagewerk für D&D 5e (Fassung 2024), Deutsch-first — kurz: Foliant. Beantwortet Regelfragen (Kampf + außerhalb), liefert Steckbriefe und unterstützt die Charaktererstellung — geerdet auf importierte Quellen, mit Quelle/Seite/Version und korrektem Spieldeutsch (englischer Begriff in Klammern, * wenn keine offizielle Übersetzung).

Aufbau

  • PROJEKT-UEBERSICHT.md — Wegweiser über alle Dokumente (dort starten).
  • docs/foliant-anforderungen.md — verbindliche Anforderungen (das „Was", Rev. 8).
  • CLAUDE.md — operative Anleitung für Claude Code (Betrieb, Pipelines, Gotchas).
  • app/ — FastMCP-Server, Tools, Zugriffsschutz, Admin-CLI. importer/ — PDF/OCR/ Markdown/Glossar/Open5e/DDB. db/ — Schema + Init. config/ — Verhaltensregeln + Config-Vorlage. tests/ — Abnahme (T1–T12), Smoke, Regressionen. docs/archiv/ — historisch.

Stand (11.07.2026)

MVP komplett und live auf dem Raspberry Pi: ~9490 Einträge aus 12 Quellen (dt. SRD 5.2.1, Open5e, 10 D&D-Beyond-Bücher), 16 Tools, Zugang über Geheimpfad + IP-Allowlist, Datenbank-QS abgeschlossen. Offene Schritte bis zur Gruppennutzung: docs/MVP-ABGLEICH-UND-ROADMAP.md.

Schnellstart Entwicklung (am Mac)

  1. python -m venv .venv && source .venv/bin/activate && pip install -r requirements.txt
  2. python db/init_db.py data/foliant.sqlite
  3. cp config/foliant.example.toml config/foliant.toml und Quellen/Pfade eintragen.
  4. Importieren: python -m app.admin import --quelle srd-de (bzw. open5e-srd-2024, glossar); prüfen mit make test (= pytest beider venvs + admin check + Smoke + Golden-Suite gegen den echten Bestand).
  5. Server lokal: .venv/bin/uvicorn app.server:app --port 8000 → GET /ready = 200, MCP-Endpoint unter http://localhost:8000/mcp (Dev ohne Geheimpfad).

Betrieb/Deployment (Pi, Docker, Tunnel, Zugangsschutz, OCR-Vorstufe, DDB-Import): docs/DEPLOY-raspberry-pi.md und docs/DDB-IMPORT-anleitung.md.

Öffentlicher Code, private Inhalte

Dieses Repository enthält den Quellcode und die SRD-5.2.1-Import-Pipeline (CC-BY-4.0) als vollständiges Referenzbeispiel. Es enthält keine kommerziellen Regelinhalte. Die aus gekauften Druck-Büchern abgeleiteten Import-Reparaturen liegen bewusst in privaten, .gitignore-ten Modulen (importer/frhof_reparatur.py, importer/reparatur_ddb_privat.py, tests/test_ddb_druck_privat.py). Ohne sie bleibt der Server voll funktionsfähig — nur die kommerziellen Druck-Importe entfallen (die zugehörigen Tests überspringen sich selbst).

Mitwirken

Lizenz & Recht

  • Code: MIT — siehe LICENSE.
  • SRD 5.2.1 (deutsch/englisch) und Open5e-Daten: CC-BY-4.0, siehe docs/ATTRIBUTION.md.
  • Kommerzielle D&D-Bücher (z. B. via D&D Beyond) sind urheberrechtlich geschützt, werden nicht mitgeliefert und nur privat/rechtmäßig erworben zum Eigenbedarf verarbeitet.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured