Src to KB
๐ ๐ โ๏ธ - Convert source code repositories into searchable knowledge bases with AI-powered search using GPT-5, intelligent chunking, and OpenAI embeddings for semantic code understanding.
What is Src to KB?
Src to KB is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to ๐ ๐ โ๏ธ - convert source code repositories into searchable knowledge bases with ai-powered search using gpt-5, intelligent chunking, and openai embeddings for semantic code understanding.
๐ ๐ โ๏ธ - Convert source code repositories into searchable knowledge bases with AI-powered search using GPT-5, intelligent chunking, and OpenAI embeddings for semantic code understanding.
This server falls under the Developer Tools and Knowledge & Memory categories on MCPgee, the world's largest MCP server directory with 33,000+ servers.
Features
- ๐ ๐ โ๏ธ - Convert source code repositories into searchable kn
Use Cases
Maintainer
Works with
Installation
Manual Installation
npx src-to-kbConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
How to Set Up and Use Src to KB
Src-to-KB converts source code repositories and Notion pages into searchable, AI-queryable knowledge bases using OpenAI embeddings and intelligent chunking. It exposes an MCP server that lets Claude and other AI clients search and reason over large codebases without loading every file into context. Developers use it to ask high-level architectural questions, find implementation patterns, and understand unfamiliar codebases through natural language queries backed by semantic vector search.
Prerequisites
- Node.js 18 or higher and npm installed
- An OpenAI API key (required for embeddings and AI-powered search with GPT models)
- The source code repository you want to index, available on disk
- An MCP-compatible client such as Claude Desktop or Claude Code
- Optional: a Notion integration token if indexing Notion pages instead of code
Install the src-to-kb package
Install globally via npm so that all CLI commands (src-to-kb, src-to-kb-search, src-to-kb-mcp) are available on your PATH.
npm install -g @vezlo/src-to-kbSet your OpenAI API key
Export the OPENAI_API_KEY environment variable before running any command that generates embeddings or performs AI-powered searches.
export OPENAI_API_KEY=sk-your-openai-key-hereGenerate the knowledge base from your repository
Run src-to-kb against your project directory. The --with-embeddings flag generates vector embeddings for semantic search. The output defaults to ./knowledge-base.
src-to-kb ./my-project --output ./kb --with-embeddingsTest the knowledge base with a search query
Verify the index is working correctly by running a semantic search against it. The developer mode returns code-level answers.
src-to-kb-search search "how is authentication handled" --kb ./kb --mode developerStart the MCP server
Launch the MCP server pointing at your generated knowledge base so Claude and other MCP clients can query it.
src-to-kb-mcp --kb ./kbAdd to your MCP client configuration
Register the MCP server in Claude Desktop or Claude Code so it is available as a tool during conversations.
# For Claude Code:
claude mcp add src-to-kb -- node /path/to/mcp-server.mjs
# Or use the auto-installer:
src-to-kb-mcp-installSrc to KB Examples
Client configuration
Claude Desktop configuration for the src-to-kb MCP server with OpenAI API key injected as an environment variable.
{
"mcpServers": {
"src-to-kb": {
"command": "npx",
"args": ["@vezlo/src-to-kb"],
"env": {
"OPENAI_API_KEY": "sk-your-openai-key-here"
}
}
}
}Prompts to try
Example prompts to query your indexed codebase through the MCP server.
- "How does this codebase handle user authentication and session management?"
- "Find all places where database connections are opened and explain the connection pooling strategy."
- "What design patterns are used in the payment processing module?"
- "Show me how errors are propagated from the service layer to the API layer."Troubleshooting Src to KB
Search returns no results or generic keyword matches instead of semantic results
Ensure you passed --with-embeddings when running src-to-kb and that OPENAI_API_KEY is set. Without embeddings the tool falls back to keyword pattern matching, which is less accurate.
src-to-kb command not found after installation
Check that npm's global bin directory is on your PATH. Run 'npm bin -g' to find the directory and add it to PATH in your shell profile (e.g., ~/.zshrc or ~/.bashrc).
Indexing fails on large files or runs out of memory
Use --max-file-size to cap file sizes (default 10 MB) and --exclude to skip build output directories like node_modules, dist, or .git. For very large repos, index subdirectories separately.
Frequently Asked Questions about Src to KB
What is Src to KB?
Src to KB is a Model Context Protocol (MCP) server that ๐ ๐ โ๏ธ - convert source code repositories into searchable knowledge bases with ai-powered search using gpt-5, intelligent chunking, and openai embeddings for semantic code understanding. It connects AI assistants to external tools and data sources through a standardized interface.
How do I install Src to KB?
Follow the installation instructions on the Src to KB GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.
Which AI clients work with Src to KB?
Src to KB works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.
Is Src to KB free to use?
Yes, Src to KB is open source and available under the NOASSERTION license. You can use it freely in both personal and commercial projects.
Src to KB Alternatives โ Similar Developer Tools Servers
Looking for alternatives to Src to KB? Here are other popular developer tools servers you can use with Claude, Cursor, and VS Code.
Ecc
โ 188.2kThe agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.
Javaguide
โ 155.8kJava ้ข่ฏ & ๅ็ซฏ้็จ้ข่ฏๆๅ๏ผ่ฆ็่ฎก็ฎๆบๅบ็กใๆฐๆฎๅบใๅๅธๅผใ้ซๅนถๅใ็ณป็ป่ฎพ่ฎกไธ AI ๅบ็จๅผๅ
Gemini CLI
โ 104.5kA secure MCP server that wraps the Google Gemini CLI, allowing clients to query Gemini models using local OAuth sessions without requiring an API key. It provides tools for model interaction and diagnostics with built-in protection against command in
Awesome MCP Servers
โ 87.3kโญ Curated list of Model Context Protocol (MCP) servers - tools that extend Claude Desktop, Cursor, Windsurf, and other MCP clients with custom capabilities.
MCP Servers
โ 86.0kModel Context Protocol Servers
CC Switch
โ 77.5kA cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Gemini CLI & Hermes Agent. Only official website: ccswitch.io
Browse More Developer Tools MCP Servers
Explore all developer tools servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.
Set Up Src to KB in Your Editor
Choose your AI client for step-by-step setup instructions.
Quick Config Preview
Add this to your claude_desktop_config.json or .cursor/mcp.json
Ready to use Src to KB?
Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.