Build Your AI's Knowledge Base with Web Crawling and Document Management
Quick Start • Cursor Setup • Documentation
Archon is a Model Context Protocol (MCP) server that creates a centralized knowledge base for your AI coding assistants. Connect Cursor, Windsurf, or Claude Desktop to give your AI agents access to:
- Your documentation (crawled websites, uploaded PDFs/docs)
- Smart search capabilities with advanced RAG strategies
- Task management integrated with your knowledge base
- Real-time updates as you add new content
- Docker Desktop
- Supabase account (free tier works)
- OpenAI API key
# Clone the repository
git clone https://github.com/coleam00/archon.git
cd archon
# Create environment file
cp .env.example .env
Edit .env
and add your Supabase credentials:
# Required
SUPABASE_URL=https://your-project.supabase.co
SUPABASE_SERVICE_KEY=your-service-key-here
-
Set Up Database: In your Supabase project SQL Editor, run:
-- Copy and paste the contents of migration/1_initial_setup.sql
-
Start Archon:
docker-compose up --build -d
-
Configure API Key:
- Open http://localhost:3737
- Go to Settings → Add your OpenAI API key
- Test by uploading a document or crawling a website
-
Add Project Management: In Supabase SQL Editor, run:
-- Copy and paste the contents of migration/2_archon_projects.sql
-
Restart Python Server:
docker-compose restart archon-pyserver
-
Enable Projects Feature:
- Go to Settings in the web interface
- Toggle "Enable Projects Feature" to ON
- Access projects at http://localhost:3737/projects
-
Add MCP Client Features: In Supabase SQL Editor, run:
-- Copy and paste the contents of migration/3_mcp_client_management.sql
-
Restart Services:
docker-compose restart
-
Configure MCP Clients:
- Access MCP Dashboard at http://localhost:3737/mcp
- Add and manage MCP client connections
If you need to completely reset your database and start fresh:
⚠️ Reset Database - This will delete ALL data!
-
Run Reset Script: In your Supabase SQL Editor, run:
-- Copy and paste the contents of migration/RESET_DB.sql -- ⚠️ WARNING: This will delete all data!
-
Rebuild Database: After reset, run the migration files in order:
-- Step 1: Run migration/1_initial_setup.sql -- Step 2: Run migration/2_archon_projects.sql -- Step 3: Run migration/3_mcp_client_management.sql (optional)
-
Restart Services:
docker-compose restart
-
Reconfigure:
- Add your OpenAI API key in Settings
- Re-upload any documents or re-crawl websites
- Enable Projects feature if needed
The reset script safely removes all tables, functions, triggers, and policies with proper dependency handling.
Add this configuration to your Cursor settings:
File: ~/.cursor/mcp.json
{
"mcpServers": {
"archon": {
"command": "docker",
"args": [
"exec",
"-i",
"-e", "TRANSPORT=stdio",
"-e", "HOST=localhost",
"-e", "PORT=8051",
"archon-pyserver",
"python", "src/mcp_server.py"
]
}
}
}
Complete documentation is available at: http://localhost:3838
Service | URL | Purpose |
---|---|---|
Web Interface | http://localhost:3737 | Main dashboard and controls |
Documentation | http://localhost:3838 | Complete setup and usage guides |
API Docs | http://localhost:8080/docs | FastAPI documentation |
Once everything is running:
- Test Document Upload: Go to http://localhost:3737 → Knowledge Base → Upload a PDF
- Test Web Crawling: Knowledge Base → "Crawl Website" → Enter a docs URL
- Test Projects: Projects → Create a new project and add tasks
- Test AI Integration: MCP Dashboard → Copy connection config for your AI client
- Smart Web Crawling: Automatically detects sitemaps, text files, or webpages
- Document Processing: Upload PDFs, Word docs, markdown, and text files
- AI Integration: Connect any MCP-compatible client (Cursor, Windsurf, etc.)
- Task Management: Organize projects and tasks with AI agent integration
- Real-time Updates: WebSocket-based live progress tracking
For development with hot reload:
# Backend (with auto-reload)
docker-compose up archon-pyserver --build
# Frontend (with hot reload)
cd archon-ui-main && npm run dev
# Documentation (with hot reload)
cd docs && npm start
MIT License - see LICENSE file for details.
Build once, query everywhere
Transform your AI coding experience with Archon