searchcraft — Claude Code MCP server for Next.js search
Adds full-text search with BM25 ranking and fuzzy matching to a Next.js project. Use it when an agent needs to find relevant project documents.
claude mcp add searchcraft -- npx -y searchcraftWhat searchcraft does
searchcraft exposes MCP tools for full-text search in Next.js projects. It ranks matches with BM25 and can find relevant documents when a query uses wording that differs from the indexed text. No external search service is involved.
You can run the server through npx; the Claude Code setup command registers it as an MCP server. The package is written in TypeScript and has no npm dependencies. Its search is built for Next.js projects, so that framework requirement matters when choosing it.
What it helps with
- find project documents from a search query
- rank full-text matches with BM25
- retrieve matches despite differences in wording
Example prompts for the agent
- Find project documents about configuring authentication.
- Search article content for references to
createSifter. - Look for documents related to this query even if their wording differs.
How to install searchcraft
Platform CLI
claude mcp add searchcraft -- npx -y searchcraftPlatform CLI
codex mcp add searchcraft -- npx -y searchcraftConfig file
{
"mcpServers": {
"searchcraft": {
"command": "npx",
"args": [
"-y",
"searchcraft"
]
}
}
}Config file
{
"servers": {
"searchcraft": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"searchcraft"
]
}
}
}Platform CLI
gemini mcp add searchcraft npx -y searchcraftStep by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about searchcraft
How do I install searchcraft in Claude Code?
Run claude mcp add searchcraft -- npx -y searchcraft. This registers searchcraft as an MCP server.
What does searchcraft do?
It provides MCP tools for full-text search in Next.js projects. Results use BM25 ranking, with fuzzy matching for queries that do not exactly match document wording.
Does searchcraft need an external search service?
No. Search runs without an external service, and the TypeScript package has no npm dependencies.