AWS 기반의 서버리스 RAG 지식 베이스를 통해 AI 클라이언트가 문서, 이미지, 비디오, 오디오를 검색하고 채팅하며 스크래핑할 수 있도록 지원합니다.
다른 이름 HatmanStack/RAGStack-Lambda, ragstack-lambda, ragstack-mcp
- 스타
- 26
- Tools
- —
- 다운로드, 30일
- —
- 최신 버전
- 0.1.4
- 마지막 커밋
- 2026년 11월 13일
- 라이선스
- Apache-2.0
ragstack MCP란?
ragstack은(는) MCP server입니다. AWS 기반의 서버리스 RAG 지식 베이스를 통해 AI 클라이언트가 문서, 이미지, 비디오, 오디오를 검색하고 채팅하며 스크래핑할 수 있도록 지원합니다.
프로젝트 README에서 생성된 요약
ragstack MCP server 정보
Ragstack은 문서, 이미지, 비디오, 오디오를 포함하는 지식 베이스 구축을 위한 서버리스 아키텍처를 제공합니다. 벡터 데이터베이스 비용이나 유휴 비용을 관리하지 않고 워크플로우에 검색 증강 생성(RAG)을 통합하려는 개발자를 위해 설계되었습니다. 이 시스템은 AWS Lambda, S3, DynamoDB, Amazon Bedrock을 사용하여 PDF, Office 문서, 미디어 파일을 포함한 다양한 파일 형식을 처리합니다.
사용자는 AWS Marketplace를 통하거나 Python 및 AWS CLI를 사용하여 소스에서 스택을 배포할 수 있습니다. 배포가 완료되면 MCP server를 통해 Claude Desktop, Cursor, VS Code와 같은 AI 어시스턴트가 지식 베이스와 상호작용할 수 있습니다. 통합에는 GraphQL 엔드포인트와 API 키가 필요합니다. 이 서버는 텍스트 및 이미지 벡터화를 위한 Amazon Nova 멀티모달 임베딩과 음성을 검색 가능한 타임스탬프 텍스트 세그먼트로 변환하는 AWS Transcribe와 같은 고급 기능을 지원합니다.
활용 사례
- 1비디오 및 오디오 콘텐츠 분석전사된 음성을 쿼리하고 타임스탬프 링크를 사용하여 미디어의 특정 시점으로 이동합니다.
- 2문서 처리 자동화OCR 및 스마트 분석을 사용하여 PDF 및 이미지와 같은 복잡한 파일에서 텍스트를 추출합니다.
- 3기존 IDE에 RAG 통합사용자 정의 AWS 호스팅 지식 베이스를 Cursor 또는 VS Code와 같은 코딩 도구에 직접 연결합니다.
프로젝트의 README를 바탕으로 작성되었습니다. 모든 활용 사례는 해당 내용의 인용문과 대조하여 확인합니다.
ragstack MCP 설치 방법
형식 확인: 2026년 11월 10일Claude Code에 ragstack MCP 설치
$ claude mcp add ragstack-lambda -- uvx ragstack-mcpCursor에 ragstack MCP 설치
~/.cursor/mcp.json
{
"mcpServers": {
"ragstack-lambda": {
"command": "uvx",
"args": [
"ragstack-mcp"
]
}
}
}VS Code에 ragstack MCP 설치
.vscode/mcp.json
{
"servers": {
"ragstack-lambda": {
"type": "stdio",
"command": "uvx",
"args": [
"ragstack-mcp"
]
}
}
}Claude Desktop에 ragstack MCP 설치
claude_desktop_config.json
{
"mcpServers": {
"ragstack-lambda": {
"command": "uvx",
"args": [
"ragstack-mcp"
]
}
}
}Codex에 ragstack MCP 설치
~/.codex/config.toml
[mcp_servers.ragstack-lambda] command = "uvx" args = ["ragstack-mcp"]
Gemini CLI에 ragstack MCP 설치
~/.gemini/settings.json
{
"mcpServers": {
"ragstack-lambda": {
"command": "uvx",
"args": [
"ragstack-mcp"
]
}
}
}구성
RAGSTACK_API_KEYYour RAGStack API key (from Dashboard → Settings)
RAGSTACK_GRAPHQL_ENDPOINTYour RAGStack GraphQL API URL (from Dashboard → Settings)
| 이름 | 설명 | 유형 |
|---|---|---|
| RAGSTACK_API_KEY | Your RAGStack API key (from Dashboard → Settings) | |
| RAGSTACK_GRAPHQL_ENDPOINT | Your RAGStack GraphQL API URL (from Dashboard → Settings) |
자동 검사
2026년 11월 12일에 실행됨전체 보고서 →자동 검사를 통과했습니다. 이는 보안 감사가 아닙니다. 코드를 직접 읽고 서버에 필요한 최소한의 권한만 부여하십시오. 검사 방식
- 소스 저장소 연결 및 접근 가능통과
- 오픈 소스 라이선스 (OSI)통과
- 최근 1년 내 커밋 또는 릴리스통과
- 패키지 이름이 인기 패키지와 유사하지 않음통과
- 원격 엔드포인트가 HTTPS 사용검사되지 않음
- 파괴적인 도구에 라벨 표시됨검사되지 않음
- 모델에 대한 숨겨진 지침 없음통과
- 패키지와 의존성에 심각한 보안 권고 없음통과
README
GitHub에서 보기Serverless 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 질문
ragstack MCP를 Claude Code에 추가하려면 어떻게 하나요?
터미널에서 claude mcp add ragstack-lambda -- uvx ragstack-mcp를 실행합니다. 모든 프로젝트에서 사용할 수 있게 하려면 --scope user를 추가합니다.
ragstack MCP를 Cursor에 추가하려면 어떻게 하나요?
~/.cursor/mcp.json를 열고 mcpServers 아래에 서버를 추가합니다. 위 설치 섹션에 표시된 Cursor 구성을 사용합니다.
문서 처리에 지원되는 파일 형식은 무엇인가요?
HTML, CSV, JSON, DOCX와 같은 텍스트 형식은 물론, PDF 및 이미지에 대한 OCR, 그리고 MP4 및 MP3와 같은 미디어 파일을 지원합니다.
운영 비용은 어느 정도인가요?
Scale-to-zero 방식의 서버리스 아키텍처로, Textract와 Haiku를 사용하여 1,000개의 문서를 처리할 경우 월 약 $7-10의 비용이 발생합니다.