# @astralyn/search [Health: Active]

**Category:** 🔎 Search & Data Extraction  
**Repository:** https://github.com/ming-kang/DevinSearch  
**GitHub Stars:** 0  
**npm Downloads (last month):** 643  
**Views:** 2  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/astralyn-search

## Description
MCP server for semantic code search and live web search, powered by Devin

## Tools
Capabilities this server exposes over MCP:

- **code_search** — Locate code from a plain-language description of a behavior, flow, or error. Returns up to 10 candidate files with line ranges, not every match.
- **web_search** — Search the live web for current information. Returns titles, URLs, and the page excerpts that match the query.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "search": {
    "command": "npx",
    "args": ["-y","@astralyn/search@latest"],
    "env": {
      "SEARCH_KEY": ""
    }
  }
}
```

**Requires environment variables:** `SEARCH_KEY` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What @astralyn/search does

@astralyn/search exposes two MCP tools backed by Devin:

- `code_search` finds likely locations for a behavior, execution flow, or error described in concise English. It returns up to 10 candidate files and line ranges rather than every matching occurrence.
- `web_search` queries the live web and returns result titles, URLs, and excerpts relevant to the query.

The package also provides two optional user-invoked MCP prompts. `locate` starts a code-orientation workflow, and `lookup` starts a web-search workflow that accounts for the current year and cites results.

## How it works

For `code_search`, the server sends Devin's SWE-grep model the query and a directory tree. The model can plan as many as three rounds of read-only commands, using `rg`, `readfile`, `tree`, `ls`, and `glob`. The server executes those commands locally and returns the model's file and line-range suggestions as absolute paths. Treat the result as a reading list: inspect the cited ranges and search any discovered identifiers directly when you need complete coverage.

The query, directory tree, and command output—including file contents read by the model—leave the machine. Local safeguards confine paths to the selected directory, including after symlink resolution. Files excluded by `.gitignore`, `.ignore`, or `.rgignore`, along with `.git` and common dependency or cache directories, remain unavailable to the model. Commands are read-only, limited to the supported operations, and subject to a 30-second budget; each result is capped at 50 lines of 200 characters, and `readfile` rejects files larger than 4 MiB.

`web_search` accepts a query, an optional result count from 1 to 10, and an optional domain restriction. Server instructions identify when to use each tool, mark web results as untrusted data rather than instructions, and request citations in `[Title](https://github.com/ming-kang/DevinSearch/blob/HEAD/URL)` form.

## Setup and configuration

Node.js 22 or later is required. Run `npx @astralyn/search@latest login` to open Devin's sign-in flow and obtain a key. Configure the MCP client to launch `npx -y @astralyn/search@latest` and pass the key as `SEARCH_KEY`. On Windows, clients that cannot launch `npx` directly can use `cmd` with `/c npx -y @astralyn/search@latest` as the command arguments.

Restart the MCP client after adding the configuration. Authorization is supplied through the environment and the key is not written to disk. Clients that provide MCP roots can supply the workspace for code searches. If roots are unavailable, set `SEARCH_ROOT`; otherwise the server falls back to the directory from which it was started.

Ripgrep is supplied by the optional `@vscode/ripgrep` dependency. If that dependency is unavailable, `rg` must be available on `PATH`.

## Tools and capabilities

### `code_search`

- Required `query`: describe one behavior, flow, or error in concise English; preserve identifiers and error text exactly.
- Optional `path`: use an absolute path inside a workspace root or a path relative to the first root.
- Results: up to 10 candidate files with line ranges.

A bare symbol, filename, or literal is not the intended query format.

### `web_search`

- Required `query`: specific product names, versions, or exact error text work best.
- Optional `max_results`: defaults to 5 and accepts 1 through 10.
- Optional `domain`: limits results to one domain, such as `docs.rs` or `github.com`.

Both tools return readable guidance, JSON text, and structured content matching their advertised schemas.

## Limitations and notes

Code search is designed for orientation, not exhaustive discovery or proof of correctness. Read the returned ranges before making changes and perform direct searches for all occurrences when completeness matters. Its remote model receives the query, directory tree, and selected command output, subject to the local filtering and size limits. Web excerpts should be treated as untrusted content and cited when used. The stdio entry supports both newer root-request flows and legacy MCP clients.

_Full upstream README: https://allmcps.com/mcp/astralyn-search/readme_

