l402-search-mcp
MCP server by llmops-pro Community
l402-search-mcp gives AI assistants a web search tool that is paid per query in Lightning sats instead of an API key. It suits agents that need search without an account or KYC.
Install l402-search-mcp
Built from the published package, never by AI.
claude mcp add l402-search-mcp -- npx -y l402-search-mcpRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"l402-search-mcp": {
"args": [
"-y",
"l402-search-mcp"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"l402-search-mcp": {
"args": [
"-y",
"l402-search-mcp"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"l402-search-mcp": {
"args": [
"-y",
"l402-search-mcp"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add l402-search-mcp -- npx -y l402-search-mcp{
"mcpServers": {
"l402-search-mcp": {
"args": [
"-y",
"l402-search-mcp"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add l402-search-mcp npx -y l402-search-mcpGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the l402-search-mcp block.
About
l402-search-mcp is a client-side MCP server for L402-paywalled search endpoints. It gives an MCP-capable assistant a search tool. The first call returns a Lightning invoice and a payment hash. The agent pays that invoice with its own wallet, for example through nwc-mcp, and then calls search again with the payment preimage to receive the results.
The server holds no keys. It does not connect to a wallet and stores no nsec. It relays the invoice, remembers which macaroon belongs to which payment hash, and makes the authorized retry. By default it uses https://llmops-search.fly.dev at 50 sats per search, and the endpoint can be changed with an environment variable. It is aimed at people who want their AI agents to buy web search with sats and no account.
Written from the project's README and checked against it.
Tools it gives your assistant
searchReturns a Lightning invoice on the first call, then results when given the payment preimage.search_service_infoFree tool that reports endpoint reachability, pending challenges and the payment flow.
What you need
- Node.js, since the install runs through npx
- An MCP-capable AI assistant such as Claude Desktop, Claude Code or Cursor
- A Lightning wallet server that can pay invoices, such as nwc-mcp
- Sats to pay for each search, 50 sats on the default endpoint
| Setting | Needed | What it is |
|---|---|---|
SEARCH_Environment variable | Optional | L402 search endpoint to consume (default: https://llmops-search.fly.dev) |
From the publisher's entry in the official MCP Registry. Required settings are already in the install config below as placeholders.
Try asking
- Search the web for recent news on Lightning Network wallets.
- Check whether the search service is reachable and show pending challenges.
- Find sources on L402 and pay for the search with my wallet.
Good to know
- Each search needs a separate Lightning payment made by a wallet server.
- The default endpoint charges 50 sats per search, and the price is set by the endpoint.
- If the process were compromised, pending search queries could leak, but no funds.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: package.json. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to l402-search-mcp
All alternatives →Searches and discovers Agent Skills from the skills.sh registry, according to its listing description. The source file itself documents the Agent Skills format rather than this server.
Connects AI agents to Exa for web search, content fetching, and multi-step research. It is aimed at developers and AI assistant users who want web results and page content inside their assistant.
Apify MCP server gives AI agents web scraping, data extraction, and browser automation through thousands of ready-made Actors from Apify Store. It suits developers and teams who want agents to pull data from websites without installing a separate MCP server for each site.
Official MCP server for changedetection.io that connects AI assistants such as Claude.AI and OpenAI tools to a changedetection.io dashboard. It lets users ask about tracked web page changes, including price and back-in-stock alerts.
Brave Search MCP Server gives AI assistants web, local, place, image, video and news search through the Brave Search API. It also offers grounded Answers for developers and teams that want cited results.
Scrapling is a Python web scraping framework with an MCP server for AI agents. It offers stealth HTTP requests, browser rendering, Cloudflare Turnstile handling, and CSS selector extraction for developers and scrapers.
Compare with Agent Skills Search Server, Exa or Apify
l402-search-mcp: common questions
Does l402-search-mcp need an API key or account?
No. The source says there is no account, no API key and no KYC, and each payment buys exactly one search.
Where does the payment happen?
The payment is made in the agent's own wallet, under the agent's budget caps, not inside this server.
Can I use a different search endpoint?
Yes. The SEARCH_SERVICE_URL setting works with any endpoint that uses the same L402 format.
How do I install l402-search-mcp?
In Claude Code run claude mcp add l402-search-mcp -- npx -y l402-search-mcp. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is l402-search-mcp the official server?
l402-search-mcp is a community project by llmops-pro, not verified by a company domain.
Is l402-search-mcp free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is l402-search-mcp safe to use?
It scores 59 of 100. Grades: maintenance C, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to l402-search-mcp?
Similar MCP servers: Agent Skills Search Server, Exa, Apify, changedetection.io (official).
Does l402-search-mcp work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
