wiki-rag-mcp
Enables searching enterprise wiki content via vector embeddings, using Qdrant for storage and FastMCP for SSE-based tool exposure.
README
wiki-rag-mcp
Automated RAG ingestion pipeline and MCP server for enterprise wikis powered by Qdrant and FastMCP via Docker Compose.
Configuration
Settings are resolved first from Environment Variables, falling back to config.json when present on the host filesystem.
- WIKI_TYPE: Target wiki engine (
mediawikiorconfluence, default:mediawiki) - WIKI_URL: Base URL of the wiki API (default:
https://en.wikipedia.org/w) - AUTH_TOKEN: Bearer token or API key if authentication is required (e.g., Confluence)
- QDRANT_HOST: Vector database hostname (default:
vector-db) - QDRANT_PORT: Vector database port (default:
6333) - EMBED_MODEL_URL: Base URL for generating vector embeddings (default:
http://host.docker.internal:1234/v1)
Ingestion Lifecycle & MCP Persistence
- Fresh Snapshot Strategy: On every execution,
src/ingest.pyautomatically drops and recreates thewikivector collection to clear out stale or deleted wiki pages. - Zero MCP Restart: The MCP server queries Qdrant via stateless REST calls. When
ingest.pyrecreates the collection, the MCP server immediately queries the new vector snapshot on its next tool call with zero downtime or server restarts.
Option 1: Running on a Local Host Machine
Run the entire containerized stack on your local development machine using Docker Compose. All vector indexes persist to ./qdrant_data on your host disk.
1. Launch the Stack
Spin up Qdrant and the MCP server in background mode:
docker compose up -d
2. Trigger Ingestion
Run the ingestor container on-demand on your local host whenever you need a sync:
docker compose run --rm ingestor
3. Connect Local LLM Client
Point host-level LLM clients (LM Studio, Claude Desktop, Cursor) to the MCP server endpoint running on your local host:
http://localhost:8080/sse
Option 2: Running on a Cloud Host Machine
Deploy the container images to cloud container infrastructure (AWS, GCP, Azure, or a remote Linux host). Because the ingestor container runs to completion and exits cleanly, it can be scheduled on demand without running a 24/7 process.
1. Persistent Services (Vector DB & MCP Server)
Deploy vector-db and mcp-server as long-running, always-on container services on your cloud host / cluster:
- Expose port
8080internally or behind an API gateway for client connections. - Mount persistent cloud storage (e.g., AWS EBS, GCP Persistent Disk) to
/qdrant/storage.
2. Scheduled Ingestor Execution
Invoke the ingestor container image on a scheduled cron trigger using cloud container orchestration:
- AWS: Trigger
ingestoras an ECS / Fargate Task scheduled via Amazon EventBridge. - GCP: Schedule
ingestoras a Cloud Run Job managed by Cloud Scheduler. - Remote Cloud VM: Schedule
docker run --rm ingestorvia standard hostcrontab.
Testing Locally with LM Studio
LM Studio runs your chat model and embedding model locally while Docker Compose runs the MCP server and vector database.
Step 1: Start the Docker Infrastructure
Launch Qdrant and the MCP server:
docker compose up -d
Step 2: Set Up Models in LM Studio
- Open LM Studio and download an embedding model (e.g.,
text-embedding-all-minilm-l6-v2) and a chat model (e.g.,Qwen2.5-7B-Instruct). - Start the Local Server in LM Studio on port
1234. - Verify that
http://localhost:1234/v1is active.
Step 3: Trigger Ingestion
Run the ingestor container to pull wiki pages, generate embeddings via LM Studio's embedding endpoint, and write them to Qdrant:
docker compose run --rm ingestor
Step 4: Connect LM Studio to the MCP Server
- Go to the Programmatic Access / MCP section in LM Studio.
- Add a new SSE server entry:
- Server URL:
http://localhost:8080/sse
- Server URL:
- Connect to the server. You should see
search_wikilisted under available tools.
Step 5: Test the Pipeline
Open a new chat in LM Studio with your loaded chat model, ensure Tools/MCP function calling is enabled, and ask:
"Search the wiki for authentication rules."
LM Studio will invoke search_wiki, retrieve relevant vector context from Qdrant, and output a grounded answer.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。