# vezlo/src-to-kb [Health: Active]

**Category:** 🧠 Knowledge & Memory  
**Repository:** https://github.com/vezlo/src-to-kb  
**GitHub Stars:** 40  
**Views:** 3  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/vezlo-src-to-kb

## Description
Convert source code repositories into searchable knowledge bases with AI-powered search using GPT-5, intelligent chunking, and OpenAI embeddings for semantic code understanding.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "src-to-kb": {
    "command": "npx",
    "args": ["-y","@vezlo/src-to-kb-mcp"]
  }
}
```

## Documentation

## What vezlo/src-to-kb MCP server does

The vezlo/src-to-kb MCP server is part of an npm package that turns source repositories into structured knowledge bases. It supports multiple programming languages, including JavaScript, TypeScript, Python, Java, C++, Go, and Rust. The generated data is stored as organized JSON with separate document and chunk content, making it suitable for local search or transfer to another service.

The package can also import Notion pages and databases. Notion content can be stored in a separate local knowledge base, with formatting such as headings, lists, and code blocks preserved. A URL is used to identify the page or database, and the tool determines which type of Notion resource it should fetch.

Search supports three answer modes: End User for simpler responses, Developer for technical explanations, and Copilot for code-focused answers.

## How it works

For a local repository, the generator scans files and applies configurable chunking with overlap. Optional cleaning can remove comments and normalize whitespace. By default, local processing creates chunks; the `--with-embeddings` option adds embeddings. Statistics about the processed codebase are also available.

The package includes separate commands for generation, searching, uploading an existing knowledge base, starting a REST API, and starting the MCP server. The `src-to-kb-mcp-install` command can automatically configure Claude Code or Cursor.

When `EXTERNAL_KB_URL` is set, processing uses server mode. Depending on the selected flags, the client sends raw content, locally created chunks, or chunks with embeddings to the configured endpoint. `EXTERNAL_KB_SEARCH_URL` enables search through an external server. The upload command expects a knowledge base containing `documents/` and `chunks/`; embedding uploads also require an `embeddings/` directory.

## Setup and configuration

Install the package globally with npm, then run the `src-to-kb-mcp` command to start MCP support. The package also provides `src-to-kb`, `src-to-kb-search`, `src-to-kb-upload`, and `src-to-kb-api` commands.

The vezlo/src-to-kb MCP server does not document a mandatory environment variable for starting its MCP process. Configuration depends on the workflow: set `OPENAI_API_KEY` when generating embeddings, `NOTION_API_KEY` when importing Notion content, and `EXTERNAL_KB_URL` when sending data to an external knowledge service. `EXTERNAL_KB_API_KEY` adds authentication for that service, and `EXTERNAL_KB_SEARCH_URL` points searches at its search endpoint.

For a local repository, pass its path and optionally an output directory. For Notion, use `--source=notion` with `--notion-url`; a key can be supplied through the environment or the `--notion-key` option.

## Tools and capabilities

- Generate knowledge bases from multilingual source repositories.
- Import individual Notion pages or all pages in a Notion database.
- Split content into configurable chunks and optionally clean code.
- Create OpenAI embeddings for semantic search.
- Search local knowledge bases with selectable answer modes.
- Upload content to an external REST knowledge service.
- Start a REST API with Swagger documentation.
- Start an MCP server and configure it for Claude Code or Cursor.

## Limitations and notes

OpenAI-dependent features require an OpenAI API key, and Notion imports require a Notion API key. External-server workflows require compatible endpoints; authenticated deployments additionally use `EXTERNAL_KB_API_KEY`.

The `--with-embeddings` option is optional rather than a prerequisite for local generation. In external-server mode, the server may create chunks or embeddings depending on the selected upload mode. The package is licensed under AGPL version 3.

_Full upstream README: https://allmcps.com/mcp/vezlo-src-to-kb/readme_

