Build AI-Powered Knowledge Bases from Code and Notion
AI-powered knowledge base server for source code and Notion. Integrates with Claude Code and Cursor via MCP.
1.0.0Add to Favorites
Why it matters
Transform your source code repositories and Notion content into a powerful, searchable knowledge base. Leverage AI for intelligent code chunking and semantic search to unlock insights from your documentation and codebase.
Outcomes
What it gets done
Ingest and process source code from multiple languages.
Import content from Notion pages and databases.
Create an AI-powered search interface for your knowledge base.
Integrate with external systems via a REST API and MCP server.
Install
Add it to your toolbox
Run in your project directory:
curl -fsSL https://spark.entire.vc/get/vb-source-to-knowledge-base | bash Capabilities
Tools your agent gets
Generate a searchable knowledge base from source code repositories with intelligent chunking.
Search codebase using AI-powered semantic search with multiple response modes.
Import Notion pages and databases into the knowledge base.
Retrieve statistics and metrics about the indexed codebase.
Overview
Source to Knowledge Base MCP Server
What it does
Transform source code repositories and Notion content into searchable knowledge bases with AI-powered search. The MCP server connects AI tools like Claude Code and Cursor to this knowledge base, enabling intelligent code understanding and search.
Installation can be done globally:
npm install -g @vezlo/src-to-kb
Or as a project dependency:
npm install @vezlo/src-to-kb
To start the MCP server, use the command:
src-to-kb-mcp
How it connects
2023-10-27T10:00:00Z
Source README
Transform source code repositories and Notion content into searchable knowledge bases with AI-powered search using GPT-5, intelligent code chunking, and OpenAI embeddings for semantic code understanding.
Installation
NPM Global
npm install -g @vezlo/src-to-kb
NPX
npx @vezlo/src-to-kb /path/to/repo
Project Dependency
npm install @vezlo/src-to-kb
From Source
git clone https://github.com/vezlo/src-to-kb.git
cd src-to-kb
npm install
Features
- Support for source code in multiple languages (JavaScript, TypeScript, Python, Java, C++, Go, Rust, and more)
- Notion integration for importing pages and databases
- Three response modes: End User (simple), Developer (technical), Copilot (code-focused)
- REST API with Swagger documentation
- Intelligent code chunking with configurable overlap
- OpenAI embeddings for semantic search
- External server integration for production deployments
- MCP server for integration with Claude Code and Cursor
- AI-powered search using OpenAI GPT-5
- Optional API key authentication
Environment Variables
Optional
OPENAI_API_KEY- Required for embedding generation and AI-powered searchNOTION_API_KEY- Required for Notion integration to import pages and databasesEXTERNAL_KB_URL- URL for external server integration to send knowledge base dataEXTERNAL_KB_API_KEY- API key for authenticating with external knowledge base serverAPI_KEY- Optional API key to secure the REST API serverPORT- Port number for REST API server (default: 3000)
Usage Examples
Generate knowledge base from source code: src-to-kb ./my-nextjs-app --output ./my-kb
Search codebase: src-to-kb-search search "How does routing work?" --mode developer
Import Notion content: src-to-kb --source=notion --notion-url=https://notion.so/Your-Page-abc123
Start MCP server: src-to-kb-mcp
Get codebase statistics: src-to-kb-search stats --kb ./project-kb
Notes
Supports external server integration with a production-ready assistant-server for enterprise deployments. Includes auto-configuration tool (src-to-kb-mcp-install) for setting up Claude Code and Cursor. Available commands include src-to-kb (generation), src-to-kb-search (search), src-to-kb-api (REST server), and src-to-kb-mcp (MCP server).
Discussion
Questions & comments · 0
Sign In Sign in to leave a comment.