官方说明📇 🏠 - Add RAG-based AI chat to any website: local vector store, OpenAI, Anthropic or Gemini models, a self-contained chat server and an embeddable widget.
An MCP server that adds RAG-powered AI chat to any website. One command from Claude Code. --- Tell Claude Code _"add AI chat to mysite.com"_ and it will crawl your content, build a local vector store, spin up a chat server, and hand you an embed snippet. No cloud infra. No database. Just one API key. Demo Quick Start **1. Clone and build** **2. Configure Claude Code** (~/.claude/mcp.json) **3. Use it** Open Claude Code and say: > "Add AI chat to mysite.com. Here's the content: [paste your markdown]" Claude handles the rest. Tools | Tool | What it does | |------|-------------| | ragchat_setup | Seed a knowledge base from markdown content. Each ## section becomes a searchable document with vector embeddings. | | ragchat_test | Send a test message to verify RAG retrieval and LLM response quality. | | ragchat_serve | Start a local HTTP chat server with CORS and input sanitization. | | ragchat_widget | Generate a self-contained tag -- a floating chat bubble, no dependencies. | | ragchat_status | List all configured domains with document counts and config details. | How It Works Everything runs locally. No cloud infrastructure. Bring your own API key. Supported Providers LLM (chat completions) | Provider | Env Var | Default Model | |----------|---------|---------------| | OpenAI | OPENAI_API_KEY | gpt-4o-mini | | Anthropic | ANTHROPIC_API_KEY | claude-sonnet-4-5-20250929 | | Google Gemini | GEMINI_API_KEY | gemini-2.0-flash | Embeddings (vector search) | Provider | Env Var | Default Model | |----------|---------|---------------| | OpenAI | OPENAI_API_KEY | text-embedding-3-small | | Google Gemini | GEMINI_API_KEY | text-embedding-004 | | AWS Bedrock | AWS_REGION + IAM | amazon.titan-embed-text-v2:0 | Override defaults with LLM_MODEL and EMBEDDING_MODEL environment variables. Architecture - **Vector store** -- Local JSON files with cosine similarity search. Zero external dependencies. - **Chat server** -- Node.js HTTP server with CORS and input sanitization. - **Widget** -- Self-contained tag. No frameworks, no build step. Contributing Issues and pull requests are welcome.