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
Visit Server

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.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured