home / mcp / ragstack mcp server
Provides an MCP server to query RagStack knowledge base via AI assistants with retrieval and source citations.
Configuration
View docs{
"mcpServers": {
"hatmanstack-ragstack-lambda": {
"command": "pip",
"args": [
"install",
"ragstack-mcp"
],
"env": {
"RAGSTACK_API_KEY": "YOUR_API_KEY",
"RAGSTACK_GRAPHQL_ENDPOINT": "YOUR_ENDPOINT"
}
}
}
}You can deploy and use a serverless knowledge base and AI chat system that processes documents, images, video, and audio, extracts text with OCR or transcription, and lets you search with context-aware answers and source citations. Itβs designed to scale with cloud-native services and supports multimodal embeddings, media transcription, and retrieval-augmented chat.
You interact with the MCP server through an integration that connects your AI assistant to the knowledge base. Upload documents and media to build the knowledge base, then ask questions. The chat responses include sources and timestamps when you query media, so you can verify the information and jump to the exact moment in a video or audio file.
Prerequisites: you need an environment with Python and a package manager, plus access to run MCP configurations in your AI assistant ecosystem.
# Technique 1: Install the MCP integration tool locally (example)
pip install ragstack-mcp
# Technique 2: Or configure your MCP with the provided JSON snippet using your assistant's settingsTo connect your AI assistant to the knowledge base, add the MCP config to your assistantβs MCP setup. This enables querying the knowledge base directly from your assistant with the appropriate authentication.
{
"ragstack-kb": {
"command": "uvx",
"args": ["ragstack-mcp"],
"env": {
"RAGSTACK_GRAPHQL_ENDPOINT": "YOUR_ENDPOINT",
"RAGSTACK_API_KEY": "YOUR_API_KEY"
}
}
}The MCP server is designed to operate in a serverless architecture, leveraging Lambda, Step Functions, S3, and DynamoDB for scalable document processing, embedding generation, and retrieval. You can run in demo mode for evaluation or in production with your own endpoints and keys.
- Ensure your endpoint and API key are correctly configured in the MCP env vars. - When testing media transcription, verify that the language and speaker diarization settings meet your needs. - Use the knowledge base reindex option if you update metadata or processing settings and need fresh results.
MCP server component that enables retrieval-augmented querying of the RagStack knowledge base from AI assistants.