Phloem MCP Server
Phloem
Phloem — это корпоративная self-hosted платформа базы знаний, построенная на RAGFlow. Она оборачивает движок типизированным API-шлюзом на Node.js и MCP-сервером для бесшовной интеграции с агентами.
Phloem (韧皮部) — сосудистая ткань, которая транспортирует питательные вещества через растение. Знания должны распространяться так же.
Почему Phloem
Self-hosted — ваши документы, ваша инфраструктура, ваш контроль. Никакие данные не покидают вашу среду.
Готовность к агентам — предоставляйте доступ к базе знаний через REST API или MCP-сервер, чтобы AI-агенты получали обоснованные ответы с дополненной генерацией (RAG).
Сквозная типизация — один контракт OpenAPI управляет маршрутами шлюза, клиентским SDK и слоями моков. Меньше сюрпризов при интеграции.
Заменяемый бэкенд — слой адаптеров изолирует RAGFlow; заменяйте или обновляйте движок, не затрагивая бизнес-код.
Расширяемость — реестр точек расширения (middleware, маршруты, MCP-инструменты, веб-модули) предназначен для настройки в стиле плагинов без форка.
Related MCP server: sage-mcp
Архитектура
┌────────────┐ REST ┌─────────────┐ ┌──────────────┐
│ Web UI │──────────▶│ Gateway │──adapter──▶│ RAGFlow │
│ (Next.js) │ │ (NestJS) │ │ (submodule) │
└────────────┘ └──────┬──────┘ └──────────────┘
│
┌──────┴──────┐
│ MCP Server │ ◀── Claude Desktop, Cursor, custom agents
└─────────────┘Пакеты
Пакет | Описание |
Типы, Zod-схемы, контракты API | |
API-шлюз NestJS (Fastify) со слоем адаптеров | |
MCP-сервер, предоставляющий инструменты знаний | |
Консоль Next.js 15 App Router, статический экспорт | |
| Общая конфигурация ESLint flat config |
Начало работы
Предварительные требования
Node.js ≥ 22
pnpm ≥ 9
Docker (для бэкенда RAGFlow)
Установка
git clone --recurse-submodules https://github.com/phytul/phloem.git
cd phloem
pnpm install
cp deploy/docker/.env.example deploy/docker/.envЗапуск (dev)
# Gateway
pnpm --filter @phloem/gateway dev
# Web console (Next.js dev server, port 5273)
pnpm --filter @phloem/web devЗапуск (с 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 devПроверка
curl http://localhost:3000/healthzAPI
REST-контракт — единственный источник истины: openapi.yaml.
Основные ресурсы:
POST /v1/retrieval— гибридный поиск по наборам данныхGET/POST /v1/datasets— управление базами знанийPOST /v1/datasets/{id}/documents— загрузка документовGET /healthz— проверка живости (liveness)
MCP-инструменты
Инструмент | Описание |
| Гибридный поиск по базам знаний |
| Список доступных баз знаний |
Разработка
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) обеспечивают это автоматически.
Лицензия
Ссылки
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- FlicenseAqualityDmaintenanceEnables AI agents to query a local knowledge graph built from document collections using hybrid search (BM25 + vector fusion) and entity-relationship extraction. Supports privacy-first, offline operation with tools for semantic search, entity graph exploration, and corpus statistics.3
- AlicenseNot gradedqualityDmaintenanceEnables AI coding assistants to search and retrieve information from a locally ingested knowledge base using hybrid search, grounded in user-curated documentation.17MIT
- FlicenseNot gradedqualityCmaintenanceEnables searching a knowledge base and asking grounded questions with hybrid retrieval, reranking, and cited answers.
Related MCP Connectors
Search your knowledge bases from any AI assistant using hybrid RAG.
Persistent memory and knowledge graphs for AI agents. Hybrid search, context checkpoints, and more.
Persistent memory and knowledge management for AI agents with semantic search and 50+ tools.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/yorikhu/phloem'
If you have feedback or need assistance with the MCP directory API, please join our Discord server