# Zearch MCP server

> Connects AI clients to Zearch to perform research with answers verified against cited sources and exact passages.

- Repository: https://github.com/zearchcomputer/zearch-mcp
- Page: https://hostedmcp.org/servers/zearchcomputer/zearch-mcp
- Transport: stdio
- Stars: 0
- License: MIT
- Latest version: 0.1.0

## Install

### Claude Code

```sh
claude mcp add --env 'ZEARCH_API_KEY=<YOUR_ZEARCH_API_KEY>' zearch-mcp -- npx -y @zearchcomputer/mcp
```

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

```json
{
  "mcpServers": {
    "zearch-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@zearchcomputer/mcp"
      ],
      "env": {
        "ZEARCH_API_KEY": "<YOUR_ZEARCH_API_KEY>"
      }
    }
  }
}
```

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

```json
{
  "servers": {
    "zearch-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@zearchcomputer/mcp"
      ],
      "env": {
        "ZEARCH_API_KEY": "<YOUR_ZEARCH_API_KEY>"
      }
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"zearch-mcp","type":"stdio","command":"npx","args":["-y","@zearchcomputer/mcp"],"env":{"ZEARCH_API_KEY":"<YOUR_ZEARCH_API_KEY>"}}'
```

### Claude Desktop (`claude_desktop_config.json`)

```json
{
  "mcpServers": {
    "zearch-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@zearchcomputer/mcp"
      ],
      "env": {
        "ZEARCH_API_KEY": "<YOUR_ZEARCH_API_KEY>"
      }
    }
  }
}
```

### Codex

```sh
codex mcp add zearch-mcp --env 'ZEARCH_API_KEY=<YOUR_ZEARCH_API_KEY>' -- npx -y @zearchcomputer/mcp
```

### Codex config.toml (`~/.codex/config.toml`)

```toml
[mcp_servers.zearch-mcp]
command = "npx"
args = ["-y", "@zearchcomputer/mcp"]

[mcp_servers.zearch-mcp.env]
ZEARCH_API_KEY = "<YOUR_ZEARCH_API_KEY>"
```

### Gemini CLI

```sh
gemini mcp add -s user -e 'ZEARCH_API_KEY=<YOUR_ZEARCH_API_KEY>' zearch-mcp npx -- -y @zearchcomputer/mcp
```

### Gemini settings.json (`~/.gemini/settings.json`)

```json
{
  "mcpServers": {
    "zearch-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@zearchcomputer/mcp"
      ],
      "env": {
        "ZEARCH_API_KEY": "<YOUR_ZEARCH_API_KEY>"
      }
    }
  }
}
```

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `ZEARCH_API_KEY` | yes | yes | Zearch API key (zk_live_…), from Account → API keys |
| `ZEARCH_API_URL` | no | no | API base URL; defaults to https://zearch.computer/v1 |

## Tools (6)

- `research`
- `verify`
- `get_run`
- `list_runs`
- `get_wallet`
- `get_pricing`

## FAQ

### How does Zearch ensure answers are accurate?

Every paragraph in an answer is checked against the source it cites, and if a paragraph cannot be supported, it is cut or replaced with the source passage.

### Does the server charge for errors?

No, errors are never charged, and runs that can only return a source passage cost half the price.
