Back to Home
yfujita icon

mcp-server-for-rag

Verified Safe

by yfujita

Overview

A Retrieval Augmented Generation (RAG) system that crawls web pages, indexes them in Elasticsearch, provides an MCP server for LLMs to query, and includes a chat UI for interaction.

Installation

Run Command
./run.sh

Environment Variables

  • OPENAI_API_KEY
  • ENABLE_EMBEDDING
  • EMBEDDING_API_URL
  • MCP_SERVER_URL
  • LLM_MODEL
  • ES_URL
  • MCP_TRANSPORT_TYPE
  • CRAWLER_CONFIG_FILE
  • ES_HOST
  • ES_PORT

Security Notes

The system uses environment variables for sensitive data like OpenAI API keys (read from `openai_token.txt`), which is better than hardcoding. Tool arguments passed from LLMs are validated using Pydantic models in the `mcp-api`, mitigating some risks of arbitrary code execution through tool calls. The `mcp-api` includes a middleware to force `Host: localhost:8000` header for internal Docker communication, which is functional within the controlled environment but an unusual pattern that might need careful consideration in different deployment scenarios.

Similar Servers

Stats

Interest Score0
Security Score7
Cost ClassHigh
Avg Tokens2000
Stars0
Forks0
Last Update2026-01-17

Tags

RAGWeb CrawlerElasticsearchFastAPIMCP ServerLLM IntegrationReact