MCP server for RAGStack knowledge base - search, chat, upload, and scrape
Project description
RAGStack MCP Server
MCP (Model Context Protocol) server for RAGStack knowledge bases. Enables AI assistants to search, chat, upload, and scrape your knowledge base.
Installation
# Using uvx (recommended - no install needed)
uvx ragstack-mcp
# Or install globally
pip install ragstack-mcp
Configuration
Get your GraphQL endpoint and API key from the RAGStack dashboard: Settings → API Key
Claude Desktop
Edit ~/Library/Application Support/Claude/claude_desktop_config.json (Mac) or %APPDATA%\Claude\claude_desktop_config.json (Windows):
{
"mcpServers": {
"ragstack-kb": {
"command": "uvx",
"args": ["ragstack-mcp"],
"env": {
"RAGSTACK_GRAPHQL_ENDPOINT": "https://xxx.appsync-api.us-east-1.amazonaws.com/graphql",
"RAGSTACK_API_KEY": "da2-xxxxxxxxxxxx"
}
}
}
}
Amazon Q CLI
Edit ~/.aws/amazonq/mcp.json:
{
"mcpServers": {
"ragstack-kb": {
"command": "uvx",
"args": ["ragstack-mcp"],
"env": {
"RAGSTACK_GRAPHQL_ENDPOINT": "https://xxx.appsync-api.us-east-1.amazonaws.com/graphql",
"RAGSTACK_API_KEY": "da2-xxxxxxxxxxxx"
}
}
}
}
Cursor
Open Settings → MCP Servers → Add Server, or edit .cursor/mcp.json:
{
"ragstack-kb": {
"command": "uvx",
"args": ["ragstack-mcp"],
"env": {
"RAGSTACK_GRAPHQL_ENDPOINT": "https://xxx.appsync-api.us-east-1.amazonaws.com/graphql",
"RAGSTACK_API_KEY": "da2-xxxxxxxxxxxx"
}
}
}
VS Code + Cline
Edit .vscode/cline_mcp_settings.json:
{
"mcpServers": {
"ragstack-kb": {
"command": "uvx",
"args": ["ragstack-mcp"],
"env": {
"RAGSTACK_GRAPHQL_ENDPOINT": "https://xxx.appsync-api.us-east-1.amazonaws.com/graphql",
"RAGSTACK_API_KEY": "da2-xxxxxxxxxxxx"
}
}
}
}
VS Code + Continue
Edit ~/.continue/config.json, add to mcpServers array:
{
"mcpServers": [
{
"name": "ragstack-kb",
"command": "uvx",
"args": ["ragstack-mcp"],
"env": {
"RAGSTACK_GRAPHQL_ENDPOINT": "https://xxx.appsync-api.us-east-1.amazonaws.com/graphql",
"RAGSTACK_API_KEY": "da2-xxxxxxxxxxxx"
}
}
]
}
Available Tools
| Tool | Description |
|---|---|
search_knowledge_base |
Search for relevant documents |
chat_with_knowledge_base |
Ask questions with AI-generated answers and citations |
start_scrape_job |
Scrape a website into the knowledge base |
get_scrape_job_status |
Check scrape job progress |
list_scrape_jobs |
List recent scrape jobs |
upload_document_url |
Get a presigned URL to upload documents |
Usage Examples
Once configured, just ask your AI assistant naturally:
- "Search my knowledge base for authentication best practices"
- "What does our documentation say about API rate limits?"
- "Scrape the React docs at react.dev/reference"
- "Check the status of my scrape job"
- "Upload a new document called quarterly-report.pdf"
Environment Variables
| Variable | Required | Description |
|---|---|---|
RAGSTACK_GRAPHQL_ENDPOINT |
Yes | Your RAGStack GraphQL API URL |
RAGSTACK_API_KEY |
Yes | Your RAGStack API key |
Development
# Clone and install
cd src/ragstack-mcp
uv sync
# Run locally
uv run ragstack-mcp
# Build package
uv build
# Publish to PyPI
uv publish
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ragstack_mcp-0.1.1.dev3.tar.gz.
File metadata
- Download URL: ragstack_mcp-0.1.1.dev3.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fbafe811f94cac65e102200e35769e025415d8ad65057ee726bc122f4cc81acc
|
|
| MD5 |
0f0efbf98671712dc7a5999a410a014d
|
|
| BLAKE2b-256 |
9807144e6894d7a175d7c5e635cef2dbb8f6978c76b57e19c7e8861faedf86ef
|
Provenance
The following attestation bundles were made for ragstack_mcp-0.1.1.dev3.tar.gz:
Publisher:
publish-mcp.yml on HatmanStack/RAGStack-Lambda
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ragstack_mcp-0.1.1.dev3.tar.gz -
Subject digest:
fbafe811f94cac65e102200e35769e025415d8ad65057ee726bc122f4cc81acc - Sigstore transparency entry: 772035014
- Sigstore integration time:
-
Permalink:
HatmanStack/RAGStack-Lambda@b87c31ae6e2954dc1566beacbb7bc8d2c78ca2ab -
Branch / Tag:
refs/heads/main - Owner: https://github.com/HatmanStack
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-mcp.yml@b87c31ae6e2954dc1566beacbb7bc8d2c78ca2ab -
Trigger Event:
push
-
Statement type:
File details
Details for the file ragstack_mcp-0.1.1.dev3-py3-none-any.whl.
File metadata
- Download URL: ragstack_mcp-0.1.1.dev3-py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
32e794f2edbd11c3f1407c903efcdce8a93fa53bc7b7468806e7125dd944f919
|
|
| MD5 |
bb800f2af47dfe7860e99f7cafe30e03
|
|
| BLAKE2b-256 |
aefadfe851afa08e7577908161268b79d952beb4be7856b549857ab5cb1b5925
|
Provenance
The following attestation bundles were made for ragstack_mcp-0.1.1.dev3-py3-none-any.whl:
Publisher:
publish-mcp.yml on HatmanStack/RAGStack-Lambda
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ragstack_mcp-0.1.1.dev3-py3-none-any.whl -
Subject digest:
32e794f2edbd11c3f1407c903efcdce8a93fa53bc7b7468806e7125dd944f919 - Sigstore transparency entry: 772035015
- Sigstore integration time:
-
Permalink:
HatmanStack/RAGStack-Lambda@b87c31ae6e2954dc1566beacbb7bc8d2c78ca2ab -
Branch / Tag:
refs/heads/main - Owner: https://github.com/HatmanStack
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-mcp.yml@b87c31ae6e2954dc1566beacbb7bc8d2c78ca2ab -
Trigger Event:
push
-
Statement type: