Code Knowledge Mcptool MCP Server

A knowledge management tool for code repositories using vector embeddings. This tool helps maintain and query knowledge about your codebase using

Local serverstdioPython

What is the Code Knowledge Mcptool MCP server?

Code Knowledge Mcptool becomes available to MCP clients through the code knowledge mcptool mcp server. A knowledge management tool for code repositories using vector embeddings. This tool helps maintain and query knowledge about your codebase using advanced embedding techniques.

What Code Knowledge Mcptool does

A knowledge management tool for code repositories using vector embeddings. This tool helps maintain and query knowledge about your codebase using advanced embedding techniques.

Key capabilities

  • Local vector storage for code knowledge
  • Efficient embedding generation using Ollama
  • Support for multiple file types
  • Context-aware code understanding
  • Integration with RooCode and Cline via MCP
  • RAG-based context augmentation
  • Persistent knowledge storage

Tools it exposes

Once connected, the assistant can call this tool directly:

  • Prerequisites — The Prerequisites tool exposed by this server

Installing the code knowledge mcptool mcp server

The server is distributed via PyPI as dist, so most clients can run it without a manual build step. Add it to your MCP client's configuration and restart the client to pick it up — the copy-paste configs for Claude Desktop, Claude Code and Cursor are on this page.

Configuration

The server reads one environment variable: PYTHONPATH. Keep credentials in your client's env block or a secrets manager rather than committing them.

Requirements

  1. Ensure Ollama is installed and running: ```bash

Where it fits

Developer-tool servers are usually the first ones people connect, because they turn "help me with this code" into an assistant that can actually read the repo and act on it. Code Knowledge Mcptool sits in that group, and the shape of its toolset — Prerequisites — tells you what it is really for. Worth comparing against the other developer tools servers in this directory before you commit to one, since several overlap in scope but differ sharply in setup cost and permissions.

Practical notes

  • This server runs locally, so it operates with whatever access your machine and its credentials already have. Scope that deliberately rather than by default.
  • Maintained by davidvc, written in Python.
  • MCP clients ask for confirmation before each tool call by default. Keep that on while you learn what the code knowledge mcptool mcp server actually does with your data.
  • Every entry in this directory is reviewed by hand before it goes live, and details are checked against the project's own documentation.

Available tools

ToolWhat it does
PrerequisitesThe Prerequisites tool exposed by this server.

How to install the Code Knowledge Mcptool MCP server

Add this configuration:
```json
{
  "mcpServers": {
    "code_knowledge": {
      "command": "python",
      "args": ["-m", "code_knowledge_tool.mcp_tool"],
      "env": {
        "PYTHONPATH": "${workspaceFolder}"
      }
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Configuration

  1. Ensure Ollama is installed and running: ```bash
VariableDescriptionRequired
PYTHONPATHFilesystem location the server is allowed to use.Optional

Example prompts to try

  • Use Code Knowledge Mcptool to Prerequisites.

Frequently asked questions

It connects Code Knowledge Mcptool to MCP-compatible AI assistants such as Claude and Cursor, exposing 1 tool (Prerequisites) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Code Knowledge Mcptool directly.