Phloem MCP Server
Phloem
Phloemは、RAGFlowをベースに構築されたエンタープライズグレードのセルフホスト型ナレッジベースプラットフォームです。型付けされたNode.js APIゲートウェイとMCPサーバーでエンジンをラップし、エージェントとのシームレスな統合を実現します。
Phloem (韧皮部) — 植物内で栄養を運ぶ維管束組織。知識も同じように流れるべきです。
Why Phloem
セルフホスト — あなたのドキュメント、あなたのインフラ、あなたのコントロール。データが環境外に出ることはありません。
エージェント対応 — REST APIまたはMCPサーバーを介してナレッジベースを公開し、AIエージェントが根拠のある検索拡張回答を得られるようにします。
エンドツーエンドの型付け — 1つのOpenAPIコントラクトがゲートウェイルート、クライアントSDK、モックレイヤーを駆動します。統合時の驚きが少なくなります。
交換可能なバックエンド — アダプターレイヤーがRAGFlowを分離し、ビジネスコードに触れることなくエンジンを交換またはアップグレードできます。
拡張可能 — ミドルウェア、ルート、MCPツール、Webモジュールなどの拡張ポイントのレジストリ。フォークせずにプラグイン形式のカスタマイズが可能です。
Related MCP server: Modular RAG MCP Server
Architecture
┌────────────┐ REST ┌─────────────┐ ┌──────────────┐
│ Web UI │──────────▶│ Gateway │──adapter──▶│ RAGFlow │
│ (React) │ │ (Fastify) │ │ (submodule) │
└────────────┘ └──────┬──────┘ └──────────────┘
│
┌──────┴──────┐
│ MCP Server │ ◀── Claude Desktop, Cursor, custom agents
└─────────────┘Packages
Package | Description |
型、Zodスキーマ、APIコントラクト | |
アダプターレイヤーを備えたFastify APIゲートウェイ | |
ナレッジツールを公開するMCPサーバー | |
React Webコンソール(ダーク、ミニマル) | |
| 共有ESLintフラット設定 |
Getting Started
Prerequisites
Node.js ≥ 22
pnpm ≥ 9
Docker (for RAGFlow backend)
Install
git clone --recurse-submodules https://github.com/phytul/phloem.git
cd phloem
pnpm install
cp deploy/docker/.env.example deploy/docker/.envRun (mock mode — no backend needed)
# Gateway
pnpm --filter @phloem/gateway dev
# Web console (mock data via MSW)
VITE_API_MODE=mock pnpm --filter @phloem/web devRun (with RAGFlow)
# Build and start RAGFlow (Lite profile, Infinity engine)
docker compose -f deploy/docker/docker-compose.yml -f deploy/docker/docker-compose.lite.yml up -d
pnpm --filter @phloem/gateway dev
pnpm --filter @phloem/web devVerify
curl http://localhost:3000/healthzAPI
RESTコントラクトが唯一の真実の情報源です: openapi.yaml。
コアリソース:
POST /v1/retrieval— データセット間のハイブリッド検索GET/POST /v1/datasets— ナレッジベース管理POST /v1/datasets/{id}/documents— ドキュメントアップロードGET /healthz— 生存確認プローブ
MCP Tools
Tool | Description |
| ナレッジベース間のハイブリッド検索 |
| 利用可能なナレッジベースの一覧表示 |
Development
pnpm run build # build all packages
pnpm run typecheck # strict TS check across the monorepo
pnpm run lint # ESLint + PrettierコミットはConventional Commitsに従います。フック(lint-staged + commitlint)がこれを自動的に強制します。
License
Links
This server cannot be deployed
Maintenance
Related MCP Connectors
Cloud or self-hosted knowledge for AI agents: hybrid search, reranking, GraphRAG, scoped MCP tools.
Search your knowledge bases from any AI assistant using hybrid RAG.
Universal persistent memory and knowledge retrieval layer for AI agents and LLMs.
Persistent memory and knowledge graphs for AI agents. Hybrid search, context checkpoints, and more.
Related MCP Servers
- FlicenseNot gradedqualityCmaintenanceHybrid semantic search (dense vector + BM25) over local knowledge bases and codebases, exposed as MCP tools for AI agents to search and list knowledge bases.-
- AlicenseNot gradedqualityDmaintenanceEnables querying private knowledge bases through a modular RAG pipeline with features like hybrid retrieval, reranking, and observability, exposed via the Model Context Protocol.1MIT
- AlicenseNot gradedqualityDmaintenanceExposes RAG-related tools (query_knowledge_hub, list_collections, get_document_summary) via the Model Context Protocol, enabling AI assistants to perform hybrid search, document ingestion, and evaluation on knowledge bases.MIT
- AlicenseNot gradedqualityDmaintenanceA pluggable RAG framework that exposes hybrid search, ingestion, and evaluation tools via the Model Context Protocol, enabling AI assistants like Copilot and Claude to query knowledge bases directly.MIT