All work
Search engine · MCP server
KBÜ MCP — University search engine
An open-source hybrid search engine that indexes 140+ Karabük University websites and thousands of documents, exposed to AI assistants via MCP.
- My role
- Design, development, evaluation and docs — solo
- Year
- 2026
- Stack
- Python · PostgreSQL · pgvector · bge-m3
%96
accuracy (recall@5)
140+
indexed sites
10
MCP tools
MIT
open source
The problem
University information is scattered across dozens of sub-sites, scanned PDFs and spreadsheets. Finding a cafeteria fee or a regulation clause takes minutes, and general AI assistants answer these questions by making things up.
What I built
- A resumable job queue crawling every *.karabuk.edu.tr domain, documents, academic profiles (UNIS) and news.
- Extractors that turn everything into clean Markdown: template chrome removed, PDF tables preserved, scanned documents OCR’d ahead of time.
- Hybrid search combining keyword (Turkish stemming, BM25F) and semantic search (pgvector, bge-m3), ranked by relevance and recency.
- A remote MCP server for Claude, Cursor, Codex or an in-house model, with tools for search, document reading, academic profiles, menus, calendar and phone directory.
- Grounding rules that make the model answer only from sources, with links and dates.
How it works
- 140+ sitespages, PDF, Excel
- Job queuerate-limited, resumable
- ExtractorsMarkdown + OCR
- PostgreSQLBM25F + pgvector
- MCP serverClaude · Cursor · Codex
Key decisions
- I merged both search methods with Reciprocal Rank Fusion: keyword wins for exact phrases, vectors win for meaning.
- OCR runs at index time, not query time, so users never wait on scanned documents.
- Accuracy is measured, not guessed: recall@5 = 96% on an evaluation set I built.
- Production-ready with API-key auth, rate limits and error logs; one-command setup with Docker Compose.
Stack
PythonPostgreSQLpgvectorbge-m3OCRMCPDocker Compose
Need something similar?
Let's talk about your project