AWS上のドキュメント、画像、動画、音声を含むサーバーレスRAGナレッジベースを、AIクライアントから検索、チャット、スクレイピングできるようにします。
別名 HatmanStack/RAGStack-Lambda, ragstack-lambda, ragstack-mcp
- スター
- 26
- ツール
- —
- ダウンロード数(30日間)
- —
- 最新バージョン
- 0.1.4
- 最終コミット
- 2026年11月13日
- ライセンス
- Apache-2.0
ragstack MCPとは
ragstackはMCPサーバーです。 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 multimodal embeddingsや、音声を検索可能なタイムスタンプ付きテキストセグメントに変換する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を開き、上記のインストールセクションに示すCursor設定を使ってmcpServersの下にサーバーを追加します。
ドキュメント処理でサポートされているファイル形式は何ですか?
HTML、CSV、JSON、DOCXなどのテキスト形式に加え、PDFや画像のOCR、さらにMP4やMP3などのメディアファイルもサポートしています。
実行コストはどのくらいですか?
スケールtoゼロに対応したサーバーレスアーキテクチャのため、TextractとHaikuを使用して1000個のドキュメントを処理する場合、月額約7〜10ドルです。