wiki-rag-mcp

wiki-rag-mcp

Enables searching enterprise wiki content via vector embeddings, using Qdrant for storage and FastMCP for SSE-based tool exposure.

Category
访问服务器

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 (mediawiki or confluence, 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.py automatically drops and recreates the wiki vector collection to clear out stale or deleted wiki pages.
  • Zero MCP Restart: The MCP server queries Qdrant via stateless REST calls. When ingest.py recreates 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 8080 internally 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 ingestor as an ECS / Fargate Task scheduled via Amazon EventBridge.
  • GCP: Schedule ingestor as a Cloud Run Job managed by Cloud Scheduler.
  • Remote Cloud VM: Schedule docker run --rm ingestor via standard host crontab.

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

  1. 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).
  2. Start the Local Server in LM Studio on port 1234.
  3. Verify that http://localhost:1234/v1 is 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

  1. Go to the Programmatic Access / MCP section in LM Studio.
  2. Add a new SSE server entry:
    • Server URL: http://localhost:8080/sse
  3. Connect to the server. You should see search_wiki listed 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

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选