xinPlugin_Chroma_fastMCP
xinPlugin_Chroma_fastMCP
MinIO 知识库的向量检索层:把上传到 MinIO 的文档(PDF/txt/md)抽取文本 → 分块 → 向量入库(Chroma),并通过 FastMCP 把「检索」暴露成 MCP 工具,供 DSH(DeepSeek Harness)的 dsh-mcp-client 连接、让 agent 在问答时直接检索原文。
组成
文件 | 作用 |
| Chroma 持久化 + 分块(带页码/行号)+ 混合检索(语义 + 字符二元组 BM25,RRF 融合) |
| CLI 入库: |
| FastMCP stdio 服务,暴露 |
| chromadb / fastmcp / pypdf |
Related MCP server: Modular RAG MCP Server
安装
pip install -r requirements.txt
# 首次检索会下载默认 embedding(all-MiniLM-L6-v2,约 80MB,缓存在 ~/.cache/chroma)使用
# 入库
python ingest.py "广州十五五规划.pdf" "广州十五五规划.pdf"
# 检索(或经 MCP 工具 search)
python -c "from chroma_store import search; import json; print(json.dumps(search('广州 人工智能+ 大模型 算力 数据要素', 6), ensure_ascii=False))"MCP 工具
search(query, top_k=6):语义+关键词混合检索,返回原文片段及出处(文件 + 页码 + 行号)。ingest_file(path, source_name):本地文件入库。list_sources():已入库来源清单。
DSH 端以 stdio 连接 server.py(dsh-mcp-client),工具名形如 mcp__chroma__search。
检索原理
分块:按页提取文本,过滤页眉/页脚/页码噪声,每 6 行一块(重叠 1 行),元数据记录
source/page/line_start/line_end。混合检索:Chroma 语义向量(余弦) + 字符二元组 BM25 稀疏检索,RRF 融合——中文语义 embedding 偏弱时,BM25 兜住「大模型/算力/数据要素」等精确关键词,保证出处定位稳定。
入库即失效稀疏缓存,重复入库覆盖更新。
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
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to search, deep-read, and build knowledge bases from Markdown, PDF, DOCX, and PPTX documents via MCP tools for retrieval, document navigation, and ingestion.70616MIT
- AlicenseNot gradedqualityBmaintenanceConverts unstructured documents into a searchable knowledge base and exposes retrieval tools via MCP protocol for AI agents to query.MIT
- FlicenseNot gradedqualityCmaintenanceMCP server that indexes a knowledge base into Chroma and provides search tools for retrieving document fragments via vector embeddings.
- FlicenseAqualityBmaintenanceA local-first document retrieval engine that mounts as an MCP tool for agents to index files, search for relevant passages, and let the agent's own LLM answer.4
Related MCP Connectors
OCR, transcription, file extraction, and image generation for AI agents via MCP.
Shared, governed long-term memory for AI agents across tools and sessions via MCP and REST.
Agentic search over your Dewey document collections from any MCP-compatible client.
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/KimTsegzc/xinPlugin_Chroma_fastMCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server