Phloem MCP Server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Phloem MCP ServerRetrieve knowledge about the API authentication flow."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Phloem
Phloem is an enterprise-grade, self-hosted knowledge base platform built on RAGFlow. It wraps the engine with a typed Node.js API gateway and MCP server for seamless Agent integration.
Phloem (韧皮部) — the vascular tissue that transports nutrients through a plant. Knowledge should flow the same way.
Why Phloem
Self-hosted — your documents, your infrastructure, your control. No data leaves your environment.
Agent-ready — expose your knowledge base via REST API or MCP server, so AI agents get grounded, retrieval-augmented answers.
Typed end-to-end — one OpenAPI contract drives gateway routes, client SDK, and mock layers. Fewer integration surprises.
Swappable backend — an adapter layer isolates RAGFlow; swap or upgrade the engine without touching business code.
Extensible — a registry of extension points (middleware, routes, MCP tools, web modules) designed for plugin-style customization without forking.
Related MCP server: sage-mcp
Architecture
┌────────────┐ REST ┌─────────────┐ ┌──────────────┐
│ Web UI │──────────▶│ Gateway │──adapter──▶│ RAGFlow │
│ (Next.js) │ │ (NestJS) │ │ (submodule) │
└────────────┘ └──────┬──────┘ └──────────────┘
│
┌──────┴──────┐
│ MCP Server │ ◀── Claude Desktop, Cursor, custom agents
└─────────────┘Packages
Package | Description |
Types, Zod schemas, API contracts | |
NestJS (Fastify) API gateway with adapter layer | |
MCP server exposing knowledge tools | |
Next.js 15 App Router console, static export | |
| Shared ESLint flat config |
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 (dev)
# Gateway
pnpm --filter @phloem/gateway dev
# Web console (Next.js dev server, port 5273)
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
The REST contract is the single source of truth: openapi.yaml.
Core resources:
POST /v1/retrieval— hybrid retrieval across datasetsGET/POST /v1/datasets— knowledge base managementPOST /v1/datasets/{id}/documents— document uploadGET /healthz— liveness probe
MCP Tools
Tool | Description |
| Hybrid retrieval across knowledge bases |
| List available knowledge bases |
Development
pnpm run build # build all packages
pnpm run typecheck # strict TS check across the monorepo
pnpm run lint # ESLint + PrettierCommits follow Conventional Commits. Hooks (lint-staged + commitlint) enforce this automatically.
License
Links
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