Oss Search logo

Oss Search

Searches local and federated open-source repositories and code, then returns ranked evidence, profiles, files, and documentation for AI agents.

Install Oss Search

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "oss-search": {
      "command": "npx",
      "args": [
        "-y",
        "oss-search"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Install not yet sandbox-tested— the server itself is confirmed live (we called its tools/list endpoint). The stdio install command is a separate, ongoing check.

Overview

oss-search MCP server gives AI agents repository discovery and code-search tools backed by a local corpus and live services. It separates “which project solves this?” searches from distinctive-code probes, then adds repository health, licensing, architecture, file, and documentation inspection. The stdio server can run offline with its stub engine or use live backends through the `--live` flag. Reach for it when an agent needs to identify existing open-source projects, find implementation patterns, or vet a known repository before reading its source.

Use cases

  • Discover an open-source library for a described capability
  • Find repositories implementing a specific API or error-handling idiom
  • Vet a known repository’s maintenance, license, and runtime support
  • Inspect source files and documentation after locating a project

Key features

  • Local positional-trigram code index
  • Federated GitHub, grep.app, and Sourcegraph search
  • Multi-signal repository ranking
  • Exact file, tree, and documentation retrieval
  • Strict structured query errors and response metadata
  • RE2-class regular-expression handling

Tools7

What Oss Search lets your agent do. Expand a tool for its parameters.

Verified live~1.6k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

13/13 checks healthy over the last 62d

What it can do

From the 7 tools this server returned when we ran it.

Handles credentials · 1Makes network requests · 2Read-only tools · 7
Network at startup5 connections
Files written at startupNone
Install scriptsNone
npm provenanceSigned build
Package age48 days
Maintainers1

Observed 2026-10-29 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 14d ago via OSV.dev · oss-search (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

npm downloads576Package downloads in the last 30 days.
Last commit8d agoMost recent push to the default branch.
Tools exposed7Callable tools this server registers over MCP.
Directory activity3 viewsConfig copies, upvotes, and views on AllMCPs.

How Oss Search works

What oss-search does

oss-search exposes seven MCP tools for researching open-source software rather than only returning repository links. oss_search_repos finds projects by topic, name, or description and ranks them with evidence such as stars, license class, release recency, maintenance and security signals, dependents, and archived status. Results also include short explanations of what a project does and potential drawbacks.

oss_search_code searches for concrete implementation evidence. It combines several literal or regular-expression probes, groups matches by repository, and favors projects matching multiple independent idioms. This makes it useful for locating API patterns, error messages, configuration keys, or peers of a known repository. It is deliberately different from broad category discovery: use repository search to ask whether a type of tool exists.

The remaining tools support investigation. A repository profile condenses metadata, health judgments, license compatibility, README content, file-tree architecture, release cadence, and runtime-support evidence. Tree, file, and documentation tools then let an agent inspect exact paths, source contents, and documentation with source-page breadcrumbs.

How it works

The local engine uses a positional trigram index over a hot-set corpus and updates only changed blobs during reindexing. A semantic layer can split code into function-level chunks for Rust, Python, JavaScript, TypeScript, Go, and C, create local embeddings, and combine semantic and lexical results with reciprocal-rank fusion. Identifier-oriented queries stay on the lexical path instead of incurring model latency.

For live searches, the production engine can query GitHub repository and code search, grep.app, Sourcegraph, deps.dev, ecosyste.ms, and npms.io. Repository candidates from npm and GitHub are deduplicated by owner and name before scoring. The service returns structured envelopes with totals, continuation status, partial-result status, and backend status.

Queries support structured JSON fields and a text syntax with filters for repositories, languages, paths, scope, hot-set membership, and match type. Arrays act as OR conditions, fields combine as AND conditions, and prefixed exclusions are supported. Invalid fields, malformed regular expressions, and unsupported searches produce typed errors instead of being silently ignored.

Setup and configuration

Install the MCP binary through the oss-search npm shim, Cargo, a prebuilt release archive, or a source checkout. The npm option downloads and caches a platform-specific binary; the cache location can be changed with OSS_SEARCH_CACHE_DIR. Cargo installation requires a Rust toolchain. Prebuilt archives are published for Apple Silicon macOS, Intel macOS, and the two listed Linux GNU targets.

Run oss-mcp with no arguments to serve MCP over stdio. Add --live to enable remote backends; without that flag, the server uses its offline stub engine. Claude Code and Claude Desktop can launch the binary directly or through npx, while an opencode.json configuration can define it as a local MCP process. Use an absolute binary path in client configurations where path expansion is unavailable.

GITHUB_TOKEN enables the GitHub backend and avoids its anonymous repository-search limit of 10 requests per minute. SOURCEGRAPH_TOKEN raises Sourcegraph rate limits; Sourcegraph also supports anonymous requests. The CLI mirrors the MCP tools and emits the same structured JSON envelope, making it useful for checking queries before wiring them into an agent.

Tools and capabilities

  • oss_search_repos: discover repositories by topic, name, or description and inspect ranked fitness evidence.
  • oss_search_code: find repositories containing distinctive literals or RE2-compatible regular expressions.
  • oss_repo_profile: obtain a compact assessment of one known repository.
  • oss_repo_tree: list repository paths with filtering, limits, and truncation metadata.
  • oss_fetch_file: retrieve exact file contents, optionally constrained to a line range.
  • oss_fetch_docs: resolve aggregate documentation such as llms.txt and return searchable passages with source URLs.
  • oss_guide: explain probe design, query syntax, backend behavior, license classes, and tool selection.

The agent-facing contract caps responses at roughly 25 KB, escapes terminal and bidirectional-control characters, applies file-admission checks, and uses linear-time regular-expression behavior. The repository also includes tests, end-to-end reports, evaluation data, and latency measurements.

Limitations and notes

Live coverage depends on remote backend availability and rate limits. GitHub repository search is especially constrained without a token, and a GitHub-only project lacks the dependents signal used for npm-backed candidates. Code search should use distinctive probes: searching broad concepts or idioms copied from the caller’s own code can return clones rather than establish that a category exists.

oss_repo_tree should precede file retrieval when a path is uncertain, because a guessed path can produce a 404 that says nothing about the repository’s contents. Large files are returned by range with their total line count, and tree results can be truncated when the repository exceeds the requested limit. The project is licensed under MIT.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Oss Search

oss-search is an MCP server that connects AI agents to local and federated open-source repository and code search backends. Its seven tools cover repository discovery, distinctive-code search, repository profiles, file trees, exact file retrieval, documentation retrieval, and query guidance for researching software.

Install it through the `oss-search` npm package, Cargo, a prebuilt release archive, or a source checkout. The npm shim downloads a matching binary on first use, while Cargo requires Rust. Run `oss-mcp` over stdio, or configure Claude Code, Claude Desktop, or opencode to launch it.

Start `oss-mcp` with `--live` to enable remote backends. Set `GITHUB_TOKEN` for GitHub access and higher repository-search limits, and optionally set `SOURCEGRAPH_TOKEN` for higher Sourcegraph limits. Without `--live`, the server uses its offline stub engine.

`oss_search_repos` is for discovering projects by topic, name, or description, while `oss_search_code` is for finding concrete implementation patterns. Use repository search to ask whether a tool exists; use code search with distinctive literals or regular expressions when documentation does not advertise the capability.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewOss Search AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/oss-search?style=directory)](https://allmcps.com/mcp/oss-search)
HTML Embed
<a href="https://allmcps.com/mcp/oss-search"><img src="https://allmcps.com/api/badge/oss-search?style=directory" alt="Oss Search on AllMCPs" /></a>