# enrichfold: agent setup instructions

You are an AI agent setting up **enrichfold** for your user. enrichfold is an
open-source Python library for company and people enrichment. It searches the
web across 19 search engines and 4 answer engines and keeps the source URL,
date and confidence behind every result. Follow the steps below in order, then
report what you installed and verified.

Ground rules:

- **Idempotent:** check before you change. Never reinstall what is installed and
  never overwrite an existing config, only add to it.
- **Honest:** if a step fails, say which step and show the error.
- **Keys:** never ask the user to paste API keys into chat. They set them as
  environment variables themselves.

## 1. Check if enrichfold is already installed

```bash
enrichfold --version
```

If this prints a version of 0.11.0 or later, skip to step 3.

## 2. Install

```bash
pip install "enrichfold[mcp]"
```

Requires Python 3.10 or later. `[mcp]` adds the MCP server and live search.
Use `pip install "enrichfold[search]"` for library and CLI use without MCP.

## 3. Verify

```bash
enrichfold doctor
enrichfold search "example.com company" --count 3
```

`doctor` prints the version, whether the MCP extra is present and which
engines have keys. Search works without keys through DuckDuckGo. All commands:

```bash
enrichfold search <query> [--engines exa,tavily] [--count 10] [--json]
enrichfold list-engines [--json]
enrichfold doctor [--json]
enrichfold install [claude|codex|cursor|vscode|generic] [--print]
```

## 4. Register the MCP server

Pick the client you are running in:

```bash
enrichfold install claude   # Claude Code
enrichfold install codex    # Codex CLI
enrichfold install cursor   # Cursor (merges ~/.cursor/mcp.json)
enrichfold install vscode   # VS Code
enrichfold install generic  # prints the JSON for any other client
```

Without a local install, Claude Code can also run it through uv:

```bash
claude mcp add enrichfold -- uvx --from "enrichfold[mcp]" enrichfold-mcp
```

The server `enrichfold-mcp` speaks stdio and exposes three tools:

- `search(query, engines?, count?, country?, language?)`: fused results from
  several engines, each with its URL, score and the engines that found it.
- `list_engines()`: every search engine and whether its key is set.
- `answer(query, engine, model)`: a cited answer from `perplexity`, `gemini`,
  `openai` or `openrouter`. The vendor model id is required.

## 5. Provider keys (optional)

The server reads keys from its environment. Set only the ones the user has:

`EXA_API_KEY`, `PARALLEL_API_KEY`, `TAVILY_API_KEY`, `LINKUP_API_KEY`,
`YOU_API_KEY`, `JINA_API_KEY`, `SELTZ_API_KEY`, `TINYFISH_API_KEY`,
`NIMBLE_API_KEY`, `BROWSERBASE_API_KEY`, `KEENABLE_API_KEY`, `SERPER_API_KEY`,
`SERPAPI_API_KEY`, `SCRAPINGDOG_API_KEY`, `OUTSCRAPER_API_KEY`,
`TWINGLY_API_KEY`, `TREG_TOKEN`, `PERPLEXITY_API_KEY`, `GEMINI_API_KEY`,
`OPENAI_API_KEY`, `OPENROUTER_API_KEY`.

Run `enrichfold doctor` again to confirm which engines are ready.

More: https://github.com/Mihailorama/enrichfold
