A full-stack application that helps developers organize and query their technical knowledge using AI. Built with custom MCP server integration, Redis caching, and background job processing.
- AI-powered search and knowledge retrieval - Natural language queries across your knowledge base
- Custom MCP server for tool integration - Extensible architecture for adding new capabilities
- Redis caching - Fast query responses and optimized performance
- Background job processing - Async indexing and data processing
- Modern tech stack - Next.js, TypeScript, FastAPI, PostgreSQL
- Live Demo - Try it out (rate-limited for security)
- Video Walkthrough - 5-minute feature overview
Frontend:
- Next.js 14 (App Router)
- TypeScript
- Tailwind CSS
- React Context (auth state management)
Backend:
- Python 3.10+
- FastAPI
- SQLAlchemy
- PostgreSQL
- JWT Authentication
AI/Integration:
- Anthropic Claude API
- Custom MCP Server (FastMCP) implementation
- Agentic tool loop
- User submits query through Next.js frontend
- Request reaches FastAPI backend
- Redis cache checks for existing results
- If cache miss, MCP server processes query with Claude API
- Background jobs handle indexing and data updates
- Results returned and cached for future queries
- Node.js 18+
- Python 3.11+
- PostgreSQL
- Redis
Clone the repository
git clone https://github.com/pamelagilmour/dev-notes-ai.git
cd dev-notes-aicd frontend
npm install
npm run devcd backend
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
uvicorn main:app --reloadcd mcp-server
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
python knowledge_base_server.pybackend/.env
DATABASE_URL=postgresql://localhost:5432/knowledge_base
SECRET_KEY=your-secret-key-here
ANTHROPIC_API_KEY=sk-ant-your-key-here
# Backend tests (coming soon)
pytest
# Test MCP server
mcp dev mcp-server/knowledge_base_server.py
# API docs (auto-generated)
http://localhost:8000/docsCurrent:
- RESTful API with proper status codes and error handling
- JWT authentication with 24hr token expiration
- Password hashing with bcrypt
- Database indexes for query performance
- Input validation with Pydantic models
- CORS configuration
- Agentic AI loop with tool orchestration
- Redis caching (target: 80%+ cache hit rate)
- Rate limiting
- Rate limiting on AI queries
- API key management
Built by Pam Gilmour | LinkedIn | GitHub
