# LastSearch

> LastSearch is an open-source MCP server for web search and scraping. Web research for agents that returns cited claims with confidence scores. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, API
- **Website:** https://lastsearch.ai
- **Repository:** https://github.com/lastsearch-hq/lastsearch/tree/HEAD/apps/mcp
- **MCP Registry name:** io.github.LastSearch-HQ/lastsearch
- **Categories:** web search and scraping
- **Listing updated:** 2026-11-14

## About

Rather than handing an agent a list of links, LastSearch runs a pipeline: web search, neural reranking, page fetching, claim extraction and verification, then a streamed answer. Each claim carries its source URL, a verification status and a consensus level, and quotes are checked against the actual page text.

The confidence score runs from 0 to 1 and is derived from evidence rather than asked of the model; the README says it is calibrated from feedback. Compound facts are split into atomic claims and verified one at a time, and every answer includes an execution trace with timings. Three depth modes trade speed for rigor: fast, thorough (retries with rephrased queries) and deep, a multi-step loop of search, extract and evaluate that stops at up to four steps.

It runs locally over stdio through npx and needs a LastSearch API key. Free keys get 100 premium queries a day, and deep queries count triple. When the quota runs out, verification falls back to keyword matching. An optional local HTTP mode listens on 127.0.0.1 behind a bearer token.

## Features

- **Cited claims:** Each claim lists source URLs, verification status and consensus level.
- **Evidence-based confidence:** A 0 to 1 score computed from the evidence, not self-assessed by the model.
- **Atomic verification:** Compound facts are split and checked independently against page text.
- **Three depth modes:** Fast, thorough and deep modes trade latency for more verification passes.
- **Research sessions:** Premium keys keep persistent memory across queries.
- **Local HTTP mode:** An optional bearer-token HTTP server binds to localhost only.

## Good for

- Give a coding agent fact-checked answers with source links
- Research a topic with contradiction and consensus signals
- Run multi-step deep research with gap analysis
- Add a citation layer to a LangChain or CrewAI pipeline

## Install

### Claude Code (Terminal)

```sh
claude mcp add lastsearch --env LASTSEARCH_API_KEY='<LASTSEARCH_API_KEY>' -- npx -y lastsearch
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "lastsearch": {
      "command": "npx",
      "args": [
        "-y",
        "lastsearch"
      ],
      "env": {
        "LASTSEARCH_API_KEY": "<LASTSEARCH_API_KEY>"
      }
    }
  }
}
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "lastsearch": {
      "command": "npx",
      "args": [
        "-y",
        "lastsearch"
      ],
      "env": {
        "LASTSEARCH_API_KEY": "<LASTSEARCH_API_KEY>"
      }
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "lastsearch": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "lastsearch"
      ],
      "env": {
        "LASTSEARCH_API_KEY": "<LASTSEARCH_API_KEY>"
      }
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "lastsearch": {
      "command": "npx",
      "args": [
        "-y",
        "lastsearch"
      ],
      "env": {
        "LASTSEARCH_API_KEY": "<LASTSEARCH_API_KEY>"
      }
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "lastsearch": {
      "command": "npx",
      "args": [
        "-y",
        "lastsearch"
      ],
      "env": {
        "LASTSEARCH_API_KEY": "<LASTSEARCH_API_KEY>"
      }
    }
  }
}
```

## FAQ

### Does it need an API key?

Yes. The registry entry marks LASTSEARCH_API_KEY as required, and the README says free keys are available from the dashboard.

### What is the free allowance?

The README gives 100 premium queries a day, or about 33 deep queries at triple cost, resetting every 24 hours.

### What happens when the quota is used up?

Verification falls back to keyword matching, and deep mode falls back to thorough.

### Which clients can use it?

The README names Claude Desktop, Cursor, Windsurf, LangChain and CrewAI, plus any HTTP-capable agent.

### Is LastSearch free?

Yes. LastSearch is open source, so you can use and self-host it for free.

### How do I add LastSearch to Claude Code?

Run this command in your terminal: claude mcp add lastsearch --env LASTSEARCH_API_KEY='<LASTSEARCH_API_KEY>' -- npx -y lastsearch

### What are the best alternatives to LastSearch?

The closest alternatives to LastSearch are Scrapling MCP Server, Firecrawl MCP Server, SearXNG Search, NeuralVerge and AI-Powered directory.

## Alternatives

- [Scrapling MCP Server](https://ai-powered.com/mcp/scrapling-mcp-server): Scrapling MCP Server is an open-source MCP server for web search and scraping.
- [Firecrawl MCP Server](https://ai-powered.com/mcp/firecrawl-mcp-server): Firecrawl MCP Server is a freemium MCP server for web search and scraping.
- [SearXNG Search](https://ai-powered.com/mcp/searxng-search): SearXNG Search is an open-source MCP server for web search and scraping.
- [NeuralVerge](https://ai-powered.com/mcp/neuralverge): NeuralVerge is an MCP server for web search and scraping.
- [AI-Powered directory](https://ai-powered.com/mcp/ai-powered-directory): AI-Powered directory is a free MCP server for developer tools.
- [Shopify MCP Server (any store)](https://ai-powered.com/mcp/shopify-mcp-server-any-store): Shopify MCP Server (any store) is a paid MCP server for e-commerce.
- [Chanroll: YouTube Channel Video Scraper (Official API)](https://ai-powered.com/mcp/chanroll-youtube-channel-video-scraper-official-api): Chanroll: YouTube Channel Video Scraper (Official API) is a paid MCP server for design and media.
- [Vidvett: YouTube Video Details Scraper (Official API)](https://ai-powered.com/mcp/vidvett-youtube-video-details-scraper-official-api): Vidvett: YouTube Video Details Scraper (Official API) is a paid MCP server for design and media.

---
Source: https://ai-powered.com/mcp/lastsearch
