Jina Supabase RAG
FreeNot checkedCrawls and indexes documentation websites using Jina AI Reader API and Crawl4AI for intelligent content extraction, automatically discovering URLs through sitem
About
Crawls and indexes documentation websites using Jina AI Reader API and Crawl4AI for intelligent content extraction, automatically discovering URLs through sitemaps and recursive crawling, then chunks and embeds the content into Supabase with pgvector for semantic search and retrieval-augmented generation workflows.
README
A lean, focused MCP server for crawling documentation websites and indexing them to Supabase for RAG (Retrieval-Augmented Generation).
Features
- Smart URL Discovery: Tries sitemap.xml first, falls back to Crawl4AI recursive discovery
- Hybrid Content Extraction: Uses Jina AI for fast content extraction, Crawl4AI as fallback
- Multi-Project Support: Index multiple documentation sites to separate Supabase projects
- Efficient Chunking: Intelligent text chunking with configurable size and overlap
- Vector Embeddings: OpenAI embeddings stored in Supabase pgvector
Architecture
┌─────────────────────────────────────────────────────────────┐
│ MCP Server Tools │
├─────────────────────────────────────────────────────────────┤
│ 1. crawl_and_index(url_pattern, project_name) │
│ 2. list_projects() │
│ 3. search_documents(query, project_name, limit) │
└─────────────────────────────────────────────────────────────┘
│
▼
┌─────────────────────────────────────────────────────────────┐
│ Discovery Layer │
├─────────────────────────────────────────────────────────────┤
│ • Try sitemap.xml (fast) │
│ • Try common doc patterns │
│ • Crawl4AI recursive discovery (fallback) │
└─────────────────────────────────────────────────────────────┘
│
▼
┌─────────────────────────────────────────────────────────────┐
│ Extraction Layer │
├─────────────────────────────────────────────────────────────┤
│ • Jina AI Reader API (primary, fast) │
│ • Crawl4AI (fallback for complex pages) │
└─────────────────────────────────────────────────────────────┘
│
▼
┌─────────────────────────────────────────────────────────────┐
│ Chunking & Embedding Layer │
├─────────────────────────────────────────────────────────────┤
│ • Smart text chunking │
│ • OpenAI embeddings (text-embedding-3-small) │
└─────────────────────────────────────────────────────────────┘
│
▼
┌─────────────────────────────────────────────────────────────┐
│ Supabase Storage │
├─────────────────────────────────────────────────────────────┤
│ • pgvector for similarity search │
│ • Project isolation via source column │
└─────────────────────────────────────────────────────────────┘
Installation
Prerequisites
- Python 3.12+
- Supabase account
- OpenAI API key
- Jina AI API key (optional, recommended)
Setup
- Clone the repository:
git clone https://github.com/yourusername/mcp-jina-supabase-rag.git
cd mcp-jina-supabase-rag
- Install dependencies:
# Using uv (recommended)
uv venv
source .venv/bin/activate # or .venv\Scripts\activate on Windows
uv pip install -e .
# Or using pip
pip install -e .
- Set up Supabase database:
# Run the SQL in supabase_schema.sql in your Supabase SQL Editor
- Configure environment:
cp .env.example .env
# Edit .env with your credentials
Usage
Running the MCP Server
# SSE transport (recommended for remote connections)
python src/main.py
# The server will start on http://localhost:8052/sse
Configure MCP Client
Claude Code
claude mcp add --transport sse jina-supabase http://localhost:8052/sse
Cursor / Claude Desktop
{
"mcpServers": {
"jina-supabase": {
"transport": "sse",
"url": "http://localhost:8052/sse"
}
}
}
Slash Command
Create /home/marty/.claude/commands/jina.md:
---
allowed-tools: mcp__jina-supabase
argument-hint: <url_pattern> <project_name>
description: Crawl documentation and index to Supabase RAG
---
# Index Documentation to Supabase
Use the jina-supabase MCP server to crawl and index documentation.
Arguments:
- $1: URL pattern (e.g., https://docs.example.com/*)
- $2: Project name for isolation
Example:
/jina https://docs.anthropic.com/claude/* anthropic-docs
Tools
crawl_and_index
Crawl a documentation site and index to Supabase.
Parameters:
url_pattern(string): URL or pattern to crawlproject_name(string): Project identifier for isolationdiscovery_method(string, optional):auto,sitemap, orcrawlextraction_method(string, optional):auto,jina, orcrawl4ai
Example:
await crawl_and_index(
url_pattern="https://docs.supabase.com/docs/*",
project_name="supabase-docs",
discovery_method="auto",
extraction_method="jina"
)
list_projects
List all indexed projects.
Returns: List of project names with document counts
search_documents
Search indexed documents using vector similarity.
Parameters:
query(string): Search queryproject_name(string, optional): Filter by projectlimit(int, optional): Max results (default: 5)
Example:
results = await search_documents(
query="How do I set up authentication?",
project_name="supabase-docs",
limit=10
)
Configuration
See .env.example for all configuration options.
Discovery Methods
auto: Try sitemap first, fallback to crawlsitemap: Only use sitemap.xml (fast, fails if no sitemap)crawl: Only use Crawl4AI recursive discovery (slow, comprehensive)
Extraction Methods
auto: Use Jina for bulk extraction (>10 URLs), Crawl4AI otherwisejina: Use Jina AI Reader API (fast, requires API key)crawl4ai: Use Crawl4AI browser automation (slow, no API key needed)
Development
# Install dev dependencies
uv pip install -e ".[dev]"
# Run tests
pytest
# Format code
black src/
# Lint
ruff check src/
Differences from mcp-crawl4ai-rag
| Feature | mcp-crawl4ai-rag | mcp-jina-supabase-rag |
|---|---|---|
| Focus | Full-featured RAG with knowledge graphs | Lean documentation indexer |
| Discovery | Recursive only | Sitemap first, crawl fallback |
| Extraction | Crawl4AI only | Jina primary, Crawl4AI fallback |
| Dependencies | Heavy (Neo4j, etc.) | Light (core only) |
| Use Case | Advanced RAG with hallucination detection | Fast doc indexing |
License
MIT
Contributing
Contributions welcome! Please open an issue first to discuss changes.
Installing Jina Supabase RAG
This server has no published package — it is built from source. Open the repository and follow its README.
▸ github.com/croakingtoad/mcp-jina-supabase-ragFAQ
Is Jina Supabase RAG MCP free?
Yes, Jina Supabase RAG MCP is free — one-click install via Unyly at no cost.
Does Jina Supabase RAG need an API key?
No, Jina Supabase RAG runs without API keys or environment variables.
Is Jina Supabase RAG hosted or self-hosted?
Self-hosted: the server runs locally on your machine via the install command above.
How do I install Jina Supabase RAG in Claude Desktop, Claude Code or Cursor?
Open Jina Supabase RAG on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
Related MCPs
Fetch
Web content fetching and conversion for efficient LLM usage.
AWS KB Retrieval
Retrieval from AWS Knowledge Base using Bedrock Agent Runtime.
by modelcontextprotocolSpring AI MCP Server
Provides auto-configuration for setting up an MCP server in Spring Boot applications.
llm-analysis-assistant
A very streamlined mcp client that supports calling and monitoring stdio/sse/streamableHttp, and can also view request responses through the /logs page. It also
by xuzexin-hzCompare Jina Supabase RAG with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All ai MCPs
