X402 Codesearch MCP server
Free MCP server: index a repo's files into the x402-codesearch Worker's search index.
0 stars25 downloads/wk
Reviews
Write oneNobody has reviewed X402 Codesearch yet.
If you have run it, two minutes of your experience saves the next person an afternoon.
X402 Codesearch tools (1)
write = sends, deletes, buys or postsRead from the package source without running it. The installed server may list more.
index_codeIndex a repo's files into the live x402-codesearch Worker (
Public scan report
scanner v0.1.9 · 2026-09-24 · same rubric, same numbers if you re-run it
- Code scan4 source files scanned25/25
- –Live reliabilityno gateway calls yet and no remote to proben/a
- –Tool poisoningtools not inspected (local package is not executed); not countedn/a
- Auth qualitylocal package, no credentials required12/15
- Maintenancelast push 53 days ago12/15
- Maintainer identityregistry namespace matches repository owner; GitHub account older than a year8/10
How X402 Codesearch compares
Against every graded Web search MCP server, from our own scans and uptime checks. Updated after each scan run.
- Safety score
- 88/100
- higher than 80% of 3,470 Web search servers
- Tools
- 1
- the typical Web search server has 5
- Tools that change things
- 0%
- typical: 0%. Fewer write tools means less an agent can break
- Downloads a week
- 25
- more than 11% of 827 Web search servers with a package
What its tools let an agent do: 1 read
Install X402 Codesearch in Claude Code, Cursor or VS Code
Runs npx -y x402-codesearch-mcp on your machine. Read the scan report first; the gateway never runs local packages.
claude mcp add x402-codesearch-mcp -- npx -y x402-codesearch-mcp
What the publisher says
From the X402 Codesearch repository's README, as published. We do not edit it. Read it on GitHub
x402-codesearch-mcp
A free MCP (Model Context Protocol) server that indexes a repo's files — chunked and embedded — into the live semantic code search Worker, for free, via one MCP tool: index_code.
This is the open funnel twin of a paid, x402-gated HTTP API:
x402-codesearch-poc.theliminalguy.workers.dev — POST /search, $0.01 USDC on Base per query via the x402 payment protocol, for the actual semantic search step over an indexed repo.
Why this one is different from the other free twins (read this first)
Sibling packages like x402-repohealth-mcp fully reimplement their paid Worker's logic locally (pure functions, no external account-bound dependency) and expose the entire feature for free via MCP.
This package cannot do that. The paid Worker's semantic search depends on two Cloudflare-account-bound bindings with no free, local, or portable equivalent:
- Workers AI (@cf/baai/bge-base-en-v1.5) — generates the embeddings
- Vectorize — stores and queries those embeddings by cosine similarity
Both only exist inside the Worker's own Cloudflare account. There is no way to run them for free outside that account, so this MCP server does not try to fake or proxy them.
What genuinely is free is POST /index on the live Worker itself — the step that chunks a file, embeds it, and upserts it into that Worker's own Vectorize index. That's the one real, free, stateless capability this package exposes as an MCP tool. The matching POST /search step stays exactly where it already is: a real x402-gated HTTP call directly against the live Worker.
What it does
One tool, index_code:
(free, no payment) with that exact body.
- Input: { repoId: string, files: [{ path: string, content: string }] }
- Calls POST https://x402-codesearch-poc.theliminalguy.workers.dev/index
reminding the caller that searching what was just indexed requires the paid endpoint.
- Output: { repoId, filesIndexed, chunksIndexed } plus a note field
It does not expose a search_code tool. Semantic search over data indexed with this tool requires calling the x402-gated endpoint directly:
POST https://x402-codesearch-poc.theliminalguy.workers.dev/search
Body: { "repoId": "...", "query": "..." }
Price: $0.01 USDC on Base, via the x402 protocol (e.g. x402-fetch / x402-axios)An unpaid request to /search returns 402 Payment Required with real x402 payment instructions.
Install & run
npx x402-codesearch-mcpOr add it to an MCP client config (e.g. Claude Desktop's claudedesktopconfig.json):
{
"mcpServers": {
"codesearch": {
"command": "npx",
"args": ["-y", "x402-codesearch-mcp"]
}
}
}Tool: index_code
Input:
{
"repoId": "my-repo",
"files": [
{ "path": "src/retry.py", "content": "def retry_with_backoff(...): ..." }
]
}Output (MCP tool text content, JSON-stringified):
{
"repoId": "my-repo",
"filesIndexed": 1,
"chunksIndexed": 2,
"note": "Indexing succeeded (free). To semantically search this repoId, call the x402-gated POST https://x402-codesearch-poc.theliminalguy.workers.dev/search directly ($0.01 USDC on Base per query) — not available through this free MCP tool."
}Local development
npm install
npm run dev # runs src/index.ts directly on stdio via tsx
npm run build # compiles to dist/ for the published npm package
npm run test:index # calls indexCode() directly against the real live Worker, no MCP transportsrc/client.ts and src/types.ts hold the thin HTTP client against the live Worker's /index endpoint — src/index.ts is a thin MCP wrapper around indexCode().
What's real vs. limited
Shortened. The full README is on GitHub.
Nothing above is checked by us. What we check is on the safety report.
X402 Codesearch: common questions
- Is X402 Codesearch MCP server safe?
- Yes, by our scan: it is graded A (88/100). Read the X402 Codesearch safety report
- How do I install X402 Codesearch?
- It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
- Does X402 Codesearch need an API key?
- Not as far as the registry entry and our scan can tell: no credentials are declared or required.
- Is X402 Codesearch maintained?
- The last commit was 94 days ago (2026-08-02). The latest release is v0.1.0.
- What can I use instead of X402 Codesearch?
- Servers from other publishers that do the same job: Repomix MCP server, ThoughtDAG MCP server and Everything Search MCP server.
- How does X402 Codesearch compare with other Web search MCP servers?
- safety score 88/100 (higher than 80% of 3,470 Web search servers); tools 1 (the typical Web search server has 5); tools that change things 0% (typical: 0%. Fewer write tools means less an agent can break). Full comparison.
Alternatives to X402 Codesearch
Same job from other publishers: the closest match first, then the best rated.
- RepomixPack local or remote codebases into AI-friendly files that LLMs and coding agents can read or searchnot reviewedWidely usedA
- ThoughtDAGSearch local AI conversations by file or phrase and recall source turns. Four read-only tools.not reviewedEstablishedA
- Everything SearchFast file search: Everything SDK on Windows, Spotlight (mdfind) on macOS, locate/plocate on Linux.not reviewedEstablishedA
- VexorA semantic search engine for files and code.not reviewedEstablishedB
TenjinSearch, read & publish paid essays. Pay-per-read in USDC on Base (x402); wallet-only, no account.not reviewedEstablishedB