npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

codecompass

v1.0.0

Published

AI-powered MCP server for codebase navigation and LLM prompt optimization

Readme

CodeCompass: AI-Powered Codebase Navigation

CodeCompass is a powerful Node.js MCP server that transforms your Git repository into an AI-driven knowledge base. By leveraging Qdrant for vector storage and Ollama's nomic-embed-text:v1.5 for embeddings and llama3.1:8b for suggestions, it indexes your codebase and documentation, delivering context-aware prompts for LLMs like Claude or Cursor. Perfect for developers looking to streamline coding, reduce errors, and gain deep project insights.

Features

Codebase Analysis: Indexes Git repositories, storing code and documentation in Qdrant. AI-Driven Context: Generates concise prompts with code summaries, documentation, and metadata. Diff Tracking: Includes repository update timestamps for change awareness. Developer Tools: Offers resources (repo://structure, repo://files/*) and tools (search_code, generate_suggestion, get_repository_context).

Prerequisites

Node.js (v20+) Docker (for Qdrant) Ollama (with nomic-embed-text:v1.5 and llama3.1:8b models) A local Git repository

Installation

Option 1: Clone and Install

Clone the Repository: git clone https://github.com/your-username/codecompass.git cd codecompass

Install Dependencies: npm install

Option 2: Install and Run with npx Run CodeCompass directly using npx: npx codecompass /path/to/your/repo

Note: Ensure npx is installed (included with Node.js). The npx codecompass command downloads the package from npm and runs the server with your repository path.

Setup Instructions

Start Qdrant: docker run -p 6333:6333 qdrant/qdrant

Start Ollama:

Install Ollama (docs). Pull models:ollama pull nomic-embed-text:v1.5 ollama pull llama3.1:8b

Run Ollama:ollama serve

Usage Run the MCP server with your repository path: node src/index.js /path/to/your/repo

Or, using npx: npx codecompass /path/to/your/repo

Example Commands

View Repository Structure:const structure = await server.resource('repo://structure'); console.log(structure.content[0].text);

Search Code:const results = await server.tool('search_code', { query: 'login function' }); console.log(results.content[0].text);

Get LLM Context:const context = await server.tool('get_repository_context', { query: 'Implement login' }); console.log(context.content[0].text);

Integration 🛠️ Getting Started Requirements

Node.js >= v20.0.0 Cursor, VSCode, Claude Desktop, Windsurf, Zed, Claude Code, or another MCP client

Installing via Smithery To install CodeCompass MCP Server automatically via Smithery: npx -y @smithery/cli install codecompass --client claude

Install in Cursor Go to: Settings -> Cursor Settings -> MCP -> Add new global MCP server Add the following configuration to your Cursor ~/.cursor/mcp.json file (recommended for global use). Alternatively, install in a specific project by creating .cursor/mcp.json in your project folder. See Cursor MCP docs for more info. { "mcpServers": { "codecompass": { "command": "npx", "args": ["-y", "codecompass@latest", "${workspaceFolder}"] } } }

Alternative: Use Bun { "mcpServers": { "codecompass": { "command": "bunx", "args": ["-y", "codecompass@latest", "${workspaceFolder}"] } } }

Alternative: Use Deno { "mcpServers": { "codecompass": { "command": "deno", "args": ["run", "--allow-net", "npm:codecompass@latest", "${workspaceFolder}"] } } }

Install in VSCode Add the following to your VSCode MCP configuration file (e.g., settings.json or a dedicated MCP config). See VSCode MCP docs for more info. { "servers": { "CodeCompass": { "type": "stdio", "command": "npx", "args": ["-y", "codecompass@latest", "${workspaceFolder}"] } } }

Install in Windsurf Add the following to your Windsurf MCP config file. See Windsurf MCP docs for more info. { "mcpServers": { "codecompass": { "command": "npx", "args": ["-y", "codecompass@latest", "${workspaceFolder}"] } } }

Install in Zed Add the following to your Zed settings.json. See Zed Context Server docs for more info. { "context_servers": { "CodeCompass": { "command": { "path": "npx", "args": ["-y", "codecompass@latest", "${workspaceFolder}"] }, "settings": {} } } }

Install in Claude Code Run the following command. See Claude Code MCP docs for more info. claude mcp add codecompass -- npx -y codecompass@latest ${workspaceFolder}

Install in Claude Desktop Add the following to your Claude Desktop claude_desktop_config.json file. See Claude Desktop MCP docs for more info. { "mcpServers": { "codecompass": { "command": "npx", "args": ["-y", "codecompass@latest", "${workspaceFolder}"] } } }

Contributing Contributions are welcome! Please read our CONTRIBUTING.md for guidelines and submit pull requests or issues on GitHub. License CodeCompass is licensed under the MIT License. See LICENSE.md for details.

Star this repo to stay updated with CodeCompass, your ultimate AI coding companion!