Free MCP server: index a repo's files into the x402-codesearch Worker's search index.
MCPpedia last refreshed this data
io.github.liminalpepe/x402-codesearch-mcp is an MCP server that free MCP server: index a repo's files into the x402-codesearch Worker's search index. Its tool list has not been published yet over stdio, requires no API key, and scores 82/100 on MCPpedia's security, maintenance and efficiency rubric.
Config is the same across clients - only the file and path differ.
{
"mcpServers": {
"codesearch": {
"args": [
"-y",
"x402-codesearch-mcp"
],
"command": "npx"
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
Free MCP server: index a repo's files into the x402-codesearch Worker's search index.
Run this in your terminal to verify the server starts. Then let us know if it worked - your result helps other developers.
npx -y 'x402-codesearch-mcp' 2>&1 | head -1 && echo "✓ Server started successfully"
After testing, let us know if it worked:
Five weighted categories - click any category to see the underlying evidence.
No known CVEs.
Checked x402-codesearch-mcp against OSV.dev.
Click any tool to inspect its schema.
Be the first to review
Have you used this server?
Share your experience - it helps other developers decide.
Sign in to write a review.
Others in other
Private-by-default, local-first memory/context/task orchestrator for MCP apps and agents.
Compress tool outputs, logs, files, and RAG chunks before they reach the LLM. 60-95% fewer tokens, same answers. Library, proxy, MCP server.
SQL for Android APK and DEX files: classes, methods, strings, references and smali.
System 1 decision models (Jev, Laya, Cua-S1) as brain for agents: Browser use, computer use, games and robotics
MCP Security Weekly
Get CVE alerts and security updates for io.github.liminalpepe/x402-codesearch-mcp and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
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.
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:
@cf/baai/bge-base-en-v1.5) — generates the embeddingsBoth 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.
One tool, index_code:
{ repoId: string, files: [{ path: string, content: string }] }POST https://x402-codesearch-poc.theliminalguy.workers.dev/index
(free, no payment) with that exact body.{ repoId, filesIndexed, chunksIndexed } plus a note field
reminding the caller that searching what was just indexed requires the
paid endpoint.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.
npx x402-codesearch-mcp
Or add it to an MCP client config (e.g. Claude Desktop's
claude_desktop_config.json):
{
"mcpServers": {
"codesearch": {
"command": "npx",
"args": ["-y", "x402-codesearch-mcp"]
}
}
}
index_codeInput:
{
"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."
}
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 transport
src/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().
POST /index call this tool makes goes to the actual live
Worker, which really chunks the giv