PluginBench
MCP Server
Active
Apache-2.0

io.github.HatmanStack/ragstack MCP Server

io.github.HatmanStack/ragstack

Search, chat, and manage a serverless RAG knowledge base on AWS with AI-powered document processing.

What is the io.github.HatmanStack/ragstack MCP server?

The RAGStack MCP server integrates a serverless document and media processing platform on AWS with AI assistants like Claude and Cursor. It enables searching, chatting with, uploading, and scraping documents, images, video, and audio into a managed knowledge base powered by Amazon Bedrock embeddings and retrieval.

RAGStack is a fully serverless RAG (Retrieval-Augmented Generation) platform on AWS that processes documents, images, video, and audio—extracting text via OCR or transcription—and makes them searchable and queryable through an AI chat interface. The MCP server exposes this knowledge base to Claude, Cursor, and other AI assistants, letting you ask natural-language questions and get answers with source citations. It's designed for scale-to-zero cost (~$7–10/month for 1000 documents) with no vector database fees or idle charges.

How to install io.github.HatmanStack/ragstack

Copy-paste configuration for popular MCP clients.

transport: stdio
Config generated by PluginBench — verify against the source before use.
Environment / auth
  • RAGSTACK_GRAPHQL_ENDPOINT

    Your RAGStack GraphQL API URL (from Dashboard → Settings)

  • RAGSTACK_API_KEY

    Your RAGStack API key (from Dashboard → Settings)

~/Library/Application Support/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "ragstack": {
      "command": "uvx",
      "args": [
        "ragstack-mcp"
      ],
      "env": {
        "RAGSTACK_GRAPHQL_ENDPOINT": "<YOUR_RAGSTACK_GRAPHQL_ENDPOINT>",
        "RAGSTACK_API_KEY": "<YOUR_RAGSTACK_API_KEY>"
      }
    }
  }
}

Tools & capabilities

Tools this server exposes to the agent.

  • search_knowledge_base — Search the RAGStack knowledge base by query string, with optional metadata filtering and relevancy boosting.
  • chat_with_sources — Ask questions about knowledge base content and receive answers with source citations and optional document downloads.
  • upload_documents — Upload documents (PDF, images, Office docs, HTML, CSV, JSON, XML, EML, EPUB), images with captions, or media files (MP4, WebM, MP3, WAV, M4A, OGG, FLAC) for processing and indexing.
  • scrape_websites — Scrape websites and add the content to the knowledge base.
  • manage_documents — Reprocess, reindex, or delete documents from the knowledge base.

Use cases

  • Search and chat with your organization's internal documentation, policies, and procedures directly from Claude or Cursor.
  • Upload video or audio recordings and search them by transcript content with timestamp-linked playback.
  • Scrape competitor websites or public documentation and build a searchable knowledge base for analysis.
  • Extract text from scanned PDFs and images using OCR, then query the extracted content with natural language.
  • Embed a chat widget in your web application to let users ask questions about your documents with source attribution.

io.github.HatmanStack/ragstack MCP server FAQ

What is the RAGStack MCP server?

It's an MCP (Model Context Protocol) server that connects your AI assistant (Claude, Cursor, etc.) to a serverless RAGStack knowledge base on AWS. You can search documents, chat with sources, upload new content, and scrape websites—all from your AI assistant.

Is RAGStack free?

RAGStack is not free but is very low-cost: approximately $7–10/month for 1000 documents using AWS Lambda, S3, DynamoDB, and Bedrock. There are no vector database fees or idle costs because it uses a scale-to-zero serverless architecture.

How do I install the MCP server in Cursor or Claude?

Install the Python package (`pip install ragstack-mcp`), then add it to your MCP config with your RAGStack GraphQL endpoint and API key as environment variables. See the MCP Server docs in the repository for detailed setup instructions.

What authentication is required?

You need AWS credentials to deploy RAGStack, and an API key (generated in the RAGStack dashboard) to connect the MCP server. The web component uses IAM authentication automatically.

What document formats are supported?

