Ermöglicht es einem AI-Client, eine serverlose RAG-Wissensdatenbank mit Dokumenten, Bildern, Videos und Audio auf AWS zu durchsuchen, zu chatten und zu scrapen.
Auch bekannt als HatmanStack/RAGStack-Lambda, ragstack-lambda, ragstack-mcp
- Stars
- 26
- Tools
- —
- Downloads, 30 Tage
- —
- Neueste Version
- 0.1.4
- Letzter Commit
- 13. Nov. 2026
- Lizenz
- Apache-2.0
Was ist ragstack MCP?
ragstack ist ein MCP server. Ermöglicht es einem AI-Client, eine serverlose RAG-Wissensdatenbank mit Dokumenten, Bildern, Videos und Audio auf AWS zu durchsuchen, zu chatten und zu scrapen.
Zusammenfassung generiert aus dem README des Projekts
Über ragstack MCP server
Ragstack bietet eine serverlose Architektur zum Aufbau von Wissensdatenbanken, die Dokumente, Bilder, Video und Audio enthalten. Es wurde für Entwickler entwickelt, die Retrieval-Augmented Generation in ihre Workflows integrieren möchten, ohne sich um Gebühren für Vektordatenbanken oder Kosten für Leerlaufzeiten kümmern zu müssen. Das System nutzt AWS Lambda, S3, DynamoDB und Amazon Bedrock, um verschiedene Dateiformate wie PDFs, Office-Dokumente und Mediendateien zu verarbeiten.
Nutzer können den Stack über den AWS Marketplace oder aus dem Quellcode mit Python und dem AWS CLI bereitstellen. Einmal bereitgestellt, ermöglicht der MCP server KI-Assistenten wie Claude Desktop, Cursor oder VS Code die Interaktion mit der Wissensdatenbank. Die Integration erfordert einen GraphQL-Endpunkt und einen API-Key. Der Server unterstützt fortgeschrittene Funktionen wie Amazon Nova Multimodal Embeddings für die Vektorisierung von Text und Bildern sowie AWS Transcribe zur Umwandlung von Sprache in durchsuchbare, mit Zeitstempeln versehene Textsegmente.
Was du damit machen kannst
- 1Video- und Audioinhalte analysierenFrage transkribierte Sprache ab und springe mithilfe von Zeitstempel-Links zu spezifischen Momenten in den Medien.
- 2Dokumentenverarbeitung automatisierenExtrahiere Text aus komplexen Dateien wie PDFs und Bildern mittels OCR und intelligenter Analyse.
- 3RAG in bestehende IDEs integrierenVerbinde deine eigene, auf AWS gehostete Wissensdatenbank direkt mit Coding-Tools wie Cursor oder VS Code.
Geschrieben aus dem README des Projekts. Jeder Use Case wurde gegen ein Zitat daraus geprüft.
So installierst du ragstack MCP
Formate geprüft am 10. Nov. 2026ragstack MCP in Claude Code installieren
$ claude mcp add ragstack-lambda -- uvx ragstack-mcpragstack MCP in Cursor installieren
~/.cursor/mcp.json
{
"mcpServers": {
"ragstack-lambda": {
"command": "uvx",
"args": [
"ragstack-mcp"
]
}
}
}ragstack MCP in VS Code installieren
.vscode/mcp.json
{
"servers": {
"ragstack-lambda": {
"type": "stdio",
"command": "uvx",
"args": [
"ragstack-mcp"
]
}
}
}ragstack MCP in Claude Desktop installieren
claude_desktop_config.json
{
"mcpServers": {
"ragstack-lambda": {
"command": "uvx",
"args": [
"ragstack-mcp"
]
}
}
}ragstack MCP in Codex installieren
~/.codex/config.toml
[mcp_servers.ragstack-lambda] command = "uvx" args = ["ragstack-mcp"]
ragstack MCP in Gemini CLI installieren
~/.gemini/settings.json
{
"mcpServers": {
"ragstack-lambda": {
"command": "uvx",
"args": [
"ragstack-mcp"
]
}
}
}Konfiguration
RAGSTACK_API_KEYYour RAGStack API key (from Dashboard → Settings)
RAGSTACK_GRAPHQL_ENDPOINTYour RAGStack GraphQL API URL (from Dashboard → Settings)
| Name | Beschreibung | Typ |
|---|---|---|
| RAGSTACK_API_KEY | Your RAGStack API key (from Dashboard → Settings) | |
| RAGSTACK_GRAPHQL_ENDPOINT | Your RAGStack GraphQL API URL (from Dashboard → Settings) |
Automatisierte Checks
Geluften am 12. Nov. 2026Vollständiger Bericht →Unsere automatisierten Checks bestanden. Das ist kein Security-Audit: Lies den Code und gib dem Server nur den minimal notwendigen Zugriff. Wie die Checks funktionieren
- Source Repository verknüpft und erreichbarBestanden
- Open Source Lizenz (OSI)Bestanden
- Commit oder Release im letzten JahrBestanden
- Package-Name ähnelt keinem populären PackageBestanden
- Remote Endpoint nutzt HTTPSNicht geprüft
- Destruktive Tools sind markiertNicht geprüft
- Keine versteckten Anweisungen an das ModellBestanden
- Kein kritischer Hinweis im Paket oder seinen AbhängigkeitenBestanden
README
Auf GitHub ansehenServerless document and media processing with AI chat. Scale-to-zero architecture — no vector database fees, no idle costs. Upload documents, images, video, and audio — extract text with OCR or transcription — query using Amazon Bedrock or your AI assistant via MCP.
Features
- ☁️ Fully serverless architecture (Lambda, Step Functions, S3, DynamoDB)
- 🧠 NEW Amazon Nova multimodal embeddings for text and image vectorization
- 📄 Document processing & vectorization (PDF, images, Office docs, HTML, CSV, JSON, XML, EML, EPUB) → stored in managed knowledge base
- 🎬 NEW Video/audio processing - transcribe speech with AWS Transcribe, searchable by timestamp
- 💬 AI chat with retrieval-augmented context and source attribution
- 📎 Collapsible source citations with optional document downloads
- ⏱️ NEW Media sources with timestamp links - click to play at exact position
- 🔍 Metadata filtering - auto-discover document metadata and filter search results
- 🎯 Relevancy boost for filtered results - prioritize matches from metadata filters
- 🔄 Knowledge Base reindex - regenerate metadata for existing documents with updated settings
- 🗑️ Document management - reprocess, reindex, or delete documents from the dashboard
- 🌐 Web component for any framework (React, Vue, Angular, Svelte)
- 🚀 One-click deploy
- 💰 $7-10/month (1000 docs, Textract + Haiku)
Live Demo
| Environment | URL | Credentials |
|---|---|---|
| Base Pipeline | dhrmkxyt1t9pb.cloudfront.net | guest@hatstack.fun / Guest@123 |
| Project Showcase | showcase-htt.hatstack.fun | Login as guest |
Base Pipeline: The core document processing tool - upload, OCR, and query documents.
Project Showcase: See RAGStack powering a real application.
Quick Start
Option 1: One-Click Deploy (AWS Marketplace)
REPO IS IN ACTIVE DEVELOPMENT AND WILL CHANGE OFTEN
Deploy directly from the AWS Console - no local setup required:
- Subscribe to RAGStack on AWS Marketplace (free, not required - If subscribed Lambda roles auto-accept Bedrock model agreements on first invocation)
- Click here to deploy
- Enter a stack name (lowercase only, e.g., "my-docs") and your admin email
- Click Create Stack (deployment takes ~10 minutes)
After deployment:
- Check your email for the temporary password (from Cognito)
- Go to CloudFormation → your stack → Outputs tab to find the Dashboard URL (
UIUrl)
Option 2: Deploy from Source
For customization or development:
Prerequisites:
- AWS Account with admin access
- Python 3.13+, Node.js 24+
- uv (Python package manager)
- AWS CLI, SAM CLI (configured)
- Docker (for Lambda layer builds)
git clone https://github.com/HatmanStack/RAGStack-Lambda.git
cd RAGStack-Lambda
# Install dependencies
uv sync
# Deploy (defaults to us-east-1 for Nova Multimodal Embeddings)
python publish.py \
--stack-name my-docs \
--admin-email admin@example.com
Option 3: Nested Stack Deployment
Deploy RAGStack as part of a larger CloudFormation stack. See Nested Stack Deployment Guide for details.
Quick example:
Resources:
RAGStack:
Type: AWS::CloudFormation::Stack
Properties:
TemplateURL: https://ragstack-quicklaunch-public.s3.us-east-1.amazonaws.com/ragstack-template.yaml
Parameters:
StackPrefix: 'my-app-ragstack' # Required: lowercase prefix
AdminEmail: admin@example.com
Web Component Integration
See RAGSTACK_CHAT.md for web component integration guide.
API Access
Server-side integrations use API key authentication. Get your key from Dashboard → Settings.
curl -X POST 'YOUR_GRAPHQL_ENDPOINT' \
-H 'x-api-key: YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{"query": "query { searchKnowledgeBase(query: \"...\") { results { content } } }"}'
Web component uses IAM auth (no API key needed - handled automatically).
Each UI tab shows server-side API examples in an expandable section.
MCP Server (AI Assistant Integration)
Use your knowledge base directly in Claude Desktop, Cursor, VS Code, Amazon Q CLI, and other MCP-compatible tools.
# Install (or use uvx for zero-install)
pip install ragstack-mcp
Add to your AI assistant's MCP config:
{
"ragstack-kb": {
"command": "uvx",
"args": ["ragstack-mcp"],
"env": {
"RAGSTACK_GRAPHQL_ENDPOINT": "YOUR_ENDPOINT",
"RAGSTACK_API_KEY": "YOUR_API_KEY"
}
}
}
Then ask naturally: "Search my knowledge base for authentication docs"
See MCP Server docs for full setup instructions.
Architecture
Upload → OCR → Embeddings → Bedrock KB
↓
Web UI (Dashboard + Chat) ←→ GraphQL API
↓
Web Component ←→ AI Chat with Sources
Usage
Documents
Upload documents in various formats. Auto-detection routes to optimal processor:
| Type | Formats | Processing |
|---|---|---|
| Text | HTML, TXT, CSV, JSON, XML, EML, EPUB, DOCX, XLSX | Direct extraction with smart analysis |
| OCR | PDF, JPG, PNG, TIFF, GIF, BMP, WebP, AVIF | Textract or Bedrock vision OCR (WebP/AVIF require Bedrock) |
| Media | MP4, WebM, MP3, WAV, M4A, OGG, FLAC | AWS Transcribe → 30s segments → searchable with timestamps |
| Passthrough | Markdown (.md) | Direct copy |
Processing time: UPLOADED → PROCESSING → INDEXED (typically 1-5 min for text, 2-15 min for OCR, 5-20 min for media)
Images
Upload JPG, PNG, GIF, WebP with captions. Both visual content and caption text are searchable.
Web Scraping
Scrape websites into the knowledge base. See Web Scraping.
Video & Audio
Upload MP4, WebM, MP3, WAV, M4A, OGG, or FLAC files. Speech is transcribed using AWS Transcribe and segmented into 30-second chunks for search. Sources include timestamps (e.g., "1:30-2:00") with clickable links that play at the exact position.
Features:
- Speaker diarization (identify who said what)
- Configurable language (30+ languages supported)
- Timestamp-linked sources in chat responses
See Configuration for language and speaker settings.
Chat
Ask questions about your content. Sources show where answers came from.
Documentation
- Configuration - Settings, quotas, API keys & document management
- Nested Stack Deployment - Deploy as part of larger CloudFormation stack
- Image Upload - Image upload and captioning
- Web Scraping - Scrape websites
- Metadata Filtering - Auto-discover metadata and filter results
- Chat Component - Embed chat anywhere
- API Reference - GraphQL API documentation
- Architecture - System design & API reference
- Development - Local dev
- Migration - Version migration guide
- Troubleshooting - Common issues
- Library Reference - Public API for lib/ragstack_common
Development
npm run check # Lint + test all (backend + frontend)
Deployment Options
Direct Deployment
# Full deployment (defaults to us-east-1)
python publish.py --stack-name myapp --admin-email admin@example.com
# Skip dashboard build (still builds web component)
python publish.py --stack-name myapp --admin-email admin@example.com --skip-ui
# Skip ALL UI builds (dashboard and web component)
python publish.py --stack-name myapp --admin-email admin@example.com --skip-ui-all
# Enable demo mode (rate limits: 5 uploads/day, 30 chats/day; disables reindex/reprocess/delete)
python publish.py --stack-name myapp --admin-email admin@example.com --demo-mode
Publish to AWS Marketplace (Maintainers)
To update the one-click deploy template:
python publish.py --publish-marketplace
This packages the application and uploads to S3 for one-click deployment.
Note: Currently requires us-east-1 (Nova Multimodal Embeddings). When available in other regions, use
--region <region>.
Acknowledgments
This project was inspired by:
- Accelerated Intelligent Document Processing on AWS - AWS Solutions Library reference architecture
- docs-mcp-server - MCP server for documentation search
ragstack MCP Fragen
Wie füge ich ragstack MCP zu Claude Code hinzu?
Führe claude mcp add ragstack-lambda -- uvx ragstack-mcp in deinem Terminal aus. Füge --scope user hinzu, damit der Server in jedem Projekt verfügbar ist.
Wie füge ich ragstack MCP zu Cursor hinzu?
Öffne ~/.cursor/mcp.json und füge den Server unter mcpServers hinzu, mit der Cursor-Config aus dem Installationsabschnitt oben.
Welche Dateiformate werden für die Dokumentenverarbeitung unterstützt?
Der Server unterstützt Textformate wie HTML, CSV, JSON und DOCX, sowie OCR für PDFs und Bilder sowie Mediendateien wie MP4 und MP3.
Wie hoch sind die Betriebskosten?
Die Architektur ist serverlos mit Scale-to-Zero und kostet etwa 7-10 $ pro Monat für 1000 Dokumente unter Verwendung von Textract und Haiku.