bible-ecrivain

bible-ecrivain

MCP server for managing a writer's bible, a structured and searchable knowledge base of a narrative universe with tools for characters, places, events, and semantic search.

Category
访问服务器

README

Bible d'Ecrivain MCP

Serveur MCP standalone pour gerer une bible d'ecrivain — une base de connaissances structuree et cherchable d'un univers narratif.

La bible centralise personnages, lieux, evenements, interactions, regles du monde, recherches et notes. Deux interfaces : outils MCP pour les agents IA, et UI web pour l'humain.

"Bob portait des lunettes a l'eglise du chateau ?"
  --> L'agent interroge la bible
  --> "Oui, Bob portait encore ses lunettes au chapitre 6.
       Il ne s'est fait operer qu'au chapitre 9."

Interface web

Dashboard

Le dashboard affiche les statistiques de la bible avec des cartes illustrees par type d'entite.

Graph

Le graph relationnel permet d'explorer visuellement les connexions entre personnages, lieux, evenements et interactions. Cliquer sur un noeud affiche ses details et ses connexions dans un panneau lateral.

Timeline

La timeline affiche les evenements dans l'ordre narratif, avec les personnages et lieux associes.

Installation

Prerequis : Node.js >= 20, pnpm

git clone <url>
cd barda-mcp-ecrivain-bible
pnpm install
pnpm build

Au premier lancement, le modele d'embeddings (~200 MB) est telecharge automatiquement depuis HuggingFace. C'est une operation unique.

Utilisation

Mode UI (web)

pnpm dev        # Dev : MCP HTTP + UI Vite (hot reload)
pnpm start      # Prod : MCP HTTP + UI statique sur http://localhost:3000

Mode MCP (stdio)

pnpm dev:mcp    # Dev : MCP stdio (pour agents IA)

Configuration MCP

Claude Desktop

Ajouter dans claude_desktop_config.json :

{
  "mcpServers": {
    "bible-ecrivain": {
      "command": "node",
      "args": ["/chemin/vers/barda-mcp-ecrivain-bible/packages/mcp/dist/index.js"]
    }
  }
}

Claude Code

Ajouter dans les settings MCP :

{
  "bible-ecrivain": {
    "command": "node",
    "args": ["/chemin/vers/barda-mcp-ecrivain-bible/packages/mcp/dist/index.js"]
  }
}

Cruchot (barda)

  1. Installation de Cruchot : https://github.com/eRom/cruchot
  2. Télécharger ou cloner le repo puis : Cruchot > Personnaliser > Brigade > Importer un barda

Ou : Ajouter la definition dans la configuration du MCP dans Cruchot :

{
  "command": "node",
  "args": ["/chemin/vers/barda-mcp-ecrivain-bible/packages/mcp/dist/index.js"],
  "transportType": "stdio"
}

Base de donnees personnalisee

Par defaut, la bible est stockee dans packages/mcp/data/bible.db. Pour utiliser un autre chemin :

"args": ["/chemin/vers/dist/index.js", "--db-path", "/chemin/vers/ma-bible.db"]

Fonctionnalites

Domaine Tools Description
Personnages 5 Fiches completes (physique, personnalite, background)
Lieux 5 Descriptions, atmosphere, geographie
Evenements 7 Timeline narrative, chronologie, filtres avances
Interactions 6 Relations entre personnages, reseau relationnel
Regles du Monde 5 Magie, technologie, societe, religion...
Recherches 5 Notes de recherche documentaire avec sources
Notes 5 Notes libres avec tags
Recherche 2 Fulltext (FTS5) + semantique (embeddings)
Export / Import 2 Markdown structure + import JSON massif
Embeddings 1 Re-indexation batch (reindex_embeddings)
Utilitaires 5 Backup/restore, stats, doublons, templates
Total 48

La recherche semantique retrouve l'information par le sens, pas juste par les mots exacts. Ideal pour les questions floues comme "je sais plus si Bob avait des problemes de vue".

Pour la documentation complete de chaque outil avec parametres et exemples, voir documentation/mcp.md.

Architecture

UI React (navigateur)                   Agent IA (Claude / Cruchot)
+-------------------+                   +---------------------+
| Dashboard, Graph  |                   | LLM = intelligence  |
| Timeline, CRUD    |                   | Analyse, comprend,  |
| Recherche         |                   | decide quoi stocker |
+--------+----------+                   +----------+----------+
         |                                         |
    HTTP POST /mcp                            stdio JSON-RPC
    (JSON-RPC)                                     |
         |                                         |
         v                                         v
+----------------------------------------------------------+
|                  Bible MCP (ce serveur)                   |
|                                                          |
|  McpServer  -->  48 tools  -->  Drizzle ORM  -->  SQLite |
|                                  FTS5 + Embeddings       |
|                              (1 seul fichier .db)        |
+----------------------------------------------------------+
  • Le client (LLM ou UI) interroge la bible via les memes outils MCP.
  • La bible est la memoire : elle stocke, indexe, et retrouve. Pas de LLM embarque.
  • Un seul fichier bible.db = toute la bible. Backup = copier ce fichier.

Stack technique

Brique Choix
Runtime Node.js >= 20, TypeScript (strict)
MCP @modelcontextprotocol/sdk (stdio + HTTP)
DB SQLite via better-sqlite3 + Drizzle ORM
Fulltext SQLite FTS5
Embeddings @huggingface/transformers (Xenova/multilingual-e5-base, local)
UI React 19, Vite, Tailwind CSS 4, TanStack Query, Sigma.js
Tests vitest (90 tests : 61 MCP + 29 UI)
Build tsup (MCP) + Vite (UI), monorepo pnpm workspaces

Developpement

pnpm dev              # MCP HTTP + UI (dev complet)
pnpm dev:mcp          # MCP stdio uniquement
pnpm dev:ui           # UI Vite dev server (proxy vers MCP)
pnpm build            # Build production (MCP + UI)
pnpm test             # Tous les tests (90)
pnpm --filter @barda/mcp test   # Tests MCP (61)
pnpm --filter @barda/ui test    # Tests UI (29)

Licence

MIT

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选