SirThomasRipley/archon-mcp-server
If you are the rightful owner of archon-mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
Archon MCP Server is a lightweight microservice designed to facilitate AI assistant interactions within the Archon knowledge management system.
Archon MCP Server
A lightweight MCP (Model Context Protocol) server microservice for the Archon knowledge management system.
Overview
This MCP server provides tools and protocol handling for AI assistants to interact with the Archon system. It communicates with other Archon services via HTTP and exposes MCP tools for:
- RAG queries and knowledge base search
- Code example retrieval
- Project and task management (when enabled)
- Source management
Deployment on Railway
Manual Railway Deployment
-
Fork this repository
-
Create a new project on Railway
-
Connect your GitHub repository
-
Add the following environment variables:
SUPABASE_URL
: Your Supabase project URLSUPABASE_SERVICE_KEY
: Your Supabase service keySERVICE_AUTH_KEY
: A secure key for service-to-service authenticationARCHON_SERVER_URL
: URL of the main Archon server (e.g.,http://archon-server.railway.internal:8181
)ARCHON_AGENTS_URL
: URL of the agents service (e.g.,http://archon-agents.railway.internal:8052
)LOGFIRE_TOKEN
(optional): For observability
-
Deploy!
Local Development
Prerequisites
- Python 3.11+
- pip or uv package manager
Setup
- Clone the repository:
git clone https://github.com/yourusername/archon-mcp-server.git
cd archon-mcp-server
- Install dependencies:
pip install -r requirements.txt
- Copy
.env.example
to.env
and configure:
cp .env.example .env
# Edit .env with your configuration
- Run the server:
python -m src.mcp_server.mcp_server
The server will start on http://localhost:8051
Docker Build
Build the Docker image:
docker build -t archon-mcp .
Run with Docker:
docker run -p 8051:8051 --env-file .env archon-mcp
Health Check
The server exposes a health endpoint at /health
which returns:
200 OK
: Server is healthy503 Service Unavailable
: Server is unhealthy or dependencies are unavailable
Architecture
This is a lightweight microservice that:
- Uses HTTP-based communication with other Archon services
- Implements the MCP protocol for AI assistant integration
- Maintains minimal dependencies (~150MB container size)
- Supports horizontal scaling
Environment Variables
Variable | Required | Description |
---|---|---|
SUPABASE_URL | Yes | Supabase project URL |
SUPABASE_SERVICE_KEY | Yes | Supabase service key |
SERVICE_AUTH_KEY | Yes | Service-to-service authentication key |
ARCHON_SERVER_URL | Yes | Main Archon server URL |
ARCHON_AGENTS_URL | Yes | Agents service URL |
PORT | No | Server port (default: 8051) |
LOGFIRE_TOKEN | No | Logfire token for observability |
LOG_LEVEL | No | Logging level (default: INFO) |
License
MIT