Source Code to Knowledge Base Generator with MCP Server
Convert any source code repository into a searchable knowledge base with automatic chunking, embedding generation, and intelligent search capabilities. Now with MCP (Model Context Protocol) support for Claude Code and Cursor integration!
📦 Now available on npm! Install with: npm install -g @vezlo/src-to-kb
Available Commands
After installation, you'll have access to these commands:
src-to-kb- Generate knowledge base from source codesrc-to-kb-search- Search the knowledge basesrc-to-kb-upload- Upload local knowledge base to external serversrc-to-kb-api- Start REST API server with Swagger docssrc-to-kb-mcp- Start MCP server for IDE integrationsrc-to-kb-mcp-install- Auto-configure Claude Code/Cursor
Features
- 📁 Multi-language Support: JavaScript, TypeScript, Python, Java, C++, Go, Rust, and more
- 📝 Notion Integration: Import pages and databases directly from Notion (NEW!)
- 🎯 Answer Modes: Three modes for different users - End User (simple), Developer (technical), Copilot (code-focused)
- 🌐 REST API: Full-featured API with Swagger documentation for integration with external services
- 🔍 Smart Chunking: Intelligent code splitting with configurable overlap
- 🧹 Code Cleaning: Optional comment removal and whitespace normalization
- 🔢 Embeddings: Optional OpenAI embeddings for semantic search
- 📊 Statistics: Comprehensive analysis of your codebase
- 🚀 Fast Processing: Efficient file scanning and processing
- 💾 Structured Storage: Organized JSON output for easy integration
- 🤖 MCP Server: Direct integration with Claude Code, Cursor, and other MCP-compatible tools
- 💡 AI-Powered Search: Uses OpenAI GPT-5 (latest reasoning model) for intelligent query understanding and helpful answers
- 🔐 API Authentication: Optional API key authentication for secure access
- 🌐 External Server Integration: Send code to external servers for processing and search via REST API






