# LastSearch

Connects AI agents to live web search, returning verified claims with source citations and confidence scores. Useful when factual accuracy matters.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 20
- Author: LastSearch-HQ
- License: Apache-2.0 · policy=link-only · description only; the file stays with the author
- Source: https://github.com/LastSearch-HQ/lastsearch/tree/HEAD/apps/mcp
- Updated: 2026-10-18
- HTML: https://affpapa.org/en/nevibecode/mcp/lastsearch

## What it does

This server runs live web searches and extracts text directly from target pages. Compound statements are broken into verifiable single claims. Each claim gets a confidence score between 0 and 1. Scores derive from evidence rather than LLM self-evaluations.

Depth modes range from fast searches to a multi-iteration deep cycle running up to 4 steps. The server also manages research sessions with persistent memory. Every tool requires a `LASTSEARCH_API_KEY` environment variable. Free accounts receive 100 premium queries daily before falling back to simpler matching.

## Requirements
- Needs: Node.js (commands run via npx)
- Environment variables: `LASTSEARCH_API_KEY` — keys and tokens: ask the human for the values, never commit them or put them in shared files.

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add lastsearch -e LASTSEARCH_API_KEY=<LASTSEARCH_API_KEY> -- npx -y lastsearch
```
Replace <…> with your own values

### Codex

**Platform CLI**
```bash
codex mcp add mcp --env LASTSEARCH_API_KEY=<LASTSEARCH_API_KEY> -- npx -y lastsearch
```
Replace <…> with your own values

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "mcp": {
            "command": "npx",
            "args": [
                "-y",
                "lastsearch"
            ],
            "env": {
                "LASTSEARCH_API_KEY": "<LASTSEARCH_API_KEY>"
            }
        }
    }
}
```
Replace <…> with your own values

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "mcp": {
            "type": "stdio",
            "command": "npx",
            "args": [
                "-y",
                "lastsearch"
            ],
            "env": {
                "LASTSEARCH_API_KEY": "<LASTSEARCH_API_KEY>"
            }
        }
    }
}
```
Replace <…> with your own values

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add -e LASTSEARCH_API_KEY=<LASTSEARCH_API_KEY> mcp npx -y lastsearch
```
Replace <…> with your own values

## When to use it
- validate statements against actual page content with direct citations
- decompose compound claims into independently verified facts
- persist research context across multiple queries using dedicated sessions
- contrast unverified LLM answers against evidence gathered from the web

## Example prompts
- Run answer with depth thorough to investigate contradictory findings on dietary caffeine
- Set up a session named quantum-notes using session_create and collect principles of entanglement
- Fetch live details on Falcon 9 launches using search and review the verification scores

## Similar
- [REA](https://affpapa.org/en/nevibecode/mcp/rea.md) — MCP server · ★ 386989
- [GitHub](https://affpapa.org/en/nevibecode/mcp/github.md) — MCP server · ★ 33918
- [Netdata](https://affpapa.org/en/nevibecode/mcp/netdata.md) — MCP server · ★ 81115
- [browser-use](https://affpapa.org/en/nevibecode/mcp/browser-use.md) — MCP server · ★ 119160
- [Codebase Memory](https://affpapa.org/en/nevibecode/mcp/codebase-memory.md) — MCP server · ★ 47392
- [mcp-server](https://affpapa.org/en/nevibecode/mcp/mcp-server.md) — MCP server · ★ 43872

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
