RAGLight

v1.0.0Data Science & MLstable

RAGLight is a modular framework for Retrieval-Augmented Generation (RAG). It makes it easy to plug in different LLMs, embeddings, and vector stores, and now includes seamless MCP integration to connect external tools and data sources.

agentic-aiagentic-ragagentic-workflowartificial-intelligencedata-science
Share:
661
Stars
0
Downloads
0
Weekly
0/5

What is RAGLight?

RAGLight is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to raglight is a modular framework for retrieval-augmented generation (rag). it makes it easy to plug in different llms, embeddings, and vector stores, and now includes seamless mcp integration to connec...

RAGLight is a modular framework for Retrieval-Augmented Generation (RAG). It makes it easy to plug in different LLMs, embeddings, and vector stores, and now includes seamless MCP integration to connect external tools and data sources.

This server falls under the Data Science & ML category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • RAGLight is a modular framework for Retrieval-Augmented Gene

Use Cases

Modular RAG framework
Vector store and LLM flexibility
Seamless MCP integration
Bessouat40

Maintainer

LicenseMIT
Languagepython
Versionv1.0.0
UpdatedMay 16, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx raglight

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use RAGLight

RAGLight is a modular Python framework for building Retrieval-Augmented Generation (RAG) pipelines that plugs into any combination of LLM provider, embedding model, and vector store without lock-in. It supports Ollama, LMStudio, Mistral, OpenAI, Gemini, AWS Bedrock, and vLLM for inference; HuggingFace or provider-native models for embeddings; and ChromaDB or Qdrant as vector stores. Through its MCP integration, RAGLight can also connect to external MCP servers as tool sources, enabling agentic RAG workflows that go beyond simple retrieval.

Prerequisites

  • Python 3.10 or higher with pip
  • At least one LLM provider accessible: Ollama running locally, or an API key for OPENAI_API_KEY, MISTRAL_API_KEY, GEMINI_API_KEY, or AWS Bedrock credentials
  • Optional: a running vector store instance (ChromaDB or Qdrant) for persistent embeddings
  • An MCP client such as Claude Desktop if using the MCP integration features
1

Install RAGLight

Install the base package with pip. Add optional extras for your preferred vector store or observability backend.

# Base install
pip install raglight

# With Qdrant (Windows-friendly, pure Python)
pip install "raglight[qdrant]"

# With ChromaDB
pip install "raglight[chroma]"

# With Langfuse observability
pip install "raglight[qdrant,langfuse]"
2

Set your provider environment variables

Export credentials for whichever LLM and embedding providers you plan to use. RAGLight reads these at runtime.

# OpenAI
export OPENAI_API_KEY=sk-...

# Mistral
export MISTRAL_API_KEY=...

# Google Gemini
export GEMINI_API_KEY=...

# AWS Bedrock
export AWS_ACCESS_KEY_ID=...
export AWS_SECRET_ACCESS_KEY=...
export AWS_DEFAULT_REGION=us-east-1

# Ollama (local, no key needed)
export OLLAMA_CLIENT_URL=http://localhost:11434
3

Build a basic RAG pipeline

Create a RAGPipeline with your chosen LLM and vector store config, build it (which indexes documents), then generate answers.

from raglight.rag.simple_rag_api import RAGPipeline
from raglight.config.rag_config import RAGConfig
from raglight.config.vector_store_config import VectorStoreConfig
from raglight.config.settings import Settings

config = RAGConfig(
    llm=Settings.DEFAULT_LLM,
    provider=Settings.OLLAMA
)

vs_config = VectorStoreConfig(
    embedding_model=Settings.DEFAULT_EMBEDDINGS_MODEL,
    database=Settings.CHROMA,
    persist_directory='./raglight_db'
)

pipeline = RAGPipeline(config, vs_config)
pipeline.build()
response = pipeline.generate("What is the main topic of the documents?")
print(response)
4

Start the REST API server

RAGLight ships with a built-in REST API and optional UI. Launch it with raglight serve and configure it via environment variables.

RAGLIGHT_LLM_MODEL=mistral-small-latest \
RAGLIGHT_LLM_PROVIDER=Mistral \
RAGLIGHT_DB=Qdrant \
raglight serve --port 8000 --ui
5

Enable MCP server integration for agentic RAG

Pass an mcp_config list to AgenticRAGConfig to connect your RAG pipeline to external MCP servers as tool sources, enabling code execution, database access, or any other MCP tool alongside retrieval.

from raglight.rag.simple_agentic_rag_api import AgenticRAGPipeline
from raglight.config.agentic_rag_config import AgenticRAGConfig

config = AgenticRAGConfig(
    provider=Settings.OPENAI,
    model="gpt-4o",
    mcp_config=[
        {"url": "http://127.0.0.1:8001/sse"}
    ]
)

pipeline = AgenticRAGPipeline(config, vs_config)
pipeline.build()
response = pipeline.generate("Search the knowledge base and run the relevant code example")
print(response)

RAGLight Examples

Client configuration

Claude Desktop configuration to connect to a RAGLight MCP server endpoint.

{
  "mcpServers": {
    "raglight": {
      "command": "npx",
      "args": ["raglight"],
      "env": {
        "OPENAI_API_KEY": "sk-your-key-here",
        "RAGLIGHT_LLM_PROVIDER": "OpenAI",
        "RAGLIGHT_LLM_MODEL": "gpt-4o",
        "RAGLIGHT_DB": "Chroma"
      }
    }
  }
}

Prompts to try

Prompts for querying documents, ingesting new content, and testing agentic RAG capabilities.

- "What does the knowledge base say about the project architecture?"
- "Ingest all documents from the ./docs folder into the vector store"
- "Answer this question using hybrid search across all collections: what are the main API endpoints?"
- "Summarize the last 5 documents added to the knowledge base"
- "Run an agentic search and write a report on the findings from the knowledge base"

Troubleshooting RAGLight

ChromaDB installation fails on Windows with C++ compiler error

Use the Qdrant backend instead: pip install "raglight[qdrant]". Qdrant is pure Python and has no native compilation requirements. Alternatively, install the Visual C++ Build Tools on Windows before installing chromadb.

RAG pipeline returns empty or irrelevant answers

Ensure documents have been ingested before calling generate(). Call pipeline.build() after providing the document source. Increase RAGLIGHT_K to retrieve more context chunks, and check that the embedding model matches the one used during ingestion.

MCP server URL in mcp_config is not reachable

Confirm the MCP server is running and accessible at the specified SSE URL before starting the agentic pipeline. Test connectivity with curl http://127.0.0.1:8001/sse. Ensure no firewall or port binding issue is preventing the connection.

Frequently Asked Questions about RAGLight

What is RAGLight?

RAGLight is a Model Context Protocol (MCP) server that raglight is a modular framework for retrieval-augmented generation (rag). it makes it easy to plug in different llms, embeddings, and vector stores, and now includes seamless mcp integration to connect external tools and data sources. It connects AI assistants to external tools and data sources through a standardized interface.

How do I install RAGLight?

Follow the installation instructions on the RAGLight GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.

Which AI clients work with RAGLight?

RAGLight works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is RAGLight free to use?

Yes, RAGLight is open source and available under the MIT license. You can use it freely in both personal and commercial projects.

Browse More Data Science & ML MCP Servers

Explore all data science & ml servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "raglight": { "command": "npx", "args": ["-y", "raglight"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use RAGLight?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides