MCP Featured

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.

Works with openainotion

90
Spark score
out of 100
Status Verified Official
Updated 4 months ago
Version 1.0.0
Models

Add 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

01

Ingest and process source code from multiple languages.

02

Import content from Notion pages and databases.

03

Create an AI-powered search interface for your knowledge base.

04

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_knowledge_base

Generate a searchable knowledge base from source code repositories with intelligent chunking.

search_knowledge_base

Search codebase using AI-powered semantic search with multiple response modes.

import_notion_content

Import Notion pages and databases into the knowledge base.

get_codebase_statistics

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 search
  • NOTION_API_KEY - Required for Notion integration to import pages and databases
  • EXTERNAL_KB_URL - URL for external server integration to send knowledge base data
  • EXTERNAL_KB_API_KEY - API key for authenticating with external knowledge base server
  • API_KEY - Optional API key to secure the REST API server
  • PORT - 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.