Text formats (HTML, TXT, CSV, JSON, XML, EML, EPUB, DOCX, XLSX), images (PDF, JPG, PNG, TIFF, GIF, BMP, WebP, AVIF), and media (MP4, WebM, MP3, WAV, M4A, OGG, FLAC). Documents are processed with OCR or transcription as needed.

Can I deploy RAGStack without coding?

Yes. Use the one-click AWS Marketplace deployment or the CloudFormation template. You only need an AWS account and an admin email address.

README (reference)

Source of truth, from the repository.

<img align="center" src="ragstack_banner_resized.png" alt="RAGStack-Lambda-app icon"> <p align="center"> <a href="https://www.apache.org/licenses/LICENSE-2.0.html"><img src="https://img.shields.io/badge/license-Apache2.0-blue" alt="Apache 2.0 License" /></a> <a href="https://www.python.org/"><img src="https://img.shields.io/badge/Python-3.13-3776AB" alt="Python 3.13" /></a> <a href="https://react.dev"><img src="https://img.shields.io/badge/React-19-61DAFB" alt="React 19" /></a> </p> <p align="center"> <a href="https://aws.amazon.com/lambda/"><img src="https://img.shields.io/badge/AWS-Lambda-FF9900" alt="AWS Lambda" /></a> <a href="https://aws.amazon.com/bedrock/"><img src="https://img.shields.io/badge/AWS-Bedrock-232F3E" alt="AWS Bedrock" /></a> <a href="https://aws.amazon.com/transcribe/"><img src="https://img.shields.io/badge/AWS-Transcribe-527FFF" alt="AWS Transcribe" /></a> <a href="https://aws.amazon.com/s3/"><img src="https://img.shields.io/badge/AWS-S3-569A31" alt="AWS S3" /></a> <a href="https://aws.amazon.com/dynamodb/"><img src="https://img.shields.io/badge/AWS-DynamoDB-4053D6" alt="AWS DynamoDB" /></a> <a href="https://aws.amazon.com/cognito/"><img src="https://img.shields.io/badge/AWS-Cognito-DD344C" alt="AWS Cognito" /></a> </p>

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.

<p align="center"> <b>QUESTIONS?</b> <a href="https://deepwiki.com/HatmanStack/RAGStack-Lambda/"> <sub><img src="https://deepwiki.com/badge.svg" alt="Deep WIKI" height="20" /></sub> </a> </p>

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

EnvironmentURLCredentials
Base Pipelinedhrmkxyt1t9pb.cloudfront.netguest@hatstack.fun / Guest@123
Project Showcaseshowcase-htt.hatstack.funLogin 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:

  1. Subscribe to RAGStack on AWS Marketplace (free, not required - If subscribed Lambda roles auto-accept Bedrock model agreements on first invocation)
  2. Click here to deploy
  3. Enter a stack name (lowercase only, e.g., "my-docs") and your admin email
  4. 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:

TypeFormatsProcessing
TextHTML, TXT, CSV, JSON, XML, EML, EPUB, DOCX, XLSXDirect extraction with smart analysis
OCRPDF, JPG, PNG, TIFF, GIF, BMP, WebP, AVIFTextract or Bedrock vision OCR (WebP/AVIF require Bedrock)
MediaMP4, WebM, MP3, WAV, M4A, OGG, FLACAWS Transcribe → 30s segments → searchable with timestamps
PassthroughMarkdown (.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

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:

Related MCP servers

ARArkon Vault logo

Private projects, preflight, decisions, and handoffs that keep work continuous across AI tools.

0
View repository →

Local codebase search for AI assistants via MCP. Requires Hawkeye and Hawkeye AI Bridge installed.

1
View repository →
CRCrystallize MCP logo

Crystallize MCP

Maintained

Crystallize headless commerce tools for AI agents via Model Context Protocol

0
TypeScript
MIT
View repository →

MCP server for Safari DevTools — browser debugging and automation for AI coding agents

2
TypeScript
MIT
View repository →

Search volunteer opportunities across Spain via hacesfalta.org

0
TypeScript
View repository →

Create AI presentation videos with slides, narration, TTS audio, and MP4 export from any topic.