mcp-ragchat 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. 1. Clone and build 2. Configure Claude Code (~/.claude/mcp.json) Open Claude Code and say: C
Add this skill
npx mdskills install gogabrielordonez/mcp-ragchatWell-documented RAG-powered chat server with multi-provider support and clear setup
1<p align="center">2 <h1 align="center">mcp-ragchat</h1>3 <p align="center">4 An MCP server that adds RAG-powered AI chat to any website. One command from Claude Code.5 </p>6</p>78<p align="center">9 <a href="https://opensource.org/licenses/MIT"><img src="https://img.shields.io/badge/License-MIT-yellow.svg" alt="License: MIT"></a>10 <a href="https://nodejs.org/"><img src="https://img.shields.io/badge/node-%3E%3D20-brightgreen.svg" alt="Node.js 20+"></a>11 <a href="https://www.typescriptlang.org/"><img src="https://img.shields.io/badge/TypeScript-5.0-blue.svg" alt="TypeScript"></a>12 <a href="https://modelcontextprotocol.io/"><img src="https://img.shields.io/badge/MCP-compatible-8A2BE2.svg" alt="MCP"></a>13 <a href="https://www.npmjs.com/package/mcp-ragchat"><img src="https://img.shields.io/npm/v/mcp-ragchat.svg" alt="npm"></a>14</p>1516---1718Tell 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.1920## Demo2122```23You: "Set up AI chat for mybakery.com using this FAQ and menu content"2425Claude: I'll set up RAG-powered chat for mybakery.com.2627 [1/4] ragchat_setup28 Splitting content into sections...29 Generating embeddings for 12 documents...30 Domain "mybakery.com" configured with 12 documents.3132 [2/4] ragchat_test33 Query: "What are your hours?"34 Reply: "We're open Monday-Saturday 7am-6pm, and Sunday 8am-2pm."35 RAG Sources: mybakery.com-3 (0.91), mybakery.com-7 (0.84)36 Latency: 340ms3738 [3/4] ragchat_serve39 Chat server running at http://localhost:345640 POST /chat ready.4142 [4/4] ragchat_widget43 Generated embed code. Paste this into your HTML:4445 <script src="http://localhost:3456/widget.js"></script>4647You: Done. Live chat on my site in under 60 seconds.48```4950## Quick Start5152**1. Clone and build**5354```bash55git clone https://github.com/gogabrielordonez/mcp-ragchat56cd mcp-ragchat57npm install && npm run build58```5960**2. Configure Claude Code** (`~/.claude/mcp.json`)6162```json63{64 "mcpServers": {65 "ragchat": {66 "command": "node",67 "args": ["/absolute/path/to/mcp-ragchat/dist/mcp-server.js"],68 "env": {69 "OPENAI_API_KEY": "sk-..."70 }71 }72 }73}74```7576**3. Use it**7778Open Claude Code and say:7980> "Add AI chat to mysite.com. Here's the content: [paste your markdown]"8182Claude handles the rest.8384## Tools8586| Tool | What it does |87|------|-------------|88| `ragchat_setup` | Seed a knowledge base from markdown content. Each `##` section becomes a searchable document with vector embeddings. |89| `ragchat_test` | Send a test message to verify RAG retrieval and LLM response quality. |90| `ragchat_serve` | Start a local HTTP chat server with CORS and input sanitization. |91| `ragchat_widget` | Generate a self-contained `<script>` tag -- a floating chat bubble, no dependencies. |92| `ragchat_status` | List all configured domains with document counts and config details. |9394## How It Works9596```97 +------------------+98 | Your Markdown |99 +--------+---------+100 |101 ragchat_setup102 |103 +------------v-------------+104 | Local Vector Store |105 | ~/.mcp-ragchat/domains/ |106 | vectors.json |107 | config.json |108 +------------+-------------+109 |110 User Question |111 | |112 +------v------+ +------v------+113 | Embedding | | Cosine |114 | Provider +->+ Similarity |115 +-------------+ +------+------+116 |117 Top 3 chunks118 |119 +----------v-----------+120 | System Prompt |121 | + RAG Context |122 | + User Message |123 +----------+-----------+124 |125 +----------v-----------+126 | LLM Provider |127 +----------+-----------+128 |129 Reply130```131132Everything runs locally. No cloud infrastructure. Bring your own API key.133134## Supported Providers135136### LLM (chat completions)137138| Provider | Env Var | Default Model |139|----------|---------|---------------|140| OpenAI | `OPENAI_API_KEY` | `gpt-4o-mini` |141| Anthropic | `ANTHROPIC_API_KEY` | `claude-sonnet-4-5-20250929` |142| Google Gemini | `GEMINI_API_KEY` | `gemini-2.0-flash` |143144### Embeddings (vector search)145146| Provider | Env Var | Default Model |147|----------|---------|---------------|148| OpenAI | `OPENAI_API_KEY` | `text-embedding-3-small` |149| Google Gemini | `GEMINI_API_KEY` | `text-embedding-004` |150| AWS Bedrock | `AWS_REGION` + IAM | `amazon.titan-embed-text-v2:0` |151152Override defaults with `LLM_MODEL` and `EMBEDDING_MODEL` environment variables.153154## Architecture155156```157~/.mcp-ragchat/domains/158 mysite.com/159 config.json -- system prompt, settings160 vectors.json -- documents + embedding vectors161```162163- **Vector store** -- Local JSON files with cosine similarity search. Zero external dependencies.164- **Chat server** -- Node.js HTTP server with CORS and input sanitization.165- **Widget** -- Self-contained `<script>` tag. No frameworks, no build step.166167## Contributing168169Issues and pull requests are welcome.170171- Found a bug? [Open an issue](https://github.com/gogabrielordonez/mcp-ragchat/issues)172- Want to add a feature? Fork, branch, PR.173- Questions? Start a [discussion](https://github.com/gogabrielordonez/mcp-ragchat/discussions)174175## Star History176177[](https://star-history.com/#gogabrielordonez/mcp-ragchat&Date)178179---180181### Enterprise182183Need multi-tenancy, security guardrails, audit trails, and managed infrastructure? Check out [Supersonic](https://adwaizer.com/supersonic) -- the enterprise AI platform built on the same RAG pipeline.184185---186187**MIT License** -- Gabriel Ordonez188
Full transparency — inspect the skill content before installing.