Skip to content
MCP server

LastSearch

Web research for agents that returns cited claims with confidence scores

Runs locallyStatus and history
Pricing
Open source
Platforms
CLI, API
Runs
Locally
Version
1.4.3
Listing updated
3 days ago

About LastSearch

LastSearch is an open-source MCP server for web search and scraping. It runs locally on your machine and is started by your AI client.

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.

Install

Run in a terminal

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

Add to claude_desktop_config.json

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

Add to ~/.cursor/mcp.json

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

Add to .vscode/mcp.json

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

Add to ~/.codeium/windsurf/mcp_config.json

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

Add to your client's MCP settings (most use this shape)

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

Configuration

  • LASTSEARCH_API_KEYLastSearch API key (get one at https://lastsearch.ai/dashboard). Required for all API access.Required

What it does

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

Pricing

Open source

Open source; free API key includes 100 premium queries a day

Prices change. Check lastsearch.ai before you buy.

LastSearch 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 to LastSearch

  1. MCP server for AI clients to scrape sites with HTTP and stealth browser sessions

    Runs locally
    • 17 tools
    • Open source
    • 104K GitHub stars
    • Web search and scraping
  2. MCP server that lets AI agents search, scrape and interact with web pages

    • 3 tools
    • Remote
    • Freemium
    • 7.8K GitHub stars
    • Web search and scraping
  3. SearXNG Search

    MCP server

    MCP server for web search and page reading through a SearXNG instance

    Runs locally
    • 3 tools
    • Open source
    • 1.4K GitHub stars
    • Web search and scraping
  4. NeuralVerge

    MCP server

    Structured, source-tagged business and people data from 300+ sources for agents

    • 200 tools
    • Remote
    • Free trial
    • 1 GitHub star
    • Web search and scraping
  5. Search AI tools, agents and MCP servers and get install configs from inside your AI assistant.

    • 4 tools
    • Remote
    • Free
    • Developer tools
  6. Hosted MCP server that returns any Shopify store's products, prices and stock

    Not checked yet
    • 4 tools
    • Remote
    • Paid
    • E-commerce