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

@dfine-io-gmbh/semantic-mcp

v0.1.2

Published

Semantic codebase search MCP server — embeds project chunks into a local SQLite vector store and exposes natural-language search over them.

Readme

@dfine-io-gmbh/semantic-mcp

Semantic codebase search as an MCP server. It embeds your project's code into a local SQLite vector store and answers natural-language questions over it — conceptual matches that a plain grep misses. Fully local after a one-time model download.

How it works

  • Embeddings — code chunks are embedded with jinaai/jina-embeddings-v2-base-code (768-dim, code-tuned) via @huggingface/transformers (ONNX runtime).
  • Storage — vectors live in a local SQLite database (sqlite-vec), one per indexed project.
  • Transport — stdio; drops into any MCP client (Claude Code, Cursor, …).

The model is not bundled. It is downloaded from the Hugging Face Hub on first use (~130 MB) and cached under ~/.cache/huggingface/ — fetched once, then reused across runs, projects and npx invocations. After the first download the server runs fully offline.

Requirements

  • Node.js ≥ 20
  • Network on first run (one-time model download); offline afterwards
  • ~130 MB disk for the model, plus space for the per-project index
  • Git on the PATH — files are enumerated via git ls-files / git status
  • better-sqlite3 and sqlite-vec ship prebuilt binaries for macOS (arm64/x64), Linux (x64/arm64) and Windows (x64); other targets compile from source and need a C/C++ toolchain.

Use it with an MCP client

No install step — npx fetches and runs it. Add to your MCP client config (.mcp.json for Claude Code project scope, or ~/.claude.json for user scope):

{
  "mcpServers": {
    "dfine-semantic": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "@dfine-io-gmbh/semantic-mcp"]
    }
  }
}

By default the server only indexes the current working directory (and ~/.claude). To allow other roots, set SEMANTIC_ALLOWED_ROOTS (comma-separated absolute paths) in the server env.

Tools & resource

| Name | Kind | Purpose | | ------------------------ | -------- | ------------------------------------------------------------------ | | semantic_search | tool | Natural-language query → ranked chunks with file:line references | | index_project | tool | Scan, chunk and embed all matching files under a project root | | index_status | tool | List indexed projects with file / chunk / size counts | | semantic://usage-guide | resource | When to use semantic search vs. exact grep |

Default file types: .ts, .tsx. Pass include on semantic_search (e.g. [".md", ".vue"]) to widen a single query; index_project coverage is controlled by its allow-listed extensions.

Configuration

| Variable | Default | Purpose | | ------------------------ | ------------------- | ----------------------------------------------------------- | | SEMANTIC_ALLOWED_ROOTS | cwd, ~/.claude | Extra absolute roots the server may index (comma-separated) | | SEMANTIC_DATA_DIR | ~/.dfine-semantic | Where per-project index databases are stored |

The index is keyed by project path, so it persists across upgrades and is reused across npx runs. Delete a project's .db to force a clean re-index.

Security

  • Path sandbox — only cwd, ~/.claude and any SEMANTIC_ALLOWED_ROOTS are accepted; all inputs resolve and are checked against that allow-list.
  • Validated inputs — every tool argument is schema-validated (Zod); file extensions are allow-listed.
  • Read-only & no code execution — the server only reads files that git tracks within an allowed root; it never runs project code, and git is invoked with fixed arguments.

Local development

pnpm install
pnpm build        # tsc
pnpm lint         # dlint (dfine house linter, runs on the TS compiler)
pnpm check        # tsc + dlint + prettier
pnpm start

License & support

MIT — see LICENSE. Questions or issues: [email protected] or the issue tracker.