Skip to main content
Glama
Bisma474

RAG Config Generator MCP

by Bisma474

RAG Config Generator MCP

一个基于自然语言描述生成 RAG(检索增强生成)流水线配置的 MCP(模型上下文协议)服务器。

在线演示

Related MCP server: Pipelex MCP Server

功能特性

  • 生成完整配置:用自然语言描述你的 RAG 用例

  • 分块策略:根据文档类型获取分块建议

  • 嵌入模型:根据用例和预算获取嵌入模型建议

  • 向量存储:根据数据规模和延迟获取向量存储建议

API 端点

端点

描述

GET /

服务器信息

GET /generate-rag-config?description=...

生成完整 RAG 配置

GET /suggest-chunking?doc_type=...&doc_size=...

分块建议

GET /suggest-embeddings?use_case=...&budget=...

嵌入模型建议

GET /suggest-vector-store?data_size=...&latency=...

向量存储建议

安装

pip install -r requirements.txt

使用

运行 Gradio UI

python app.py

在 http://localhost:7860 打开

运行 MCP 服务器

python server.py

MCP 服务器将在 http://localhost:8000/mcp 可用

项目结构

mcp/
├── server.py           # FastAPI + MCP server
├── rag_configs.py      # RAG config templates and logic
├── app.py              # Gradio UI
├── api/
│   └── index.py        # Vercel serverless function
├── requirements.txt    # Python dependencies
├── vercel.json         # Vercel configuration
└── README.md           # Documentation

技术栈

  • 后端:Python、FastAPI、FastAPI-MCP

  • 前端:Gradio、HTML/CSS/JS

  • 部署:Vercel(API)、Hugging Face Spaces(UI)

许可证

MIT

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    B
    maintenance
    Creates deterministic, auditable vector databases from any content source with deployable RAG applications. Supports multiple embedding providers and vector databases with fine-grained pipeline control or project-based workflows.
    9 npm
    6
    Academic Free v1.1
  • A
    license
    Not graded
    quality
    C
    maintenance
    Automated RAG pipeline optimization and serving. It interviews users, builds and evaluates candidate configurations on their data, and registers the best ones as a fleet queryable via MCP.
    MIT